/* ==========================================================================
   DoubleUp Studio — core stylesheet
   Retro pixel / dark. Mobile-first, one stylesheet for every page.

   1 fonts · 2 tokens · 3 reset · 4 type · 5 layout · 6 pixel UI
   7 header · 8 footer · 9 hero · 10 game cards · 11 about · 12 contact
   13 legal docs · 14 utils · 15 reduced motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Galmuri (SIL OFL, quiple.dev) — Korean-capable pixel font.
   Only the two faces actually rendered are declared, so nothing extra
   gets downloaded. */
@font-face {
  font-family: 'Galmuri11';
  src: url('https://cdn.jsdelivr.net/npm/galmuri@2.40.3/dist/Galmuri11.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Galmuri11';
  src: url('https://cdn.jsdelivr.net/npm/galmuri@2.40.3/dist/Galmuri11-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* surface */
  --bg:        #0a0c12;
  --bg-panel:  #11151f;
  --bg-raised: #171d2b;
  --line:      #2a3347;
  --line-soft: #1d2433;

  /* ink */
  --ink:     #e9edf7;
  --ink-mid: #a8b2c8;
  --ink-dim: #6d7891;

  /* accents — sky is the existing brand colour, amber is its retro counterpart */
  --sky:      #38bdf8;
  --sky-deep: #0284c7;
  --amber:    #ffc94a;
  --lime:     #7bf1a8;

  /* type */
  --font-pixel:  'Galmuri11', 'DungGeunMo', monospace;
  --font-arcade: 'Press Start 2P', 'Galmuri11', monospace;
  --font-body:   'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                 'Malgun Gothic', system-ui, Roboto, sans-serif;

  /* rhythm */
  --wrap: 1120px;
  --gap: 1.25rem;
  --pad-block: clamp(3rem, 8vw, 5.5rem);

  /* pixel chrome */
  --shadow-hard: 4px 4px 0 rgba(0, 0, 0, .55);
  --shadow-sky:  4px 4px 0 var(--sky-deep);
}

/* 3. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* CRT scanline veil — decorative, never intercepts clicks */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .022) 0 1px,
    transparent 1px 3px
  );
}

img { max-width: 100%; height: auto; display: block; }
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--sky); text-underline-offset: 4px; }
a:hover { color: #7dd3fc; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* 4. Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-pixel);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;
  word-break: keep-all;
  margin: 0 0 .75rem;
}
h1 { font-size: clamp(1.6rem, 5.4vw, 2.9rem); }
h2 { font-size: clamp(1.3rem, 3.6vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2.6vw, 1.25rem); }
p { margin: 0 0 1rem; word-break: keep-all; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-arcade);
  font-size: clamp(.55rem, 1.7vw, .68rem);
  line-height: 1.8;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 .85rem;
}
.lead { font-size: clamp(1rem, 2.4vw, 1.12rem); color: var(--ink-mid); }
.muted { color: var(--ink-dim); }
.pixel { font-family: var(--font-pixel); }
.arcade { font-family: var(--font-arcade); letter-spacing: .1em; }

