/* Floored — marketing site styles. Extends the SHIPPED design system: tokens mirror /design-tokens.json
   (the same source the iOS app + TV receiver read), the rounded face is the receiver's self-hosted Nunito,
   and the glass/hairline surfaces match Theme.swift + receiver/styles.css. Dark by identity; no light mode. */

@font-face {
  font-family: "Floored Rounded";
  src: url("/assets/nunito-vf.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  /* palette — mirrors design-tokens.generated.css */
  --bg: #0b0b12;
  --ink: #eafeff;       /* skeleton core */
  --cyan: #22d3ee;      /* skeleton glow */
  --magenta: #f472b6;   /* joints */
  --violet: #a78bfa;    /* ground */
  --pink: #ff5ca8;
  --blue: #6a8bff;
  --green: #34c759;
  --gold: #ffd400;
  --text: #e7e7f0;
  --muted: #8a8aa0;
  /* composite surfaces (= receiver --glass/--hair, Theme.swift) */
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.09);
  --hair: rgba(255, 255, 255, 0.12);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01) 60%);
  /* brand gradient — the ONE accent moment per viewport */
  --grad: linear-gradient(92deg, var(--pink), var(--blue) 72%);
  --grad-3: linear-gradient(135deg, #ff5ca8, #a86bdd 50%, #6a8bff);
  --r-card: 20px;
  --r-chip: 14px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.2, 0.9, 0.2, 1.2);
  /* shared beat grid — the hero phone dances an 8-count amapiano bar @ 112 BPM; every looping
     hero animation (skeleton, judgments, score, combo, ambient glow) uses --bar/--beat so the
     document timeline keeps them phase-locked. See design spec "Scored Live" hero phone. */
  --bar: 4.2857s;   /* 8 counts @ 112 BPM */
  --beat: 0.53571s; /* 1 count */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Floored Rounded", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
