/* ============================================================
   THINK LIKE A PREDATOR — Episode 1: First Contact
   Vertical 1080x1920 animated PSA · Every40Seconds
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange: #fb923c;
  --orange-deep: #f97316;
  --ink: #0b1020;
  --panel: rgba(10, 14, 28, 0.86);
  --white: #f5f7fb;
}

html, body { height: 100%; background: #000; overflow: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

.app {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, #101426 0%, #000 70%);
}

/* 9:16 stage, scaled to fit any screen. All type sizes use cqw. */
.stage {
  position: relative;
  width: min(100vw, calc(100vh * 9 / 16));
  height: min(100vh, calc(100vw * 16 / 9));
  overflow: hidden;
  background: #0b1020;
  container-type: size;
  box-shadow: 0 0 12vmin rgba(0,0,0,.8);
}
/* On phones, 100vh includes the area behind the browser UI, which pushes the
   top/bottom of the stage off screen. Dynamic viewport units track the real
   visible area so no text gets cut off. */
@supports (height: 100dvh) {
  .stage {
    width: min(100vw, calc(100dvh * 9 / 16));
    height: min(100dvh, calc(100vw * 16 / 9));
  }
}

.hidden { display: none !important; }

/* ---------- ambient layers ---------- */
.particles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.particle {
  position: absolute; bottom: -4cqw;
  width: 1.2cqw; height: 1.2cqw; border-radius: 50%;
  background: rgba(255, 200, 120, 0.35);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .7; }
  88%  { opacity: .5; }
  100% { transform: translate(var(--driftX, 6cqw), -115cqh) scale(1.15); opacity: 0; }
}