/* blinking terminal caret, used after a heading */
.caret::after {
  content: "_";
  color: var(--sky);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 5. Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
main { flex: 1 0 auto; }
.section { padding-block: var(--pad-block); }
.section + .section { border-top: 2px solid var(--line-soft); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 620px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* 6. Pixel UI ------------------------------------------------------------- */
.panel {
  background: var(--bg-panel);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
  padding: clamp(1.15rem, 3.5vw, 1.75rem);
}
.panel--raised { background: var(--bg-raised); }
.panel--sky { border-color: var(--sky-deep); box-shadow: var(--shadow-sky); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: .95rem 1.5rem;
  border: 2px solid var(--sky);
  background: rgba(56, 189, 248, .1);
  color: var(--sky);
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: rgba(56, 189, 248, .2); color: #bae6fd; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
.btn--solid { background: var(--sky); color: #04121c; border-color: var(--sky); }
.btn--solid:hover { background: #7dd3fc; color: #04121c; }
.btn--ghost { border-color: var(--line); background: transparent; color: var(--ink-mid); }
.btn--ghost:hover { border-color: var(--ink-mid); background: rgba(255, 255, 255, .04); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: .78rem;
  line-height: 1.4;
  padding: .28rem .6rem;
  border: 2px solid var(--line);
  color: var(--ink-mid);
  background: rgba(255, 255, 255, .03);
}
.tag--sky { border-color: var(--sky-deep); color: var(--sky); }
.tag--amber { border-color: #a97a13; color: var(--amber); }
.tag--lime { border-color: #2f7d55; color: var(--lime); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }

/* dotted rule that reads as a pixel divider */
.rule {
  height: 4px;
  border: 0;
  margin: 0;
  background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%);
  background-size: 8px 4px;
}

/* 7. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(10, 12, 18, .92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1rem;
}
.brand img { width: 26px; height: 26px; object-fit: contain; }
.brand span { white-space: nowrap; }
.brand:hover { color: var(--sky); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: .85rem;
  padding: .5rem .8rem;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--line);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--sky-deep); color: var(--sky); }

.site-nav { display: none; padding-bottom: 1rem; }
.site-nav[data-open="true"] { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.site-nav a {
  display: block;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: .95rem;
  padding: .7rem .8rem;
  color: var(--ink-mid);
  text-decoration: none;
  border: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.site-nav a[aria-current="page"] { color: var(--sky); border-color: var(--sky-deep); }

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-header__bar { min-height: 72px; }
  .site-nav { display: block !important; padding-bottom: 0; }
  .site-nav ul { flex-direction: row; gap: .25rem; }
  .site-nav a { padding: .5rem .9rem; font-size: .9rem; }
  .brand { font-size: 1.1rem; }
  .brand img { width: 32px; height: 32px; }
}

/* 8. Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 2px solid var(--line);
  background: #070910;
  padding-block: 2.5rem;
  font-size: .92rem;
  color: var(--ink-dim);
}
.site-footer__grid { display: grid; gap: 1.75rem; }
@media (min-width: 720px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: .6rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .3rem; }
.site-footer a { color: var(--ink-mid); text-decoration: none; }
.site-footer a:hover { color: var(--sky); text-decoration: underline; }
.site-footer__legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: space-between;
  font-size: .85rem;
}

/* 9. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 10vw, 6rem);
  border-bottom: 2px solid var(--line-soft);
}
/* faint pixel grid behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 20%, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }
.hero--center { text-align: center; }
.hero--center .btn-row { justify-content: center; }
.hero__logo {
  width: min(100%, 620px);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 34px rgba(56, 189, 248, .28));
}
.hero__title { margin-bottom: 1rem; }
.hero__sub { max-width: 46ch; margin-inline: auto; }

/* compact hero for inner pages */
.page-hero {
  padding-block: clamp(2.25rem, 7vw, 3.75rem);
  border-bottom: 2px solid var(--line-soft);
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(56, 189, 248, .07), transparent 70%);
}
.page-hero p { max-width: 62ch; }

/* 10. Game cards ---------------------------------------------------------- */
.game-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: var(--bg-panel);
  border: 2px solid var(--line);
  box-shadow: var(--shadow-hard);
  padding: 1.15rem;
  transition: transform .14s ease, border-color .14s ease;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--sky-deep); }
.game-card__art {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(45deg, #131826 0 12px, #171d2b 12px 24px);
  border: 2px solid var(--line-soft);
  color: var(--ink-dim);
  font-family: var(--font-arcade);
  font-size: .62rem;
  line-height: 1.9;
  letter-spacing: .1em;
  text-align: center;
  padding: 1rem;
}
.game-card__title { margin: 0; }
.game-card__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .88rem;
  color: var(--ink-dim);
}
.game-card__meta li { display: flex; gap: .5rem; }
.game-card__meta b {
  color: var(--ink-mid);
  font-weight: 400;
  min-width: 4.5rem;
  flex: none;
}
.game-card--empty {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-dim);
  min-height: 240px;
}
.game-card--empty:hover { transform: none; border-color: var(--line); }

/* 11. About --------------------------------------------------------------- */
.stat-row { display: grid; gap: var(--gap); }
@media (min-width: 620px) { .stat-row { grid-template-columns: repeat(3, 1fr); } }
.stat {
  border: 2px solid var(--line);
  background: var(--bg-panel);
  padding: 1.1rem;
}
.stat__num {
  font-family: var(--font-arcade);
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  color: var(--amber);
  display: block;
  margin-bottom: .6rem;
}
.stat__label { font-size: .9rem; color: var(--ink-dim); margin: 0; }

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--line);
}
.timeline li { position: relative; padding: 0 0 1.5rem .5rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: .55rem;
  width: 10px;
  height: 10px;
  background: var(--sky);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline h3 { margin-bottom: .25rem; }
.timeline time {
  font-family: var(--font-arcade);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--ink-dim);
  display: block;
  margin-bottom: .35rem;
}

