/* Direction A · The page is a level. Colours and shapes come from the game's own UI. */
@font-face { font-family: "Pixelify"; src: url(../fonts/pixelify-var.woff2) format("woff2"), url(../fonts/PixelifySans-Regular.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "PS2P"; src: url(../fonts/ps2p-sub.woff) format("woff"); font-display: swap; }

:root {
  --ink: #0b0d24;
  --navy: #1f2462;
  --navy-2: #2a3080;
  --rim: #7c84e6;
  --edge: #0d1033;
  --gold: #ffc83a;
  --gold-2: #ffdf73;
  --gold-d: #b87a0c;
  --cherry: #d8204c;
  --green: #79e36a;
  --text: #f4f2ff;
  --muted: #c3c0ee;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --u: 80px;            /* one Jumpy */
  --gut: 32px;
  --hud: 84px;
  --bar: 76px;
  color-scheme: dark;
}
@media (max-width: 760px) { :root { --u: 54px; --gut: 16px; --hud: 64px; --bar: 58px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: "Pixelify", system-ui, sans-serif; font-size: 20px; line-height: 1.45; color: var(--text); background: transparent; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
a { color: var(--gold-2); text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }

/* ---------- sprites (real frame strips, stepped) ---------- */
.spr { display: inline-block; background-repeat: no-repeat; background-size: calc(var(--n) * 100%) 100%; image-rendering: pixelated;
  animation: spr var(--d, 1s) steps(var(--n), jump-none) infinite; }
@keyframes spr { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.spr-coin { --n: 16; --d: 1.1s; width: calc(var(--u) * .5); height: calc(var(--u) * .5); background-image: url(../img/sprites/coin.png); }
.spr-beetle { --n: 8; --d: .7s; width: calc(var(--u) * 1.27); height: calc(var(--u) * .635); background-image: url(../img/sprites/beetle-walk.png); }
.spr-king { --n: 8; --d: .9s; width: calc(var(--u) * 3.4); height: calc(var(--u) * 2.49); background-image: url(../img/sprites/king-walk.png); }
.spr-ufo { --n: 2; --d: .5s; width: calc(var(--u) * 3.2); height: calc(var(--u) * 1.6); background-image: url(../img/sprites/ufoboss.png); }
.spr-beam { --n: 4; --d: .45s; width: calc(var(--u) * 1.3); height: calc(var(--u) * 3.6); background-image: url(../img/sprites/tractorbeam.png); opacity: .75; }
.spr-flag { --n: 4; --d: .6s; width: calc(var(--u) * 1.25); height: calc(var(--u) * 2); background-image: url(../img/sprites/flag.png); }
.spr-fire { --n: 3; --d: .2s; width: calc(var(--u) * 1); height: calc(var(--u) * .25); background-image: url(../img/sprites/fireball.png); }
.spr-boom { --n: 8; --d: .5s; width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); background-image: url(../img/sprites/boom.png); animation-iteration-count: 1; animation-fill-mode: forwards; }
.spr-star { --n: 8; --d: .45s; width: calc(var(--u) * .9); height: calc(var(--u) * .9); background-image: url(../img/sprites/star-burst.png); animation-iteration-count: 1; animation-fill-mode: forwards; }
.spr-confetti { --n: 6; --d: .6s; width: 26px; height: 24px; background-image: url(../img/sprites/confetti.png); }

/* ---------- stage: six worlds, three real parallax layers each ---------- */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #070a1f; }
.world { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms var(--ease-in-out); }
body[data-world="space"] .world.deck[data-w="space"], body[data-world="moon"] .world.deck[data-w="moon"], body[data-world="ice"] .world.deck[data-w="ice"],
body[data-world="lava"] .world.deck[data-w="lava"], body[data-world="asteroid"] .world.deck[data-w="asteroid"], body[data-world="ufo"] .world.deck[data-w="ufo"] { opacity: 1; }
.l { position: absolute; top: 0; bottom: 0; left: 0; width: calc(100% + var(--tile, 200vh)); background-repeat: repeat-x; background-size: auto 100%; background-position: 0 100%; image-rendering: pixelated; will-change: transform; }
.world.deck[data-w="space"] .far { background-image: url(../img/worlds/space-far.webp); } .world.deck[data-w="space"] .mid { background-image: url(../img/worlds/space-mid.webp); } .world.deck[data-w="space"] .near { background-image: url(../img/worlds/space-near.webp); }
.world.deck[data-w="moon"] .far { background-image: url(../img/worlds/moon-far.webp); } .world.deck[data-w="moon"] .mid { background-image: url(../img/worlds/moon-mid.webp); } .world.deck[data-w="moon"] .near { background-image: url(../img/worlds/moon-near.webp); }
.world.deck[data-w="ice"] .far { background-image: url(../img/worlds/ice-far.webp); } .world.deck[data-w="ice"] .mid { background-image: url(../img/worlds/ice-mid.webp); } .world.deck[data-w="ice"] .near { background-image: url(../img/worlds/ice-near.webp); }
.world.deck[data-w="lava"] .far { background-image: url(../img/worlds/lava-far.webp); } .world.deck[data-w="lava"] .mid { background-image: url(../img/worlds/lava-mid.webp); } .world.deck[data-w="lava"] .near { background-image: url(../img/worlds/lava-near.webp); }
.world.deck[data-w="asteroid"] .far { background-image: url(../img/worlds/asteroid-far.webp); } .world.deck[data-w="asteroid"] .mid { background-image: url(../img/worlds/asteroid-mid.webp); } .world.deck[data-w="asteroid"] .near { background-image: url(../img/worlds/asteroid-near.webp); }
.world.deck[data-w="ufo"] .far { background-image: url(../img/worlds/ufo-far.webp); } .world.deck[data-w="ufo"] .mid { background-image: url(../img/worlds/ufo-mid.webp); } .world.deck[data-w="ufo"] .near { background-image: url(../img/worlds/ufo-near.webp); }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,31,.55), rgba(7,10,31,.15) 30%, rgba(7,10,31,.25) 70%, rgba(7,10,31,.6)); pointer-events: none; }