/* nightlife depth — a single static radial behind everything (matches the receiver's stage glow) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(80vw 60vh at 70% -5%, rgba(106, 139, 255, 0.16), transparent 60%),
    radial-gradient(70vw 55vh at 12% 8%, rgba(255, 92, 168, 0.14), transparent 55%),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.brandtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gold { color: var(--gold); }

/* reveal-on-scroll (JS adds .in); reduced-motion + no-JS both show content) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 16px; border-radius: 999px; padding: 14px 26px; cursor: pointer; border: 0; transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.12s ease; white-space: nowrap; }
.btn:active { transform: scale(0.96); opacity: 0.92; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 30px rgba(255, 92, 168, 0.35); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28); }
.btn-primary:hover { box-shadow: 0 12px 38px rgba(255, 92, 168, 0.5); }
.btn-ghost { color: var(--text); background: var(--glass-2); border: 1px solid var(--hair); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn.lg { font-size: 18px; padding: 16px 32px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease; background: rgba(11, 11, 18, 0.45); backdrop-filter: blur(10px) saturate(1.1); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.nav.scrolled { background: rgba(11, 11, 18, 0.72); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--hair); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brandmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brandmark .squares { display: flex; gap: 4px; }
.brandmark .squares i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 700; font-size: 15px; transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
/* nav CTA: white label (override the .nav-links a muted color via higher specificity), smaller + tighter glow */
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav .btn-primary { padding: 10px 18px; font-size: 15px; box-shadow: 0 4px 14px rgba(255, 92, 168, 0.25); }
.nav .btn-primary:hover { box-shadow: 0 6px 20px rgba(255, 92, 168, 0.38); }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; background: var(--glass); border: 1px solid var(--hair); border-radius: var(--r-chip); color: var(--text); cursor: pointer; padding: 0; }
.nav-toggle:active { background: var(--glass-2); }
.nav-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 820px) {
  .nav-links { position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(11, 11, 18, 0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); padding: 8px 22px 22px; transform: translateY(-120%); transition: transform 0.3s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
  .nav-links .btn { margin-top: 14px; }
  .nav-toggle { display: grid; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; color: #fff; }
h2 { font-size: clamp(28px, 4.4vw, 42px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text); opacity: 0.86; margin-top: 12px; }
section .kicker { display: block; margin-bottom: 12px; }

/* ---------- hero ---------- */
.hero { padding-top: 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); }
.hero .sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--text); opacity: 0.88; margin: 18px 0 28px; max-width: 30ch; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fineprint { color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.hero .fineprint b { color: var(--text); font-weight: 700; }

/* hero stage: the phone with the dancing skeleton + score chip + share card */
.stage { position: relative; display: grid; place-items: center; min-height: 460px; }
.phone { position: relative; width: min(310px, 78vw); aspect-ratio: 9 / 19; border-radius: 38px; background: linear-gradient(180deg, #14141f, #0c0c14); border: 1px solid var(--hair); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); overflow: hidden; }
.phone::after { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); }
.phone .screen { position: absolute; inset: 10px; border-radius: 30px; overflow: hidden; background: radial-gradient(120% 90% at 50% 18%, #1a1726 0%, #0a0a11 70%); }
/* z-order inside .screen: 0 aura, 1 motes, 2 skeleton, 3 judgments, 4 vignette, 5 HUD */
.score-chip { position: absolute; top: 16px; left: 16px; z-index: 5; display: flex; align-items: baseline; gap: 8px; padding: 8px 13px; border-radius: var(--r-chip); background: var(--glass-strong, rgba(13, 13, 22, 0.82)); border: 1px solid var(--hair); backdrop-filter: blur(6px); }
.score-chip .n { font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.score-chip .lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.combo { position: absolute; top: 62px; left: 16px; right: auto; z-index: 5; padding: 4px 10px; border-radius: 999px; background: rgba(13, 13, 22, 0.72); border: 1px solid var(--hair); backdrop-filter: blur(6px); font-weight: 800; font-size: 13px; color: var(--gold); text-shadow: 0 0 14px rgba(255, 212, 0, 0.55); }
.share-card { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: var(--r-chip); background: var(--sheen), rgba(18, 18, 28, 0.7); border: 1px solid var(--hair); }
.share-card .dot { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-3); flex: 0 0 auto; }
.share-card .t { font-size: 13px; font-weight: 700; color: #fff; }
.share-card .u { font-size: 11px; color: var(--muted); }

/* the skeleton — one container filter (perf: replaces per-line/per-head drop-shadow filters) */
.skel { position: absolute; inset: 0; z-index: 2; }
.skel svg { width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45)); }
.sk-line { stroke: url(#skg); stroke-width: 46; stroke-linecap: round; fill: none; }
.sk-body { fill: rgba(234, 254, 255, 0.07); stroke: rgba(34, 211, 238, 0.28); stroke-width: 2; stroke-linejoin: round; }
.sk-joint { fill: var(--magenta); }
.sk-knee { fill: var(--magenta); }
.sk-head { fill: url(#skg); }
.sk-floor { fill: var(--violet); opacity: 0.35; filter: blur(7px); }

/* the groove — an 8-count amapiano choreography locked to the shared --bar/--beat grid */
.sk-fig   { transform-box: view-box; transform-origin: 512px 540px; animation: chFig   var(--bar) ease-in-out infinite; }
.sk-headg { transform-box: view-box; transform-origin: 512px 352px; animation: chHead  var(--bar) ease-in-out infinite; }
.sk-armL  { transform-box: view-box; transform-origin: 446px 372px; animation: chArmL  var(--bar) ease-in-out infinite; }
.sk-farmL { transform-box: view-box; transform-origin: 392px 300px; animation: chFarmL var(--bar) ease-in-out infinite; animation-delay: 0.06s; }
.sk-armR  { transform-box: view-box; transform-origin: 578px 372px; animation: chArmR  var(--bar) ease-in-out infinite; }
.sk-farmR { transform-box: view-box; transform-origin: 632px 300px; animation: chFarmR var(--bar) ease-in-out infinite; animation-delay: 0.06s; }
.sk-legL  { transform-box: view-box; transform-origin: 470px 540px; animation: chLegL  var(--bar) ease-in-out infinite; }
.sk-legR  { transform-box: view-box; transform-origin: 554px 540px; animation: chLegR  var(--bar) ease-in-out infinite; }
.sk-shinL { transform-box: view-box; transform-origin: 432px 672px; animation: chShinL var(--bar) ease-in-out infinite; }
.sk-shinR { transform-box: view-box; transform-origin: 606px 654px; animation: chShinR var(--bar) ease-in-out infinite; }
.sk-floor { transform-box: view-box; transform-origin: 512px 848px; animation: chFloor var(--bar) ease-in-out infinite; }
.sk-ring  { transform-box: view-box; transform-origin: 512px 848px; fill: none; stroke: var(--cyan); stroke-width: 4; opacity: 0; animation: chRing var(--bar) linear infinite; }

@keyframes chFig {
  0%     { transform: translate(-22px, 6px)  rotate(-3deg); }
  6.25%  { transform: translate(-12px, -18px) rotate(-1.5deg); }
  12.5%  { transform: translate(22px, 6px)   rotate(3deg); }
  18.75% { transform: translate(12px, -18px) rotate(1.5deg); animation-timing-function: cubic-bezier(.2,.8,.3,1.15); }
  25%    { transform: translate(-30px, -8px) rotate(-5deg); }
  31.25% { transform: translate(-14px, -20px) rotate(-2deg); }
  37.5%  { transform: translate(18px, 4px)   rotate(3deg); }
  43.75% { transform: translate(8px, -16px)  rotate(1deg); animation-timing-function: cubic-bezier(.2,.8,.3,1.15); }
  50%    { transform: translate(30px, -2px)  rotate(5deg); }
  56.25% { transform: translate(14px, -10px) rotate(2deg); }
  62.5%  { transform: translate(0, 30px)     rotate(0deg); animation-timing-function: cubic-bezier(.2,.7,.2,1.2); }
  75%    { transform: translate(0, -64px)    rotate(0deg); }
  82%    { transform: translate(0, -8px)     rotate(0deg); }
  96%    { transform: translate(0, -4px)     rotate(0deg); }
  100%   { transform: translate(-22px, 6px)  rotate(-3deg); }
}
@keyframes chHead {
  0%,12.5%,37.5% { transform: rotate(3deg); }
  6.25%,18.75%,43.75% { transform: rotate(-3deg); }
  25%   { transform: rotate(-5deg); }
  50%   { transform: rotate(5deg); }
  62.5% { transform: rotate(6deg); }
  75%   { transform: rotate(-6deg); }
  82%,96% { transform: rotate(0deg); }
  100%  { transform: rotate(3deg); }
}
@keyframes chArmL {
  0%     { transform: rotate(-74deg); }
  6.25%  { transform: rotate(-68deg); }
  12.5%  { transform: rotate(-78deg); }
  25%    { transform: rotate(-80deg); }
  37.5%  { transform: rotate(-74deg); animation-timing-function: cubic-bezier(.2,.8,.3,1.25); }
  50%    { transform: rotate(-52deg); }
  56.25% { transform: rotate(-64deg); }
  62.5%  { transform: rotate(-85deg); animation-timing-function: cubic-bezier(.2,.7,.2,1.3); }
  75%    { transform: rotate(4deg); }
  82%,96%{ transform: rotate(0deg); }
  100%   { transform: rotate(-74deg); }
}
@keyframes chFarmL {
  0%     { transform: rotate(62deg); }
  6.25%  { transform: rotate(54deg); }
  12.5%  { transform: rotate(68deg); }
  25%    { transform: rotate(70deg); }
  37.5%  { transform: rotate(60deg); animation-timing-function: cubic-bezier(.2,.8,.3,1.25); }
  50%    { transform: rotate(8deg); }
  56.25% { transform: rotate(30deg); }
  62.5%  { transform: rotate(80deg); animation-timing-function: cubic-bezier(.2,.7,.2,1.3); }
  75%    { transform: rotate(4deg); }
  82%,96%{ transform: rotate(-6deg); }
  100%   { transform: rotate(62deg); }
}
@keyframes chArmR {
  0%     { transform: rotate(74deg); }
  6.25%  { transform: rotate(68deg); }
  12.5%  { transform: rotate(78deg); }
  18.75% { transform: rotate(70deg); animation-timing-function: cubic-bezier(.2,.8,.3,1.25); }
  25%    { transform: rotate(-24deg); }
  31.25% { transform: rotate(-18deg); }
  37.5%  { transform: rotate(74deg); }
  50%    { transform: rotate(82deg); }
  62.5%  { transform: rotate(85deg); animation-timing-function: cubic-bezier(.2,.7,.2,1.3); }
  75%    { transform: rotate(-4deg); }
  82%,96%{ transform: rotate(0deg); }
  100%   { transform: rotate(74deg); }
}
@keyframes chFarmR {
  0%     { transform: rotate(-62deg); }
  6.25%  { transform: rotate(-54deg); }
  12.5%  { transform: rotate(-68deg); }
  18.75% { transform: rotate(-60deg); animation-timing-function: cubic-bezier(.2,.8,.3,1.25); }
  25%    { transform: rotate(-12deg); }
  31.25% { transform: rotate(-6deg); }
  37.5%  { transform: rotate(-66deg); }
  50%    { transform: rotate(-70deg); }
  62.5%  { transform: rotate(-80deg); animation-timing-function: cubic-bezier(.2,.7,.2,1.3); }
  75%    { transform: rotate(-4deg); }
  82%,96%{ transform: rotate(6deg); }
  100%   { transform: rotate(-62deg); }
}
@keyframes chLegL {
  0%   { transform: rotate(-2deg); } 12.5% { transform: rotate(4deg); }
  25%  { transform: rotate(-3deg); } 50%  { transform: rotate(6deg); }
  62.5%{ transform: rotate(-8deg); } 75%  { transform: rotate(-10deg); }
  82%,96% { transform: rotate(-2deg); } 100% { transform: rotate(-2deg); }
}
@keyframes chLegR {
  0%   { transform: rotate(-4deg); } 12.5% { transform: rotate(2deg); }
  25%  { transform: rotate(-5deg); } 50%  { transform: rotate(4deg); }
  62.5%{ transform: rotate(8deg); }  75%  { transform: rotate(10deg); }
  82%,96% { transform: rotate(2deg); } 100% { transform: rotate(-4deg); }
}
@keyframes chShinL {
  0%   { transform: rotate(4deg); }  6.25% { transform: rotate(-3deg); }
  12.5%{ transform: rotate(-4deg); } 18.75% { transform: rotate(3deg); }
  25%  { transform: rotate(5deg); }  37.5% { transform: rotate(-3deg); }
  50%  { transform: rotate(-6deg); } 62.5% { transform: rotate(16deg); }
  75%  { transform: rotate(-14deg); }
  82%,96% { transform: rotate(2deg); } 100% { transform: rotate(4deg); }
}
@keyframes chShinR {
  0%   { transform: rotate(-4deg); } 6.25% { transform: rotate(3deg); }
  12.5%{ transform: rotate(4deg); }  18.75% { transform: rotate(-3deg); }
  25%  { transform: rotate(6deg); }  37.5% { transform: rotate(3deg); }
  50%  { transform: rotate(5deg); }  62.5% { transform: rotate(-16deg); }
  75%  { transform: rotate(14deg); }
  82%,96% { transform: rotate(-2deg); } 100% { transform: rotate(-4deg); }
}
@keyframes chFloor {
  0%,12.5%,37.5%,50% { transform: scale(1);        opacity: 0.35; }
  62.5%              { transform: scale(1.14,1.2); opacity: 0.45; }
  75%                { transform: scale(0.78);     opacity: 0.16; }
  82%,96%            { transform: scale(1.02);     opacity: 0.38; }
  100%               { transform: scale(1);        opacity: 0.35; }
}
@keyframes chRing {
  0%,24.9%  { transform: scale(1);   opacity: 0; }
  25%       { transform: scale(1);   opacity: 0.5; }
  37%       { transform: scale(1.6); opacity: 0; }
  49.9%     { transform: scale(1);   opacity: 0; }
  50%       { transform: scale(1);   opacity: 0.4; }
  62%       { transform: scale(1.5); opacity: 0; }
  74.9%     { transform: scale(1);   opacity: 0; }
  75%       { transform: scale(1);   opacity: 0.6; }
  92%       { transform: scale(1.9); opacity: 0; }
  100%      { opacity: 0; }
}

/* reactive UI layer — judgments, score pop, combo pop, all keyed off the same --bar cycle */
.judge {
  position: absolute; z-index: 3; opacity: 0;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(13, 13, 22, 0.72); border: 1px solid var(--hair);
  backdrop-filter: blur(6px);
  font-weight: 800; font-size: 14px; letter-spacing: 0.07em;
  will-change: transform, opacity;
}
.judge-1, .judge-3 { color: #34c759; text-shadow: 0 0 12px rgba(52, 199, 89, 0.55); }
.judge-2 { color: #30d158; font-size: 12px; }
.judge-1 { right: 10%; top: 26%; animation: judge1 var(--bar) ease-out infinite; }
.judge-2 { left: 7%;  top: 42%; animation: judge2 var(--bar) ease-out infinite; }
.judge-3 { right: 8%; top: 13%; font-size: 16px; z-index: 6; animation: judge3 var(--bar) ease-out infinite; }

@keyframes judge1 {
  0%,24.9% { opacity: 0; transform: translateY(10px) scale(0.7); }
  26.5%    { opacity: 1; transform: translateY(0) scale(1.15); }
  29%      { transform: translateY(-2px) scale(1); }
  40%      { opacity: 1; transform: translateY(-14px) scale(1); }
  46%,100% { opacity: 0; transform: translateY(-24px) scale(1); }
}
@keyframes judge2 {
  0%,49.9% { opacity: 0; transform: translateY(10px) scale(0.7); }
  51.5%    { opacity: 1; transform: translateY(0) scale(1.1); }
  54%      { transform: translateY(-2px) scale(1); }
  64%      { opacity: 1; transform: translateY(-12px) scale(1); }
  70%,100% { opacity: 0; transform: translateY(-20px) scale(1); }
}
@keyframes judge3 {
  0%,74.9% { opacity: 0; transform: translateY(12px) scale(0.7); }
  76.5%    { opacity: 1; transform: translateY(0) scale(1.3); }
  79%      { transform: translateY(-2px) scale(1.05); }
  90%      { opacity: 1; transform: translateY(-14px) scale(1.05); }
  97%,100% { opacity: 0; transform: translateY(-24px) scale(1.05); }
}
.score-chip { transform-origin: top left; animation: scorePop var(--bar) ease-out infinite; }
@keyframes scorePop {
  0%,25%,50%,75%,100% { transform: scale(1); }
  27%,52% { transform: scale(1.06); }
  30%,55% { transform: scale(1); }
  77%     { transform: scale(1.1); }
  81%     { transform: scale(1); }
}
.combo { transform-origin: top left; animation: comboPop var(--bar) cubic-bezier(.2,.8,.3,1.4) infinite; }
@keyframes comboPop {
  0%,75%,100% { transform: scale(1) rotate(0deg); }
  77.5%       { transform: scale(1.35) rotate(-3deg); }
  80%         { transform: scale(0.96) rotate(1deg); }
  83%         { transform: scale(1) rotate(0deg); }
}

/* atmosphere — aura wash, ambient beat pulse, vignette, rising motes */
.screen .aura {
  position: absolute; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 30% 30%, rgba(106, 139, 255, 0.10), transparent 65%),
    radial-gradient(50% 42% at 72% 62%, rgba(255, 92, 168, 0.08), transparent 60%);
  animation: auraDrift 18s ease-in-out infinite alternate;
}
@keyframes auraDrift {
  from { transform: translate3d(-3%, 2%, 0) rotate(-3deg); }
  to   { transform: translate3d(3%, -2%, 0) rotate(3deg); }
}
.screen::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(90% 55% at 50% 100%, rgba(167, 139, 250, 0.16), transparent 60%);
  animation: beatPulse var(--beat) ease-out infinite;
}
@keyframes beatPulse { 0% { opacity: 1; } 45% { opacity: 0.55; } 100% { opacity: 1; } }
.screen::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border-radius: 30px; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55);
}
.motes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.motes i {
  position: absolute; bottom: -6px; width: 3px; height: 3px; border-radius: 50%;
  opacity: 0; animation: moteRise 8s linear infinite;
}
.motes i:nth-child(1) { left: 12%; background: var(--cyan);    animation-delay: 0s; }
.motes i:nth-child(2) { left: 30%; background: var(--magenta); animation-delay: 1.4s; transform: scale(0.8); }
.motes i:nth-child(3) { left: 46%; background: var(--violet);  animation-delay: 2.8s; }
.motes i:nth-child(4) { left: 60%; background: var(--cyan);    animation-delay: 4.2s; transform: scale(1.3); }
.motes i:nth-child(5) { left: 76%; background: var(--magenta); animation-delay: 5.6s; }
.motes i:nth-child(6) { left: 88%; background: var(--violet);  animation-delay: 7s;   transform: scale(0.8); }
@keyframes moteRise {
  0%   { transform: translateY(0);      opacity: 0; }
  8%   { opacity: 0.5; }
  75%  { opacity: 0.35; }
  100% { transform: translateY(-560px); opacity: 0; }
}

/* offstage pause (JS toggles this on the .stage wrapper via IntersectionObserver + document.hidden) */
.stage.offstage *, .stage.offstage *::before, .stage.offstage *::after { animation-play-state: paused; }

/* ---------- hook strip ("doesn't need your face") ---------- */
.hook { background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.hook .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.hook .compare { display: flex; gap: 16px; justify-content: center; }
.frame { width: 130px; aspect-ratio: 9 / 16; border-radius: 18px; border: 1px solid var(--hair); display: grid; place-items: center; text-align: center; padding: 12px; position: relative; }
.frame.no { background: #111; color: var(--muted); }
.frame.no::after { content: ""; position: absolute; inset: 0; border-radius: 18px; background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 69, 58, 0.16) 10px, rgba(255, 69, 58, 0.16) 12px); }
.frame.yes { background: radial-gradient(120% 90% at 50% 20%, #1a1726, #0a0a11); border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 40px rgba(34, 211, 238, 0.18); }
.frame .cap { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }

/* ---------- cards / grids ---------- */
.card { background: var(--sheen), var(--glass); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 24px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step .num { font-size: 13px; font-weight: 800; color: var(--pink); letter-spacing: 0.1em; }
.step h3 { margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--hair); font-size: 20px; margin-bottom: 14px; }
.feat h3 { margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15px; }

/* ---------- cast band ---------- */
.cast { background: linear-gradient(180deg, rgba(106, 139, 255, 0.08), transparent); border-top: 1px solid var(--hair); }
.cast .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tv { aspect-ratio: 16 / 10; border-radius: 16px; background: radial-gradient(120% 100% at 50% 0%, #18162a, #0a0a12); border: 1px solid var(--hair); position: relative; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); display: grid; place-items: center; }
.tv .lanes { display: flex; gap: 10px; }
.tv .lanes i { width: 12px; height: 12px; border-radius: 50%; }

/* ---------- founding ---------- */
.founders { display: flex; gap: 16px; flex-wrap: wrap; }
.founder { width: 110px; text-align: center; }
.founder .av { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; background: radial-gradient(120% 120% at 50% 25%, #1a1726, #0a0a11); border: 1px solid var(--hair); display: grid; place-items: center; position: relative; }
.founder .av .star { position: absolute; bottom: -4px; right: 4px; color: var(--gold); font-size: 18px; filter: drop-shadow(0 0 8px rgba(255, 212, 0, 0.6)); }
.founder .nm { font-size: 13px; color: var(--muted); }
.badge-founding { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--gold); border: 1px solid rgba(255, 212, 0, 0.4); border-radius: 999px; padding: 5px 12px; background: rgba(255, 212, 0, 0.07); }

/* ---------- privacy block ---------- */
.privacy { border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--sheen), var(--glass); padding: 32px; }
.privacy ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 18px; }
.privacy li { position: relative; padding-left: 26px; color: var(--text); opacity: 0.9; font-size: 15px; }
.privacy li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); box-shadow: 0 0 8px rgba(244, 114, 182, 0.6); }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 24px; font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 15px; }

/* ---------- closing CTA ---------- */
.closing { text-align: center; }
.closing .inner { border: 1px solid var(--hair); border-radius: 28px; padding: 64px 28px; background: radial-gradient(120% 140% at 50% 0%, rgba(255, 92, 168, 0.16), transparent 55%), var(--glass); position: relative; overflow: hidden; }
.closing h2 { max-width: 16ch; margin: 0 auto 8px; }
.closing .fineprint { color: var(--muted); font-size: 13.5px; margin-top: 14px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--hair); padding: 44px 0 56px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
footer a { display: block; color: var(--muted); padding: 5px 0; font-size: 14px; }
footer a:hover { color: var(--text); }
footer .region { color: var(--muted); font-size: 13px; margin-top: 14px; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--hair); margin-top: 24px; padding-top: 20px; color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- legal / support documents ---------- */
.legal-doc { max-width: 720px; margin: 0 auto; padding: 56px 22px 88px; }
.legal-doc h1 { font-size: clamp(28px, 5vw, 34px); margin-bottom: 4px; }
.legal-doc .upd { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal-doc h2 { font-size: 19px; color: #fff; margin: 30px 0 8px; }
.legal-doc p, .legal-doc li { color: var(--text); opacity: 0.85; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 0 0 12px; display: grid; gap: 7px; }
.legal-doc a { color: var(--pink); }
.legal-doc b { color: #fff; font-weight: 700; }
.legal-doc .agent { white-space: pre-line; background: var(--glass); border: 1px solid var(--hair); border-radius: var(--r-chip); padding: 14px 16px; margin: 14px 0; color: var(--text); opacity: 1; }
.legal-doc .note { background: var(--glass); border: 1px solid var(--hair); border-radius: var(--r-chip); padding: 12px 14px; color: var(--muted); font-size: 14px; margin: 14px 0; }
.legal-doc .forming { background: var(--glass); border: 1px solid var(--hair); border-left: 3px solid var(--pink); border-radius: var(--r-chip); padding: 12px 15px; margin: 0 0 24px; font-size: 14px; opacity: 0.95; }

/* ---------- share / duel page (the /r/<code> social-link landing) ---------- */
.duel-page { max-width: 440px; margin: 0 auto; padding: 28px 20px 56px; }
.duel-page .mark { display: flex; gap: 8px; margin-bottom: 18px; }
.duel-page .mark i { width: 16px; height: 16px; border-radius: 5px; display: block; }
.duel-page h1 { font-size: 26px; margin: 0 0 4px; line-height: 1.12; }
.duel-page .by { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.duel-page .duel { background: var(--sheen), var(--glass); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 16px 18px; font-size: 18px; }
.duel-page .duel .score { color: var(--gold); }
.duel-page .duel.open { color: var(--pink); font-weight: 800; letter-spacing: 0.3px; }
.duel-page .embed { position: relative; padding-top: 56.25%; border-radius: var(--r-card); overflow: hidden; background: #000; margin: 16px 0; border: 1px solid var(--hair); }
.duel-page .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.duel-page .poster, .duel-page .tt img { width: 100%; border-radius: var(--r-card); display: block; margin: 16px 0 0; border: 1px solid var(--hair); }
.duel-page .tt { display: block; position: relative; color: #fff; }
.duel-page .tt span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(11, 11, 18, 0.82); padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.duel-page .cta { display: block; text-align: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; border-radius: 999px; padding: 15px 18px; margin: 18px 0 8px; box-shadow: 0 10px 30px rgba(255, 92, 168, 0.3); }
.duel-page .alt { display: block; text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.duel-page .qrbox { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 20px 0 8px; }
.duel-page .qrbox .qr { background: #fff; padding: 12px; border-radius: 14px; line-height: 0; }
.duel-page .qrbox p { color: var(--muted); font-size: 14px; margin: 0; text-align: center; }
.duel-page ol { list-style: none; margin: 10px 0 0; padding: 0; }
.duel-page li { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--hair); font-size: 15px; }
.duel-page .rk { width: 24px; color: var(--gold); font-weight: 700; }
.duel-page .nm { flex: 1; }
.duel-page .sc { font-variant-numeric: tabular-nums; color: #cfd2ff; }
.duel-page h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); margin: 22px 0 0; }
.duel-page .meta { color: var(--muted); font-size: 14px; margin-top: 6px; }
/* Re-share ghost capsule: third tier under the gradient cta and its .alt qualifier. The [hidden]
   rule is load-bearing — display:flex would otherwise defeat the attribute for no-JS visitors. */
.duel-page .share { display: flex; width: fit-content; margin: 0 auto; font-size: 15px; padding: 11px 22px; color: var(--text); }
.duel-page .share[hidden] { display: none; }
.duel-page .share svg { flex: none; }
.duel-page .share.copied { color: var(--green); border-color: rgba(52, 199, 89, 0.45); }
/* ---------- attempts wall (published-attempt archive under the leaderboard, design §14) ---------- */
.duel-page .wall ul { list-style: none; margin: 4px 0 0; padding: 0; }
.duel-page .wall li { display: flex; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid var(--hair); font-size: 15px; }
.duel-page .wall .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-page .wall .stars { color: var(--muted); font-size: 13px; letter-spacing: 1px; flex: none; }
.duel-page .wall .sc { font-variant-numeric: tabular-nums; color: #cfd2ff; flex: none; }
.duel-page .wall .wcr { color: var(--gold); flex: none; }
.duel-page .wall li:has(.wcr) .sc, .duel-page .proof.crown .sc { color: var(--gold); }
.duel-page .wall .seal { color: var(--green); flex: none; }
.duel-page .wall .watch { color: var(--muted); font-size: 13px; flex: none; padding: 10px 6px; margin: -10px 0; } /* 44px tap height via padding */
.duel-page .proof { background: var(--sheen), var(--glass); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; margin: 12px 0; }
.duel-page .proof.crown { border-color: rgba(255, 212, 0, 0.4); }
.duel-page .wm { display: block; position: relative; padding-top: 56.25%; background: #000; color: #fff; }
.duel-page .wm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.duel-page .wm .ph { position: absolute; inset: 0; background: var(--glass); }
.duel-page .wm .pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(11, 11, 18, 0.82); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.duel-page .proof .prow { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; }
.duel-page .proof .prow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-page .proof .embed { margin: 0; border: 0; border-radius: 0; } /* facade swap target: flush inside the card */
.duel-page .wall details summary { list-style: none; cursor: pointer; text-align: center; color: var(--muted); font-size: 13px; padding: 12px 4px; }
.duel-page .wall details summary::-webkit-details-marker { display: none; }
.duel-page .wall details summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.duel-page .wall details[open] summary { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero .wrap, .hook .wrap, .cast .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .stage { order: -1; min-height: 380px; }
  .steps, .features { grid-template-columns: 1fr; }
  .privacy ul { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
/* small phones: shrink the in-screen HUD so chip + combo + judgments never collide */
@media (max-width: 560px) {
  .score-chip { padding: 6px 10px; gap: 6px; }
  .score-chip .n { font-size: 16px; }
  .score-chip .lbl { display: none; }
  .combo { font-size: 11px; top: 52px; }
  .judge { font-size: 11px; padding: 5px 10px; }
  .judge-2 { font-size: 10px; }
  .judge-3 { font-size: 12px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .motes { display: none; }
  .screen .aura { animation: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sk-fig, .sk-headg, .sk-armL, .sk-armR, .sk-farmL, .sk-farmR, .sk-legL, .sk-legR,
  .sk-shinL, .sk-shinR,
  .sk-floor, .sk-ring, .judge, .score-chip, .combo, .screen::after, .screen .aura, .motes i {
    animation: none;
  }
  .motes { display: none; }
  .judge-3 { opacity: 1; transform: none; }
  .btn:active { transform: none; }
}