/* 12. Contact ------------------------------------------------------------- */
.contact-mail {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: clamp(1rem, 3.6vw, 1.4rem);
  color: var(--sky);
  text-decoration: none;
  word-break: break-all;
}
.contact-mail:hover { text-decoration: underline; }

/* 13. Legal / policy documents -------------------------------------------- */
.doc { max-width: 78ch; }
.doc h2 {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line-soft);
  scroll-margin-top: 90px;
}
.doc > h2:first-of-type { margin-top: 1.5rem; }
.doc h3 { margin-top: 1.75rem; color: var(--ink); }
.doc p, .doc li { color: var(--ink-mid); }
.doc ul, .doc ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.doc li { margin-bottom: .5rem; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  margin: 0 0 1rem;
}
.doc th, .doc td {
  border: 2px solid var(--line-soft);
  padding: .6rem .7rem;
  text-align: left;
  vertical-align: top;
  color: var(--ink-mid);
}
.doc th { background: var(--bg-panel); color: var(--ink); font-family: var(--font-pixel); }
.doc__scroll { overflow-x: auto; }

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .88rem;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
}

.toc { margin-bottom: 2rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
@media (min-width: 620px) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { margin-bottom: .35rem; font-size: .92rem; }

/* callout for "not applicable yet" notes in the policy */
.note {
  border: 2px solid var(--line);
  border-left: 6px solid var(--amber);
  background: rgba(255, 201, 74, .05);
  padding: 1rem 1.1rem;
  margin: 0 0 1.25rem;
  font-size: .93rem;
  color: var(--ink-mid);
}
.note--sky { border-left-color: var(--sky); background: rgba(56, 189, 248, .05); }
.note strong { color: var(--ink); }

/* 14. Utilities ----------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .75rem 1rem;
  background: var(--sky);
  color: #04121c;
  font-family: var(--font-pixel);
  font-weight: 700;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 15. Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* 16. Playable hero (home only) -------------------------------------------
   Default markup = static hero. hero-game.js adds .game-on to the track,
   which turns the hero into a sticky game stage with a scroll-linked exit.
   No JS / reduced motion → none of this activates. */

/* the scroll runway */
.game-on { height: 250vh; }
.game-on .game-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;   /* stable under mobile address-bar collapse */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-bottom: 0;
  will-change: transform;
}
.game-on .game-stage::before { display: none; }  /* canvas replaces the grid */

/* the homepage "rises from below" and slides over the pinned game */
.page-body { position: relative; z-index: 2; background: var(--bg); }
.game-on + .page-body {
  margin-top: -100vh;
  margin-top: -100svh;
  border-top: 2px solid var(--line);
  box-shadow: 0 -14px 44px rgba(0, 0, 0, .6);
}

#hero-game {
  position: absolute;
  z-index: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* UI layer above the canvas; only interactive bits catch the pointer */
.stage-ui { position: relative; z-index: 2; width: 100%; pointer-events: none; }
.stage-ui a, .stage-ui button { pointer-events: auto; }
.game-hint { font-family: var(--font-pixel); font-size: .85rem; }