/* ---------- HUD (game header pills) ---------- */
.hud { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--hud); display: flex; align-items: center; gap: 14px; padding: 0 var(--gut); }
.hud::before { content: ""; position: absolute; inset: 0 0 -24px; background: linear-gradient(180deg, rgba(7,10,31,.85), rgba(7,10,31,0)); pointer-events: none; z-index: -1; }
.pill, .hud-brand, .hud-coins, .hud-nav a, .hud-sound, .hud-get {
  font-family: "Pixelify"; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: #fff;
  background: var(--navy); border: 3px solid var(--rim); border-radius: 14px; box-shadow: 0 4px 0 var(--edge), inset 0 -4px 0 rgba(0,0,0,.22);
  height: 46px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms ease;
}
.hud-brand img { width: 32px; height: 32px; border-radius: 7px; }
.hud-coins { min-width: 96px; justify-content: flex-start; }
.hud-coins .spr-coin { width: 22px; height: 22px; animation-duration: 1.6s; }
.hud-coins.bump { transform: scale(1.08); }
.hud-nav { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hud-nav a[aria-current="page"] { background: var(--navy-2); }
.hud-sound .ico { width: 16px; height: 14px; background: currentColor; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 14"><path d="M0 4h4l5-4v14L4 10H0z"/><path d="M11 4h2v6h-2z" opacity=".35"/></svg>') center/contain no-repeat; }
.hud-sound[aria-pressed="true"] .ico { mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 14"><path d="M0 4h4l5-4v14L4 10H0z"/><path d="M11 4h2v6h-2zM14 2h2v10h-2z"/></svg>'); }
.hud-get { background: var(--gold); color: #3b2400; border-color: #fff1b8; box-shadow: 0 4px 0 var(--gold-d), inset 0 -4px 0 rgba(0,0,0,.12); }
.hud-menu { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 14px; background: var(--navy); border: 3px solid var(--rim); box-shadow: 0 4px 0 var(--edge); position: relative; }
.hud-menu span:first-child, .hud-menu span:first-child::before, .hud-menu span:first-child::after { position: absolute; left: 11px; right: 11px; height: 3px; background: #fff; content: ""; }
.hud-menu span:first-child { top: 19px; } .hud-menu span:first-child::before { top: -7px; left: 0; right: 0; } .hud-menu span:first-child::after { top: 7px; left: 0; right: 0; }
@media (hover: hover) and (pointer: fine) {
  .hud-brand:hover, .hud-nav a:hover, .hud-sound:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge), inset 0 -4px 0 rgba(0,0,0,.22); }
  .hud-get:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--gold-d), inset 0 -4px 0 rgba(0,0,0,.12); }
}
.hud-brand:active, .hud-nav a:active, .hud-sound:active, .hud-get:active, .hud-menu:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
@media (max-width: 980px) {
  .hud-brand span { display: none; }
  .hud-menu { display: block; }
  .hud-nav { position: fixed; top: calc(var(--hud) + 6px); right: var(--gut); left: var(--gut); flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; background: rgba(13,16,51,.96); border: 3px solid var(--rim); border-radius: 18px; box-shadow: 0 8px 0 var(--edge);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  .hud-nav[data-open] { opacity: 1; transform: none; pointer-events: auto; }
  .hud-nav a, .hud-sound, .hud-get { justify-content: center; height: 52px; font-size: 12px; }
}

/* ---------- scenes ---------- */
.scene { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hud) + 28px) 0 calc(var(--bar) + 36px); }
.world-tag { display: inline-flex; align-items: center; gap: 10px; font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.world-tag img { width: 30px; height: 30px; }
h2 { font-weight: 400; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.01em; color: #fff; text-shadow: 0 4px 0 var(--edge); text-wrap: balance; }
.copy p { color: var(--text); max-width: 34ch; margin-top: 18px; text-shadow: 0 2px 0 var(--edge); }
.copy .note { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; line-height: 1.8; color: var(--muted); }
.panel { background: rgba(31,36,98,.9); border: 3px solid var(--rim); border-radius: 20px; box-shadow: 0 6px 0 var(--edge), inset 0 -6px 0 rgba(0,0,0,.18); padding: 22px; }
.panel h3 { font-family: "Pixelify"; font-weight: 400; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.panel p { font-size: 18px; color: var(--muted); margin-top: 14px; }
.shot { padding: 8px; overflow: hidden; }
.shot img { border-radius: 12px; image-rendering: auto; width: 100%; }

.btn { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; height: 58px; padding: 0 22px; border-radius: 14px; white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.btn-navy { color: #fff; background: var(--navy); border: 3px solid var(--rim); box-shadow: 0 5px 0 var(--edge); }
@media (hover: hover) and (pointer: fine) { .btn-navy:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--edge); } .gp:hover img { transform: translateY(-2px); } }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--edge); }
.gp { display: inline-block; border-radius: 12px; }
.gp img { height: 58px; width: auto; image-rendering: auto; transition: transform 160ms var(--ease-out); }
.gp:active img { transform: scale(.97); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.fine { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; line-height: 1.8; letter-spacing: .04em; color: var(--muted); margin-top: 20px; }

/* ---------- hero (playable) ---------- */
.hero { align-items: flex-start; overflow: hidden; }
.hero-in { position: relative; z-index: 2; }
.hero-copy { max-width: 600px; }
@media (min-width: 1001px) { .hero-copy { width: calc((100% - 264px) / 2 + 120px); max-width: none; } }
@media (max-width: 1000px) { .hero-copy { max-width: none; } }
h1 { font-weight: 400; }
h1 .logo { width: min(520px, 86vw); height: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); }
h1 .tagline { display: block; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; margin-top: 18px; text-shadow: 0 4px 0 var(--edge); }
.lede { font-size: 21px; max-width: 30ch; margin-top: 14px; text-shadow: 0 2px 0 var(--edge); }
/* hero entrance: copy rises once (ease-out, staggered children) */
.js [data-enter] > * { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js.is-in [data-enter] > * { opacity: 1; transform: none; }
.js.is-in [data-enter] > *:nth-child(2) { transition-delay: 70ms; } .js.is-in [data-enter] > *:nth-child(3) { transition-delay: 140ms; }
.js.is-in [data-enter] > *:nth-child(4) { transition-delay: 200ms; } .js.is-in [data-enter] > *:nth-child(5) { transition-delay: 250ms; }

.play { position: absolute; left: 0; right: 0; bottom: calc(var(--bar) + 6px); height: calc(var(--u) * 6.2); z-index: 1; }
.play-ground { position: absolute; inset: 0; }
.tiles { position: absolute; display: flex; bottom: calc(var(--u) * .2); left: calc(var(--u) * -1); }
.tiles i { width: calc(var(--u) * 4); height: calc(var(--u) * 1.364); margin-right: calc(var(--u) * -.046); flex: none; background: center/100% 100% no-repeat; image-rendering: pixelated; }
.tiles .g0 { background-image: url(../img/tiles/grass-0.png); } .tiles .g1 { background-image: url(../img/tiles/grass-1.png); } .tiles .g2 { background-image: url(../img/tiles/grass-2.png); }
/* walk line = tile top + 18/60 of the tile height */
.play { --floor: calc(var(--u) * (.2 + 1.364 - .41)); }
.jumpy { position: absolute; left: var(--jx, 56%); bottom: var(--floor); width: var(--u); height: var(--u); will-change: transform; }
.jumpy img { width: 100%; height: 100%; transform-origin: 50% 100%; transform: scale(var(--sx, 1), var(--sy, 1)); }
.beetle { position: absolute; left: 0; bottom: calc(var(--floor) - var(--u) * .02); will-change: transform; }
.beetle .spr { display: block; transform: scaleX(var(--face, 1)); }
.beetle.out { opacity: 0; transition: opacity 200ms ease; }
.coins-air .c { position: absolute; left: calc(var(--jx, 56%) + var(--u) * .25); bottom: calc(var(--floor) + var(--u) * (1.35 + var(--x) * 1.12)); transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.coins-air .c.got { opacity: 0; transform: translateY(calc(var(--u) * -.4)) scale(.9); }
.fx > * { position: absolute; pointer-events: none; }
.play-pad { position: absolute; right: var(--gut); bottom: calc(var(--u) * 1.9); display: flex; align-items: flex-end; gap: 14px; z-index: 3; }
.play-hint { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; color: var(--muted); margin-right: 8px; line-height: 2.2; text-shadow: 0 2px 0 var(--edge); }
kbd { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; display: inline-block; min-width: 28px; padding: 6px 7px 7px; border-radius: 7px; background: #e9e7ff; color: var(--ink); box-shadow: 0 3px 0 #8c88c9; text-align: center; transition: transform 100ms var(--ease-out), box-shadow 100ms var(--ease-out), background-color 100ms ease; }
.tbtn { width: calc(var(--u) * 1.15); height: calc(var(--u) * 1.28); background-size: 200% 100%; background-position: 0 0; image-rendering: pixelated; transition: transform 120ms var(--ease-out); }
.tbtn:active, .tbtn.on { background-position: 100% 0; transform: translateY(2px); }
.tbtn-jump { background-image: url(../img/sprites/touchjump.png); }
.tbtn-fire { background-image: url(../img/sprites/firebutton.png); }
@media (max-width: 760px) {
  .hero { padding-top: calc(var(--hud) + 18px); }
  .play { height: calc(var(--u) * 6.6); }
  .hero { flex-direction: column; align-items: stretch; padding-bottom: calc(var(--bar) + 8px); }
  .play { position: relative; bottom: auto; height: calc(var(--u) * 6.4); margin-top: 8px; --jx: 18%; }
  .play-hint { display: none; }
  .play-pad { bottom: calc(var(--u) * 2.1); }
}
@media (max-height: 840px) and (min-width: 761px) {
  :root { --u: 60px; }
  .hero { min-height: max(100svh, 660px); }
  .hero .world-tag { display: none; }
  h1 .logo { width: 380px; }
  h1 .tagline { font-size: 36px; margin-top: 12px; }
  .hero .lede { max-width: 40ch; font-size: 19px; }
  .hero .cta { margin-top: 20px; }
  .hero .fine { margin-top: 12px; }
}

/* ---------- run (video) ---------- */
.run-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.screen { padding: 10px; }
.screen video { display: block; width: 100%; height: auto; border-radius: 12px; background: #000; aspect-ratio: 16 / 9; }

/* ---------- story ---------- */
.story-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy shot" "path shot2"; gap: 32px 48px; align-items: center; }
.story .copy { grid-area: copy; } .story .path { grid-area: path; align-self: start; } .story .shot { grid-area: shot; } .story .shot-2 { grid-area: shot2; width: 72%; justify-self: end; margin-top: -110px; position: relative; z-index: 1; }
.path { list-style: none; display: grid; grid-template-columns: repeat(2, max-content); gap: 14px 32px; }
.path li { display: flex; align-items: center; gap: 10px; font-size: 19px; white-space: nowrap; text-shadow: 0 2px 0 var(--edge); }
.path img { width: 40px; height: 40px; flex: none; }

/* ---------- controls ---------- */
.controls-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-areas: "copy shot" "touch keys"; gap: 28px 40px; align-items: center; }
.controls .copy { grid-area: copy; } .controls .shot { grid-area: shot; } .pad-touch { grid-area: touch; } .pad-keys { grid-area: keys; }
.touch-row { display: flex; align-items: center; gap: 10px; }
.touch-row .gap { flex: 1; }
.tb { width: calc(var(--u) * .78); height: calc(var(--u) * .87); background-size: 200% 100%; background-position: 0 0; image-rendering: pixelated; transition: transform 100ms var(--ease-out); }
.tb.on { background-position: 100% 0; transform: translateY(2px); }
.tb-left { background-image: url(../img/sprites/touchleft.png); } .tb-right { background-image: url(../img/sprites/touchright.png); }
.tb-jump { background-image: url(../img/sprites/touchjump.png); } .tb-fire { background-image: url(../img/sprites/firebutton.png); }
.keys { list-style: none; display: grid; gap: 12px; font-size: 18px; color: var(--muted); }
.keys li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.keys li > span { display: inline-flex; gap: 6px; min-width: 108px; }
.keys kbd { font-size: 16px; min-width: 40px; padding: 10px 10px 11px; }
.keys kbd.wide { min-width: 96px; }
kbd.on { background: var(--gold); box-shadow: 0 1px 0 var(--gold-d); transform: translateY(2px); }

/* ---------- crew ---------- */
.crew-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy bosses" "skins skins"; gap: 36px 48px; align-items: center; }
.crew .copy { grid-area: copy; } .bosses { grid-area: bosses; display: flex; justify-content: space-around; align-items: flex-end; gap: 24px; min-height: calc(var(--u) * 4.4); }
.boss { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.boss figcaption { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); border: 3px solid var(--rim); border-radius: 12px; padding: 9px 12px; box-shadow: 0 4px 0 var(--edge); }
.boss-king .spr { transform: scaleX(-1); }
.boss-ufo { animation: hover 2.4s var(--ease-in-out) infinite alternate; }
.boss-ufo .spr-beam { position: absolute; top: calc(var(--u) * 1.1); left: 50%; translate: -50% 0; }
@keyframes hover { to { transform: translateY(calc(var(--u) * -.25)); } }
.skins { grid-area: skins; list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; }
.skins li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); text-shadow: 0 2px 0 var(--edge); }
.skins img { width: 100%; max-width: 92px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .skins li:hover img { transform: translateY(-8px); } }

/* ---------- progress ---------- */
.progress-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy save" "shots shots"; gap: 28px 40px; align-items: center; }
.progress .copy { grid-area: copy; } .save { grid-area: save; } .progress .shots { grid-area: shots; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: calc(100% * 7 / 12); justify-self: end; }
.save div { padding: 9px 0 !important; }
.save { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.save div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 2px dashed rgba(124,132,230,.35); }
.save div:nth-last-child(-n+2) { border-bottom: 0; }
.save dt { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.save dd { font-size: 18px; text-align: right; }
.save b { font-family: "PS2P"; font-weight: 400; font-size: 24px; color: var(--gold); }

/* ---------- finish ---------- */
.finish-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.finish .spr-flag { width: calc(var(--u) * 1.6); height: calc(var(--u) * 2.56); }
.clear { font-family: "PS2P"; text-transform: uppercase; font-size: 64px; line-height: 1.1; margin-top: 18px; color: var(--gold); text-shadow: 0 4px 0 var(--gold-d), 0 8px 0 #6a3f00, 0 14px 18px rgba(0,0,0,.45); letter-spacing: .02em; }
.finish .lede { max-width: none; }
.finish .cta { justify-content: center; }
.finish { overflow: hidden; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti .spr { position: absolute; left: 50%; top: 30%; }

/* ---------- world bar (the in-game progress bar) ---------- */
.worldbar { position: fixed; left: 50%; bottom: 14px; translate: -50% 0; z-index: 15; width: min(820px, calc(100% - 2 * var(--gut))); height: calc(var(--bar) - 18px); display: grid; grid-template-columns: repeat(6, 1fr); align-items: center;
  background: rgba(13,16,51,.86); border: 3px solid var(--rim); border-radius: 16px; box-shadow: 0 5px 0 var(--edge); padding: 0 10px; backdrop-filter: blur(6px); }
.wb-track { position: absolute; left: 22px; right: 22px; top: -9px; height: 6px; border-radius: 4px; background: #0e1238; border: 2px solid var(--rim); }
.wb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--cherry); border-radius: 2px; }
.wb-head { position: absolute; top: -13px; left: 0; width: 26px; height: 26px; translate: -50% 0; }
.worldbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; font-family: "Pixelify"; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; opacity: .8; transition: opacity 200ms ease, transform 160ms var(--ease-out); }
.worldbar a img { width: 26px; height: 26px; }
.worldbar a.on { opacity: 1; color: #fff; }
@media (hover: hover) and (pointer: fine) { .worldbar a:hover { opacity: 1; } }
.worldbar a:active { transform: scale(.96); }
@media (max-width: 900px) { .worldbar a span { display: none; } }

/* ---------- footer ---------- */
.site-foot { position: relative; background: rgba(7,9,26,.94); border-top: 3px solid var(--rim); padding: 56px 0 calc(var(--bar) + 30px); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 32ch; }
.foot-home { display: inline-flex; align-items: center; gap: 12px; font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; color: #fff; text-decoration: none; text-transform: uppercase; }
.foot-home img { width: 36px; height: 36px; border-radius: 8px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.foot-col a { color: var(--text); text-decoration: none; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { background-size: 100% 2px; } }
.foot-pp { margin-top: 6px; } .foot-pp img { width: 200px; height: auto; image-rendering: auto; }
.foot-legal { max-width: 1240px; margin: 36px auto 0; padding: 0 var(--gut); font-size: 15px; color: var(--muted); }

/* ---------- reveal on scroll (once) ---------- */

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .run-in, .story-in, .controls-in, .crew-in, .progress-in { grid-template-columns: 1fr; grid-template-areas: none; }
  .run-in > *, .story-in > *, .controls-in > *, .crew-in > *, .progress-in > * { grid-area: auto !important; }
  .story .shot-2 { width: 100%; margin-top: 0; }
  .progress .shots { width: 100%; grid-template-columns: 1fr; }
  .skins { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .bosses { min-height: 0; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .save { grid-template-columns: 1fr; } .save div:nth-last-child(2) { border-bottom: 2px dashed rgba(124,132,230,.35); }
  .path { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; justify-content: center; }
  .keys li > span { min-width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  .spr { animation: none; }
  .boss-ufo { animation: none; }
  .js [data-enter] > * { transform: none; transition: opacity 400ms ease; }
  .world { transition: opacity 300ms ease; }
}

/* ---------- sub pages (guide, updates, studio, 404) ---------- */
.doc .stage::after { background: rgba(7,10,31,.55); }
.doc-main { max-width: 900px; margin: 0 auto; padding: calc(var(--hud) + 40px) var(--gut) 80px; }
.doc .site-foot { padding-bottom: 40px; }
.doc-hero { padding: 40px 0 24px; }
.doc-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; text-shadow: 0 4px 0 var(--edge); text-wrap: balance; }
.doc-kicker { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; letter-spacing: .07em; text-transform: uppercase; color: var(--gold); line-height: 1.8; margin-bottom: 14px; }
.doc-lede { font-size: 22px; color: var(--text); margin-top: 18px; max-width: 40ch; text-shadow: 0 2px 0 var(--edge); }
.doc-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.doc-toc a { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; text-transform: uppercase; letter-spacing: .04em; color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 12px; background: var(--navy); border: 3px solid var(--rim); box-shadow: 0 3px 0 var(--edge); transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .doc-toc a:hover { transform: translateY(-2px); } }
.doc-toc a:active { transform: translateY(2px); }
.doc-section { margin-top: 28px; background: rgba(31,36,98,.92); border: 3px solid var(--rim); border-radius: 22px; box-shadow: 0 6px 0 var(--edge); padding: 32px clamp(20px, 4vw, 40px); scroll-margin-top: calc(var(--hud) + 16px); }
.doc-section h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.doc-section h3 { font-family: "Pixelify"; font-weight: 400; font-size: 18px; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); margin: 26px 0 12px; }
.doc-section p { margin-top: 12px; max-width: 62ch; color: var(--text); }
.doc-section strong { color: var(--gold-2); font-weight: 400; }
.doc-shot { margin-top: 22px; border-radius: 14px; overflow: hidden; border: 3px solid var(--edge); }
.doc-shot img { width: 100%; image-rendering: auto; }
.doc-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
.doc-keys { list-style: none; display: grid; gap: 12px; }
.doc-keys li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 18px; }
.doc-keys .k { display: inline-block; width: 46px; height: 52px; overflow: hidden; }
.doc-keys .tbtn { width: 92px; height: 52px; max-width: none; image-rendering: pixelated; }
.doc-list, .doc-changes { list-style: none; display: grid; gap: 12px; margin-top: 10px; }
.doc-list li, .doc-changes li { padding-left: 26px; position: relative; max-width: 62ch; }
.doc-list li::before, .doc-changes li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; background: var(--gold); box-shadow: 2px 2px 0 var(--gold-d); }
.doc-steps { list-style: none; counter-reset: s; display: grid; gap: 12px; margin-top: 8px; }
.doc-steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; align-items: baseline; }
.doc-steps li::before { content: counter(s, decimal-leading-zero); font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; color: var(--gold); }
.doc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 8px; }
.doc-facts div { padding: 12px 0; border-bottom: 2px dashed rgba(124,132,230,.35); }
.doc-facts dt { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.doc-facts dd { margin-top: 6px; }
.doc-qa dt { font-size: 22px; color: #fff; margin-top: 22px; }
.doc-qa dd { color: var(--muted); margin-top: 6px; max-width: 62ch; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.doc-btn { font-family: "Pixelify"; font-size: 16px; text-transform: uppercase; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; height: 52px; padding: 0 18px; border-radius: 14px; background: var(--gold); color: #3b2400; border: 3px solid #fff1b8; box-shadow: 0 5px 0 var(--gold-d); transition: transform 160ms var(--ease-out); }
.doc-btn.ghost { background: var(--navy); color: #fff; border-color: var(--rim); box-shadow: 0 5px 0 var(--edge); }
@media (hover: hover) and (pointer: fine) { .doc-btn:hover { transform: translateY(-2px); } }
.doc-btn:active { transform: translateY(3px); }
.doc-mark { width: min(420px, 80%); margin-top: 30px; image-rendering: auto; }
.doc-social { display: flex; flex-wrap: wrap; gap: 18px; }
.doc-get { text-align: left; }
.doc-404 { text-align: center; padding-top: 12vh; }
.doc-404 .doc-lede { margin-inline: auto; }
.doc-404 .doc-actions { justify-content: center; }
.doc-fall { width: 140px; margin: 30px auto 0; animation: fall 2.4s var(--ease-in-out) infinite alternate; }
@keyframes fall { to { transform: translateY(26px) rotate(14deg); } }
@media (max-width: 700px) { .doc-controls, .doc-facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .doc-fall { animation: none; } }

@media (max-width: 760px) { .clear { font-size: 40px; } .save b { font-size: 16px; } }

/* ---------- phone tuning ---------- */
@media (max-width: 760px) {
  :root { --bar: 50px; }
  .hero .world-tag { display: none; }
  h1 .logo { width: min(300px, 78vw); }
  h1 .tagline { font-size: 28px; margin-top: 10px; }
  .hero .lede { font-size: 18px; margin-top: 8px; }
  .hero .cta { margin-top: 18px; gap: 10px; }
  .hero .cta .btn { height: 50px; }
  .hero .fine { margin-top: 12px; }
  .play { height: calc(var(--u) * 4.5); margin-top: 0; }
  .play-pad { bottom: calc(var(--u) * 1.75); }
  .worldbar { height: 40px; bottom: 8px; border-radius: 12px; border-width: 2px; padding: 0 6px; }
  .worldbar a img { width: 22px; height: 22px; }
  .wb-head { width: 20px; height: 20px; top: -10px; }
  .path { grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .path li { white-space: normal; font-size: 16px; line-height: 1.15; }
  .path img { width: 30px; height: 30px; }
  .skins { gap: 10px 6px; }
  .skins li { font-size: 12px; letter-spacing: -.01em; }
}
.worldbar { transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.worldbar.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ---------- polish: world toast, browser surfaces ---------- */
.world-toast { position: fixed; z-index: 18; left: 50%; top: calc(var(--hud) + 10px); translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 14px;
  background: rgba(13,16,51,.92); border: 3px solid var(--rim); box-shadow: 0 4px 0 var(--edge); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translateY(-8px) scale(.97); pointer-events: none; transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out); }
.world-toast img { width: 26px; height: 26px; }
.world-toast.show { opacity: 1; transform: none; }
.doc .world-toast { display: none; }
::selection { background: var(--gold); color: var(--ink); }
html { scrollbar-color: var(--rim) var(--ink); accent-color: var(--gold); caret-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .world-toast { transform: none; transition: opacity 200ms ease; } }
/* sub pages: the heading carries its section; the meta line sits under the title */
.doc-section > .doc-kicker { display: none; }
.doc-hero { display: flex; flex-direction: column; align-items: flex-start; }
.doc-hero h1 { order: 1; } .doc-hero > .doc-kicker { order: 2; margin: 16px 0 0; color: var(--muted); } .doc-hero .doc-lede { order: 3; } .doc-hero > :not(h1):not(.doc-kicker):not(.doc-lede) { order: 4; }
.doc-404 { align-items: center; }

/* meta lines under headings */
.doc-meta { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.doc-hero .doc-meta { color: var(--gold); margin-top: 16px; }

/* =====================================================================
   v2 · A refined: easier to read, calmer, clearer (owner feedback 23 Nov)
   ===================================================================== */
body { font-weight: 500; font-size: 21px; line-height: 1.5; letter-spacing: .005em; }
h2 { font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
h1 .tagline { font-weight: 600; }
.copy p, .lede { text-shadow: 0 2px 0 var(--edge), 0 0 14px rgba(5, 7, 24, .85); }
.copy p { max-width: 38ch; color: #f1efff; }
.stage::after { background: linear-gradient(180deg, rgba(7,10,31,.6), rgba(7,10,31,.28) 30%, rgba(7,10,31,.34) 70%, rgba(7,10,31,.66)); }
.pill, .hud-brand, .hud-coins, .hud-nav a, .hud-sound, .hud-get, .btn, .worldbar a, .world-toast, .panel h3 { font-weight: 600; }
.fine { text-transform: none; font-size: 17px; letter-spacing: .01em; color: #e3e0ff; font-weight: 500; text-shadow: 0 2px 0 var(--edge); }

/* HUD: one grouped nav pill instead of four */
.hud-links { display: flex; align-items: center; gap: 2px; height: 46px; padding: 4px; background: var(--navy); border: 3px solid var(--rim); border-radius: 14px; box-shadow: 0 4px 0 var(--edge), inset 0 -4px 0 rgba(0,0,0,.22); }
.hud-links a, .hud-nav .hud-links a { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; box-shadow: none; background: transparent; }
.hud-links a[aria-current="page"] { background: var(--navy-2); }
@media (hover: hover) and (pointer: fine) { .hud-nav .hud-links a:hover { background: var(--navy-2); transform: none; box-shadow: none; } }
.hud-nav .hud-links a:active { transform: scale(.97); box-shadow: none; }
@media (max-width: 980px) {
  .hud-links { flex-direction: column; align-items: stretch; height: auto; gap: 4px; border: 0; box-shadow: none; background: transparent; padding: 0; }
  .hud-links a, .hud-nav .hud-links a { height: 50px; justify-content: center; background: var(--navy); border: 3px solid var(--rim); border-radius: 14px; }
}

/* video: the REC line */
.screen { display: flex; flex-direction: column; }
.rec { display: flex; align-items: center; gap: 10px; margin: 12px 6px 2px; font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-shadow: none; }
.rec i { width: 10px; height: 10px; background: #ff3b4e; box-shadow: 0 0 0 2px rgba(255,59,78,.25); animation: rec 1.4s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .2; } }

/* story: copy with the world path, one screenshot */
.story-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy shot"; gap: 40px 48px; }
.story .shot { grid-area: shot; }
.story .path { margin-top: 30px; grid-template-columns: repeat(2, max-content); gap: 14px 30px; }
.path li { font-size: 19px; font-weight: 500; }

/* controls: copy + screenshot, then one panel for both input methods */
.controls-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy shot" "pad pad"; gap: 32px 48px; }
.controls .shot { grid-area: shot; }
.pad { grid-area: pad; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.pad-col + .pad-col { border-left: 2px dashed rgba(124,132,230,.35); padding-left: 40px; }
.pad .touch-row { gap: 10px; }
.pad .keys { font-size: 19px; color: #e3e0ff; }
.pad .keys li > span { min-width: 120px; }
.keys kbd { font-weight: 600; }

/* crew: heading + bosses, then the line-up of all ten skins */
.crew-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy bosses" "lineup lineup"; gap: 24px 48px; }
.crew .bosses { grid-area: bosses; justify-content: flex-end; gap: 48px; min-height: 0; }
.boss { flex-direction: column-reverse; }
.boss figcaption { font-size: 15px; }
.lineup { grid-area: lineup; list-style: none; position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-bottom: 30px; }
.lineup::before { content: ""; position: absolute; left: 4%; right: 4%; top: 34%; border-top: 3px dashed var(--rim); opacity: .6; }
.lineup li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: #e3e0ff; text-shadow: 0 2px 0 var(--edge); }
.lineup li:nth-child(even) { margin-top: 30px; }
.lineup img { width: 100%; max-width: 100px; filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .lineup li:hover img { transform: translateY(-8px); } }

/* progress: copy + one screenshot, the save panel beside it */
.progress-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "copy save"; gap: 40px 48px; }
.progress .copy .shot { margin-top: 26px; max-width: 460px; }
.save dt { text-transform: none; font-size: 18px; letter-spacing: .01em; font-weight: 500; }
.save dd { font-size: 19px; }

/* skins and boss sprites read a little larger on phones; line-up wraps to two rows */
@media (max-width: 1000px) {
  .pad { grid-template-columns: 1fr; gap: 24px; }
  .pad-col + .pad-col { border-left: 0; padding-left: 0; border-top: 2px dashed rgba(124,132,230,.35); padding-top: 22px; }
  .crew .bosses { justify-content: space-around; }
  .lineup { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 22px; }
  .lineup::before { display: none; }
  .lineup li:nth-child(even) { margin-top: 0; }
  .lineup li { font-size: 14px; }
}
@media (max-width: 560px) { body { font-size: 19px; } .lineup li { font-size: 12px; } .pad .keys li > span { min-width: 104px; } }
@media (prefers-reduced-motion: reduce) { .rec i { animation: none; } }

/* v2 phone/tablet: one column for every scene (must come after the v2 grids) */
@media (max-width: 1000px) {
  .run-in, .story-in, .controls-in, .crew-in, .progress-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 28px; }
  .run-in > *, .story-in > *, .controls-in > *, .crew-in > *, .progress-in > *, .pad { grid-area: auto !important; }
  .copy p { max-width: none; }
  .progress .copy .shot { max-width: none; }
  .crew .bosses { justify-content: space-around; gap: 16px; }
}
@media (max-width: 760px) {
  .world-toast { top: auto; bottom: calc(var(--bar) + 14px); font-size: 15px; }
  .lineup { gap: 14px 8px; }
  .lineup img { max-width: 64px; }
}


/* =====================================================================
   Round 2 · less template, more game (Playwright review 23 Nov)
   ===================================================================== */
/* sound toggle with the game's own speaker icons */
.hud-sound .ico { display: inline-block; width: 22px; height: 24px; background: center/contain no-repeat; mask: none; -webkit-mask: none; }
.hud-sound .ico-on { background-image: url(../img/ui/icon-sound-on.png); } .hud-sound .ico-off { background-image: url(../img/ui/icon-sound-off.png); }
.hud-sound[aria-pressed="false"] .ico-on, .hud-sound[aria-pressed="true"] .ico-off { display: none; }
/* the coin pill appears with the first coin */
.hud-coins:not(.has) { display: none; }
.hud-coins.has { animation: pill-in 260ms var(--ease-out); }
@keyframes pill-in { from { opacity: 0; transform: scale(.9); } }

/* story: the picture leads on the left this time */
.story-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "shot copy"; }

/* crew: one centred column, the line-up carries the section */
.crew-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "bosses" "lineup"; justify-items: center; text-align: center; gap: 20px; }
.crew .copy p { margin-inline: auto; max-width: 52ch; }
.crew .bosses { justify-content: center; gap: 72px; }
.crew .lineup { width: 100%; text-align: center; }
.boss { gap: 0; }
.boss figcaption { position: relative; z-index: 1; }
.boss:not(.boss-ufo) figcaption { margin-bottom: calc(var(--u) * -.55); }
.boss-ufo figcaption { margin-bottom: 6px; }

/* progress: real Star Path tier cards */
.tiers { grid-area: save; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }
.tier { aspect-ratio: 110 / 140; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12% 8% 10%; text-align: center;
  background: url(../img/ui/tiercard.png) center / 100% 100% no-repeat; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0,0,0,.3)); }
.tier.gold { background-image: url(../img/ui/tiercard-gold.png); }
.tier img { width: 46%; height: auto; max-height: 40%; object-fit: contain; }
.tier b { font-family: "PS2P"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--gold); text-shadow: 0 3px 0 var(--edge); }
.tier b.word { font-family: "Pixelify"; font-weight: 700; font-size: 22px; color: #fff; }
.tier span { font-size: 15px; line-height: 1.2; color: #d9d6ff; font-weight: 500; }

/* entrances: copy is simply there; visuals come in from where they sit */

@media (max-width: 1000px) {
  .story-in { grid-template-areas: none; }
  .crew .bosses { gap: 24px; }
}
/* phones: a compact title screen that shows Jumpy, and no world bar over the content */
@media (max-width: 760px) {
  :root { --bar: 10px; }
  .worldbar { display: none; }
  h1 .logo { width: min(260px, 70vw); }
  h1 .tagline { font-size: 26px; margin-top: 8px; }
  .hero .lede { font-size: 17px; line-height: 1.45; }
  .hero .cta { flex-wrap: nowrap; gap: 10px; margin-top: 14px; }
  .hero .cta .gp img { height: 48px; }
  .hero .cta .btn { height: 48px; padding: 0 14px; font-size: 14px; width: auto; }
  .hero .fine { font-size: 15px; margin-top: 10px; }
  .play { height: calc(var(--u) * 4.1); }
  .play-pad { bottom: calc(var(--u) * 1.65); }
  .path li { font-size: 16px; }
  .path { gap: 12px 18px; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 340px; margin-inline: auto; }
  .tier b { font-size: 22px; } .tier b.word { font-size: 20px; } .tier span { font-size: 14px; }
  .crew .bosses .spr-king { width: calc(var(--u) * 2.8); height: calc(var(--u) * 2.05); }
  .crew .bosses .spr-ufo { width: calc(var(--u) * 2.6); height: calc(var(--u) * 1.3); }
  .site-foot { padding-bottom: 40px; }
}
@media (max-width: 380px) { .hero .cta .btn { font-size: 13px; padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="left"], .js [data-reveal="right"],   .hud-coins.has { animation: none; }
}


/* Round 3 · phone story in one column; tier cards as a scalable 9-slice frame */
@media (max-width: 1000px) {
  .story-in { grid-template-columns: minmax(0, 1fr); }
  .story .copy { order: -1; }
}
.tier { background: none; border: 14px solid transparent; border-image: url(../img/ui/tiercard.png) 14 fill / 14px stretch; padding: 4px 2px; }
.tier.gold { background: none; border-image-source: url(../img/ui/tiercard-gold.png); }
@media (max-width: 760px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: 10px; }
  .tier { aspect-ratio: auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 8px 10px; min-height: 76px; text-align: left; flex-wrap: wrap; align-content: center; }
  .tier img { width: 34px; max-height: 34px; flex: none; }
  .tier b { font-size: 18px; }
  .tier b.word { font-size: 18px; }
  .tier span { flex-basis: 100%; font-size: 13px; }
}


/* Round 4 · entrances start from a visible default (impeccable craft floor); 12-column grid for every split */
@keyframes rv-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes rv-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes rv-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes rv-deal { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes rv-hop { 0% { opacity: 0; transform: translateY(18px); } 60% { opacity: 1; transform: translateY(-4px); } 100% { transform: none; } }
[data-reveal="left"][data-in] { animation: rv-left 600ms var(--ease-out) both; }
[data-reveal="right"][data-in] { animation: rv-right 600ms var(--ease-out) both; }
[data-reveal="up"][data-in] { animation: rv-up 560ms var(--ease-out) both; }
[data-reveal="deal"][data-in] > li { animation: rv-deal 420ms var(--ease-out) both; }
[data-reveal="hop"][data-in] > li { animation: rv-hop 480ms var(--ease-out) both; }
[data-reveal][data-in] > li:nth-child(2) { animation-delay: 45ms; } [data-reveal][data-in] > li:nth-child(3) { animation-delay: 90ms; }
[data-reveal][data-in] > li:nth-child(4) { animation-delay: 130ms; } [data-reveal][data-in] > li:nth-child(5) { animation-delay: 165ms; }
[data-reveal][data-in] > li:nth-child(6) { animation-delay: 200ms; } [data-reveal][data-in] > li:nth-child(7) { animation-delay: 230ms; }
[data-reveal][data-in] > li:nth-child(8) { animation-delay: 260ms; } [data-reveal][data-in] > li:nth-child(9) { animation-delay: 285ms; }
[data-reveal][data-in] > li:nth-child(10) { animation-delay: 310ms; }
@media (prefers-reduced-motion: reduce) { [data-reveal][data-in], [data-reveal][data-in] > li { animation: none; } }

@media (min-width: 1001px) {
  .run-in, .story-in, .controls-in, .progress-in { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: none; column-gap: 24px; row-gap: 32px; }
  .run .copy { grid-column: 1 / span 4; } .run .screen { grid-column: 5 / span 8; }
  .story .shot { grid-column: 1 / span 6; grid-row: 1; } .story .copy { grid-column: 8 / span 5; grid-row: 1; }
  .controls .copy { grid-column: 1 / span 5; } .controls .shot { grid-column: 7 / span 6; } .controls .pad { grid-column: 1 / span 12; }
  .progress .copy { grid-column: 1 / span 4; } .progress .tiers { grid-column: 5 / span 8; }
}


/* Round 5 · explicit grid rows (no stale named areas), story with a world strip */
@media (min-width: 1001px) {
  .run .copy, .run .screen, .controls .copy, .controls .shot, .progress .copy, .progress .tiers { grid-row: 1; }
  .controls .pad { grid-row: 2; }
  .story .copy { grid-column: 1 / span 5; grid-row: 1; } .story .shot { grid-column: 7 / span 6; grid-row: 1; }
  .story .strip { grid-column: 1 / span 12; grid-row: 2; }
}
.path.strip { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 8px; padding: 14px 18px; background: rgba(13,16,51,.78); border: 3px solid var(--rim); border-radius: 16px; box-shadow: 0 5px 0 var(--edge); }
.path.strip li { flex-direction: column; justify-content: center; gap: 6px; white-space: nowrap; font-size: 17px; text-shadow: none; }
.path.strip img { width: 44px; height: 44px; }
@media (max-width: 1000px) {
  .path.strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
}
@media (max-width: 760px) {
  .path.strip li { font-size: 14px; white-space: normal; text-align: center; line-height: 1.15; }
  .path.strip img { width: 34px; height: 34px; }
}

/* ---------- SEO pass 2026-11-26: H1 line, home FAQ, press page ---------- */
h1 .h1-line { display: block; font-size: 17px; font-weight: 500; line-height: 1.45; letter-spacing: .01em; color: #e3e0ff; max-width: 48ch; margin-top: 12px; text-shadow: 0 2px 0 var(--edge); }
@media (max-width: 560px) { h1 .h1-line { font-size: 15px; margin-top: 8px; } }
.faq-in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .faq-in { grid-template-columns: 5fr 7fr; gap: 48px; } }
.faq-panel { padding: 6px clamp(20px, 3vw, 34px) 26px; }
.faq-panel .doc-qa dd { color: var(--text); }
.press-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.press-shots .doc-shot { margin-top: 0; }
.press-shots figcaption { font-size: 15px; color: var(--muted); padding: 8px 12px 10px; background: rgba(5,7,24,.5); }
.doc-actions .doc-btn { margin: 0 10px 12px 0; }
