/* Couch Cop: the living-room robot academy. Navy and gold (the academy's badge), the cyan of its portals and
   barrier lights, red eyes and blue eyes. Display: Russo One; the academy's readouts: Chakra Petch; body: Nunito. */
@font-face { font-family: 'Russo One'; src: url(../assets/fonts/russo-one.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; src: url(../assets/fonts/chakra-petch-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; src: url(../assets/fonts/chakra-petch-700.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 400; src: url(../assets/fonts/nunito-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 700; src: url(../assets/fonts/nunito-700.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 800; src: url(../assets/fonts/nunito-800.woff2) format('woff2'); font-display: swap; }

:root {
  --navy-0: #050b22; --navy: #0b1a44; --navy-2: #132a6b; --navy-3: #1d3c8f;
  --gold: #ffc23d; --gold-hi: #ffe28a; --gold-lo: #c77a0a;
  --cyan: #4fe6ff; --red: #ff4a3d; --blue: #5fd9ff; --orange: #ff8a2a; --pink: #ff7fb0;
  --cream: #fff6e6; --ink: #e9eefc; --dim: #a9b5d8;
  --display: 'Russo One', 'Arial Black', Impact, sans-serif;
  --hud: 'Chakra Petch', 'Arial Narrow', sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: max(16px, env(safe-area-inset-left));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy-0); color: var(--ink); font: 400 18px/1.55 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
picture img { width: 100%; height: 100%; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0 0 .4em; letter-spacing: .01em; }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
p { margin: 0 0 1em; }
.kicker { font: 700 13px/1.2 var(--hud); letter-spacing: .26em; color: var(--cyan); margin: 0 0 .9em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--navy); padding: 8px 14px; font-weight: 800; border-radius: 8px; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.st-live { will-change: transform, opacity; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ------------------------------------------------------------------ the top bar */
.topbar { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brandmark { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--cream); font: 400 16px var(--display); letter-spacing: .08em;
  background: rgba(5, 11, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid rgba(255, 194, 61, .35); }
.brandmark .star { width: 20px; height: 20px; fill: var(--gold); }
.sound { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--cream); background: rgba(5, 11, 34, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(79, 230, 255, .45); border-radius: 999px; padding: 8px 14px; font: 700 13px var(--hud); letter-spacing: .14em; text-transform: uppercase; }
.sound svg { width: 20px; height: 20px; }
.sound .waves { display: none; }
.sound-on .sound { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 18px rgba(255, 194, 61, .35); }
.sound-on .sound .waves { display: inline; }
.sound-on .sound .x { display: none; }
.progress { position: fixed; z-index: 49; left: 0; right: 0; top: 0; height: 3px; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan), var(--gold)); }

/* ------------------------------------------------------------------ pinned scenes */
.pin { position: relative; }
.stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ------------------------------------------------------------------ 1 · the hero: the living room at dusk */
.hero { height: 340vh; background: var(--navy-0); }
.roomwrap { position: absolute; left: 50%; top: 50%; width: max(100vw, 177.78vh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); }
.room { position: absolute; inset: 0; transform-origin: 48% 55%; }
.room .L { position: absolute; }
.room .plate { inset: 0; width: 100%; height: 100%; }
.room .plate img { object-fit: cover; }
.clip { position: absolute; inset: 0; }
.dusk { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 55%, rgba(5, 11, 34, .7) 100%), linear-gradient(180deg, rgba(5, 11, 34, .55), transparent 28%, transparent 70%, rgba(5, 11, 34, .85)); }
.lock, .hold { position: absolute; pointer-events: none; }
.lock i { position: absolute; inset: 0; border: 3px solid var(--red); border-radius: 50%; box-shadow: 0 0 18px var(--red), inset 0 0 12px rgba(255, 74, 61, .5); }
.lock i::before, .lock i::after { content: ''; position: absolute; left: 50%; top: -22%; bottom: -22%; width: 3px; margin-left: -1.5px; background: linear-gradient(var(--red) 0 22%, transparent 22% 78%, var(--red) 78%); }
.lock i::after { transform: rotate(90deg); }
.lock b, .hold b { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 10px; white-space: nowrap; font: 700 clamp(10px, .9vw, 14px) var(--hud); letter-spacing: .2em; padding: 3px 8px; border-radius: 4px; }
.lock b { color: #fff; background: var(--red); }
.hold b { top: auto; bottom: 100%; margin: 0 0 8px; color: var(--navy); background: var(--blue); }
.gun img { transform: scaleX(-1); }
.gun { position: absolute; right: 3vw; bottom: -12vh; width: min(25vw, 420px); transform-origin: 70% 90%; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
.titleblock { position: absolute; left: 0; right: 0; top: 9vh; text-align: center; padding: 0 var(--gutter); }
.titleblock .badge { width: clamp(64px, 8vw, 110px); height: auto; margin: 0 auto 10px; display: block; filter: drop-shadow(0 6px 18px rgba(255, 194, 61, .55)); animation: badge 6s ease-in-out infinite; }
@keyframes badge { 50% { transform: rotate(8deg) scale(1.04); } }
.logo { font-size: clamp(64px, 13vw, 190px); line-height: .86; margin: 0; color: var(--cream); letter-spacing: .02em;
  text-shadow: 0 .04em 0 var(--gold-lo), 0 .08em 0 #7a4400, 0 .14em .3em rgba(0, 0, 0, .55); }
.logo span { display: inline-block; }
.logo span + span { color: var(--gold); margin-left: .25em; }
.tagline { font: 700 clamp(13px, 1.5vw, 20px) var(--hud); letter-spacing: .34em; color: var(--cyan); margin-top: 1.2em; text-shadow: 0 0 18px rgba(79, 230, 255, .6); }
.titleblock .kicker { color: var(--gold-hi); }
.pitch { position: absolute; left: var(--gutter); bottom: 9vh; max-width: min(520px, 62vw); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.45; margin: 0;
  background: rgba(5, 11, 34, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 18px 22px; border-radius: 14px; border-left: 4px solid var(--gold); }
.pitch em { color: var(--gold-hi); font-style: normal; font-weight: 800; }
.cue { position: absolute; left: 0; right: 0; bottom: 4vh; text-align: center; font: 700 12px var(--hud); letter-spacing: .3em; color: var(--gold-hi); animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
.flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #fff 0, #fff3c4 30%, #ffc23d 60%, rgba(255, 194, 61, 0) 100%); pointer-events: none; }

/* ------------------------------------------------------------------ 2 · the burst */
.burst { height: 380vh; background: radial-gradient(ellipse 70% 60% at 50% 55%, #132a6b 0%, var(--navy) 45%, var(--navy-0) 100%); }
.burst .stick { display: grid; place-items: center; }
.floorglow { position: absolute; left: 50%; bottom: 6vh; width: min(80vw, 760px); height: 14vh; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(79, 230, 255, .35), transparent 70%); border: 2px solid rgba(79, 230, 255, .5); box-shadow: 0 0 40px rgba(79, 230, 255, .4); }
.bot { position: relative; height: min(84vh, 150vw); aspect-ratio: 1300 / 1500; margin-top: 4vh; }
.bot .B { position: absolute; }
.bits { position: absolute; inset: 0; pointer-events: none; }
.bits img { position: absolute; width: 4%; height: auto; }
.reticle { position: absolute; left: 50%; top: 20%; width: 26%; aspect-ratio: 1; margin-left: -13%; }
.reticle i { position: absolute; inset: 0; border: 3px solid var(--red); border-radius: 50%; box-shadow: 0 0 20px var(--red); }
.ring { position: absolute; left: 50%; top: 42%; width: 70vmin; height: 70vmin; margin: -35vmin 0 0 -35vmin; border-radius: 50%; border: 6px solid var(--gold-hi); box-shadow: 0 0 60px var(--gold), inset 0 0 60px rgba(255, 194, 61, .5); }
.bang { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 38%, #fff 0, #fff7d6 20%, rgba(255, 194, 61, .7) 45%, rgba(255, 120, 40, 0) 75%); }
.burst-copy { position: absolute; left: var(--gutter); bottom: 7vh; max-width: 480px; background: rgba(5, 11, 34, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 20px 24px 6px; border-radius: 16px; border: 1px solid rgba(255, 194, 61, .35); }
.burst-copy h2 { font-size: clamp(26px, 3.2vw, 42px); color: var(--cream); }
.scrub { position: absolute; right: var(--gutter); top: 14vh; font: 700 12px var(--hud); letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }

/* ------------------------------------------------------------------ 3 · day one */
.academy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  padding: 16vh max(var(--gutter), 6vw); background: linear-gradient(180deg, var(--navy-0), var(--navy) 60%, var(--navy-0)); }
.academy h2 { color: var(--cream); }
.academy .small { color: var(--dim); font-size: 16px; }
.nova-quote { display: flex; gap: 14px; align-items: flex-start; margin: 1.6em 0; padding: 16px 18px; border-radius: 14px; background: rgba(79, 230, 255, .08); border: 1px solid rgba(79, 230, 255, .3); }
.nova-quote p { margin: 0; font-style: italic; color: var(--cream); }
.nova-quote cite { display: none; }
.scan { position: relative; margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(79, 230, 255, .35); }
.scan picture img { aspect-ratio: 16 / 9; object-fit: cover; }
.scan .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(79, 230, 255, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 230, 255, .45) 1px, transparent 1px);
  background-size: 34px 34px; mix-blend-mode: screen; -webkit-mask-image: linear-gradient(90deg, #000 var(--scan, 60%), transparent calc(var(--scan, 60%) + 4%)); mask-image: linear-gradient(90deg, #000 var(--scan, 60%), transparent calc(var(--scan, 60%) + 4%));
  animation: scan 4.5s linear infinite; }
.scan .sweep { position: absolute; top: 0; bottom: 0; width: 4px; left: var(--scan, 60%); background: var(--cyan); box-shadow: 0 0 24px 6px var(--cyan); animation: sweep 4.5s linear infinite; }
@property --scan { syntax: '<percentage>'; inherits: true; initial-value: 60%; }
@keyframes scan { from { --scan: 0%; } to { --scan: 100%; } }
@keyframes sweep { from { left: 0%; } to { left: 100%; } }
.scan figcaption { position: absolute; left: 12px; bottom: 12px; font: 700 11px var(--hud); letter-spacing: .2em; color: var(--cyan); background: rgba(5, 11, 34, .8); padding: 6px 10px; border-radius: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 6px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* Nova's orb (as in the game: soft rings that breathe, and ripple out while she speaks) */
.orb { position: relative; display: inline-block; width: 56px; height: 56px; flex: none; }
.orb::before { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, #fff 0, var(--cyan) 35%, rgba(115, 77, 255, .6) 70%, transparent 72%);
  filter: blur(1px); box-shadow: 0 0 40px 10px rgba(79, 230, 255, .35); animation: breathe 3.9s ease-in-out infinite; }
.orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(79, 230, 255, .5); animation: ripple 2.9s linear infinite; opacity: 0; }
.orb i:nth-child(2) { animation-delay: -.97s; } .orb i:nth-child(3) { animation-delay: -1.93s; }
.orb.small { width: 44px; height: 44px; }
.orb.huge { width: min(52vw, 360px); height: min(52vw, 360px); }
.talking .orb::before, .orb.talking::before { animation: talk .28s ease-in-out infinite alternate; }
.talking .orb i, .orb.talking i { animation-duration: 1.1s; border-color: rgba(79, 230, 255, .8); }
@keyframes breathe { 50% { transform: scale(1.08); } }
@keyframes talk { from { transform: scale(1); } to { transform: scale(1.18); } }
@keyframes ripple { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ------------------------------------------------------------------ 4 · red eyes, blue eyes */
.cast { height: 300vh; background: var(--navy-0); }
.cast .stick { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr 1fr; padding: 12vh var(--gutter) 3vh; gap: 1vh;
  background: linear-gradient(90deg, rgba(255, 74, 61, .14), transparent 45%, transparent 55%, rgba(95, 217, 255, .14)); }
.sechead { text-align: center; max-width: 960px; margin: 0 auto; }
.sechead .sub { color: var(--dim); max-width: 720px; margin: 0 auto; }
.cast h2 .red { color: var(--red); } .cast h2 .blue { color: var(--blue); }
.side { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3vw; align-items: end; min-height: 0; }
.side.friends { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.side.friends .figs { order: 2; }
.figs { display: flex; align-items: flex-end; justify-content: center; gap: 1vw; height: 100%; min-height: 0; }
.figs figure { margin: 0; flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.figs picture { height: calc(100% - 2.6em); width: auto; max-width: 100%; aspect-ratio: var(--ar); }
.figs picture img { object-fit: contain; object-position: bottom; }
.figs figcaption { font: 600 12px/1.2 var(--hud); letter-spacing: .06em; color: var(--dim); text-align: center; margin-top: 6px; height: 2.4em; }
.rule { align-self: center; }
.rule h3 { font-size: clamp(24px, 3vw, 40px); }
.crooks .rule h3 { color: var(--red); } .friends .rule h3 { color: var(--blue); }
.rule p { color: var(--ink); font-size: 16px; }
.eyes { display: flex; gap: 10px; margin-bottom: 10px; }
.eyes i { width: 34px; height: 14px; border-radius: 8px; background: currentColor; box-shadow: 0 0 16px currentColor; animation: eye 3.2s ease-in-out infinite; }
.eyes.red { color: var(--red); } .eyes.blue { color: var(--blue); }
.eyes.blue i { width: 18px; height: 18px; border-radius: 50%; animation: blinky 3.6s infinite; }
@keyframes eye { 50% { transform: translateX(18px); } }
@keyframes blinky { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ------------------------------------------------------------------ 5 · the course */
.drills { height: 640vh; background: linear-gradient(180deg, var(--navy-0), var(--navy) 50%, #0e2058); }
.drills .stick { padding-top: 12vh; }
.lane { position: absolute; left: 0; top: 27vh; bottom: 8vh; display: flex; gap: 4vw; align-items: stretch; padding-right: 10vw; }
.drill { position: relative; flex: none; width: clamp(280px, 30vw, 440px); display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 2vh; }
.drill .n { position: absolute; top: 0; left: 0; font: 400 clamp(60px, 9vw, 140px)/1 var(--display); color: rgba(255, 194, 61, .14); margin: 0; }
.drill .art { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 2vh; }
.drill .art picture { height: auto; }
.drill .art picture img { object-fit: contain; }
.drill .a1 { height: 92%; width: auto; aspect-ratio: var(--ar); max-width: 70%; position: relative; z-index: 1; }
.drill .a1.wide { max-width: 100%; height: 80%; }
.drill .a2 { height: 74%; width: auto; aspect-ratio: var(--ar); max-width: 60%; margin-left: -6%; }
.drill h3 { color: var(--cream); }
.drill p { font-size: 16px; color: var(--dim); max-width: 34ch; margin: 0; }
.drill.finale h3 { color: var(--gold); }
.cluster { flex-wrap: wrap; align-content: flex-end; }
.cluster picture { width: 28%; aspect-ratio: var(--ar); margin: -2%; }
.cluster .c1 { width: 30%; } .cluster .c3 { width: 34%; }
.cluster.pop picture { width: 26%; } .cluster.pop .red { filter: drop-shadow(0 0 16px rgba(255, 74, 61, .9)); }
.bubbles picture { position: absolute; aspect-ratio: 1; opacity: .9; }
.bubbles .b1 { width: 54%; left: 8%; bottom: 6%; } .bubbles .b2 { width: 34%; right: 6%; bottom: 40%; } .bubbles .b3 { width: 22%; left: 52%; bottom: 72%; }
.tilt { transform: rotate(-8deg); } .tilt2 { transform: rotate(10deg) translateY(-12%); }
.incoming { position: absolute; right: 12%; top: 26%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0, var(--red) 40%, transparent 70%); filter: blur(1px); }
.floorline { display: none; position: absolute; left: 0; right: 0; bottom: 14vh; height: 2px; background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent); opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .drill .art picture { animation: bob 3.4s ease-in-out infinite; }
  .drill:nth-child(2n) .art picture { animation-delay: -1.2s; }
  .cluster picture:nth-child(2n) { animation-delay: -2s; }
  .swing { animation: swing 3s ease-in-out infinite !important; transform-origin: 50% 0; }
  .bubbles picture { animation: floaty 6s ease-in-out infinite !important; }
  .bubbles .b2 { animation-delay: -2s !important; } .bubbles .b3 { animation-delay: -4s !important; }
  .incoming { animation: pulse .8s ease-in-out infinite; }
}
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes swing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes floaty { 50% { transform: translate(6px, -16px); } }
@keyframes pulse { 50% { transform: scale(1.3); opacity: .6; } }

/* ------------------------------------------------------------------ 6 · ranks */
.ranks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6vw; align-items: center; padding: 16vh max(var(--gutter), 7vw);
  background: radial-gradient(ellipse 60% 70% at 75% 50%, rgba(255, 194, 61, .12), transparent 70%), var(--navy-0); }
.ranks h2 { color: var(--cream); }
.badges { display: flex; gap: 10px; }
.badges svg { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(255, 194, 61, .5)); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ladder li { display: flex; align-items: center; gap: 14px; font: 400 clamp(20px, 2.4vw, 32px) var(--display); color: rgba(233, 238, 252, .25); padding: 10px 16px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .06); transition: color .4s, background .4s, border-color .4s, transform .4s; }
.ladder li span { font: 700 14px var(--hud); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 2px solid currentColor; }
.ladder li small { font: 700 12px var(--hud); letter-spacing: .2em; color: var(--navy); background: var(--cyan); padding: 3px 8px; border-radius: 4px; margin-left: auto; }
.ladder li.on { color: var(--cream); background: rgba(19, 42, 107, .55); border-color: rgba(255, 194, 61, .35); }
.ladder li.top { color: var(--gold); background: linear-gradient(90deg, rgba(255, 194, 61, .22), rgba(19, 42, 107, .5)); border-color: var(--gold); transform: scale(1.03); }

/* ------------------------------------------------------------------ 7 · the range: the showcase (three.js) */
.showcase-sec { padding: 14vh var(--gutter) 10vh; background: linear-gradient(180deg, var(--navy-0), var(--navy) 50%, var(--navy-0)); }
.showcase-sec h2 { color: var(--cream); }
.showcase-sec .sechead .sub { max-width: 62ch; }
.show-frame { position: relative; max-width: 1280px; height: min(78vh, 760px); margin: 4vh auto 0; border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 50% 62%, #1d3c8f 0%, #132a6b 38%, #0b1a44 70%, #050b22 100%);
  border: 2px solid rgba(255, 194, 61, .45); box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 6px rgba(79, 230, 255, .08);
  user-select: none; -webkit-user-select: none; cursor: crosshair; }
.show-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(5, 11, 34, .55)); }
.show-frame canvas { position: absolute; inset: 0; }
.show-fallback { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 0 8% 9%; }
.show-fallback picture { width: 22%; max-width: 220px; }
.show-hud { position: absolute; inset: 0; z-index: 2; pointer-events: none; font: 700 clamp(13px, 1.6vw, 20px) var(--hud); letter-spacing: .12em; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); }
.show-hud p { position: absolute; margin: 0; }
.show-rank { left: 2.4%; top: 4%; display: flex; align-items: center; gap: 6px; }
.show-rank svg { width: 1.4em; height: 1.4em; }
.show-score { right: 2.4%; top: 4%; color: var(--cyan); }
.show-score b { font: 400 1.5em var(--display); color: var(--gold-hi); letter-spacing: .04em; margin-left: .3em; }
.show-pop { left: 0; right: 0; top: 18%; text-align: center; font: 400 clamp(30px, 5vw, 64px) var(--display); color: var(--gold-hi); opacity: 0; transform: scale(.7); }
.show-pop.bad { color: var(--blue); font-size: clamp(24px, 3.6vw, 46px); }
.show-pop.go { animation: showpop 1.1s ease-out forwards; }
@keyframes showpop { 0% { opacity: 0; transform: scale(.7) translateY(10px); } 12% { opacity: 1; transform: scale(1.08); } 25% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-24px); } }
.show-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; padding: 4% 4% 3%; text-align: center; pointer-events: none;
  font: 700 clamp(14px, 1.5vw, 18px) var(--hud); letter-spacing: .1em; color: var(--cream); background: linear-gradient(180deg, transparent, rgba(5, 11, 34, .8)); }
.show-cap:empty { display: none; }
.show-cap b { display: block; font: 400 clamp(20px, 2.4vw, 30px) var(--display); letter-spacing: .04em; color: var(--red); margin-bottom: .15em; }
.show-frame.friendly .show-cap b { color: var(--blue); }
.show-cap span { color: var(--dim); font-weight: 600; }
.oops { color: var(--blue); }
.end-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; flex-direction: column; align-items: center; cursor: pointer; text-decoration: none; font: 800 17px var(--body); color: var(--navy); background: var(--gold);
  border: 0; border-radius: 12px; padding: 12px 20px; box-shadow: 0 4px 0 #9a5a06; }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
.btn small { font-weight: 700; font-size: 12px; opacity: .75; }
kbd { font: 700 .85em var(--hud); background: rgba(255, 255, 255, .12); border-radius: 4px; padding: 1px 6px; }

/* ------------------------------------------------------------------ 8 · Nova */
.nova { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 6vw; align-items: center; padding: 16vh max(var(--gutter), 8vw);
  background: radial-gradient(ellipse 50% 60% at 25% 50%, rgba(79, 230, 255, .15), transparent 70%), var(--navy-0); }
.nova .orb.huge { justify-self: center; }
.nova h2 { color: var(--cream); }
.caption { margin-top: 1.2em; font-style: italic; color: var(--cyan); min-height: 3em; }

/* ------------------------------------------------------------------ 9 · why it's fun */
.fun { padding: 14vh var(--gutter); background: linear-gradient(180deg, var(--navy-0), var(--navy)); }
.fun h2 { color: var(--cream); }
.points { list-style: none; margin: 6vh auto 0; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.points li { position: relative; padding: 22px 20px 20px; border-radius: 18px; background: rgba(19, 42, 107, .5); border: 1px solid rgba(255, 194, 61, .22); overflow: hidden; }
.points .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 400 20px var(--display); margin-bottom: 12px; }
.points h3 { color: var(--cream); }
.points p { font-size: 16px; color: var(--dim); margin: 0; }
.pt-img { width: 100%; max-width: 220px; margin: 14px auto 0; }

/* ------------------------------------------------------------------ 10 · modes, trailer */
.modes { padding: 12vh var(--gutter); background: var(--navy); }
.modes h2 { color: var(--cream); }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; max-width: 1000px; margin: 5vh auto; }
.mode { padding: 26px; border-radius: 18px; background: linear-gradient(180deg, rgba(29, 60, 143, .6), rgba(11, 26, 68, .6)); border: 1px solid rgba(79, 230, 255, .25); }
.mode h3 { color: var(--gold); font-size: clamp(26px, 3vw, 36px); }
.mode p { color: var(--ink); }
.tag { display: inline-block; font: 700 11px var(--hud); letter-spacing: .2em; color: var(--navy); background: var(--gold); padding: 4px 9px; border-radius: 4px; }
.tag.cyanbg { background: var(--cyan); }
.trailer { max-width: 1000px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #050b22; border: 2px dashed rgba(255, 194, 61, .4); }
.trailer video { width: 100%; height: 100%; }
.nosignal { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(0deg, rgba(79, 230, 255, .04) 0 2px, transparent 2px 6px), radial-gradient(ellipse at center, #132a6b, #050b22); }
.nosignal svg { width: 70px; height: 70px; margin-bottom: 10px; }
.ns1 { font: 400 clamp(34px, 6vw, 72px) var(--display); color: var(--cream); margin: 0; }
.ns2 { font: 700 13px var(--hud); letter-spacing: .3em; color: var(--cyan); }

/* ------------------------------------------------------------------ 11 · get it */
.get { padding: 14vh var(--gutter); background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(255, 194, 61, .18), transparent 70%), var(--navy-0); }
.card { max-width: 720px; margin: 0 auto; text-align: center; padding: clamp(28px, 5vw, 56px); border-radius: 26px; background: linear-gradient(180deg, #16307a, #0b1a44);
  border: 2px solid var(--gold); box-shadow: 0 0 0 8px rgba(255, 194, 61, .12), 0 30px 90px rgba(0, 0, 0, .6); }
.card .badge { width: 90px; height: 90px; margin: 0 auto 8px; display: block; }
.card h2 { color: var(--cream); font-size: clamp(30px, 4.6vw, 54px); }
.store { font-size: 19px; padding: 16px 26px; }
.store.soon { opacity: .85; cursor: default; }

/* ------------------------------------------------------------------ 12 · the end */
.theend { padding: 16vh var(--gutter) max(6vh, env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(180deg, var(--navy-0), #02050f); }
.end1 { font: 400 clamp(44px, 9vw, 120px)/1 var(--display); color: var(--gold); margin: 0 0 4vh; text-shadow: 0 6px 0 #7a4400; }
.wave { width: 160px; margin: 0 auto 6vh; }
.studio .brand { font: 400 30px var(--display); margin-bottom: .2em; }
.studio .brand a { color: var(--cream); text-decoration: none; }
.motto { font-weight: 800; color: var(--cream); }
.credits { max-width: 720px; margin: 2em auto 0; font-size: 13px; color: var(--dim); }

/* ------------------------------------------------------------------ phones */
@media (max-width: 800px) {
  body { font-size: 17px; }
  .hero { height: 300vh; }
  .titleblock { top: 13vh; }
  .pitch { left: var(--gutter); right: var(--gutter); max-width: none; bottom: 22vh; }
  .gun { width: 62vw; right: -10vw; bottom: -3vh; }
  .lock b, .hold b { font-size: 10px; }
  .burst-copy { left: var(--gutter); right: var(--gutter); max-width: none; bottom: 4vh; padding: 14px 16px 2px; }
  .burst-copy p:last-child { font-size: 15px; }
  .bot { height: 58vh; margin-top: -14vh; }
  .scrub { display: none; }
  .academy, .ranks, .nova { grid-template-columns: 1fr; }
  .nova .orb.huge { order: -1; }
  .cast .stick { padding-top: 10vh; grid-template-rows: auto 1fr 1fr; }
  .side, .side.friends { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 4px; }
  .side.friends .figs { order: 0; }
  .rule p { display: none; }
  .rule h3 { font-size: 20px; margin: 0; display: inline; }
  .rule .eyes { display: inline-flex; margin: 0 8px 0 0; vertical-align: middle; }
  .figs figcaption { display: none; }
  .figs picture { height: auto; width: 100%; max-height: 100%; }
  .drill { width: 78vw; }
  .lane { top: 25vh; }
  .show-frame { margin-left: calc(-1 * var(--gutter) + 6px); margin-right: calc(-1 * var(--gutter) + 6px); height: min(72svh, 640px); border-radius: 16px; }
  .show-cap span { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}
@media (prefers-reduced-motion: reduce) { .scrub, .cue { display: none; } }
