/* Tivi Party – web presence. Colours follow lib/core/theme.dart (Palette), font is the app's Baloo 2. */

@font-face { font-family: "Baloo 2"; src: url("../assets/fonts/baloo2-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../assets/fonts/baloo2-semibold.woff") format("woff"); font-weight: 400 700; font-display: swap; }

@property --accent { syntax: "<color>"; inherits: true; initial-value: #9B5DE5; }

:root {
  --bg: #150536;
  --bg-2: #1d0847;
  --violet: #3A1078;
  --ink: #26124F;
  --gold: #FFC93C;
  --pink: #FF4D8D;
  --good: #2ED47A;
  --text: #fff;
  --muted: rgba(255, 255, 255, .72);
  --faint: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .1);
  --red: #FF5A5F; --blue: #3A86FF; --green: #38C95C; --yellow: #FFB627;
  --purple: #9B5DE5; --orange: #FF8C42; --teal: #00BBC9; --rose: #FF6FB5;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  --font: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 600; font-size: 18px; line-height: 1.5;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: 14px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold);
}
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; }
.kicker--dark { color: var(--ink); }
.kicker--dark::before { box-shadow: none; }

/* ------------------------------------------------------------------ tokens (avatar in a player colour) */
.token {
  --s: 56px;
  position: relative; display: inline-block; flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 65%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 78%, #000));
  border: calc(var(--s) * .06) solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  list-style: none;
}
.token img { position: absolute; left: 8%; top: 12%; width: 84%; height: auto; }
.token--xl { --s: 22cqw; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 18px; line-height: 1.1; text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
}
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 #c58b00, 0 14px 30px rgba(255, 201, 60, .25); }
.btn--gold:hover { box-shadow: 0 8px 0 #c58b00, 0 20px 40px rgba(255, 201, 60, .35); }
.btn--gold:active { transform: translateY(4px) !important; box-shadow: 0 2px 0 #c58b00; }
.btn--sm { padding: 9px 18px; font-size: 16px; box-shadow: 0 4px 0 #c58b00; }
.btn--lg { padding: 18px 40px; font-size: 22px; }
.btn--store {
  background: #0b0418; color: #fff; padding: 10px 22px 10px 18px; text-align: left;
  border: 1px solid rgba(255, 255, 255, .28); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.btn--store svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.btn--store span { display: flex; flex-direction: column; font-size: 21px; }
.btn--store small { font-size: 12px; font-weight: 600; opacity: .75; letter-spacing: .02em; }
.btn--store:hover { border-color: rgba(255, 255, 255, .6); }
.btn--store-dark { background: var(--ink); border-color: transparent; box-shadow: 0 14px 40px rgba(38, 18, 79, .35); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ------------------------------------------------------------------ progress + header */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 120; pointer-events: none; }
.progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--blue), var(--purple), var(--rose));
}

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: transform .45s var(--ease), background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(21, 5, 54, .6); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { text-decoration: none; margin: 0; }
.brand__word { display: inline-flex; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: .01em; }
.brand__word b { color: var(--c); -webkit-text-stroke: .14em #fff; paint-order: stroke fill; text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav a { position: relative; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--muted); transition: color .2s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--faint); border-radius: 14px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 3px; border-radius: 3px; background: #fff; transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header__cta { margin-left: auto; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0; padding: 18px var(--gutter) 28px;
    background: rgba(21, 5, 54, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); visibility: hidden;
  }
  .site-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav a { display: block; font-size: 26px; padding: 6px 0; color: #fff; }
  .site-nav a::after { display: none; }
}
@media (max-width: 420px) { .brand__word { font-size: 25px; } .site-header__inner { gap: 12px; } }

/* ------------------------------------------------------------------ scroll scenes */
.js .scene { position: relative; height: calc(var(--h, 100) * 1vh); }
.js .stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.stage { position: relative; }

/* ================================================================== hero */
.hero .stage { background: radial-gradient(120% 85% at 50% 0%, #4d1696 0%, #2a0a63 42%, var(--bg) 78%); min-height: 100vh; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__glow::before, .hero__glow::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .45;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow::before { background: #ff4d8d; left: -20vmax; top: -10vmax; }
.hero__glow::after { background: #3A86FF; right: -25vmax; top: 10vmax; animation-delay: -9s; opacity: .35; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

.hero__copy {
  position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--header-h) + clamp(20px, 6vh, 70px)) var(--gutter) 40px;
}
.js .hero__copy { position: absolute; inset: 0 0 auto; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; animation: fadeUp .8s var(--ease) .1s both; }
.logo { display: flex; flex-direction: column; align-items: center; font-weight: 800; }
.logo__word { display: flex; align-items: flex-end; font-size: clamp(66px, 12.5vw, 190px); line-height: .95; letter-spacing: -.005em; }
.logo__word b {
  display: inline-block; color: var(--c); -webkit-text-stroke: .1em #fff; paint-order: stroke fill;
  text-shadow: 0 .06em 0 rgba(0, 0, 0, .28), 0 .12em .3em rgba(0, 0, 0, .25);
  animation: drop 1s cubic-bezier(.25, 1.55, .5, 1) calc(var(--i) * 70ms + 150ms) both, bob 2.4s ease-in-out calc(var(--i) * -.27s) infinite;
  transition: scale .3s var(--ease);
}
.logo__word b:hover { scale: 1.12; }
.logo__word i { width: .25em; }
@keyframes drop { from { transform: translateY(-140%) rotate(-14deg) scale(.6); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -.045em; } }
.logo__pill {
  margin-top: -.1em; padding: .12em 1.3em .06em; border-radius: 999px; background: var(--pink); border: 3px solid #fff;
  font-size: clamp(15px, 2vw, 28px); letter-spacing: .24em; text-transform: uppercase; line-height: 1.2;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3); animation: pop .9s cubic-bezier(.3, 1.8, .5, 1) .95s both;
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__lead { max-width: 33em; margin: 22px auto 26px; font-size: clamp(17px, 1.55vw, 22px); color: var(--muted); animation: fadeUp .9s var(--ease) 1.1s both; }
.hero__lead strong { color: #fff; }
.hero__copy .btn-row { animation: fadeUp .9s var(--ease) 1.25s both; }

.room {
  --s: 1;
  position: relative; width: min(92vw, 1100px); aspect-ratio: 5 / 3; margin: 0 auto 10vh; z-index: 2;
  border-radius: calc(28px / var(--s)); overflow: hidden; box-shadow: 0 50px 140px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1);
  transform-origin: 50% 50%;
}
.js .room { position: absolute; left: 50%; top: 50%; width: var(--rw); height: var(--rh); margin: calc(var(--rh) / -2) 0 0 calc(var(--rw) / -2); aspect-ratio: auto; will-change: transform; }
.room > img { width: 100%; height: 100%; object-fit: cover; }
.room__shade { position: absolute; inset: 0; background: #0a021e; opacity: var(--shade, 0); pointer-events: none; }
.tv {
  --u: 1cqw;
  position: absolute; left: 35.9%; top: 29.6%; width: 30.3%; height: 29%; border-radius: 1.2% / 2%;
  overflow: hidden; container-type: size; background: #04010c;
}
.tv__ui, .hero__end { background: radial-gradient(120% 95% at 50% 0%, #4d1696 0%, #2a0a63 48%, var(--bg) 100%); }
.tv__ui {
  position: absolute; inset: 0; display: grid; place-items: center;
  transform: scale(var(--on-x, 0), var(--on-y, 0)); opacity: var(--on, 0); filter: brightness(var(--flash, 1));
}
.tvhome { display: flex; flex-direction: column; align-items: center; }
.tvhome__word { display: flex; align-items: flex-end; font-size: calc(var(--u) * 13); font-weight: 800; line-height: .95; }
.tvhome__word b { color: var(--c); -webkit-text-stroke: .1em #fff; paint-order: stroke fill; text-shadow: 0 .06em 0 rgba(0, 0, 0, .28); }
.tvhome__word i { width: .25em; }
.tvhome__pill { margin-top: -.1em; padding: .1em 1.3em .04em; border-radius: 999px; background: var(--pink); border: calc(var(--u) * .3) solid #fff; font-size: calc(var(--u) * 2.6); letter-spacing: .24em; text-transform: uppercase; font-weight: 800; line-height: 1.2; }
.tvhome__row { display: flex; gap: calc(var(--u) * 1.6); margin-top: calc(var(--u) * 4); }
.tvhome__row .token { --s: calc(var(--u) * 7.5); }
.hero__end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.no-js .hero__end, html:not(.js) .hero__end { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 5; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue span { width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
html:not(.js) .scroll-cue { display: none; }

/* ================================================================== pass & play statement */
.pass .stage { background: radial-gradient(90% 70% at 50% 100%, #3b0f80 0%, var(--bg) 70%); display: flex; flex-direction: column; justify-content: center; }
.pass__inner { position: relative; z-index: 2; text-align: center; padding: 14vh 0 34vh; }
.js .pass__inner { padding: 0 0 22vh; }
.words { font-size: clamp(34px, 5.4vw, 84px); max-width: 14.5em; margin: 0 auto; line-height: 1.04; }
.words em { font-style: normal; color: var(--gold); }
.js .words .w { opacity: calc(.14 + var(--w, 0) * .86); filter: blur(calc((1 - var(--w, 0)) * 2px)); display: inline-block; transform: translateY(calc((1 - var(--w, 0)) * .12em)); }
.pass__players { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(5px, 1.4vw, 16px); padding: 0; margin: clamp(26px, 5vh, 48px) 0 0; }
.pass__players .token { --s: clamp(34px, 5vw, 64px); }
.hands { position: absolute; left: 0; right: 0; bottom: 3vh; height: clamp(120px, 25vw, 290px); pointer-events: none; z-index: 1; }
.hands__half { position: absolute; left: 50%; bottom: 0; width: min(1120px, 118vw); height: auto; margin-left: calc(min(1120px, 118vw) / -2); }
/* cut along the gap between the remote and the receiving hand (see tools/brand/hands.png) */
.hands__half--l { clip-path: polygon(-5% -10%, 64.5% -10%, 64.5% 60.6%, 51.6% 69.1%, 50% 110%, -5% 110%); }
.hands__half--r { clip-path: polygon(64.5% -10%, 105% -10%, 105% 110%, 50% 110%, 51.6% 69.1%, 64.5% 60.6%); }
html:not(.js) .hands__half--r { display: none; }
html:not(.js) .hands__half--l { clip-path: none; position: relative; left: auto; margin: 0 auto; }

/* ================================================================== beats (shared) */
.js .beats { display: grid; }
.js .beats > .beat { grid-area: 1 / 1; }
.beat + .beat { margin-top: 32px; }
.js .beat + .beat { margin-top: 0; }
.beat__n { display: block; font-size: clamp(56px, 6vw, 96px); line-height: 1; font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--gold); margin-bottom: 6px; }
.beat h3 { font-size: clamp(32px, 3.6vw, 56px); margin-bottom: 14px; }
.beat p { color: var(--muted); font-size: clamp(17px, 1.35vw, 21px); max-width: 28em; }

/* ================================================================== how */
.how .stage {
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0) 0 0 / 28px 28px,
    radial-gradient(80% 70% at 75% 50%, #34107a 0%, var(--bg) 70%);
}
.how__grid { height: 100%; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 6vw; padding: calc(var(--header-h) + 10px) 0 24px; }
html:not(.js) .how__grid { padding: 120px 0; }
.beat-dots { display: flex; gap: 10px; margin-top: 36px; }
.beat-dots i { position: relative; width: 56px; height: 6px; border-radius: 6px; background: var(--faint); overflow: hidden; }
.beat-dots i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
html:not(.js) .beat-dots { display: none; }

.tvmock { position: relative; padding: clamp(8px, 1.2vw, 16px); border-radius: clamp(14px, 1.8vw, 24px); background: linear-gradient(#1b1030, #0b0616); box-shadow: 0 0 0 2px #2d1d50, 0 40px 100px rgba(0, 0, 0, .5), 0 0 120px rgba(155, 93, 229, .25); }
.tvmock__screen { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(6px, .8vw, 12px); overflow: hidden; container-type: inline-size; background: radial-gradient(120% 95% at 50% 0%, #4d1696 0%, #2a0a63 48%, var(--bg) 100%); }
.tvmock__stand { width: 34%; height: clamp(10px, 1.4vw, 18px); margin: 0 auto; background: linear-gradient(#1b1030, #0b0616); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw; text-align: center; padding: 4cqw; }
.js .scr { opacity: 0; }
.scr__title { font-size: 6.4cqw; font-weight: 800; line-height: 1; }
.scr__title--sm { font-size: 4.2cqw; }
.scr__hint { font-size: 3cqw; color: var(--muted); }
.scr kbd { font-family: var(--font); font-weight: 800; background: var(--gold); color: var(--ink); padding: .05em .55em; border-radius: 99px; }
.scr--turn .token { animation: bounce 1.4s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-6%); } }
.scr__q { font-size: 4.4cqw; font-weight: 800; position: absolute; top: 6cqw; left: 0; right: 0; }
.answers { position: relative; width: 62cqw; height: 34cqw; margin-top: 7cqw; }
.ans {
  position: absolute; display: flex; align-items: center; gap: 1.2cqw; padding: .6cqw 2.6cqw .6cqw 1cqw; border-radius: 99px;
  background: var(--c); font-size: 4cqw; font-weight: 800; line-height: 1.2; box-shadow: 0 .8cqw 0 color-mix(in srgb, var(--c) 70%, #000);
  transition: transform .4s var(--ease), opacity .4s, filter .4s;
}
.ans b { display: grid; place-items: center; width: 5cqw; height: 5cqw; border-radius: 50%; background: rgba(255, 255, 255, .28); font-size: 2.4cqw; }
.ans--a { left: 50%; top: 0; transform: translateX(-50%); }
.ans--b { right: 0; top: 50%; transform: translateY(-50%); }
.ans--c { left: 50%; bottom: 0; transform: translateX(-50%); }
.ans--d { left: 0; top: 50%; transform: translateY(-50%); }
.is-done .ans:not(.ans--b) { opacity: .35; filter: grayscale(.6); }
.is-done .ans--b { transform: translateY(-50%) scale(1.15); box-shadow: 0 0 0 .6cqw #fff, 0 0 4cqw var(--c); }
.holdring { position: absolute; left: 50%; top: 50%; width: 16cqw; height: 16cqw; transform: translate(-50%, -50%); display: grid; place-items: center; }
.holdring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.holdring circle { fill: none; stroke-width: 9; }
.holdring__track { stroke: rgba(255, 255, 255, .14); }
.holdring__fill { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: calc(276.5 * (1 - var(--ring, 0))); }
.holdring__key, .holdring__ok { font-size: 5cqw; font-weight: 800; transition: transform .4s cubic-bezier(.3, 1.8, .5, 1), opacity .3s; }
.holdring__ok { position: absolute; color: var(--good); transform: scale(0); opacity: 0; font-size: 7cqw; }
.is-done .holdring__key { transform: scale(0); opacity: 0; }
.is-done .holdring__ok { transform: scale(1); opacity: 1; }
.is-done .holdring__fill { stroke: var(--good); }
.burst { position: absolute; left: 50%; top: 58%; width: 0; height: 0; }
.burst i { position: absolute; width: 1.6cqw; height: .8cqw; border-radius: 2px; background: var(--c, var(--gold)); opacity: 0; }
.burst i:nth-child(4n+1) { --c: var(--red); } .burst i:nth-child(4n+2) { --c: var(--blue); } .burst i:nth-child(4n+3) { --c: var(--green); }
.is-done .burst i { animation: burst .9s cubic-bezier(.15, .8, .3, 1) both; }
@keyframes burst {
  0% { opacity: 1; transform: rotate(calc(var(--a) * 1deg)) translateX(0) scale(.4); }
  100% { opacity: 0; transform: rotate(calc(var(--a) * 1deg)) translateX(28cqw) rotate(220deg) scale(1); }
}
.secret { display: flex; gap: 5cqw; margin-top: 3cqw; }
.secret__p { display: flex; flex-direction: column; align-items: center; gap: 2cqw; }
.secret__p .token { --s: 10cqw; }
.flipcard { position: relative; width: 10cqw; height: 12cqw; transform-style: preserve-3d; transform: perspective(60cqw) rotateY(calc(var(--f, 0) * 180deg)); }
.flipcard > span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 1.6cqw; backface-visibility: hidden; -webkit-backface-visibility: hidden; font-size: 5cqw; font-weight: 800; }
.flipcard__back { background: rgba(255, 255, 255, .14); border: .4cqw dashed rgba(255, 255, 255, .4); }
.flipcard__front { background: var(--c); transform: rotateY(180deg); box-shadow: 0 0 0 .5cqw #fff; }
.flipcard__front--bad { filter: saturate(.4) brightness(.75); box-shadow: none; }
.token--bot { filter: saturate(.6); }

/* ================================================================== control modes */
.ctrl .stage { background: radial-gradient(70% 70% at 72% 55%, color-mix(in srgb, var(--halo, #FF5A5F) 30%, transparent) 0%, transparent 70%), var(--bg); transition: background .2s; }
.ctrl__grid { height: 100%; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 4vw; padding: calc(var(--header-h) + 10px) 0 24px; }
html:not(.js) .ctrl__grid { padding: 120px 0; }
.ctrl__title { font-size: clamp(38px, 4.8vw, 74px); margin-bottom: 26px; }
.modes { position: relative; display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 22px; list-style: none; padding: 0 0 12px; margin: 0 0 28px; border-bottom: 1px solid var(--line); }
.modes li { font-weight: 800; font-size: 16px; color: rgba(255, 255, 255, .45); transition: color .3s; }
.modes li.is-active { color: #fff; }
.modes__bar { position: absolute; left: 0; bottom: -2px; height: 3px; width: 40px; border-radius: 3px; background: var(--gold); transition: transform .45s var(--ease), width .45s var(--ease); }
.ctrl .beat h3 { font-size: clamp(26px, 2.6vw, 40px); }
html:not(.js) .modes { display: none; }

.ctrl__visual { position: relative; height: min(72vh, 640px); perspective: 1400px; }
html:not(.js) .ctrl__visual { display: none; }
.ctrl__halo { position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--halo, #FF5A5F) 55%, transparent), transparent 65%); filter: blur(30px); opacity: .7; }
.dev, .passcard, .together { position: absolute; left: 50%; top: 50%; will-change: transform, opacity; }
.dev { transform-style: preserve-3d; }
.remote {
  position: relative; width: 132px; height: 410px; border-radius: 66px; padding: 18px 16px;
  background: linear-gradient(155deg, #3a3060 0%, #1a1233 45%, #0e0920 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .18), inset 0 -10px 30px rgba(0, 0, 0, .5), 0 40px 80px rgba(0, 0, 0, .55);
}
.remote__pad { position: relative; width: 100px; height: 100px; border-radius: 50%; background: #0a0614; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08); }
.remote__pad i { position: absolute; width: 12px; height: 12px; border: solid rgba(255, 255, 255, .55); border-width: 3px 3px 0 0; animation: key 3.2s infinite; }
.remote__pad .u { left: 44px; top: 12px; transform: rotate(-45deg); }
.remote__pad .r { right: 12px; top: 44px; transform: rotate(45deg); animation-delay: .8s; }
.remote__pad .d { left: 44px; bottom: 12px; transform: rotate(135deg); animation-delay: 1.6s; }
.remote__pad .l { left: 12px; top: 44px; transform: rotate(-135deg); animation-delay: 2.4s; }
@keyframes key { 0%, 20%, 100% { border-color: rgba(255, 255, 255, .55); filter: none; } 8% { border-color: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); } }
.remote__pad b { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; background: #2a2045; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12); }
.remote__btns { display: grid; grid-template-columns: repeat(2, 34px); justify-content: center; gap: 16px; margin-top: 36px; }
.remote__btns i { width: 34px; height: 34px; border-radius: 50%; background: #241a3d; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1); }

.passcard { width: 236px; padding: 12px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.passcard__head { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 16px; background: var(--c); color: #fff; }
.passcard__head .token { --s: 46px; }
.passcard__head b { display: block; font-size: 22px; line-height: 1; }
.passcard__head small { font-size: 13px; opacity: .85; }
.passcard__qr { position: relative; width: 180px; margin: 14px auto 6px; aspect-ratio: 1; }
.passcard__qr svg { width: 100%; height: 100%; }
.passcard__qr rect { fill: var(--ink); opacity: clamp(0, calc((var(--q, 0) - var(--d)) * 14), 1); transform: scale(clamp(0, calc((var(--q, 0) - var(--d)) * 14), 1)); transform-box: fill-box; transform-origin: center; }
.scanline { position: absolute; left: -8%; right: -8%; top: calc(var(--scan, 0) * 100%); height: 4px; border-radius: 4px; background: var(--good); box-shadow: 0 0 18px 4px rgba(46, 212, 122, .7); opacity: var(--scan-o, 0); }
.passcard__ok { position: absolute; left: 50%; top: 50%; padding: 8px 16px; border-radius: 99px; background: var(--good); color: #fff; font-weight: 800; font-size: 18px; white-space: nowrap; transform: translate(-50%, -50%) scale(var(--ok, 0)); box-shadow: 0 10px 30px rgba(46, 212, 122, .5); }
.passcard__cta { text-align: center; font-weight: 800; font-size: 15px; }

.phone { position: relative; width: 250px; height: 510px; border-radius: 46px; padding: 10px; background: #0b0618; box-shadow: 0 0 0 2px #3c2c62, inset 0 0 0 2px #1f1638, 0 50px 90px rgba(0, 0, 0, .6); }
.phone__notch { position: absolute; left: 50%; top: 20px; width: 78px; height: 22px; margin-left: -39px; border-radius: 12px; background: #000; z-index: 2; }
.phone__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.pad-ui {
  --c: #FF5A5F;
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 46px 14px 20px; opacity: var(--on, 0);
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c) 45%, #3A1078) 0%, #3A1078 45%, var(--bg) 100%);
}
.pad-ui__head { display: flex; align-items: center; gap: 10px; }
.pad-ui__head .token { --s: 48px; }
.pad-ui__head b { display: block; font-size: 22px; line-height: 1; }
.pad-ui__head small { display: flex; align-items: center; gap: 5px; font-size: 12px; opacity: .8; }
.pad-ui__head small i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px var(--good); }
.pad-ui__banner { margin-top: 14px; padding: 7px; border-radius: 18px; background: var(--gold); color: var(--ink); text-align: center; font-weight: 800; font-size: 20px; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.pad-ui__pad { position: relative; width: 196px; aspect-ratio: 1; margin: auto; }
.pad-ui__pad i { position: absolute; width: 33%; height: 33%; border-radius: 26%; background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .28), inset 0 -5px 0 rgba(38, 18, 79, .12); }
.pad-ui__pad i::before { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; height: 22%; border: solid var(--ink); border-width: 5px 5px 0 0; transform: translate(-60%, -40%) rotate(-45deg); }
.pad-ui__pad .u { left: 33.5%; top: 0; }
.pad-ui__pad .r { right: 0; top: 33.5%; } .pad-ui__pad .r::before { transform: translate(-70%, -50%) rotate(45deg); }
.pad-ui__pad .d { left: 33.5%; bottom: 0; } .pad-ui__pad .d::before { transform: translate(-50%, -75%) rotate(135deg); }
.pad-ui__pad .l { left: 0; top: 33.5%; } .pad-ui__pad .l::before { transform: translate(-30%, -50%) rotate(-135deg); }
.pad-ui__pad .r { animation: tap 2.4s ease-in-out infinite 1s; }
@keyframes tap { 0%, 30%, 100% { transform: none; box-shadow: 0 6px 0 rgba(0, 0, 0, .28); } 10%, 20% { transform: translateY(5px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); background: var(--gold); } }
.pad-ui__pad b { position: absolute; left: 50%; top: 50%; width: 27%; height: 27%; margin: -13.5%; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); font-size: 16px; box-shadow: 0 5px 0 #c58b00; }

.gamepad { width: 340px; height: auto; overflow: visible; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .55)); }
.gamepad__led { animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { fill: #ff9a9d; filter: drop-shadow(0 0 6px #FF5A5F); } }

.together { height: min(100%, 520px); aspect-ratio: 1; }
.together__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.together__lines path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 2.5; stroke-dasharray: 4 10; stroke-linecap: round; vector-effect: non-scaling-stroke; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.together__tv { --u: 1cqw; position: absolute; left: 50%; top: 50%; width: 50%; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); container-type: inline-size; display: grid; place-items: center; border-radius: 12px; border: 7px solid #0d0620; background: radial-gradient(120% 95% at 50% 0%, #4d1696 0%, #2a0a63 48%, var(--bg) 100%); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.together__tv .tvhome__word { --u: 1.45cqw; }
.badge { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translate(-50%, -50%) scale(var(--b, 0)); }
.badge .token { --s: clamp(54px, 6vw, 72px); }
.badge em { font-style: normal; font-weight: 800; font-size: 14px; padding: 3px 12px; border-radius: 99px; background: rgba(21, 5, 54, .85); border: 1px solid rgba(255, 255, 255, .2); white-space: nowrap; }
.badge--1 { left: 15.5%; top: 17.5%; } .badge--2 { left: 84.5%; top: 17.5%; } .badge--3 { left: 15.5%; top: 82.5%; } .badge--4 { left: 84.5%; top: 82.5%; }

/* ================================================================== marquee */
.marquee { position: relative; padding: clamp(40px, 9vh, 90px) 0; overflow: hidden; background: var(--bg); }
.marquee__row { display: flex; width: 120vw; margin-left: -10vw; rotate: -3deg; will-change: transform; }
.marquee__row + .marquee__row { margin-top: 10px; }
.marquee__track { display: flex; flex: none; white-space: nowrap; animation: marquee 50s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 42s; }
.marquee span { font-size: clamp(46px, 8.5vw, 130px); font-weight: 800; line-height: 1.05; padding-right: .5em; }
.marquee span::after { content: "✦"; display: inline-block; margin-left: .5em; font-size: .45em; vertical-align: middle; color: var(--gold); -webkit-text-stroke: 0; }
.marquee span.o { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .55); }
.marquee__row--rev span { font-size: clamp(30px, 5vw, 76px); color: var(--gold); }
.marquee__row--rev span.o { -webkit-text-stroke-color: rgba(255, 201, 60, .7); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================== minigames gallery */
.games { --cw: clamp(270px, min(34vw, calc((100vh - 330px) * 1)), 480px); --gap: clamp(20px, 3vw, 44px); }
.games .stage { background: var(--bg); }
.games__bg { position: absolute; inset: 0; transition: --accent .8s var(--ease); background: radial-gradient(70% 65% at 50% 62%, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 70%), radial-gradient(40% 40% at 10% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.games__head { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: calc(var(--header-h) + 16px); }
.games__head .kicker { margin-bottom: 10px; }
.games__head h2 { font-size: clamp(32px, 4.2vw, 64px); }
.games__count { font-size: 18px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.games__count b { font-size: clamp(30px, 3vw, 44px); color: var(--gold); }
.track { display: flex; gap: var(--gap); padding: 40px var(--gutter) 80px; overflow-x: auto; scroll-snap-type: x mandatory; }
.js .track { position: absolute; left: 0; top: 0; bottom: 0; align-items: center; width: max-content; overflow: visible; padding: calc(var(--header-h) + 90px) calc(50vw - var(--cw) / 2) 20px; will-change: transform; scroll-snap-type: none; }
.gcard {
  position: relative; flex: none; width: var(--cw); border-radius: 28px; overflow: hidden; text-decoration: none; color: inherit; scroll-snap-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, #241048) 0%, #1a0a3a 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  transform-origin: 50% 50%; will-change: transform;
}
.gcard__art { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: #e8d9f7; }
.gcard__bg, .gcard__fg { position: absolute; left: -7%; top: -4%; width: 114%; height: 108%; max-width: none; object-fit: cover; transition: scale .8s var(--ease); }
.gcard:hover .gcard__fg { scale: 1.05; }
.gcard:hover .gcard__bg:only-child { scale: 1.04; }
.gcard__body { position: relative; padding: clamp(16px, 2vh, 24px) 24px clamp(18px, 2.4vh, 28px); }
.gcard__num { position: absolute; right: 18px; top: -.62em; font-size: clamp(48px, 5vw, 72px); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--accent); text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 50%, transparent); }
.gcard h3 { font-size: clamp(25px, 2.3vw, 34px); }
.gcard__tag { color: color-mix(in srgb, var(--accent) 60%, #fff); font-weight: 800; margin: 2px 0 8px; font-size: 16px; line-height: 1.3; }
.gcard__body > p:not(.gcard__tag) { color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chips li { font-size: 13px; font-weight: 800; padding: 3px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.gcard--bonus { border: 2px dashed color-mix(in srgb, var(--gold) 70%, transparent); }
.gcard--bonus .gcard__art { display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #FFD966 0%, #FFB627 40%, #FF8C42 100%); }
.gcard__q { font-size: clamp(110px, 12vw, 170px); font-weight: 800; color: #fff; -webkit-text-stroke: .06em var(--ink); paint-order: stroke fill; line-height: 1; animation: bounce 1.8s ease-in-out infinite; text-shadow: 0 .08em 0 rgba(38, 18, 79, .35); }
@media (max-width: 700px) {
  .games { --cw: min(80vw, calc((100vh - 360px) * 1.05)); }
  .games__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .games__count { position: absolute; right: 0; bottom: 4px; }
  .js .track { padding-top: calc(var(--header-h) + 130px); }
  .gcard__body > p:not(.gcard__tag) { font-size: 14.5px; }
}

/* ================================================================== sections */
.section { position: relative; padding: clamp(90px, 15vh, 170px) 0; }
.section h2 { font-size: clamp(38px, 5vw, 76px); margin-bottom: 22px; }

/* try: inner clock */
.try { background: radial-gradient(60% 70% at 80% 50%, rgba(255, 90, 95, .2), transparent 70%), var(--bg); }
.try__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.try__text > p { color: var(--muted); font-size: 20px; max-width: 30em; }
.try__text strong { color: #fff; }
.try__rules { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.try__rules li { padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.try__rules b { color: var(--gold); font-size: 22px; margin-right: 4px; }
.clock { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.clock__face { position: relative; width: min(380px, 78vw); aspect-ratio: 1; }
.clock__face svg { width: 100%; height: 100%; overflow: visible; }
.clock__rim { fill: #1f0a4a; stroke: rgba(255, 255, 255, .14); stroke-width: 4; }
.clock__tick { stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-linecap: round; }
.clock__tick--big { stroke: rgba(255, 255, 255, .75); stroke-width: 3.5; }
.clock__num { fill: rgba(255, 255, 255, .55); font-size: 11px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; font-family: var(--font); }
.clock__target { fill: rgba(255, 201, 60, .28); stroke: var(--gold); stroke-width: 1.5; }
.clock__hand { stroke: #fff; stroke-width: 5; stroke-linecap: round; fill: var(--gold); transform-origin: 100px 100px; transition: transform 1.4s cubic-bezier(.25, 1, .3, 1), opacity .3s; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .6)); }
.clock.is-running .clock__hand { opacity: 0; }
.clock__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.clock__label { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.clock__value { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.clock.is-running .clock__face { animation: breathe 1.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.025); } }
.clock__btn { min-width: 220px; }
.clock__result { min-height: 3.2em; text-align: center; color: var(--muted); max-width: 26em; }
.clock__result strong { color: #fff; }
.clock__result .pts { display: inline-block; color: var(--ink); background: var(--gold); padding: 0 10px; border-radius: 99px; font-weight: 800; animation: pop .6s cubic-bezier(.3, 1.8, .5, 1) both; }

/* stats */
.stats { padding: clamp(40px, 8vh, 80px) 0; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 90, 95, .08), rgba(58, 134, 255, .08), rgba(56, 201, 92, .08)); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(50px, 7vw, 108px); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff 20%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 16px; }

/* ================================================================== support */
.support .stage { background: radial-gradient(60% 70% at 78% 55%, rgba(255, 201, 60, calc(.08 + var(--glow, 0) * .3)) 0%, transparent 70%), var(--bg); }
.support__grid { height: 100%; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 4vw; padding: calc(var(--header-h) + 10px) 0 24px; }
html:not(.js) .support__grid { padding: 120px 0; }
.biglines { font-size: clamp(46px, 7.4vw, 124px); line-height: .98; margin: 0; }
.biglines .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.biglines .ln > span { display: inline-block; }
.biglines .ln:nth-child(2) > span { color: var(--gold); }
.biglines .ln:nth-child(3) > span { color: transparent; -webkit-text-stroke: 2px #fff; }
.support__copy { max-width: 31em; margin-top: clamp(20px, 4vh, 40px); }
.support__copy h3 { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 10px; }
.support__copy p { color: var(--muted); }
.support__copy strong { color: var(--gold); }
.support__visual { position: relative; height: min(66vh, 560px); display: grid; place-items: center; perspective: 1400px; }
html:not(.js) .support__visual { display: none; }
.flip { position: relative; width: min(300px, 62vw); aspect-ratio: 3 / 4; transform-style: preserve-3d; will-change: transform; }
.flip__face { position: absolute; inset: 0; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.flip__back { background: linear-gradient(160deg, #3d1a80, #1d0b45); border: 3px dashed rgba(255, 201, 60, .6); box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.flip__q { font-size: clamp(140px, 16vw, 210px); font-weight: 800; color: rgba(255, 255, 255, .1); line-height: 1; }
.lock { position: absolute; left: 50%; top: 50%; width: 34%; transform: translate(-50%, -40%); filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.lock svg { width: 100%; height: auto; overflow: visible; }
.lock__shackle { transform-origin: 60px 46px; }
.flip__front { transform: rotateY(180deg); background: radial-gradient(circle at 50% 30%, #FFE28A 0%, #FFC93C 40%, #FF8C42 100%); color: var(--ink); box-shadow: 0 40px 100px rgba(255, 166, 0, .45); }
.flip__front::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255, 255, 255, .35) 20deg 30deg, transparent 30deg 60deg, rgba(255, 255, 255, .35) 60deg 70deg, transparent 70deg 110deg, rgba(255, 255, 255, .35) 110deg 120deg, transparent 120deg 180deg, rgba(255, 255, 255, .35) 180deg 190deg, transparent 190deg 250deg, rgba(255, 255, 255, .35) 250deg 260deg, transparent 260deg 300deg, rgba(255, 255, 255, .35) 300deg 310deg, transparent 310deg); animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.flip__star { position: relative; font-size: clamp(90px, 10vw, 130px); line-height: 1; color: #fff; text-shadow: 0 6px 0 rgba(38, 18, 79, .25); }
.flip__front b { position: relative; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; margin-top: 6px; }
.flip__front small { position: relative; font-size: 16px; font-weight: 700; opacity: .8; }
.sparks { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.sparks i { position: absolute; width: 14px; height: 14px; margin: -7px; opacity: 0; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.sparks i:nth-child(3n) { background: #fff; } .sparks i:nth-child(3n+1) { background: var(--rose); }
.sparks.is-on i { animation: spark 1.2s cubic-bezier(.15, .8, .3, 1) both; animation-delay: calc(var(--k) * 25ms); }
@keyframes spark { 0% { opacity: 1; transform: rotate(calc(var(--a) * 1deg)) translateX(30px) scale(.3); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(calc(var(--a) * 1deg)) translateX(var(--r)) scale(1.3) rotate(180deg); } }

/* ================================================================== faq */
.faq__list { margin-top: 16px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--faint); font-size: 26px; line-height: 1; transition: transform .4s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--gold); color: var(--ink); }
.faq summary:hover::after { background: rgba(255, 255, 255, .22); }
.faq details > div { padding: 0 60px 26px 4px; color: var(--muted); }
.faq details[open] > div { animation: fadeUp .5s var(--ease); }
.faq a { color: var(--gold); }

/* ================================================================== download */
.download { position: relative; background: var(--bg); }
.download__inner { --r: 150%; clip-path: circle(var(--r) at 50% 100%); background: linear-gradient(160deg, #FFD966 0%, #FFB627 30%, #FF8C42 60%, #FF4D8D 100%); color: var(--ink); text-align: center; padding: clamp(90px, 16vh, 170px) 0 0; overflow: hidden; }
.download__title { font-size: clamp(58px, 11vw, 180px); line-height: .9; letter-spacing: -.025em; margin-bottom: clamp(28px, 5vh, 50px); }
.download__hands { width: min(1100px, 112vw); max-width: none; margin: clamp(40px, 8vh, 80px) auto 0; position: relative; left: 50%; transform: translateX(-50%) translateY(var(--hy, 0)); }
.btn-row--center { justify-content: center; }

/* ================================================================== footer */
.site-footer { background: #0c0222; padding: 70px 0 30px; color: var(--muted); font-size: 16px; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.brand--footer .brand__word { font-size: 34px; }
.site-footer__tagline { margin-top: 10px; max-width: 22em; }
.site-footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; font-size: 13px; opacity: .75; }

/* ================================================================== toast, reveal, split */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 150; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 12px 22px; border-radius: 99px; background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); transition: transform .45s var(--ease), opacity .3s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .split .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js .split .sw > span { display: inline-block; transform: translateY(115%) rotate(4deg); transition: transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .split.is-in .sw > span { transform: none; }

/* ================================================================== legal pages */
.legal-main { padding: calc(var(--header-h) + clamp(40px, 8vh, 90px)) 0 clamp(70px, 12vh, 130px); background: radial-gradient(80% 50% at 50% 0%, #2f0c6b 0%, var(--bg) 70%); }
.legal { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.legal h1 { font-size: clamp(40px, 6vw, 76px); margin-bottom: 10px; }
.legal__meta { color: var(--gold); font-weight: 800; margin-bottom: 26px; }
.legal__intro { font-size: 20px; color: #fff; }
.legal h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 48px 0 12px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h3 { font-size: 20px; margin: 26px 0 8px; }
.legal p, .legal li, .legal td { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal strong { color: #fff; }
.legal a { color: var(--gold); }
.legal section > p:first-child { margin-top: 0; }
.legal__toc { margin: 28px 0 10px; padding: 22px 26px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.legal__toc h2 { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.legal__toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 30px; }
.legal__toc a { color: #fff; text-decoration: none; }
.legal__toc a:hover { color: var(--gold); }
.legal__card { padding: 24px 28px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.legal__card p { margin: 0; }
.legal__card p + p { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal th { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.legal__back { margin-top: 56px; }
@media (max-width: 640px) { .legal__toc ol { columns: 1; } .legal table, .legal thead, .legal tbody, .legal tr, .legal td, .legal th { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { padding: 12px 0; border-bottom: 1px solid var(--line); } .legal td:first-child { color: #fff; } }

/* ================================================================== responsive */
@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 900px) {
  .how__grid, .ctrl__grid, .support__grid { grid-template-columns: 1fr; align-content: center; gap: 3vh; }
  .how__grid { padding-top: calc(var(--header-h) + 4px); }
  .beat__n { font-size: 44px; margin: 0; }
  .beat h3 { margin-bottom: 8px; }
  .beat-dots { margin-top: 18px; }
  .how__visual { width: min(100%, 520px); margin-inline: auto; }
  .ctrl__title { margin-bottom: 14px; }
  .modes { gap: 14px; margin-bottom: 16px; padding-bottom: 8px; }
  .modes li { font-size: 14px; }
  .ctrl .beat h3 { font-size: 24px; margin-bottom: 6px; }
  .ctrl .beat p { font-size: 15.5px; }
  .ctrl__visual { height: 42vh; }
  .support__grid { gap: 2vh; }
  .support__visual { height: 36vh; }
  .flip { width: auto; height: 100%; }
  .support__copy { margin-top: 14px; }
  .support__copy p { font-size: 16px; }
  .try__grid { grid-template-columns: 1fr; gap: 50px; }
}
@media (max-width: 900px) and (max-height: 720px) {
  .ctrl .beat p { font-size: 14.5px; }
  .ctrl__visual { height: 36vh; }
  .ctrl__title { font-size: 32px; }
}
@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .faq details > div { padding-right: 4px; }
  .try__rules { grid-template-columns: 1fr; }
  .btn--store span { font-size: 18px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__glow::before, .hero__glow::after { animation: none; }
}
