/* HustleMania – hustlemania.dev
   Night-purple arcade. Gold + pink come straight from the Bolt H logo; each level keeps its app's own colours.
   Motion that runs on its own is driven by the soundtrack's clock (see /assets/js/sequencer.js). */

@font-face { font-family: "Sofia Sans Condensed"; src: url(/assets/fonts/sofia-sans-condensed-italic.woff2) format("woff2"); font-style: italic; font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url(/assets/fonts/press-start-2p.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url(/assets/fonts/rubik-hebrew.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  --night-0: #07040F;
  --night-1: #0B0618;
  --night-2: #140A2C;
  --night-3: #1C0F3D;
  --violet: #3A1C78;
  --pink: #FF2E88;
  --pink-d: #B0125C;
  --gold-1: #FFF04D;
  --gold-2: #FFD10A;
  --gold-3: #FFA800;
  --gold: linear-gradient(#FFF04D, #FFD10A 60%, #FFA800);
  --ink: #F4F0FF;
  --ink-2: #CBC2EA;
  --ink-3: #9D93C4;
  --line: rgba(255, 255, 255, .12);
  --green: #3DD68C;
  --blue: #2563EB;
  --blue-hi: #8DB4FF;
  --citron: #FFE53B;
  --graphite: #15161A;
  --f-display: "Sofia Sans Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif-condensed, sans-serif;
  --f-body: "Barlow", "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-he: "Rubik", "Barlow", system-ui, sans-serif;
  --f-px: "Press Start 2P", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1); /* arcade overshoot: title-screen slam, letter drop, TV focus */
  --ease-quint: cubic-bezier(.22, 1, .36, 1);
  --hud-h: 64px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hud-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--night-1);
  color: var(--ink);
  font: 400 18px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; border-radius: 8px; }
[lang="he"] { font-family: var(--f-he); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 10px; background: var(--gold-2); color: var(--night-3); font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* Film grain over everything: the VHS night feel. */
body::after {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: 90;
  pointer-events: none;
  background: url(/assets/img/grain.png);
  opacity: .5;
  mix-blend-mode: overlay;
  animation: grain 1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-37px, 21px); }
  40% { transform: translate(18px, -44px); }
  60% { transform: translate(-25px, -12px); }
  80% { transform: translate(41px, 30px); }
  100% { transform: translate(0, 0); }
}

/* Pixel-font label: arcade HUD language, used only for short game words. */
.px-label {
  margin: 0 0 18px;
  font: 12px/1.6 var(--f-px);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ───────────── HUD ───────────── */
.hud {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.hud.is-scrolled {
  background: rgba(11, 6, 24, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.hud-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--hud-h);
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hud-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.hud-mark { width: 34px; height: 31px; overflow: visible; }
.hud-name {
  font: italic 900 23px/1 var(--f-display);
  letter-spacing: .01em;
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(2px 2px 0 var(--pink));
}
.hud-score { display: flex; align-items: baseline; gap: 8px; font: 10px/1 var(--f-px); white-space: nowrap; }
.hud-k { color: var(--pink); }
.hud-k-hi { margin-inline-start: 14px; }
.hud-v { color: #fff; min-width: 6ch; }
.hud-score.is-bump .hud-v:first-of-type { color: var(--gold-1); }
.hud-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.hud-nav a { color: var(--ink-2); text-decoration: none; font: 600 15px/1 var(--f-body); padding: 8px 0; transition: color .15s; }
.hud-nav a:hover { color: var(--gold-1); }
.hud-end { display: flex; align-items: center; gap: 16px; }
.hud-credit { font: 10px/1 var(--f-px); color: var(--ink-3); white-space: nowrap; }
.hud-credit b { font-weight: 400; color: var(--gold-1); }
.sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .04);
  font: 600 14px/1 var(--f-body);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.sound-btn:hover { border-color: rgba(255, 255, 255, .45); }
.sound-btn[aria-pressed="true"] { color: var(--gold-1); border-color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-2), 0 0 28px rgba(255, 209, 10, .22); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { display: block; width: 3px; height: 100%; border-radius: 1px; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.18); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease-out); }
.menu-btn i:first-child { top: 15px; }
.menu-btn i:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ───────────── Hero ───────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--hud-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) 150px;
  background: radial-gradient(120% 85% at 50% 18%, #3A1C78 0%, #1C0F3D 42%, #0B0618 78%);
}
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-glow {
  position: absolute;
  inset: auto 0 0;
  z-index: -2;
  height: 55%;
  pointer-events: none;
  background: radial-gradient(70% 80% at 50% 100%, rgba(255, 46, 136, .42), rgba(255, 46, 136, .08) 55%, transparent 75%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -4vh; }
.lockup { display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1.6vw, 24px); margin: 0; }
.mark { width: clamp(150px, 23vw, 320px); height: auto; overflow: visible; }
.wordmark { width: clamp(220px, 34vw, 470px); height: auto; overflow: visible; }
.mk-body, .mk-x1, .mk-x2, .mk-streak, .wm-g { transform-box: fill-box; }
.mk-streak { transform-origin: 100% 50%; }
.mk-flash { opacity: 0; }
.wm-x2 { fill: var(--pink-d); opacity: .6; }
.wm-x1 { fill: var(--pink); }
.wm-f { fill: url(#g-face); }
.hero-tag { margin: clamp(22px, 3.4vh, 40px) 0 8px; font: 600 clamp(23px, 2.7vw, 34px)/1.15 var(--f-body); color: #fff; letter-spacing: -.005em; text-wrap: balance; }
.hero-sub { margin: 0; font: 500 clamp(16px, 1.4vw, 19px)/1.4 var(--f-body); color: var(--ink-2); }
.hero-ctas { margin-top: clamp(30px, 4.4vh, 48px); display: flex; flex-direction: column; align-items: center; gap: 14px; }

.coin-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 34px 0 22px;
  border: 0;
  border-radius: 18px;
  background: var(--gold);
  color: var(--night-3);
  font: 16px/1 var(--f-px);
  text-transform: uppercase;
  box-shadow: 0 6px 0 var(--pink-d), 0 18px 46px -8px rgba(255, 46, 136, .6);
  transition: transform .08s, box-shadow .08s;
}
.coin-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--pink-d), 0 22px 54px -8px rgba(255, 46, 136, .7); }
.coin-btn:active, .coin-btn.is-down { transform: translateY(5px); box-shadow: 0 1px 0 var(--pink-d), 0 10px 26px -8px rgba(255, 46, 136, .6); }
.coin-slot { position: relative; width: 14px; height: 32px; border-radius: 5px; background: var(--night-3); box-shadow: inset 0 3px 0 rgba(0, 0, 0, .45); overflow: visible; }
.coin {
  position: absolute;
  left: 50%;
  top: -38px;
  width: 26px;
  height: 26px;
  margin-left: -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF7A8, #FFD10A 45%, #E08E00);
  box-shadow: inset 0 0 0 3px rgba(176, 18, 92, .35);
  opacity: 0;
  pointer-events: none;
}
.coin.is-dropping { animation: coin-drop .42s cubic-bezier(.55, 0, .9, .4) forwards; }
@keyframes coin-drop {
  0% { opacity: 1; transform: translateY(-26px) scaleX(1); }
  55% { opacity: 1; transform: translateY(10px) scaleX(.22); }
  100% { opacity: 0; transform: translateY(40px) scaleX(.12); }
}
.coin-label { transition: opacity .06s; }
.coin-btn.is-blink .coin-label { opacity: .28; }
.coin-note { margin: 0; font: 500 14px/1.3 var(--f-body); color: var(--ink-3); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 10px/1 var(--f-px);
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.scroll-cue svg { width: 22px; height: 22px; animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ───────────── Section heads ───────────── */
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5.5vw, 72px); }
.sec-title {
  margin: 0;
  font: italic 900 clamp(46px, 6.6vw, 92px)/.92 var(--f-display);
  color: #fff;
  letter-spacing: .005em;
  text-shadow: .045em .045em 0 var(--pink);
  text-wrap: balance;
}
.sec-lead { margin: 22px 0 0; max-width: 54ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }

/* ───────────── Select your app ───────────── */
.select {
  padding-block: clamp(84px, 9vw, 130px);
  background: radial-gradient(60% 50% at 50% 0%, rgba(58, 28, 120, .55), transparent 70%), linear-gradient(var(--night-1), #10082A 50%, var(--night-1));
}
.roster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.fighter {
  --fc: #6B5FA0;
  --fc-hi: #B9AEE6;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 22px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .35s var(--ease-quint), border-color .2s, box-shadow .3s;
}
.f-remote { --fc: #2563EB; --fc-hi: #8DB4FF; }
.f-glp { --fc: #FFE53B; --fc-hi: #FFF08A; }
.f-egg { --fc: #FF8A2A; --fc-hi: #FFC48A; }
/* Flipsong's card: split down the seam like Flippy, cyan on the left and pink on the right. */
.f-flip { --fc: #FF4FA3; --fc-hi: #FF8CC2; }
.f-flip::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: linear-gradient(90deg, #3EEDE6, #FF4FA3); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .25s; pointer-events: none; }
.f-flip:hover, .f-flip:focus-within, .f-flip.is-selected { border-color: transparent; box-shadow: -18px 30px 70px -34px #3EEDE6, 18px 30px 70px -34px #FF4FA3; }
.f-flip:hover::before, .f-flip:focus-within::before, .f-flip.is-selected::before { opacity: 1; }
.flip-portrait {
  position: relative;
  background:
    radial-gradient(circle at 50% 56%, rgba(255, 255, 255, .14), transparent 40%),
    linear-gradient(90deg, rgba(62, 237, 230, .3), rgba(62, 237, 230, .04) 50%, rgba(255, 79, 163, .05) 50%, rgba(255, 79, 163, .32)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px),
    rgba(0, 0, 0, .25);
}
.flip-portrait::after { content: ""; position: absolute; top: 10%; bottom: 10%; left: 50%; width: 2px; translate: -50% 0; background: linear-gradient(transparent, rgba(255, 255, 255, .9), transparent); }
.flip-portrait .f-icon { position: relative; z-index: 1; }
.fp-eq { position: absolute; top: 50%; translate: 0 -50%; display: flex; align-items: center; gap: 4px; height: 44%; }
.fp-eq-l { left: 7%; }
.fp-eq-r { right: 7%; flex-direction: row-reverse; }
.fp-eq i { width: 4px; border-radius: 4px; height: calc(var(--h) * (.72 + var(--bob, 0) * .28)); }
.fp-eq-l i { background: #3EEDE6; box-shadow: 0 0 8px rgba(62, 237, 230, .6); }
.fp-eq-r i { background: #FF4FA3; box-shadow: 0 0 8px rgba(255, 79, 163, .6); }
.fp-eq i:nth-child(1) { --h: 30%; } .fp-eq i:nth-child(2) { --h: 62%; } .fp-eq i:nth-child(3) { --h: 44%; }
.fp-eq i:nth-child(4) { --h: 88%; } .fp-eq i:nth-child(5) { --h: 56%; } .fp-eq i:nth-child(6) { --h: 100%; }
.f-name .f-game { display: block; font: italic 900 34px/1.05 var(--f-display); color: #fff; text-transform: uppercase; }
.f-store { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; position: relative; z-index: 3; }
.f-store:hover { color: #fff; }
.fighter:hover, .fighter:focus-within, .fighter.is-selected {
  transform: translateY(-8px);
  border-color: var(--fc);
  box-shadow: 0 0 0 2px var(--fc), 0 30px 70px -28px var(--fc);
}
.f-player { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 2; font: 11px/1 var(--f-px); color: var(--fc-hi); }
.fighter:hover .f-player, .fighter:focus-within .f-player, .fighter.is-selected .f-player { animation: blink-hard .5s steps(1) infinite; }
@keyframes blink-hard { 50% { opacity: 0; } }
.f-portrait {
  display: grid;
  place-items: center;
  aspect-ratio: 1.35;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--fc) 42%, transparent), transparent 62%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px),
    rgba(0, 0, 0, .25);
  overflow: hidden;
}
.f-icon { width: 44%; height: auto; border-radius: 22.5%; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); transform: translateY(calc(var(--bob, 0) * -7px)); }
.f-q { font: 64px/1 var(--f-px); color: var(--ink-3); text-shadow: 4px 4px 0 var(--night-3); animation: glitch 2.4s steps(1) infinite; }
@keyframes glitch {
  0%, 86%, 100% { transform: none; color: var(--ink-3); }
  88% { transform: translate(-3px, 1px); color: var(--pink); }
  91% { transform: translate(3px, -2px); color: var(--gold-1); }
  94% { transform: translate(-1px, 0); color: var(--ink-3); }
}
.f-name { margin: 0; }
.f-link { display: block; color: inherit; text-decoration: none; }
.f-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.f-link:focus-visible { outline: none; }
.fighter:has(.f-link:focus-visible) { outline: 3px solid var(--gold-1); outline-offset: 4px; }
.f-name .he { display: block; font: 700 32px/1.1 var(--f-he); color: #fff; text-align: left; }
[dir="rtl"] .f-name .he { text-align: right; }
.f-en { display: block; margin-top: 4px; font: 600 15px/1.2 var(--f-body); color: var(--ink-3); }
.f-locked .f-en { font: italic 900 30px/1 var(--f-display); color: #fff; margin: 0; }
.f-desc { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); }
.f-stats { margin: 0; display: grid; }
.f-stats div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px dashed rgba(255, 255, 255, .14); }
.f-stats dt { font: 9px/1.4 var(--f-px); text-transform: uppercase; color: var(--ink-3); }
.f-stats dd { margin: 0; font: 600 15px/1.2 var(--f-body); color: #fff; text-align: end; }
.f-stats .ok { color: var(--green); }
.f-stats .soon { color: var(--gold-1); }
.f-stats .locked { color: var(--ink-3); }
.f-cta { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 10px; font: 11px/1 var(--f-px); text-transform: uppercase; color: var(--fc-hi); }
.f-cta::before { content: ""; width: 9px; height: 12px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
[dir="rtl"] .f-cta::before { transform: scaleX(-1); }
.f-locked .f-portrait { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px), rgba(0, 0, 0, .35); }

/* ───────────── Levels (shared) ───────────── */
.level { padding-block: clamp(84px, 9vw, 130px); overflow: hidden; }
.level-remote {
  --accent: #8DB4FF;
  --accent-deep: #2563EB;
  background:
    radial-gradient(70% 55% at 78% 34%, rgba(37, 99, 235, .3), transparent 70%),
    linear-gradient(var(--night-1), #050A1D 16%, #050A1D 84%, var(--night-1));
}
.level-glp {
  --accent: #FFE53B;
  --accent-deep: #FFE53B;
  background:
    radial-gradient(65% 55% at 70% 40%, rgba(255, 229, 59, .12), transparent 70%),
    linear-gradient(var(--night-1), #131418 16%, #15161A 84%, var(--night-1));
}
.level-banner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 24px; margin-bottom: clamp(40px, 5vw, 70px); }
.lv-num { width: 100%; margin: 0; color: var(--accent); }
.lv-title { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; font-weight: 400; }
.lv-icon { width: clamp(56px, 6vw, 80px); height: auto; border-radius: 22.5%; box-shadow: 0 14px 36px rgba(0, 0, 0, .5); }
.lv-title .he { font: 800 clamp(42px, 5.6vw, 76px)/1 var(--f-he); color: #fff; }
.lv-en { font: italic 900 clamp(24px, 2.5vw, 34px)/1 var(--f-display); color: var(--ink-3); }
.lv-tag {
  margin: 0 0 0 auto;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font: 10px/1 var(--f-px);
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.level-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 6vw, 88px); }
.level-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head perks" "lead perks" "cta perks" "fine perks"; column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.level-copy .lv-head { grid-area: head; }
.level-copy .lv-lead { grid-area: lead; }
.level-copy .cta-row { grid-area: cta; }
.level-copy .fine { grid-area: fine; }
.level-copy .perks { grid-area: perks; margin: 6px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.lv-head { margin: 0 0 18px; font: italic 900 clamp(34px, 3.7vw, 50px)/.98 var(--f-display); color: #fff; text-wrap: balance; }
.lv-lead { margin: 0 0 28px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.perks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.perks li { position: relative; padding-inline-start: 30px; color: var(--ink-2); line-height: 1.5; }
.perks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .5em; width: 10px; height: 10px; background: var(--accent); box-shadow: 3px 3px 0 var(--pink); }
.perks strong { font-weight: 600; color: #fff; }
.pro { display: inline-block; padding: 4px 7px 3px; border-radius: 6px; background: var(--accent); color: #111; font: 9px/1 var(--f-px); vertical-align: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 15px;
  font: 600 16px/1.1 var(--f-body);
  text-decoration: none;
  transition: transform .1s, box-shadow .1s, border-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gold { background: var(--gold); color: var(--night-3); box-shadow: 0 5px 0 var(--pink-d); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--pink-d); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-d); }
.btn-line { border: 1px solid rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .03); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-soon { border: 1px dashed rgba(255, 255, 255, .28); color: var(--ink-3); cursor: default; }
.btn-big { min-height: 64px; padding: 0 32px; font-size: 19px; border-radius: 18px; }
.fine { margin: 0; max-width: 62ch; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* Playground chrome */
.playground { position: relative; }
.pg-badge { position: absolute; top: -30px; inset-inline-start: 2px; z-index: 6; font: 10px/1 var(--f-px); text-transform: uppercase; }
.pg-demo { color: var(--gold-1); }
.pg-demo.is-blink { opacity: .25; }
.pg-p1 { display: none; color: var(--green); }
.playground.is-player .pg-demo { display: none; }
.playground.is-player .pg-p1 { display: inline; }
.ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  border: 2px solid rgba(255, 255, 255, .75);
  box-shadow: 0 0 22px rgba(255, 255, 255, .45);
  pointer-events: none;
  opacity: 0;
  transition: transform .42s var(--ease-out), opacity .3s, scale .12s;
}
.ghost.is-on { opacity: .85; }
.ghost.is-tap { scale: .72; }

/* ───────────── Level 1: TV + remote ───────────── */
.pg-remote { display: grid; grid-template-columns: minmax(0, 1fr) 262px; gap: clamp(28px, 4vw, 56px); align-items: center; }
.tv-col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.tv { position: relative; }
.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #03050d;
  container-type: inline-size;
  box-shadow:
    0 0 0 9px #101016,
    0 0 0 10px rgba(255, 255, 255, .09),
    0 40px 90px -30px rgba(37, 99, 235, .6),
    0 0 140px -30px rgba(37, 99, 235, var(--tv-glow, .45));
}
.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px),
    radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55)),
    linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 38%);
}
.tv-foot { width: 32%; height: 12px; margin: 18px auto 0; border-radius: 0 0 12px 12px; background: linear-gradient(#22222c, #0b0b10); }
.tv-crt { position: absolute; inset: 0; transform-origin: 50% 50%; }
.tv-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .22s; }
.tv-layer.is-on { opacity: 1; }
.tv-home { display: flex; flex-direction: column; gap: 3cqw; padding: 5cqw; background: radial-gradient(120% 95% at 85% 0%, #1F3C8F, #070B1A 62%); }
.tv-home-title { margin: 0; font: 700 4.6cqw/1 var(--f-he); color: #fff; }
.tv-tiles { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2cqw; }
.tile {
  display: flex;
  align-items: flex-end;
  padding: 1.8cqw 2.2cqw;
  border-radius: 1.6cqw;
  font: 600 2.9cqw/1 var(--f-he);
  color: #fff;
  background: var(--tg);
  transition: transform .2s var(--ease-pop), box-shadow .2s;
}
.t0 { --tg: linear-gradient(135deg, #FF2E88, #6A1FC9); }
.t1 { --tg: linear-gradient(135deg, #2563EB, #0B2A6B); }
.t2 { --tg: linear-gradient(135deg, #10B981, #065F46); }
.t3 { --tg: linear-gradient(135deg, #FFB020, #E8590C); }
.t4 { --tg: linear-gradient(135deg, #A855F7, #3B0764); }
.t5 { --tg: linear-gradient(135deg, #64748B, #1E293B); }
.tile.is-focus { transform: scale(1.07); box-shadow: 0 0 0 .55cqw #fff, 0 1.4cqw 3.4cqw rgba(0, 0, 0, .55); }
.tv-open { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4cqw; background: var(--tg, #111); }
.tv-open-title { font: 800 9cqw/1 var(--f-he); color: #fff; text-shadow: 0 .6cqw 2cqw rgba(0, 0, 0, .35); }
.tv-open-play { width: 5.4cqw; height: 6.8cqw; background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); filter: drop-shadow(0 .5cqw 1.4cqw rgba(0, 0, 0, .35)); }
.tv-channel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw; background: var(--chg, #111); }
.tv-channel[data-ch="11"] { --chg: radial-gradient(circle at 30% 30%, #3B82F6, #0B1F4D); }
.tv-channel[data-ch="12"] { --chg: radial-gradient(circle at 70% 30%, #FF2E88, #3A0A24); }
.tv-channel[data-ch="13"] { --chg: radial-gradient(circle at 30% 70%, #F59E0B, #3D2004); }
.tv-channel[data-ch="14"] { --chg: radial-gradient(circle at 70% 70%, #22C55E, #062A14); }
.tv-ch-num { font: 15cqw/1 var(--f-px); color: #fff; text-shadow: .6cqw .6cqw 0 rgba(0, 0, 0, .4); }
.tv-ch-name { font: 700 4cqw/1 var(--f-he); color: rgba(255, 255, 255, .85); }
.tv-static { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; image-rendering: pixelated; pointer-events: none; }
.tv-static.is-on { opacity: 1; }
.osd { position: absolute; z-index: 5; opacity: 0; transition: opacity .18s; font: 2.1cqw/1 var(--f-px); color: #fff; pointer-events: none; }
.osd.is-on { opacity: 1; }
.osd-vol { inset-inline: 7cqw; bottom: 5.5cqw; display: flex; align-items: center; gap: 2cqw; padding: 1.7cqw 2.2cqw; border-radius: 1.2cqw; background: rgba(4, 6, 14, .72); direction: ltr; }
.osd-bars { flex: 1; display: flex; gap: .55cqw; height: 2.3cqw; }
.osd-bars i { flex: 1; background: rgba(255, 255, 255, .16); }
.osd-bars i.on { background: var(--gold-1); box-shadow: 0 0 1cqw rgba(255, 240, 77, .6); }
.osd-n { min-width: 5ch; text-align: end; }
.osd-mute { top: 4.4cqw; inset-inline-end: 4.4cqw; display: flex; align-items: center; gap: 1.2cqw; padding: 1.4cqw 1.8cqw; border-radius: 1cqw; background: rgba(4, 6, 14, .72); }
.osd-mute svg { width: 3.4cqw; height: 3.4cqw; }
.tv-off { position: absolute; inset: 0; z-index: 8; background: #000; opacity: 0; pointer-events: none; transition: opacity .2s .25s; }
.tv.is-off .tv-off { opacity: 1; }
.tv.is-off .tv-crt { animation: crt-off .42s cubic-bezier(.7, 0, .84, 0) forwards; }
.tv.is-booting .tv-crt { animation: crt-on .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes crt-off {
  0% { transform: scale(1, 1); filter: brightness(1); }
  45% { transform: scale(1, .008); filter: brightness(4); }
  75% { transform: scale(.18, .008); filter: brightness(6); }
  100% { transform: scale(0, 0); filter: brightness(8); }
}
@keyframes crt-on {
  0% { transform: scale(0, .008); filter: brightness(6); }
  40% { transform: scale(1, .008); filter: brightness(4); }
  100% { transform: scale(1, 1); filter: brightness(1); }
}

.phone { position: relative; padding: 9px; border-radius: 46px; background: linear-gradient(150deg, #33333d, #0c0c11 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(0, 0, 0, .85); }
.phone-screen { position: relative; overflow: hidden; border-radius: 37px; aspect-ratio: 9 / 19.5; background: #0b0d12; }
.remote-ui { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 18px 14px 20px; background: radial-gradient(120% 55% at 50% 0%, #1A2852, #0B0D12 62%); }
.r-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; font: 500 10.5px/1 var(--f-he); color: #C8D2E6; }
.r-gear svg { display: block; width: 18px; height: 18px; color: #8E9AB5; }
.r-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; border: 1px solid rgba(61, 214, 140, .5); background: rgba(61, 214, 140, .08); color: var(--green); white-space: nowrap; }
.r-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.r-pro { padding: 5px 8px; border-radius: 999px; border: 1px solid rgba(141, 180, 255, .5); color: var(--blue-hi); font: 700 10.5px/1 var(--f-body); }
.r-btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #E8ECF6;
  background: radial-gradient(circle at 50% 28%, #2C3242, #141821);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 7px 16px rgba(0, 0, 0, .55);
  transition: transform .08s, box-shadow .15s, background .2s;
}
.r-btn svg { width: 22px; height: 22px; }
.r-btn:active, .r-btn.is-down, .r-ok:active, .r-ok.is-down, .r-arrow.is-down, .r-fav.is-down { transform: scale(.9); }
.r-power { width: 62px; height: 62px; color: #fff; background: radial-gradient(circle at 50% 28%, #FF6A6F, #A3141C); box-shadow: 0 0 26px rgba(229, 72, 77, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.r-power.is-off-state { box-shadow: 0 0 10px rgba(229, 72, 77, .3), inset 0 1px 0 rgba(255, 255, 255, .25); filter: saturate(.7) brightness(.85); }
.r-vol { display: flex; gap: 14px; }
.r-mute.is-active { color: #FF8A8F; background: radial-gradient(circle at 50% 28%, #6B1A26, #300B12); }
.r-dpad { position: relative; width: 172px; height: 172px; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #252B3B, #0F121A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 12px 26px rgba(0, 0, 0, .55); }
.r-arrow { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; background: transparent; color: #A9B3C9; transition: transform .08s, color .15s; }
.r-arrow svg { width: 20px; height: 20px; }
.r-arrow:hover { color: #fff; }
.r-up { top: 4px; left: 50%; translate: -50% 0; }
.r-down { bottom: 4px; left: 50%; translate: -50% 0; }
.r-left { left: 4px; top: 50%; translate: 0 -50%; }
.r-right { right: 4px; top: 50%; translate: 0 -50%; }
.r-ok { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 68px; height: 68px; padding: 0; border: 0; border-radius: 50%; color: #fff; font: 700 15px/1 var(--f-body); background: radial-gradient(circle at 50% 28%, #5B95FF, #1D4ED8); box-shadow: 0 0 26px rgba(37, 99, 235, .65), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .08s; }
.r-nav { display: flex; gap: 44px; }
.r-small { width: 46px; height: 46px; }
.r-small svg { width: 19px; height: 19px; }
.r-favs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.r-fav { height: 40px; padding: 0; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .045); color: #DFE5F2; font: 600 13px/1 var(--f-he); transition: transform .08s, border-color .2s; }
.r-fav.is-current { border-color: rgba(141, 180, 255, .6); color: #fff; }
.pg-note { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.pg-note strong { font-weight: 600; color: #fff; }

.steps { margin-top: clamp(84px, 10vw, 140px); }
.steps-title { margin: 0 0 30px; font: italic 900 clamp(30px, 3.2vw, 42px)/1 var(--f-display); color: #fff; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { display: flex; align-items: flex-start; gap: 18px; padding: 18px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); transition: border-color .35s, background-color .35s, transform .35s var(--ease-out); }
.step.is-active { border-color: rgba(141, 180, 255, .55); background: rgba(37, 99, 235, .1); transform: translateY(-5px); }
.mini-phone { flex: 0 0 104px; padding: 5px; border-radius: 19px; background: #101015; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 30px -14px rgba(0, 0, 0, .8); }
.mini-phone img { display: block; width: 100%; height: auto; border-radius: 14px; }
.step-n { font: 12px/1 var(--f-px); color: var(--gold-1); }
.step h4 { margin: 10px 0 6px; font: 700 19px/1.2 var(--f-body); color: #fff; }
.step p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* ───────────── Level 2: Sheva ring ───────────── */
.pg-glp { display: grid; grid-template-columns: minmax(0, 460px) 252px; justify-content: center; gap: clamp(40px, 8vw, 120px); align-items: center; }
.ring-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ring-wrap { position: relative; width: min(100%, 420px); aspect-ratio: 1; }
.ring { display: block; width: 100%; height: 100%; overflow: visible; }
.day { cursor: pointer; outline: none; }
.day-hit { fill: none; stroke: transparent; stroke-width: 44; pointer-events: stroke; }
.day-out { fill: none; stroke: var(--graphite); stroke-width: 26; stroke-linecap: round; transition: stroke .2s; }
.day-arc { fill: none; stroke: #4A4C53; stroke-width: 15; stroke-linecap: round; transition: stroke .5s, filter .5s; }
.day.is-today .day-arc { stroke: #F1F1EE; }
.day.is-lit .day-arc { stroke: var(--citron); filter: drop-shadow(0 0 6px rgba(255, 229, 59, .85)); transition: stroke .04s, filter .04s; }
.day.is-logged .day-arc { stroke: var(--citron); }
.day:focus-visible .day-out { stroke: #fff; }
.day:hover .day-arc { stroke: #8A8C93; }
.day.is-lit:hover .day-arc, .day.is-logged:hover .day-arc { stroke: var(--citron); }
.sheva { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(calc(1 + var(--kick, 0) * .035)); }
.sheva-eyes { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .07s; }
.sheva.is-blink .sheva-eyes { transform: scaleY(.12); }
.sheva-happy { opacity: 0; }
.ring-wrap.is-happy .sheva-happy { opacity: 1; }
.ring-wrap.is-happy .sheva-eyes { opacity: 0; }
.day-labels { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.day-labels li { position: absolute; translate: -50% -50%; font: 600 15px/1 var(--f-he); color: #8E9097; transition: color .2s; }
.day-labels li.is-lit { color: var(--citron); }
.dl0 { left: 71.16%; top: 6.04%; }
.dl1 { left: 97.56%; top: 39.13%; }
.dl2 { left: 88.15%; top: 80.41%; }
.dl3 { left: 50.01%; top: 98.79%; }
.dl4 { left: 11.86%; top: 80.43%; }
.dl5 { left: 2.43%; top: 39.15%; }
.dl6 { left: 28.82%; top: 6.05%; }
.log-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--citron);
  color: var(--graphite);
  font: 700 20px/1 var(--f-he);
  box-shadow: 0 5px 0 #A68D00, 0 18px 40px -12px rgba(255, 229, 59, .55);
  transition: transform .08s, box-shadow .08s, background-color .2s, color .2s;
}
.log-btn svg { width: 22px; height: 22px; }
.log-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #A68D00; }
.log-btn.is-done { background: #26282D; color: var(--citron); box-shadow: 0 5px 0 #000; }
.ring-note { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-3); text-align: center; }
.toast {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 7;
  translate: -50% -14px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--graphite);
  font: 600 17px/1 var(--f-he);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, translate .4s var(--ease-quint);
}
.toast.is-on { opacity: 1; translate: -50% 0; }
.glp-phone { width: 100%; }
.phone-glp .phone-screen { aspect-ratio: 645 / 1398; background: #F6F6F3; }
.slides { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateX(10%); transition: opacity .45s, transform .55s var(--ease-out); }
.slide.is-active { opacity: 1; transform: none; }
.slide.is-out { opacity: 0; transform: translateX(-10%); }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-ui { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 14px; }
.c-btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: #fff; transition: border-color .2s, color .2s; }
.c-btn:hover { border-color: var(--citron); color: var(--citron); }
.c-btn svg { width: 18px; height: 18px; }
.c-caption { flex: 1; margin: 0; font: 600 14px/1.3 var(--f-body); color: var(--ink-2); text-align: center; }

/* ───────────── Level 3: Hand Egg ───────────── */
.level-egg {
  --accent: #FFC48A;
  --accent-deep: #FF8A2A;
  background:
    radial-gradient(60% 45% at 62% 46%, rgba(61, 214, 140, .16), transparent 70%),
    radial-gradient(55% 50% at 20% 20%, rgba(255, 138, 42, .14), transparent 70%),
    linear-gradient(var(--night-1), #120A26 16%, #140A2C 84%, var(--night-1));
}
.lv-title .lv-game { font: italic 900 clamp(46px, 6vw, 82px)/.95 var(--f-display); color: #fff; text-transform: uppercase; }
.pg-egg { display: grid; justify-items: center; gap: clamp(36px, 4vw, 56px); }
.egg-stage { width: min(100%, 760px); display: grid; gap: 14px; }
.egg-board {
  --kick: 0;
  display: flex; align-items: stretch; gap: 0;
  border-radius: 12px; overflow: hidden;
  font: 11px/1 var(--f-px); text-transform: uppercase;
  background: #0B0820;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 calc(var(--kick) * 26px) rgba(255, 138, 42, calc(var(--kick) * .55));
}
.egg-board > span { display: flex; align-items: center; padding: 12px 14px; white-space: nowrap; }
.eb-net { background: #FFD10A; color: #0B0820; gap: 8px; }
.eb-net i { font-style: normal; font-size: 8px; padding: 3px 5px; border-radius: 4px; background: #0B0820; color: #FF5A5A; }
.eb-down { background: #FF8A2A; color: #0B0820; min-width: 9.5em; justify-content: center; }
.eb-ball { flex: 1; color: var(--ink-2); }
.eb-score { background: #2563EB; color: #fff; min-width: 4.2em; justify-content: center; font-size: 15px; }
.egg-board.is-td .eb-down { background: #3DD68C; animation: blink-hard .25s steps(1) 4; }
.phone-egg { border-radius: 34px; }
.phone-egg .phone-screen { aspect-ratio: 1200 / 552; border-radius: 26px; background: #0B0820; }
.egg-flash {
  position: absolute; inset: 0; z-index: 3; margin: 0;
  display: grid; place-items: center;
  font: italic 900 clamp(44px, 9vw, 108px)/1 var(--f-display); text-transform: uppercase;
  color: #FFF04D; text-shadow: 0 6px 0 #B0125C, 0 0 40px rgba(255, 138, 42, .8);
  opacity: 0; transform: scale(.6) rotate(-6deg); pointer-events: none;
  background: radial-gradient(closest-side, rgba(11, 8, 32, .55), transparent);
}
.egg-flash.is-on { animation: egg-flash 1.3s var(--ease-pop) forwards; }
@keyframes egg-flash {
  0% { opacity: 0; transform: scale(.6) rotate(-6deg); }
  18% { opacity: 1; transform: scale(1.06) rotate(-4deg); }
  78% { opacity: 1; transform: scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: scale(1.1) rotate(-4deg); }
}
.egg-pick { display: grid; justify-items: center; gap: 14px; width: min(100%, 760px); }
.egg-pick-label { margin: 0; color: var(--accent); }
.egg-heads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 24px); width: 100%; }
.egg-head {
  --bob: 0;
  width: 100%; display: grid; justify-items: center; gap: 8px;
  padding: 14px 8px 12px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  color: var(--ink-2); font: 600 15px/1.2 var(--f-body); cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.egg-head img { width: min(100%, 120px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .45)); transform: translateY(calc(var(--bob) * -8px)) rotate(calc(var(--bob) * -3deg)); }
.egg-head:hover { border-color: rgba(255, 196, 138, .5); color: #fff; }
.egg-head[aria-pressed="true"] { border-color: #FF8A2A; background: rgba(255, 138, 42, .1); color: #fff; box-shadow: 0 0 0 2px #FF8A2A; }
.egg-head[aria-pressed="true"] span::before { content: "P1 "; font: 9px/1 var(--f-px); color: #FFC48A; }
.egg-head:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; }
.egg-head.is-cheer img { animation: egg-hop .5s var(--ease-pop); }
@keyframes egg-hop { 40% { transform: translateY(-22px) scale(1.08) rotate(-6deg); } }

/* ───────────── Continue? ───────────── */
.continue { padding-block: clamp(110px, 14vw, 200px); text-align: center; background: radial-gradient(60% 55% at 50% 42%, rgba(255, 46, 136, .2), transparent 70%), var(--night-0); }
.cont-inner { display: flex; flex-direction: column; align-items: center; }
.cont-title { margin: 0; font: italic 900 clamp(68px, 13.5vw, 190px)/.88 var(--f-display); letter-spacing: .005em; }
.cont-word {
  display: inline-block;
  padding: 0 .08em .06em;
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(.045em .045em 0 var(--pink)) drop-shadow(.03em .03em 0 var(--pink-d));
}
.continue.is-over .cont-word { background: linear-gradient(#FF8AC0, #FF2E88 60%, #B0125C); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(.045em .045em 0 #3A0A24); }
.countdown { min-height: 1em; margin: 18px 0 30px; font: clamp(52px, 8vw, 104px)/1 var(--f-px); color: #fff; text-shadow: 0 0 28px rgba(255, 46, 136, .65); }
.countdown.is-tick { animation: tick .3s var(--ease-out); }
@keyframes tick { from { transform: scale(1.25); } }
.cont-lead { max-width: 34ch; margin: 0 auto 32px; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; color: var(--ink-2); }
.cont-mail { margin: 22px 0 0; font: 12px/1.6 var(--f-px); color: var(--ink-3); -webkit-user-select: all; user-select: all; }

/* ───────────── Credits ───────────── */
.credits { padding: clamp(80px, 10vw, 120px) 0 calc(56px + env(safe-area-inset-bottom, 0px)); background: var(--night-0); border-top: 1px solid rgba(255, 255, 255, .06); }
.credits-title { text-align: center; color: var(--gold-1); margin-bottom: 34px; }
.roll { display: grid; gap: 12px; max-width: 700px; margin: 0 auto 70px; }
.roll div { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: baseline; }
.roll dt { text-align: end; font-size: 15px; color: var(--ink-3); }
.roll dd { margin: 0; font-weight: 600; color: #fff; }
.roll a { color: var(--gold-1); text-decoration-color: rgba(255, 240, 77, .4); text-underline-offset: 3px; }
.cheat { font: 600 15px/1.6 var(--f-body); color: var(--ink-2) !important; word-spacing: .2em; }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 72px; margin-bottom: 44px; }
.legal-app { margin: 0 0 10px; font-weight: 600; color: #fff; text-align: center; }
.legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
.legal a { color: var(--ink-2); font-size: 15px; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-1); }
.credits .fine { margin: 0 auto 10px; text-align: center; }
.game-over-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; margin: 34px 0 0; font-size: 14px; color: var(--ink-3); }
.px-link { font: 10px/1 var(--f-px); text-transform: uppercase; color: var(--gold-1); text-decoration: none; padding: 10px 0; }
.px-link:hover { color: #fff; }

/* Score pop-ups */
.popups { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.pop { position: absolute; font: 12px/1 var(--f-px); color: var(--gold-1); text-shadow: 2px 2px 0 var(--pink-d); white-space: nowrap; animation: pop-up .9s var(--ease-out) forwards; }
@keyframes pop-up { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -52px); } }
.bonus-banner { position: fixed; left: 50%; top: 42%; z-index: 80; translate: -50% -50%; padding: 22px 30px; border-radius: 18px; background: var(--night-3); border: 2px solid var(--gold-2); box-shadow: 0 0 0 6px var(--pink-d), 0 30px 80px rgba(0, 0, 0, .6); font: clamp(14px, 2.4vw, 22px)/1.5 var(--f-px); color: var(--gold-1); text-align: center; pointer-events: none; animation: bonus 2.6s var(--ease-out) forwards; }
@keyframes bonus { 0% { opacity: 0; scale: .6; } 12% { opacity: 1; scale: 1.05; } 20% { scale: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.is-rainbow .wm-f, .is-rainbow .hud-name { animation: hue 1.2s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ───────────── Level 4: Flipsong ───────────── */
/* Flippy's own colours: cyan for the take you sing, pink for the flip, and the white seam where they meet. */
.level-flip {
  --accent: #4FF2EC;
  --accent-deep: #FF3D9A;
  --fl-c: #3EEDE6;
  --fl-p: #FF4FA3;
  --fl-ink: #070A26;
  background:
    radial-gradient(42% 60% at 18% 58%, rgba(62, 237, 230, .13), transparent 70%),
    radial-gradient(42% 60% at 84% 58%, rgba(255, 79, 163, .15), transparent 70%),
    linear-gradient(var(--night-1), var(--fl-ink) 16%, var(--fl-ink) 84%, var(--night-1));
}
.lv-flipname .flip-a, .f-flipname .flip-a { color: var(--fl-c, #4FF2EC); }
.lv-flipname .flip-b, .f-flipname .flip-b { color: var(--fl-p, #FF5CAD); }
.lv-flipname .flip-b { display: inline-block; transform-origin: 0 60%; }
.level-flip .lv-icon { box-shadow: 0 14px 36px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12), -10px 0 34px -10px rgba(62, 237, 230, .55), 10px 0 34px -10px rgba(255, 79, 163, .55); }
.flip-tag { display: inline-flex; align-items: center; gap: 10px; border-color: rgba(255, 79, 163, .45); }
.flip-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--fl-p); box-shadow: 0 0 10px var(--fl-p); animation: flip-rec 1.2s steps(1) infinite; }
@keyframes flip-rec { 50% { opacity: .2; } }

.btn-flip {
  background: linear-gradient(90deg, var(--fl-c), #B9A2F2 50%, var(--fl-p));
  color: var(--fl-ink);
  font-weight: 700;
  box-shadow: 0 5px 0 #5B1D7E, 0 18px 40px -14px rgba(255, 79, 163, .7);
}
.btn-flip:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #5B1D7E, 0 24px 48px -14px rgba(62, 237, 230, .65); }
.btn-flip:active { transform: translateY(4px); box-shadow: 0 1px 0 #5B1D7E; }

.flip-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.flip-copy .lv-head { font-size: clamp(40px, 4.4vw, 62px); }
.flip-copy .lv-lead { max-width: 34em; }

/* The flip deck: the demo. Reversed phrase on the cyan side, the flip on the pink side. */
.flip-deck {
  --fd-e: 0;
  --fd-flip: 0;
  display: grid;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(62, 237, 230, .1), rgba(62, 237, 230, .02) 50%, rgba(255, 79, 163, .02) 50%, rgba(255, 79, 163, .11)),
    linear-gradient(180deg, #0F1340, #0A0C2E);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 50px 100px -40px rgba(0, 0, 0, .8), -30px 30px 90px -50px rgba(62, 237, 230, .5), 30px 30px 90px -50px rgba(255, 79, 163, .55);
  overflow: hidden;
}
.fd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font: 10px/1 var(--f-px); text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.fd-rec { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.fd-rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--fl-p); box-shadow: 0 0 10px var(--fl-p); animation: flip-rec 1.2s steps(1) infinite; }
.fd-mode { padding: 7px 10px 6px; border-radius: 999px; color: var(--fl-ink); background: var(--fl-p); transition: background-color .3s; }
.flip-deck.is-flipped .fd-mode { background: var(--fl-c); }
/* Every "reversed / flipped" pair swaps with the deck's state. */
.flip-deck .fd-m-fwd, .flip-deck.is-flipped .fd-m-rev { display: none; }
.flip-deck.is-flipped .fd-m-fwd { display: inline; }

.fd-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; height: clamp(240px, 24vw, 320px); padding-inline: clamp(14px, 2vw, 26px); }
.fd-wave { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 64%; }
.fd-wave-r { flex-direction: row-reverse; }
.fd-wave i { flex: 0 1 8px; min-width: 3px; height: calc(var(--h) * (62% + var(--fd-e) * 38%)); border-radius: 8px; transition: height .12s var(--ease-out); }
.fd-wave-l i { background: linear-gradient(var(--fl-c), #1BA7C9); box-shadow: 0 0 14px rgba(62, 237, 230, .45); }
.fd-wave-r i { background: linear-gradient(var(--fl-p), #C2207A); box-shadow: 0 0 14px rgba(255, 79, 163, .45); }
/* The right side is the left side played backwards: same heights, mirrored by row-reverse. */
.fd-wave i:nth-child(1) { --h: .12; } .fd-wave i:nth-child(2) { --h: .3; } .fd-wave i:nth-child(3) { --h: .22; }
.fd-wave i:nth-child(4) { --h: .48; } .fd-wave i:nth-child(5) { --h: .36; } .fd-wave i:nth-child(6) { --h: .7; }
.fd-wave i:nth-child(7) { --h: .52; } .fd-wave i:nth-child(8) { --h: .88; } .fd-wave i:nth-child(9) { --h: .64; }
.fd-wave i:nth-child(10) { --h: 1; } .fd-wave i:nth-child(11) { --h: .76; } .fd-wave i:nth-child(12) { --h: .4; }
.flip-deck.is-flipped .fd-wave-l i { opacity: .55; }
.flip-deck:not(.is-flipped) .fd-wave-r i { opacity: .55; }
.fd-seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; translate: -50% 0; background: linear-gradient(transparent, #fff 30%, #fff 70%, transparent); box-shadow: 0 0 16px rgba(255, 255, 255, .7); opacity: calc(.55 + var(--fd-e) * .45); }
.fd-halo { position: absolute; left: 50%; top: 50%; width: clamp(180px, 18vw, 240px); aspect-ratio: 1; translate: -50% -46%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent), conic-gradient(from 180deg, rgba(255, 79, 163, .35), rgba(62, 237, 230, .35), rgba(255, 79, 163, .35)); filter: blur(18px); opacity: .9; }
.fd-flippy {
  position: relative;
  z-index: 1;
  width: clamp(150px, 15vw, 210px);
  height: auto;
  margin-inline: clamp(10px, 1.6vw, 22px);
  filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .55));
  transform: translateY(calc(var(--fd-b, 0) * -8px)) rotate(calc(var(--fd-b, 0) * -2deg));
}
.flip-deck.is-turning .fd-flippy { animation: flip-turn .5s var(--ease-quint); }
@keyframes flip-turn { 0% { transform: scaleX(1); } 50% { transform: scaleX(0) translateY(-10px); } 100% { transform: scaleX(1); } }

.fd-panel { display: grid; gap: 14px; padding: 22px clamp(18px, 2.4vw, 28px) 24px; border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(5, 6, 26, .45); }
.fd-label { margin: 0; font: 10px/1 var(--f-px); text-transform: uppercase; color: var(--ink-3); }
.fd-words { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; min-height: 48px; perspective: 600px; }
.fd-w { display: inline-grid; transform-style: preserve-3d; transition: transform .55s var(--ease-quint); transition-delay: calc(var(--i, 0) * 70ms); }
.fd-w:nth-child(2) { --i: 1; } .fd-w:nth-child(3) { --i: 2; } .fd-w:nth-child(4) { --i: 3; } .fd-w:nth-child(5) { --i: 4; }
.fd-rev, .fd-fwd { grid-area: 1 / 1; display: grid; place-items: center; padding: 11px 14px; border-radius: 12px; font: italic 900 22px/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fd-rev { color: #FFD6EA; background: rgba(255, 79, 163, .16); box-shadow: inset 0 0 0 1px rgba(255, 79, 163, .55); }
.fd-fwd { color: var(--fl-ink); background: var(--fl-c); transform: rotateY(180deg); }
.fd-w.is-miss .fd-fwd { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); text-decoration: line-through 2px rgba(255, 79, 163, .9); }
.flip-deck.is-flipped .fd-w { transform: rotateY(180deg); }
.fd-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fd-score { margin: 0; font: 600 15px/1.2 var(--f-body); color: var(--ink-2); }
.flip-deck.is-flipped .fd-score { color: #fff; }
.fd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--fl-ink);
  font: 700 15px/1 var(--f-body);
  box-shadow: 0 4px 0 #5B1D7E;
  transition: transform .1s, box-shadow .1s;
}
.fd-btn svg { width: 20px; height: 20px; }
.fd-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #5B1D7E, 0 10px 30px -8px rgba(255, 255, 255, .5); }
.fd-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #5B1D7E; }

/* Side A: the perks as a tracklist. */
.flip-side { margin-top: clamp(64px, 7vw, 104px); }
.flip-side-title { margin: 0 0 18px; color: var(--ink-3); }
.flip-tracks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .14); }
.flip-tracks li { display: grid; align-content: start; gap: 16px; padding: 24px clamp(16px, 2vw, 28px) 8px 0; }
.flip-tracks li + li { padding-inline-start: clamp(16px, 2vw, 28px); border-inline-start: 1px solid rgba(255, 255, 255, .08); }
.ft-n { justify-self: start; align-self: start; padding: 7px 9px 6px; border-radius: 8px; font: 11px/1 var(--f-px); color: var(--fl-ink); background: var(--fl-c); }
.flip-tracks li:nth-child(even) .ft-n { background: var(--fl-p); }
.flip-tracks p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.flip-tracks strong { display: block; margin-bottom: 4px; font: italic 900 24px/1.05 var(--f-display); color: #fff; }

@media (max-width: 1080px) {
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flip-grid { grid-template-columns: minmax(0, 1fr); }
  .flip-deck { width: min(100%, 640px); justify-self: center; }
  .fd-stage { height: 280px; }
  .fd-flippy { width: 190px; }
  .fd-halo { width: 220px; }
  .flip-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flip-tracks li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .flip-tracks li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 760px) {
  .fd-bar { padding: 14px 16px; font-size: 9px; }
  .fd-stage { height: 210px; padding-inline: 12px; }
  .fd-wave { gap: 3px; }
  .fd-wave i:nth-child(-n + 3) { display: none; }
  .fd-flippy { width: 140px; margin-inline: 8px; }
  .fd-halo { width: 160px; }
  .fd-panel { padding: 18px 16px 20px; }
  .fd-rev, .fd-fwd { padding: 9px 11px; font-size: 19px; }
  .fd-words { min-height: 82px; align-content: flex-start; }
  .fd-btn { flex: 1; justify-content: center; }
  .flip-tracks { grid-template-columns: minmax(0, 1fr); }
  .flip-tracks li, .flip-tracks li + li { grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 20px 0; border-inline-start: 0; }
  .flip-tracks li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
  .flip-tracks strong { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-tag i, .fd-rec i { animation: none; }
  .fd-w { transition: none; }
}
@media (forced-colors: active) {
  .flip-deck { border: 1px solid CanvasText; }
  .fd-rev, .fd-fwd { backface-visibility: visible; border: 1px solid CanvasText; }
}

/* ───────────── Responsive ───────────── */
@media (max-width: 1080px) {
  .level-copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "lead" "perks" "cta" "fine"; }
  .level-copy .perks { margin: 0 0 32px; padding: 0; border: 0; }
  .pg-remote { grid-template-columns: minmax(0, 1fr) 236px; }
  .steps-list { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
}
@media (max-width: 900px) {
  .hud-score .hud-k-hi, .hud-score .hud-v-hi, .hud-credit { display: none; }
  .menu-btn { display: inline-block; }
  .hud-nav {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 12px;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px;
    border-radius: 18px;
    background: rgba(20, 10, 44, .97);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  }
  .hud-nav.is-open { display: flex; }
  .hud-nav a { padding: 16px 14px; font-size: 17px; border-radius: 12px; }
  .hud-nav a:hover { background: rgba(255, 255, 255, .05); }
  .hud-end { margin-inline-start: auto; }
}
@media (max-width: 760px) {
  :root { --hud-h: 58px; }
  body { font-size: 17px; }
  .hud-inner { gap: 12px; }
  .hud-name { display: none; }
  .sound-btn { padding: 0 12px; }
  .hero { padding-bottom: 120px; }
  .hero-inner { margin-top: 0; }
  .lockup { flex-direction: column; gap: 6px; }
  .mark { width: min(46vw, 210px); }
  .wordmark { width: min(74vw, 330px); }
  .coin-btn { min-height: 60px; font-size: 14px; padding: 0 26px 0 18px; }
  .roster {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 84%;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 14px var(--gutter) 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .roster::-webkit-scrollbar { display: none; }
  .fighter { scroll-snap-align: center; }
  .fighter:hover, .fighter:focus-within, .fighter.is-selected { transform: translateY(-4px); }
  .lv-tag { margin-inline-start: 0; }
  .pg-remote { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .tv-col { display: contents; }
  .tv { order: 1; }
  .phone-remote { order: 2; padding: 0; border-radius: 26px; background: none; box-shadow: none; }
  .pg-note { order: 3; text-align: center; margin-inline: auto; }
  .phone-remote .phone-screen { aspect-ratio: auto; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .09); }
  .remote-ui { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "power vol vol" "home dpad back" "favs favs favs"; gap: 14px 12px; align-items: center; justify-items: center; padding: 16px 14px; }
  .r-top { display: none; }
  .r-power { grid-area: power; justify-self: start; width: 52px; height: 52px; }
  .r-vol { grid-area: vol; justify-self: end; gap: 8px; }
  .r-vol .r-btn { width: 46px; height: 46px; }
  .r-dpad { grid-area: dpad; width: 152px; height: 152px; }
  .r-arrow { width: 42px; height: 42px; }
  .r-ok { width: 58px; height: 58px; }
  .r-nav { display: contents; }
  .r-nav > :first-child { grid-area: home; }
  .r-nav > :last-child { grid-area: back; }
  .r-favs { grid-area: favs; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .r-fav { height: 38px; font-size: 12px; }
  .pg-glp { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .glp-phone { width: min(70vw, 250px); }
  .egg-board { font-size: 9px; }
  .egg-board > span { padding: 10px 8px; }
  .eb-ball { display: none !important; }
  .eb-down { flex: 1; min-width: 0; }
  .egg-heads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone-egg { padding: 6px; border-radius: 24px; }
  .phone-egg .phone-screen { border-radius: 18px; }
  .roll div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
  .step { padding: 14px; }
  .mini-phone { flex-basis: 92px; }
}
@media (max-width: 380px) {
  .sound-label { display: none; }
  .hud-score { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body::after { animation: none; }
}
@media (forced-colors: active) {
  .hud-name, .cont-word { color: CanvasText; background: none; filter: none; }
}

/* ───────────── Beat-driven motion (custom properties set every frame by the conductor) ───────────── */
.lockup .mark { transform: scale(calc(1 + var(--kick, 0) * .022)); }
.mk-x1 { transform: translate(calc(var(--kick, 0) * 5px), calc(var(--kick, 0) * 5px)); }
.mk-streak { transform: scaleX(calc(1 + var(--hat, 0) * .75)); }
.wm-g { transform: translateY(calc(var(--b, 0) * -9px)); }
.hero-glow { opacity: calc(.78 + var(--kick, 0) * .22); }

/* Page-load: the logo slams in, the streaks fire, the letters drop, the sparkles pop. */
.lockup.is-intro .mark { animation: slam .6s var(--ease-pop) both; }
@keyframes slam {
  0% { transform: translateX(-14%) scale(1.7); opacity: 0; filter: blur(8px); }
  55% { opacity: 1; filter: blur(0); }
  100% { transform: none; }
}
.lockup.is-intro .mk-streak { animation: streak-in .5s .3s var(--ease-out) both; }
.lockup.is-intro .s2 { animation-delay: .36s; }
.lockup.is-intro .s3 { animation-delay: .42s; }
@keyframes streak-in { from { transform: scaleX(0); opacity: 0; } }
.lockup.is-intro .wm-g { animation: drop .55s var(--ease-pop) both; }
.lockup.is-intro .wm-g:nth-child(1) { animation-delay: .38s; }
.lockup.is-intro .wm-g:nth-child(2) { animation-delay: .43s; }
.lockup.is-intro .wm-g:nth-child(3) { animation-delay: .48s; }
.lockup.is-intro .wm-g:nth-child(4) { animation-delay: .53s; }
.lockup.is-intro .wm-g:nth-child(5) { animation-delay: .58s; }
.lockup.is-intro .wm-g:nth-child(6) { animation-delay: .63s; }
.lockup.is-intro .wm-g:nth-child(7) { animation-delay: .72s; }
.lockup.is-intro .wm-g:nth-child(8) { animation-delay: .77s; }
.lockup.is-intro .wm-g:nth-child(9) { animation-delay: .82s; }
.lockup.is-intro .wm-g:nth-child(10) { animation-delay: .87s; }
.lockup.is-intro .wm-g:nth-child(11) { animation-delay: .92s; }
@keyframes drop { from { transform: translateY(-46px) skewX(-12deg); opacity: 0; } }
.hero.is-intro .hero-tag, .hero.is-intro .hero-sub, .hero.is-intro .hero-ctas, .hero.is-intro .scroll-cue { animation: fade-in .7s both; }
.hero.is-intro .hero-tag { animation-delay: 1.05s; }
.hero.is-intro .hero-sub { animation-delay: 1.2s; }
.hero.is-intro .hero-ctas { animation-delay: 1.35s; }
.hero.is-intro .scroll-cue { animation-delay: 1.8s; }
@keyframes fade-in { from { opacity: 0; } }

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; }
.lost .cont-title { font-size: clamp(56px, 11vw, 150px); margin-bottom: 28px; }

/* Level intro flash, timed to the stage-start stinger */
.lv-num.is-ready { animation: ready 1.2s steps(1); }
@keyframes ready {
  0%, 24%, 48% { color: #fff; text-shadow: 0 0 18px var(--accent); }
  12%, 36%, 60% { opacity: .2; }
  72%, 100% { opacity: 1; }
}

/* ───────────── The cast's world ───────────── */
.world { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 45; }
.mascot { position: absolute; left: 0; top: 0; transform-origin: 50% 50%; image-rendering: pixelated; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; will-change: transform; filter: drop-shadow(0 6px 0 rgba(7, 4, 15, .35)); }
.mascot.is-grabbed { cursor: grabbing; filter: drop-shadow(0 18px 8px rgba(7, 4, 15, .45)); }
.mascot-z { position: absolute; left: 0; top: 0; image-rendering: pixelated; pointer-events: none; opacity: 0; }
.world-fx { position: fixed; inset: 0; z-index: 46; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
html.is-dragging, html.is-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
.cast { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.cast-member { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.cast-member canvas { width: 36px; height: auto; image-rendering: pixelated; }
@media (prefers-reduced-motion: reduce) { .mascot { cursor: pointer; } }