.vignette {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(90% 75% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%);
}
.red-pulse {
  position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: radial-gradient(100% 90% at 50% 50%, transparent 45%, rgba(220, 38, 38, .38) 100%);
  transition: opacity 1s ease;
}
.red-pulse.on { opacity: 1; animation: redThrob 1.6s ease-in-out infinite; }
@keyframes redThrob { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- scenes ---------- */
.scene {
  position: absolute; inset: 0; z-index: 2;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.scene.active {
  opacity: 1; visibility: visible;
  transition: opacity .9s ease;
}
.cam { position: absolute; inset: 0; will-change: transform; }

/* subtle camera moves (durations set inline by JS to match scene length) */
@keyframes camPushIn   { from { transform: scale(1) translateY(0); }        to { transform: scale(1.07) translateY(-1.5%); } }
@keyframes camPullOut  { from { transform: scale(1.08) translateY(1%); }    to { transform: scale(1) translateY(0); } }
@keyframes camDriftL   { from { transform: scale(1.05) translateX(1.5%); }  to { transform: scale(1.05) translateX(-1.5%); } }

/* ============================================================
   SCENE 1 · BEDROOM + PHONE UNLOCK
   ============================================================ */
#scene-room { background: linear-gradient(180deg, #131a33 0%, #0a0e1e 60%, #05070f 100%); }

.room-bg { position: absolute; inset: 0; }
.room-window {
  position: absolute; top: 7cqh; left: 8cqw;
  width: 34cqw; height: 17cqh; border-radius: 2cqw;
  background: linear-gradient(180deg, #1b2a55, #0e1730);
  border: 1cqw solid #232c4d; overflow: hidden;
}
.moon {
  position: absolute; top: 18%; right: 16%;
  width: 7cqw; height: 7cqw; border-radius: 50%;
  background: #f4f1de; box-shadow: 0 0 5cqw rgba(244, 241, 222, .7);
  animation: moonDrift 14s ease-in-out infinite alternate;
}
@keyframes moonDrift { from { transform: translateY(0); } to { transform: translateY(1.4cqh); } }
.star { position: absolute; width: .9cqw; height: .9cqw; border-radius: 50%; background: #cdd6ff; animation: twinkle 2.6s ease-in-out infinite; }
.star.s1 { top: 25%; left: 18%; } .star.s2 { top: 55%; left: 40%; animation-delay: .9s; } .star.s3 { top: 35%; left: 62%; animation-delay: 1.6s; }
@keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

.room-poster {
  position: absolute; top: 8cqh; right: 7cqw;
  padding: 2.2cqw 3cqw; border-radius: 1.5cqw;
  background: #1a2342; border: .6cqw solid #2c3866;
  color: var(--orange); font-weight: 900; font-size: 4cqw; line-height: 1.15;
  letter-spacing: .12em; transform: rotate(3deg);
  animation: posterSway 6s ease-in-out infinite alternate;
}
@keyframes posterSway { from { transform: rotate(2.4deg); } to { transform: rotate(3.6deg); } }
.room-shelf {
  position: absolute; top: 28cqh; right: 6cqw; width: 26cqw; height: 1.4cqh;
  background: #2a3358; border-radius: .6cqw;
  box-shadow: 0 3cqh 0 0 #222a4a;
}
.lamp-glow {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55cqh;
  background: radial-gradient(60% 55% at 50% 90%, rgba(107, 140, 255, .22), transparent 70%);
  animation: lampFlicker 3.4s ease-in-out infinite;
}
@keyframes lampFlicker { 0%,100% { opacity: .8; } 42% { opacity: 1; } 47% { opacity: .72; } 52% { opacity: .95; } }

.kid-holder { position: absolute; z-index: 2; }
.kid-room { bottom: 34cqh; left: 50%; width: 46cqw; transform: translateX(-50%); }
.kid-room svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 2cqh 3cqh rgba(0,0,0,.5)); }

/* --- flat-vector kid (SVG parts animated via CSS) --- */
.kid .lid { transform-origin: center 36%; animation: blink 4.4s ease-in-out infinite; }
.kid .lid2 { animation-delay: .05s; }
@keyframes blink {
  0%, 90%, 100% { transform: scaleY(0.04); }
  93%, 96%      { transform: scaleY(1); }
}
.kid .pupils { animation: lookAround 7s ease-in-out infinite; }
@keyframes lookAround {
  0%, 18%  { transform: translate(0, 0); }
  24%, 40% { transform: translate(1.6px, .6px); }
  46%, 66% { transform: translate(-1.8px, .3px); }
  72%, 88% { transform: translate(.4px, -.8px); }
  100%     { transform: translate(0, 0); }
}
.kid.reading .pupils { animation: readText 1.6s ease-in-out infinite; }
@keyframes readText {
  0%   { transform: translate(-2px, 1px); }
  45%  { transform: translate(2.2px, 1px); }
  55%  { transform: translate(2.2px, 1.6px); }
  100% { transform: translate(-2px, 1.8px); }
}
.kid .mouth-smile, .kid .mouth-flat, .kid .mouth-worry, .kid .mouth-talk { opacity: 0; }
.kid.mood-happy .mouth-smile { opacity: 1; }
.kid.mood-flat  .mouth-flat  { opacity: 1; }
.kid.mood-worry .mouth-worry { opacity: 1; }
.kid.talking .mouth-smile, .kid.talking .mouth-flat, .kid.talking .mouth-worry { opacity: 0 !important; }
.kid.talking .mouth-talk { opacity: 1; transform-origin: center; animation: mouthFlap .22s ease-in-out infinite alternate; }
@keyframes mouthFlap { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.kid .brows { transition: transform .5s ease; }
.kid.mood-worry .brows { transform: translateY(-1.6px); }
.kid .head-group { transform-origin: 50% 70%; animation: headBob 3.2s ease-in-out infinite alternate; }
@keyframes headBob { from { transform: rotate(-.8deg) translateY(0); } to { transform: rotate(.9deg) translateY(1.2px); } }
/* hands typing on the phone */
.kid .hand { transform-origin: 80% 80%; }
.kid.typing .hand-l { animation: tapL .16s linear infinite alternate; }
.kid.typing .hand-r { animation: tapR .15s linear infinite alternate-reverse; }
@keyframes tapL { from { transform: translateY(0) rotate(0); } to { transform: translateY(-2.4px) rotate(-4deg); } }
@keyframes tapR { from { transform: translateY(-2.4px) rotate(4deg); } to { transform: translateY(0) rotate(0); } }

/* --- phone --- */
.phone {
  position: absolute; z-index: 3; left: 50%; bottom: 4cqh;
  width: 58cqw; transform: translateX(-50%);
}
.phone-glow {
  position: absolute; inset: -8cqw; border-radius: 10cqw; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 40%, rgba(120, 170, 255, .4), transparent 70%);
  animation: deviceGlow 2.8s ease-in-out infinite alternate;
}
@keyframes deviceGlow { from { opacity: .55; } to { opacity: 1; } }
.phone-body {
  position: relative; border-radius: 7cqw;
  background: #10162c; border: 1.1cqw solid #2b3767;
  padding: 2cqw; overflow: hidden;
  box-shadow: 0 3cqh 6cqh rgba(0,0,0,.6);
}
.phone.vibrate .phone-body { animation: vibrate .09s linear 8; }
@keyframes vibrate {
  0% { transform: translateX(0); } 25% { transform: translateX(-1.1cqw) rotate(-.4deg); }
  75% { transform: translateX(1.1cqw) rotate(.4deg); } 100% { transform: translateX(0); }
}
.phone-notch {
  position: absolute; top: 2.6cqw; left: 50%; transform: translateX(-50%);
  width: 16cqw; height: 2.6cqw; border-radius: 2cqw; background: #000; z-index: 5;
}
.phone-screen {
  position: relative; border-radius: 5cqw; overflow: hidden;
  height: 62cqh; background: linear-gradient(180deg, #2b3a75, #17204a 55%, #101733);
}

.lockscreen {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  padding-top: 9cqh;
  background: linear-gradient(200deg, #33418a 0%, #1a2452 55%, #101733 100%);
  transition: transform .7s cubic-bezier(.6, 0, .3, 1), opacity .7s ease;
}
.lockscreen.unlocked { transform: translateY(-104%); opacity: .6; }
.lock-time { font-size: 13cqw; font-weight: 200; letter-spacing: .02em; }
.lock-date { font-size: 3.4cqw; opacity: .75; margin-top: .6cqh; }
.notif {
  display: flex; align-items: center; gap: 2.4cqw;
  width: 84%; margin-top: 4.5cqh; padding: 2.6cqw 3cqw;
  border-radius: 3.4cqw; background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-3cqh) scale(.9);
}
.notif.show { animation: notifIn .55s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes notifIn { to { opacity: 1; transform: translateY(0) scale(1); } }
.notif-icon {
  width: 8.4cqw; height: 8.4cqw; border-radius: 2cqw; flex: none;
  background: linear-gradient(145deg, #f97316, #c2410c);
  display: flex; align-items: center; justify-content: center; font-size: 4.6cqw;
}
.notif-body { display: flex; flex-direction: column; gap: .3cqh; min-width: 0; }
.notif-body b { font-size: 3.2cqw; }
.notif-body span { font-size: 2.9cqw; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-ring {
  position: absolute; bottom: 7cqh; left: 50%; transform: translateX(-50%);
  width: 12cqw; height: 12cqw; border-radius: 50%;
  border: .8cqw solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.fp-ring.scanning { animation: fpScan 1.2s ease forwards; }
@keyframes fpScan {
  0%   { border-color: rgba(255,255,255,.25); box-shadow: none; }
  60%  { border-color: #4ade80; box-shadow: 0 0 4cqw rgba(74, 222, 128, .8); }
  100% { border-color: #4ade80; box-shadow: 0 0 2cqw rgba(74, 222, 128, .5); }
}
.fp-dot { width: 5cqw; height: 5cqw; border-radius: 50%; background: rgba(255,255,255,.3); }
.fp-ring.scanning .fp-dot { animation: fpDot 1.2s ease forwards; }
@keyframes fpDot { 60% { background: #4ade80; transform: scale(1.25); } 100% { background: #4ade80; transform: scale(1); } }
.lock-hint { position: absolute; bottom: 2.6cqh; font-size: 2.7cqw; opacity: .55; animation: hintFloat 1.8s ease-in-out infinite alternate; }
@keyframes hintFloat { from { transform: translateY(0); opacity: .4; } to { transform: translateY(-.8cqh); opacity: .8; } }

.homescreen { position: absolute; inset: 0; z-index: 3; padding: 9cqh 5cqw 0; }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4cqw 5cqw; justify-items: center; }
.app-icon {
  position: relative; width: 12.5cqw; height: 12.5cqw; border-radius: 3cqw;
  display: flex; align-items: center; justify-content: center; font-size: 6cqw;
}
.app-icon.a1 { background: linear-gradient(145deg, #38bdf8, #1d4ed8); }
.app-icon.a2 { background: linear-gradient(145deg, #a78bfa, #6d28d9); }
.app-icon.a3 { background: linear-gradient(145deg, #34d399, #047857); }
.app-icon.a4 { background: linear-gradient(145deg, #f472b6, #be185d); }
.app-icon.a5 { background: linear-gradient(145deg, #facc15, #b45309); }
.app-icon.fb { background: linear-gradient(145deg, #f97316, #9a3412); box-shadow: 0 0 3cqw rgba(249, 115, 22, .55); }
.app-badge {
  position: absolute; top: -1.4cqw; right: -1.4cqw;
  min-width: 4.6cqw; height: 4.6cqw; border-radius: 3cqw; padding: 0 1cqw;
  background: #ef4444; color: #fff; font-style: normal; font-weight: 800; font-size: 2.8cqw;
  display: flex; align-items: center; justify-content: center;
  animation: badgePop .5s cubic-bezier(.2, 1.6, .4, 1) both .3s;
}
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }
.tap-ripple {
  position: absolute; inset: 0; border-radius: 3cqw; opacity: 0;
  border: .8cqw solid #fff;
}
.tap-ripple.go { animation: ripple .6s ease-out forwards; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.5); } }
.dock {
  position: absolute; bottom: 2cqh; left: 6cqw; right: 6cqw; height: 8cqh;
  border-radius: 4cqw; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-evenly;
}
.dock i { width: 10cqw; height: 10cqw; border-radius: 2.6cqw; background: rgba(255,255,255,.22); }

.caption {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 3.4cqw; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.92); white-space: nowrap; text-shadow: 0 .3cqh 1.6cqh rgba(0,0,0,.85);
  opacity: 0; animation: capIn 1.2s ease forwards .6s;
}
.cap-bottom { bottom: 1.6cqh; }
@keyframes capIn { to { opacity: 1; } }

/* ============================================================
   SCENE 2 · GAME LOADING
   ============================================================ */
#scene-loading { background: #0d1b12; }
.game-frame {
  position: absolute; inset: 0; overflow: hidden;
  background: linear-gradient(180deg, #14532d 0%, #0c3b20 55%, #082916 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.4cqh;
}
.gl-sky { position: absolute; inset: 0; pointer-events: none; }
.gl-block {
  position: absolute; width: 9cqw; height: 9cqw; border-radius: 1.6cqw;
  background: #f97316; opacity: .18;
  animation: blockFall 5.5s linear infinite;
}
.gl-block.b1 { left: 12%; animation-delay: 0s; background: #38bdf8; }
.gl-block.b2 { left: 34%; animation-delay: 1.6s; }
.gl-block.b3 { left: 62%; animation-delay: .8s; background: #a78bfa; }
.gl-block.b4 { left: 82%; animation-delay: 2.4s; background: #4ade80; }
@keyframes blockFall {
  from { transform: translateY(-14cqh) rotate(0); }
  to   { transform: translateY(115cqh) rotate(160deg); }
}
.gl-logo {
  font-size: 11cqw; font-weight: 900; letter-spacing: .06em; color: #fff;
  text-shadow: 0 1cqh 0 #052e16;
  animation: logoBounce 1s cubic-bezier(.2, 1.6, .4, 1) both;
}
.gl-logo span { color: var(--orange); }
@keyframes logoBounce { 0% { transform: translateY(-40cqh) scale(.7); } 70% { transform: translateY(2cqh) scale(1.05); } 100% { transform: translateY(0) scale(1); } }
.gl-bar {
  width: 64cqw; height: 3.4cqh; border-radius: 3cqh;
  background: rgba(0,0,0,.45); border: .5cqw solid rgba(255,255,255,.2);
  overflow: hidden;
}
.gl-fill {
  height: 100%; width: 0%; border-radius: 3cqh;
  background: repeating-linear-gradient(45deg, #fb923c 0, #fb923c 3cqw, #f97316 3cqw, #f97316 6cqw);
  background-size: 200% 100%;
  animation: barStripes 1s linear infinite;
  transition: width .35s ease;
}
@keyframes barStripes { from { background-position: 0 0; } to { background-position: 8.4cqw 0; } }
.gl-pct { font-size: 4cqw; font-weight: 800; color: #d9f99d; }
.gl-tip { font-size: 3.2cqw; opacity: .8; font-style: italic; transition: opacity .4s ease; }
.gl-tip.swap { opacity: 0; }
.gl-status { display: flex; align-items: center; gap: 2cqw; font-size: 3.4cqw; color: #bbf7d0; }
.spinner {
  width: 4cqw; height: 4cqw; border-radius: 50%;
  border: .8cqw solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gl-play {
  margin-top: 1cqh; padding: 1.8cqh 9cqw; border: none; border-radius: 2.4cqw;
  background: linear-gradient(180deg, #4ade80, #16a34a);
  color: #052e16; font-size: 5.4cqw; font-weight: 900; letter-spacing: .08em;
  box-shadow: 0 1.2cqh 0 #14532d; cursor: default;
  opacity: .35; transform: scale(.96); transition: opacity .4s ease, transform .2s ease;
}
.gl-play.ready { opacity: 1; animation: playPulse 1.1s ease-in-out infinite alternate; }
@keyframes playPulse { from { transform: scale(1); } to { transform: scale(1.06); } }
.gl-play.pressed { transform: scale(.9) !important; box-shadow: 0 .4cqh 0 #14532d; animation: none; }
.cursor {
  position: absolute; z-index: 8; width: 0; height: 0; left: 78%; top: 84%;
  border-left: 3.4cqw solid #fff; border-top: 1.4cqw solid transparent; border-bottom: 3cqw solid transparent;
  filter: drop-shadow(0 .4cqh .6cqh rgba(0,0,0,.7));
  transform: rotate(-14deg);
  transition: left 1.4s cubic-bezier(.5, 0, .3, 1), top 1.4s cubic-bezier(.5, 0, .3, 1);
}
.cursor.clicking { animation: cursorClick .35s ease; }
@keyframes cursorClick { 40% { transform: rotate(-14deg) scale(.75); } 100% { transform: rotate(-14deg) scale(1); } }

.toast-wrap { position: absolute; top: 3cqh; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; flex-direction: column; gap: 1cqh; align-items: center; width: 100%; pointer-events: none; }
.toast {
  padding: 1.1cqh 4cqw; border-radius: 3cqw; max-width: 88%;
  background: rgba(0,0,0,.65); border: .4cqw solid rgba(255,255,255,.22);
  font-family: "Courier New", monospace; font-size: 3.1cqw; color: #d1fae5; white-space: nowrap;
  animation: toastIn .5s cubic-bezier(.2, 1.4, .4, 1) both, toastOut .5s ease forwards var(--ttl, 3s);
}
.toast.join { color: #fde68a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-2cqh) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-1.6cqh); } }

/* ============================================================
   SCENE 3 · GAMEPLAY
   ============================================================ */
#scene-game { background: #7dd3fc; }
.game-sky { position: absolute; inset: 0 0 34cqh 0; overflow: hidden; background: linear-gradient(180deg, #60a5fa 0%, #93c5fd 55%, #bae6fd 100%); animation: skyShift 9s ease-in-out infinite alternate; }
@keyframes skyShift { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(-8deg); } }
.sun { position: absolute; top: 6cqh; right: 10cqw; width: 13cqw; height: 13cqw; border-radius: 50%; background: #fde047; box-shadow: 0 0 8cqw rgba(253, 224, 71, .85); animation: sunPulse 4s ease-in-out infinite alternate; }
@keyframes sunPulse { from { transform: scale(1); } to { transform: scale(1.08); } }
.cloud { position: absolute; height: 5cqh; border-radius: 5cqh; background: rgba(255,255,255,.92); animation: cloudMove linear infinite; }
.cloud::after { content: ""; position: absolute; top: -55%; left: 22%; width: 55%; height: 110%; border-radius: 50%; background: inherit; }
.cloud.c1 { top: 9cqh; width: 26cqw; animation-duration: 13s; }
.cloud.c2 { top: 19cqh; width: 18cqw; animation-duration: 9s; animation-delay: -4s; }
.cloud.c3 { top: 28cqh; width: 30cqw; animation-duration: 16s; animation-delay: -9s; }
@keyframes cloudMove { from { left: 105%; } to { left: -35%; } }
.hills { position: absolute; bottom: 0; left: 0; right: 0; height: 16cqh; background:
  radial-gradient(60% 130% at 20% 100%, #22c55e 48%, transparent 50%),
  radial-gradient(70% 150% at 75% 100%, #16a34a 48%, transparent 50%);
  animation: hillsScroll 7s linear infinite; background-size: 140% 100%; }
@keyframes hillsScroll { from { background-position: 0 0, 0 0; } to { background-position: -60cqw 0, -90cqw 0; } }

.hud { position: absolute; top: 2.4cqh; left: 3cqw; right: 3cqw; z-index: 6; display: flex; gap: 2cqw; align-items: center; }
.hud-item {
  padding: 1cqh 3cqw; border-radius: 2.6cqw;
  background: rgba(8, 12, 26, .88); border: .4cqw solid rgba(255,255,255,.35);
  font-size: 3.3cqw; font-weight: 700; display: flex; gap: 1.4cqw; align-items: center;
  text-shadow: 0 .2cqh 1cqh rgba(0,0,0,.7);
}
.hud-item b { color: #fde047; }
.hud-item.pos { margin-left: auto; background: #7c3aed; border-color: #c4b5fd; transition: transform .3s ease; }
.hud-item.pos.first { background: #f59e0b; color: #451a03; }
.hud-item.pos.bump { animation: posBump .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes posBump { 50% { transform: scale(1.35) rotate(-4deg); } }
.coin-tick { animation: coinTick .3s ease; display: inline-block; }
@keyframes coinTick { 50% { transform: scale(1.35); color: #fff; } }
.hud-chat { position: relative; padding: 1cqh 2.4cqw; border-radius: 2.6cqw; background: rgba(8, 12, 26, .78); border: .4cqw solid rgba(255,255,255,.25); font-size: 3.6cqw; }
.hud-badge {
  position: absolute; top: -1.2cqh; right: -1.6cqw;
  min-width: 4.4cqw; height: 4.4cqw; border-radius: 3cqw;
  background: #ef4444; font-style: normal; font-weight: 800; font-size: 2.7cqw;
  display: flex; align-items: center; justify-content: center;
  animation: badgePop .5s cubic-bezier(.2, 1.8, .4, 1) both;
}

.track { position: absolute; left: 0; right: 0; bottom: 0; height: 36cqh; background: linear-gradient(180deg, #a16207 0%, #854d0e 20%, #713f12 100%); overflow: hidden; }
.track-lines { position: absolute; top: 44%; left: 0; right: 0; height: 1.4cqh; display: flex; gap: 8cqw; animation: linesScroll .55s linear infinite; }
.track-lines i { flex: none; width: 14cqw; height: 100%; border-radius: 1cqh; background: rgba(255, 255, 255, .5); }
@keyframes linesScroll { from { transform: translateX(0); } to { transform: translateX(-22cqw); } }

/* the kid's blocky avatar, mid-run */
.avatar-runner { position: absolute; left: 14cqw; bottom: 12cqh; width: 16cqw; height: 24cqh; z-index: 4; animation: runBob .4s ease-in-out infinite alternate; }
@keyframes runBob { from { transform: translateY(0); } to { transform: translateY(-1.6cqh); } }
.av-head { position: absolute; top: 0; left: 2cqw; width: 12cqw; height: 10cqh; border-radius: 2cqw; background: #fbbf24; }
.av-eye { position: absolute; top: 34%; left: 22%; width: 2cqw; height: 2cqw; border-radius: 50%; background: #1c1917; animation: avBlink 3.8s ease-in-out infinite; }
.av-eye.e2 { left: 58%; }
@keyframes avBlink { 0%, 91%, 100% { transform: scaleY(1); } 94%, 97% { transform: scaleY(.1); } }
.av-body { position: absolute; top: 9.4cqh; left: 3cqw; width: 10cqw; height: 8.4cqh; border-radius: 1.6cqw; background: var(--orange-deep); }
.av-arm { position: absolute; top: 10cqh; width: 3cqw; height: 6.6cqh; border-radius: 1.4cqw; background: #fbbf24; transform-origin: top center; }
.av-arm.arm-f { left: 0; animation: armSwing .4s ease-in-out infinite alternate; }
.av-arm.arm-b { right: 0; animation: armSwing .4s ease-in-out infinite alternate-reverse; }
@keyframes armSwing { from { transform: rotate(38deg); } to { transform: rotate(-38deg); } }
.av-leg { position: absolute; top: 17.4cqh; width: 3.4cqw; height: 6.4cqh; border-radius: 1.4cqw; background: #1e3a8a; transform-origin: top center; }
.av-leg.leg-f { left: 3.4cqw; animation: legRun .4s ease-in-out infinite alternate; }
.av-leg.leg-b { left: 8.4cqw; animation: legRun .4s ease-in-out infinite alternate-reverse; }
@keyframes legRun { from { transform: rotate(34deg); } to { transform: rotate(-34deg); } }
.nametag {
  position: absolute; left: 14cqw; bottom: 37.5cqh; z-index: 5;
  padding: .6cqh 2.4cqw; border-radius: 2cqw;
  background: rgba(8, 12, 26, .8); color: var(--orange);
  font-size: 2.8cqw; font-weight: 800; letter-spacing: .04em;
  animation: runBob .4s ease-in-out infinite alternate;
}

/* background runners */
.runner { position: absolute; bottom: 15cqh; width: 9cqw; height: 15cqh; z-index: 3; animation-name: runnerPass; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes runnerPass { from { left: 105%; } to { left: -18%; } }
.runner .r-head { position: absolute; top: 0; left: 18%; width: 64%; height: 34%; border-radius: 1.4cqw; background: #e2e8f0; }
.runner .r-body { position: absolute; top: 32%; left: 24%; width: 52%; height: 34%; border-radius: 1cqw; }
.runner .r-leg { position: absolute; top: 64%; width: 22%; height: 32%; border-radius: 1cqw; background: #334155; transform-origin: top center; }
.runner .r-leg.f { left: 26%; animation: legRun .32s ease-in-out infinite alternate; }
.runner .r-leg.b { left: 52%; animation: legRun .32s ease-in-out infinite alternate-reverse; }

/* coins */
.coin {
  position: absolute; bottom: 21cqh; width: 6cqw; height: 6cqw; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 35%, #fef08a, #eab308 70%);
  border: .7cqw solid #a16207;
  display: flex; align-items: center; justify-content: center;
  font-size: 3cqw; font-weight: 900; color: #854d0e;
  animation: coinTravel linear forwards, coinSpin .5s linear infinite;
}
@keyframes coinTravel { from { left: 108%; } to { left: 10cqw; } }
@keyframes coinSpin { 0% { transform: scaleX(1); } 50% { transform: scaleX(.25); } 100% { transform: scaleX(1); } }
.coin.collected { animation: coinPop .45s ease forwards; }
@keyframes coinPop {
  30% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(.2) translateY(-9cqh); opacity: 0; }
}
.coin-float { position: absolute; z-index: 6; font-size: 3.6cqw; font-weight: 900; color: #fde047; text-shadow: 0 .3cqh .5cqh rgba(0,0,0,.5); animation: floatScore 1s ease forwards; }
@keyframes floatScore { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-9cqh); } }
.sparkle { position: absolute; z-index: 6; width: 2cqw; height: 2cqw; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: sparkleOut .55s ease forwards; }
@keyframes sparkleOut { from { opacity: 1; transform: scale(.4) rotate(0); } to { opacity: 0; transform: scale(1.8) rotate(90deg) translate(var(--sx, 3cqw), var(--sy, -3cqw)); } }
.toast-game { top: 12cqh; }

/* ============================================================
   SCENES 4–6 · CHAT
   ============================================================ */
.chat-scene { background: linear-gradient(180deg, #0e1430 0%, #0a0e22 100%); }
.chat-gamebg {
  position: absolute; inset: 0; opacity: .35; filter: blur(4px) saturate(.7);
  background: linear-gradient(180deg, #60a5fa 0%, #93c5fd 40%, #713f12 40.5%, #57340e 100%);
}
.chat-panel {
  position: absolute; left: 4cqw; right: 4cqw; top: 12cqh; bottom: 4cqh;
  border-radius: 5cqw; overflow: hidden;
  background: var(--panel); border: .5cqw solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column;
  transform: translateY(6cqh); opacity: 0;
  animation: panelUp .8s cubic-bezier(.2, 1.2, .3, 1) forwards .15s;
  box-shadow: 0 3cqh 8cqh rgba(0,0,0,.55);
}
@keyframes panelUp { to { transform: translateY(0); opacity: 1; } }
.chat-head {
  flex: none; display: flex; align-items: center; gap: 2.4cqw;
  padding: 1.6cqh 4cqw; border-bottom: .4cqw solid rgba(255,255,255,.1);
  font-family: "Courier New", monospace; font-size: 3.1cqw; letter-spacing: .1em;
  color: rgba(255,255,255,.85);
}
.chat-head .who { color: var(--orange); font-weight: 700; }
.chat-head .dot { width: 2cqw; height: 2cqw; border-radius: 50%; background: #4ade80; animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.chat-log {
  flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 1.6cqh;
  padding: 2.4cqh 4cqw; scroll-behavior: smooth;
}
.sys-line { font-family: "Courier New", monospace; font-size: 2.9cqw; color: #fde68a; opacity: .85; text-align: center; animation: bubbleIn .5s ease both; }

.bubble {
  max-width: 78%; padding: 1.5cqh 4cqw; border-radius: 4.5cqw;
  font-size: 3.8cqw; line-height: 1.45; position: relative;
  overflow-wrap: break-word;
  animation: bubbleIn .55s cubic-bezier(.2, 1.35, .4, 1) both;
}
.bubble.them { align-self: flex-start; background: #232c4f; border-bottom-left-radius: 1.2cqw; color: #eef1ff; }
.bubble.me   { align-self: flex-end; background: linear-gradient(145deg, #fb923c, #ea580c); border-bottom-right-radius: 1.2cqw; color: #201002; font-weight: 600; }
.bubble .b-who { display: block; font-size: 2.6cqw; letter-spacing: .08em; margin-bottom: .4cqh; opacity: .7; font-weight: 700; }
.bubble.them .b-who { color: #93c5fd; }
.bubble.prefill { animation: none; opacity: .55; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(2.4cqh) scale(.86); } to { opacity: 1; transform: none; } }
.bubble.suspicious { box-shadow: 0 0 0 .5cqw rgba(239, 68, 68, 0); animation: bubbleIn .55s cubic-bezier(.2, 1.35, .4, 1) both, susGlow 1.4s ease-in-out .8s infinite alternate; }
@keyframes susGlow { from { box-shadow: 0 0 0 .5cqw rgba(239, 68, 68, .0); } to { box-shadow: 0 0 3cqw .5cqw rgba(239, 68, 68, .55); } }

.emoji-pop { display: inline-block; animation: emojiPop .7s cubic-bezier(.2, 1.8, .4, 1) both .1s; }
@keyframes emojiPop { 0% { transform: scale(0) rotate(-30deg); } 60% { transform: scale(1.7) rotate(10deg); } 100% { transform: scale(1) rotate(0); } }

.typing-row { align-self: flex-start; display: flex; gap: 1.2cqw; padding: 1.6cqh 4cqw; border-radius: 4.5cqw; border-bottom-left-radius: 1.2cqw; background: #232c4f; animation: bubbleIn .4s ease both; }
.typing-row .td { width: 2cqw; height: 2cqw; border-radius: 50%; background: #93a4d8; animation: tdBounce 1s ease-in-out infinite; }
.typing-row .td:nth-child(2) { animation-delay: .16s; }
.typing-row .td:nth-child(3) { animation-delay: .32s; }
@keyframes tdBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-1.1cqh); opacity: 1; } }

/* composer + keyboard */
.composer {
  flex: none; margin: 0 3cqw 1.4cqh; padding: 1.3cqh 4cqw;
  border-radius: 4cqw; background: rgba(255,255,255,.08);
  border: .4cqw solid rgba(255,255,255,.14);
  font-size: 3.6cqw; min-height: 5.6cqh; display: flex; align-items: center;
  color: #fff;
}
.composer .caret { width: .6cqw; height: 3.6cqh; margin-left: .6cqw; background: var(--orange); animation: caretBlink .8s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.composer .send { margin-left: auto; color: var(--orange); font-weight: 900; font-size: 3.6cqw; opacity: .4; transition: opacity .3s, transform .2s; }
.composer .send.hot { opacity: 1; }
.composer .send.fired { animation: sendFire .4s ease; }
@keyframes sendFire { 40% { transform: scale(1.5) rotate(-15deg); } }
.kbd {
  flex: none; padding: 1cqh 2cqw 1.8cqh; background: rgba(6, 9, 20, .9);
  display: flex; flex-direction: column; gap: .8cqh;
  transform: translateY(110%); transition: transform .5s cubic-bezier(.2, 1, .3, 1);
}
.kbd.up { transform: translateY(0); }
.kbd-row { display: flex; justify-content: center; gap: .8cqw; }
.key {
  flex: none; min-width: 8cqw; padding: 1cqh 0; border-radius: 1.6cqw;
  background: #2a3358; text-align: center;
  font-size: 3.2cqw; font-weight: 600; color: #dbe2ff;
  transition: background .08s, transform .08s;
}
.key.space { min-width: 46cqw; }
.key.flash { background: var(--orange); color: #1c0a00; transform: translateY(.4cqh) scale(.95); }

/* kid reaction PiP */
.kid-cam {
  position: absolute; z-index: 8; left: 5cqw; bottom: 5cqh;
  width: 26cqw; height: 26cqw; border-radius: 50%; overflow: hidden;
  border: .9cqw solid rgba(255,255,255,.35);
  background: radial-gradient(circle at 50% 30%, #1d2a55, #0c1230);
  box-shadow: 0 1.6cqh 4cqh rgba(0,0,0,.6);
  transform: scale(0); animation: pipIn .55s cubic-bezier(.2, 1.5, .4, 1) forwards;
}
@keyframes pipIn { to { transform: scale(1); } }
.kid-cam svg { width: 130%; height: auto; margin-left: -15%; margin-top: 6%; }
.kid-cam .pip-label {
  position: absolute; bottom: 1.2cqh; left: 0; right: 0; text-align: center;
  font-size: 2.2cqw; letter-spacing: .18em; color: rgba(255,255,255,.6); text-transform: uppercase;
}

/* pause caption in suspicious beat */
.pause-cap {
  position: absolute; z-index: 9; left: 8cqw; right: 8cqw; bottom: 16cqh;
  text-align: center; font-size: 4.6cqw; font-weight: 700; line-height: 1.5;
  color: #fecaca; text-shadow: 0 .5cqh 2cqh rgba(0,0,0,.9);
  opacity: 0; animation: capRise 1.2s ease forwards;
}
@keyframes capRise { from { opacity: 0; transform: translateY(2.4cqh); } to { opacity: 1; transform: none; } }

/* ============================================================
   SCENE 7 · RED FLAG
   ============================================================ */
#scene-redflag { background: radial-gradient(120% 100% at 50% 0%, #7f1d1d 0%, #450a0a 55%, #1c0505 100%); }
.cam-flag { display: flex; flex-direction: column; align-items: center; padding-top: 10cqh; }
.flag-wrap { position: relative; width: 30cqw; height: 24cqh; }
.flag-pole { position: absolute; left: 4cqw; top: 0; width: 1.6cqw; height: 100%; border-radius: 1cqw; background: #e7e5e4; }
.flag-cloth {
  position: absolute; left: 5.4cqw; top: 1cqh; width: 22cqw; height: 9cqh;
  background: #dc2626; clip-path: polygon(0 0, 100% 12%, 82% 50%, 100% 88%, 0 100%);
  transform-origin: left center;
  animation: flagWave 1.1s ease-in-out infinite alternate;
  box-shadow: 0 1cqh 4cqh rgba(220, 38, 38, .5);
}
@keyframes flagWave { from { transform: skewY(-4deg) scaleX(1); } to { transform: skewY(4deg) scaleX(1.05); } }
.rf-title {
  font-size: 13cqw; font-weight: 900; letter-spacing: .1em; color: #fecaca;
  text-shadow: 0 1cqh 4cqh rgba(0,0,0,.6);
  animation: stampIn .6s cubic-bezier(.2, 1.4, .4, 1) both .3s;
}
@keyframes stampIn { from { opacity: 0; transform: scale(2.2) rotate(-4deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.rf-chips { display: flex; flex-direction: column; gap: 1.8cqh; margin-top: 4cqh; width: 82%; }
.rf-chip {
  padding: 1.8cqh 5cqw; border-radius: 3.4cqw;
  background: rgba(0,0,0,.4); border: .5cqw solid rgba(254, 202, 202, .4);
  font-size: 3.9cqw; font-weight: 600; text-align: center; color: #fff5f5;
  opacity: 0; transform: translateX(-8cqw);
}
.rf-chip.in { animation: chipIn .6s cubic-bezier(.2, 1.3, .4, 1) forwards; }
@keyframes chipIn { to { opacity: 1; transform: none; } }
.rf-note { margin-top: 4.5cqh; text-align: center; font-size: 3.7cqw; line-height: 1.7; color: #fca5a5; opacity: 0; animation: capIn 1s ease forwards 3.4s; }

/* ============================================================
   SCENE 8 · FAMILY CHALLENGE
   ============================================================ */
#scene-challenge { background: radial-gradient(120% 100% at 50% 0%, #134e4a 0%, #042f2e 60%, #021716 100%); }
.cam-challenge { display: flex; flex-direction: column; align-items: center; padding-top: 12cqh; }
.fc-badge {
  padding: 1.2cqh 5cqw; border-radius: 4cqw;
  background: #2dd4bf; color: #042f2e; font-weight: 900; font-size: 3.6cqw; letter-spacing: .2em;
  animation: stampIn .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.fc-card {
  margin-top: 5cqh; width: 84%; padding: 4cqh 6cqw; border-radius: 5cqw;
  background: rgba(255,255,255,.07); border: .5cqw solid rgba(94, 234, 212, .35);
  text-align: center;
  opacity: 0; transform: translateY(3cqh);
  animation: cardUp .8s cubic-bezier(.2, 1.2, .4, 1) forwards .5s;
  box-shadow: 0 2cqh 6cqh rgba(0,0,0,.4);
}
@keyframes cardUp { to { opacity: 1; transform: none; } }
.fc-lead { font-size: 3.6cqw; letter-spacing: .1em; text-transform: uppercase; color: #99f6e4; }
.fc-q { margin-top: 2cqh; font-size: 5.6cqw; font-weight: 800; line-height: 1.5; color: #fff; }
.fc-list { margin-top: 5cqh; list-style: none; display: flex; flex-direction: column; gap: 1.8cqh; width: 74%; }
.fc-list li {
  position: relative; padding-left: 9cqw; font-size: 3.8cqw; color: #ccfbf1;
  opacity: 0; transform: translateX(6cqw);
}
.fc-list li.in { animation: chipInR .55s cubic-bezier(.2, 1.3, .4, 1) forwards; }
@keyframes chipInR { to { opacity: 1; transform: none; } }
.fc-list li::before {
  content: "✓"; position: absolute; left: 0; top: -.3cqh;
  width: 6cqw; height: 6cqw; border-radius: 50%;
  background: #14b8a6; color: #042f2e; font-weight: 900; font-size: 3.6cqw;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   SCENE 9 · LOGO / END CARD
   ============================================================ */
#scene-logo { background: radial-gradient(130% 110% at 50% -10%, #1b2347 0%, #090d1e 55%, #04060f 100%); }
.cam-logo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqh; }
.e40-logo { display: flex; flex-direction: column; align-items: center; gap: 1.6cqh; margin-bottom: 2cqh; }
.e40-ring {
  width: 24cqw; height: 24cqw; border-radius: 50%;
  border: 1.4cqw solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 8cqw; font-weight: 900; color: var(--orange);
  animation: ringPulse 2s ease-in-out infinite;
  position: relative;
}
.e40-ring::before {
  content: ""; position: absolute; inset: -1.4cqw; border-radius: 50%;
  border: 1.4cqw solid transparent; border-top-color: rgba(251, 146, 60, .5);
  animation: spin 4s linear infinite;
}
@keyframes ringPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(251, 146, 60, .35); } 50% { box-shadow: 0 0 0 4cqw rgba(251, 146, 60, 0); } }
.e40-text { font-size: 4.2cqw; font-weight: 800; letter-spacing: .3em; color: #dbe2ff; }
.e40-text b { color: var(--orange); }
.end-title { font-size: 10cqw; font-weight: 900; text-align: center; line-height: 1.12; letter-spacing: .04em; animation: capIn 1s ease both .4s; opacity: 0; }
.end-sub  { font-size: 3.6cqw; color: #93a4d8; letter-spacing: .14em; animation: capIn 1s ease both .8s; opacity: 0; }
.end-know { margin-top: 2cqh; font-size: 5cqw; font-weight: 800; letter-spacing: .3em; color: var(--orange); animation: capIn 1s ease both 1.2s; opacity: 0; }
.replay-btn {
  margin-top: 4.5cqh; padding: 2cqh 9cqw; border: .5cqw solid rgba(251, 146, 60, .6);
  border-radius: 5cqw; background: rgba(251, 146, 60, .12); color: #ffd9b5;
  font-size: 4.4cqw; font-weight: 800; cursor: pointer;
  animation: capIn 1s ease both 1.7s, playPulse 1.4s ease-in-out 2.7s infinite alternate; opacity: 0;
}
.replay-btn:active { transform: scale(.94); }
.end-site { margin-top: 3cqh; font-size: 3.4cqw; color: #93a4d8; letter-spacing: .1em; animation: capIn 1s ease both 2.1s; opacity: 0; }
.end-copy { font-size: 2.7cqw; color: rgba(255,255,255,.4); animation: capIn 1s ease both 2.3s; opacity: 0; }

/* ============================================================
   START OVERLAY + MUTE
   ============================================================ */
.tap-overlay {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto;
  background: radial-gradient(120% 110% at 50% 0%, #171e3d 0%, #05070f 70%);
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.tap-overlay.gone { opacity: 0; visibility: hidden; }
.tap-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.6cqh; padding: 4cqh 8cqw; margin: auto; }
.tap-brand { font-size: 3.6cqw; font-weight: 800; letter-spacing: .34em; color: #93a4d8; }
.tap-brand b { color: var(--orange); }
.tap-card h1 { font-size: 11cqw; font-weight: 900; line-height: 1.1; letter-spacing: .04em; }
.tap-ep { font-size: 3.6cqw; color: #93a4d8; letter-spacing: .12em; }
#startBtn {
  margin-top: 3cqh; padding: 2.2cqh 10cqw; border: none; border-radius: 5cqw;
  background: linear-gradient(145deg, #fb923c, #ea580c); color: #24120a;
  font-size: 4.8cqw; font-weight: 900; cursor: pointer;
  box-shadow: 0 1.4cqh 4cqh rgba(249, 115, 22, .4);
  animation: playPulse 1.3s ease-in-out infinite alternate;
}
#startBtn:active { transform: scale(.94); }
.tap-card small { font-size: 2.9cqw; color: rgba(255,255,255,.5); }

/* shared-link tap-to-play card (?s=N&ep=M) */
.deep-card {
  display: flex; flex-direction: column; align-items: center; gap: .8cqh;
  width: 100%; padding: 2.4cqh 6cqw; border-radius: 3cqw; cursor: pointer;
  border: .4cqw solid rgba(249, 115, 22, .55);
  background: linear-gradient(160deg, rgba(249, 115, 22, .18), rgba(8, 12, 26, .6));
  color: #fff; box-shadow: 0 1.2cqh 3.5cqh rgba(249, 115, 22, .25);
}
.deep-card .dc-label { font-size: 2.8cqw; font-weight: 800; letter-spacing: .3em; color: #93a4d8; text-transform: uppercase; }
.deep-card .dc-ep { font-size: 3.2cqw; font-weight: 900; letter-spacing: .18em; color: var(--orange); }
.deep-card .dc-name { font-size: 5.2cqw; font-weight: 900; line-height: 1.15; }
.deep-card .dc-play {
  margin-top: .8cqh; padding: 1.4cqh 8cqw; border-radius: 5cqw;
  background: linear-gradient(145deg, #fb923c, #ea580c); color: #24120a;
  font-size: 4cqw; font-weight: 900;
}

.mute-btn {
  position: absolute; top: 2cqh; right: 3cqw; z-index: 40;
  width: 10cqw; height: 10cqw; border-radius: 50%;
  border: .4cqw solid rgba(255,255,255,.25); background: rgba(8, 12, 26, .7);
  color: #fff; font-size: 4.2cqw; cursor: pointer;
}

/* in-player controls (pause / exit) — top-left, mirrors .mute-btn */
.player-ctrls {
  position: absolute; top: 2cqh; left: 3cqw; z-index: 40;
  display: flex; gap: 2cqw;
}
.player-ctrls.hidden { display: none; }
.ctrl-btn {
  width: 10cqw; height: 10cqw; border-radius: 50%;
  border: .4cqw solid rgba(255,255,255,.25); background: rgba(8, 12, 26, .7);
  color: #fff; font-size: 3.8cqw; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ctrl-btn:active { transform: scale(.92); }
/* freeze every CSS animation while paused (timeline is frozen in JS) */
.stage.paused *, .stage.paused *::before, .stage.paused *::after {
  animation-play-state: paused !important;
}
.next-btn {
  background: linear-gradient(180deg,#f0a63a,#e0842a); color:#1a1205;
  border:none; font-weight:800;
}