/* while playing, the copy recedes and the headline becomes the target */
.game-stage[data-state="playing"] #hero-eyebrow,
.game-stage[data-state="playing"] #hero-logo,
.game-stage[data-state="playing"] #hero-lead,
.game-stage[data-state="playing"] #hero-cta,
.game-stage[data-state="gameover"] #hero-cta {
  opacity: .1;
  transition: opacity .35s ease;
}
.game-stage[data-state="playing"] #hero-cta a { pointer-events: none; }
.game-stage[data-state="attract"] #hero-eyebrow,
.game-stage[data-state="attract"] #hero-logo,
.game-stage[data-state="attract"] #hero-lead,
.game-stage[data-state="attract"] #hero-cta {
  opacity: 1;
  transition: opacity .35s ease;
}
.stage-btns { justify-content: center; }

/* destructible headline glyphs + decorative pixel stars */
.glyph { display: inline-block; }
.glyph.hit {
  animation: glyphOut .3s ease forwards;
}
@keyframes glyphOut {
  40% { transform: translateY(-4px) rotate(8deg); opacity: .8; }
  100% { transform: translateY(-14px) rotate(20deg) scale(.4); opacity: 0; }
}
.glyph.back { animation: glyphBack .6s steps(4) forwards; }
@keyframes glyphBack {
  0% { opacity: 0; }
  50% { opacity: .5; transform: translateY(-2px); }
  100% { opacity: 1; transform: none; }
}

.pixel-star {
  position: absolute;
  z-index: 1;
  width: 6px;
  height: 6px;
  background: var(--sky);
  box-shadow: 0 0 8px rgba(56, 189, 248, .7);
  animation: starTwinkle 2.6s ease-in-out infinite;
  pointer-events: none;
}
.pixel-star.hit { animation: glyphOut .3s ease forwards; }
.pixel-star.back { animation: glyphBack .6s steps(4) forwards; }
@keyframes starTwinkle {
  0%, 100% { opacity: .9; }
  50% { opacity: .3; }
}

/* HUD — pinned to the stage, clear of the sticky header */
.game-hud {
  position: absolute;
  z-index: 3;
  top: 72px;
  left: 0;
  right: 0;
  padding: .6rem clamp(1rem, 4vw, 2rem);
  align-items: center;
  gap: .9rem;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: .85rem;
  color: var(--sky);
}
.game-hud:not([hidden]) { display: flex; }
.hud-item { text-shadow: 2px 2px 0 rgba(0, 0, 0, .7); white-space: nowrap; }
#hud-hp { color: var(--rose, #ff6b9d); color: #ff6b9d; }
.hud-spacer { flex: 1; }
.hud-btn {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: .78rem;
  padding: .35rem .6rem;
  color: var(--ink-mid);
  background: rgba(10, 12, 18, .7);
  border: 2px solid var(--line);
  cursor: pointer;
}
.hud-btn:hover { color: var(--sky); border-color: var(--sky-deep); }
#hud-exit { color: var(--amber); border-color: #a97a13; }
@media (min-width: 880px) { .game-hud { top: 84px; } }

/* game over / pause overlays */
.stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 12, 18, .55);
}
.stage-overlay:not([hidden]) { display: flex; }
.stage-overlay .panel { max-width: 420px; }

/* plateau dim + label (opacity driven by scroll progress in JS) */
.stage-dim {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12vh;
  background: rgba(10, 12, 18, .45);
  font-family: var(--font-arcade);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--sky);
  opacity: 0;
  pointer-events: none;
}

/* persistent skip cue */
.stage-skip {
  position: absolute;
  z-index: 3;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink-dim);
  text-decoration: none;
  padding: .4rem .8rem;
  animation: skipNudge 2s ease-in-out infinite;
}
.stage-skip:hover { color: var(--sky); }
@keyframes skipNudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* touch lock while actively playing on mobile — scoped to the stage only */
.game-stage.locked {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
html.game-lock, html.game-lock body { overscroll-behavior: none; }

/* safety: if reduced-motion flips on after load, neutralize the runway */
@media (prefers-reduced-motion: reduce) {
  .game-on { height: auto; }
  .game-on .game-stage { position: static; height: auto; transform: none !important; }
  .game-on + .page-body { margin-top: 0; }
}
