/* Cubo Blocks — Tutorial, tips, pause. */
/* ---------- tutorial & tips ---------- */
body.tutorial #wallet, body.tutorial #undo, body.tutorial #missions-open, body.tutorial #menu-open,
body.tutorial #inventory, body.tutorial #trash, body.tutorial #give-up { display: none; }
#coach, #coach-skip, #hand, #tip { display: none; }
body.tutorial #coach { display: block; }
body.tutorial #coach-skip { display: block; }
#coach {
  position: fixed; top: calc(env(safe-area-inset-top) + 12px); left: 50%; transform: translateX(-50%);
  width: min(340px, calc(100% - 32px)); padding: 10px 16px 12px; border-radius: var(--radius);
  background: var(--panel); color: var(--text); text-align: center; box-shadow: var(--plate-edge), 0 4px 12px rgba(0,0,0,0.25);
}
#coach small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
#coach b { display: block; font-family: var(--font-display); font-style: var(--display-style); font-weight: 700; font-size: 21px; line-height: 1.15; }
#coach span { display: block; font-size: 14px; font-weight: 700; color: var(--muted); line-height: 1.25; }
#coach.nope span { color: var(--danger, #e5484d); }
#coach.nope { animation: nudge 360ms; }
#coach.yay b { color: var(--accent); }
#coach-skip {
  position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 14px); border: 0; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; background: var(--panel); color: var(--muted); font-weight: 800; font-size: 14px;
  box-shadow: var(--plate-edge), 0 3px 8px rgba(0,0,0,0.2);
}
#hand { position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3)); }
body.tutorial #hand.on { display: block; }
#tip {
  position: fixed; z-index: 5; width: min(300px, calc(100% - 32px)); padding: 12px 14px; border-radius: calc(var(--radius) - 4px);
  background: var(--text); color: var(--panel); font-size: 15px; font-weight: 700; line-height: 1.3; text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); cursor: pointer;
}
#tip.show { display: block; animation: fade 200ms; }
#tip b { display: block; font-family: var(--font-display); font-style: var(--display-style); font-size: 17px; margin-bottom: 2px; }
#tip small { display: block; margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
#tip::after {
  content: ''; position: absolute; left: var(--arrow, 50%); width: 14px; height: 14px; margin-left: -7px;
  background: inherit; transform: rotate(45deg); border-radius: 3px;
}
#tip.below::after { top: -6px; }
#tip.above::after { bottom: -6px; }
#tip.free::after { display: none; }
.setting.link { width: 100%; border: 0; cursor: pointer; color: var(--text); }
.setting.link svg { flex: none; color: var(--accent); }
#tutorial-end p { margin: 10px 0 0; font-weight: 700; color: var(--muted); line-height: 1.35; }
#tutorial-end .rules { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; display: grid; gap: 8px; }
#tutorial-end .rules li { padding: 10px 12px; border-radius: calc(var(--radius) - 6px); background: var(--panel-2); font-weight: 700; font-size: 14px; line-height: 1.3; }
@keyframes nudge { 25% { transform: translateX(calc(-50% - 6px)); } 75% { transform: translateX(calc(-50% + 6px)); } }

/* ---------- pause ---------- */
.pause-sub { margin-top: 6px; }
.pause-actions { display: grid; gap: 10px; margin-top: 20px; }
.pause-actions .actions { margin-top: 0; }
.pause-quit { justify-self: center; margin-top: 2px; padding: 8px 14px; border: 0; background: none; color: #e5484d; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.pause-quit:active { opacity: .6; }
