/* Mineral Line landing page, v2 (art direction).
   Sections: fonts + tokens, base, components, fit system, lifted app UI, mock additions, nav, hero,
   ticker, interstitial, scenes, 01 tracker, versus, 02 linked, 03 army, 04 rules, 05 stats,
   06 the tournament kit, 07 privacy + FAQ, 08 join, footer, responsive.

   Type: Barlow 500 for reading text (never 400 on the page itself), Barlow SC 600/700 for display.
   Labels are real labels (15px+ at 1440, title case, no wide tracking), never tiny tracked caps.
   Spacing: one scale (--sp-1 … --sp-9, 8/12/16/24/32/48/64/96/128 at 1440) used the same way in
   every section: label → sp-4 → heading → sp-4 → lead → sp-6 → content. Everything is fluid
   (clamp + vw) and keeps growing past 1600px so 2560 and 3840 read like a bigger 1440.
   Device mocks are drawn at fixed sizes inside [data-fit] boxes and scaled by site.js (--s). */

/* ==================================================================== fonts + tokens */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('../fonts/Barlow-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('../fonts/Barlow-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('../fonts/Barlow-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('../fonts/Barlow-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 500; font-display: swap; src: url('../fonts/BarlowSemiCondensed-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 600; font-display: swap; src: url('../fonts/BarlowSemiCondensed-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Barlow SC'; font-weight: 700; font-display: swap; src: url('../fonts/BarlowSemiCondensed-Bold.woff2') format('woff2'); }

:root {
  --bg: #0E0F11;
  --s1: #16181B;
  --s2: #1E2125;
  --s3: #272A2F;
  --line: #26292E;
  --edge: #2F3339;
  --text: #ECEDEF;
  --text2: #A2A7AE;
  --text3: #7D828A;
  --terran: #3F7EFF;
  --terran-fill: #2F6AE6;
  --terran-ink: #8FB2FF;
  --zerg: #B45CFF;
  --zerg-fill: #8A3FD1;
  --zerg-ink: #CC94FF;
  --protoss: #F4C24F;
  --legal: #3DBE7A;
  --damage: #F0524F;
  --amber: #E9A23B;
  --amber-ink: #F2BE6E;
  /* the mark's crystals: the brand accent */
  --cy-l: #A6E6F3;
  --cy: #5CC4E0;
  --cy-d: #2F8DB3;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* spacing scale: 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 / 128 at 1440, growing on big screens */
  --sp-1: clamp(8px, .55vw, 22px);
  --sp-2: clamp(12px, .83vw, 32px);
  --sp-3: clamp(16px, 1.11vw, 42px);
  --sp-4: clamp(24px, 1.67vw, 64px);
  --sp-5: clamp(32px, 2.22vw, 86px);
  --sp-6: clamp(48px, 3.33vw, 128px);
  --sp-7: clamp(64px, 4.44vw, 170px);
  --sp-8: clamp(96px, 6.67vw, 256px);
  --sp-9: clamp(128px, 8.89vw, 340px);

  --gut: clamp(20px, 4vw, 168px);
  --gap: var(--sp-4);
  --sec-y: var(--sp-9);
  --nav-h: clamp(64px, 4.2vw, 160px);
  --cut: clamp(12px, .95vw, 36px);
  --pad: clamp(28px, 2.3vw, 88px);        /* inside cards */

  --fs-label: clamp(15px, .42vw + 9px, 34px);
  --fs-body: clamp(17px, .5vw + 10.4px, 40px);
  --fs-lead: clamp(19px, .78vw + 9.5px, 52px);
  --fs-h3: clamp(22px, 1.1vw + 7px, 66px);
  --fs-h2: clamp(40px, 5vw, 210px);
  --fs-h2-pin: clamp(34px, 3.5vw, 150px);
  --fs-h2-xl: clamp(48px, 7vw, 300px);
  --fs-nav: clamp(15px, .38vw + 9.5px, 32px);
}

/* ==================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: 'Barlow', -apple-system, system-ui, sans-serif;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.58;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
::selection { background: rgba(92, 196, 224, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--cy-l); outline-offset: 3px; border-radius: 2px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; padding-left: var(--gut); padding-right: var(--gut); }
section { position: relative; }
.sec { padding: var(--sec-y) 0 0; }

h1, h2, h3 { font-family: 'Barlow SC', 'Barlow', sans-serif; font-weight: 600; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }

/* ==================================================================== components */
/* Section label: the number in cyan, then the name. A real label, not tracked caps. */
.idx { display: flex; align-items: baseline; gap: .6em; font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: var(--fs-label); line-height: 1.2; color: var(--text2); letter-spacing: .01em; }
.idx-n { color: var(--cy); font-variant-numeric: tabular-nums; }

.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.01em; margin-top: var(--sp-4); max-width: 13ch; }
.h2-xl { font-size: var(--fs-h2-xl); line-height: 1; letter-spacing: -.015em; }
.lede { font-size: var(--fs-lead); font-weight: 500; line-height: 1.52; color: var(--text2); max-width: 30em; margin-top: var(--sp-4); }
.num { font-variant-numeric: tabular-nums; }

/* Tags: sentence case, semibold, on a tinted chip */
.tag, .soon { display: inline-flex; align-items: center; height: 1.95em; padding: 0 .7em; font-family: 'Barlow', sans-serif; font-size: calc(var(--fs-label) * .93);
  font-weight: 600; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.soon { background: rgba(233, 162, 59, .16); color: var(--amber-ink); box-shadow: inset 0 0 0 1px rgba(233, 162, 59, .32); }
.tag-cy { background: rgba(92, 196, 224, .14); color: var(--cy-l); box-shadow: inset 0 0 0 1px rgba(92, 196, 224, .34); }

/* Chamfered buttons (the app's clipped corner). Filled light by default; .store-dark is the quieter one. */
.stores { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.store { --c: calc(var(--cut) * .72); position: relative; display: inline-block; flex: none; font-size: clamp(16px, .45vw + 9.5px, 36px); text-decoration: none; color: var(--bg);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.store-in { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .14em;
  min-width: 10.4em; height: 3.6em; padding: 0 1.2em; background: var(--text); transition: background .25s; }
.store small { font-size: max(12.5px, .76em); font-weight: 500; line-height: 1.1; color: #3A3E45; white-space: nowrap; }
.store b { font-family: 'Barlow SC', sans-serif; font-size: 1.36em; font-weight: 700; line-height: 1; white-space: nowrap; }
.store:hover .store-in { background: var(--cy-l); }
.store-dark { color: var(--text); padding: 1px; background: #4A4F57; }
.store-dark .store-in { --c2: calc(var(--c) - .5px); background: var(--s2);
  clip-path: polygon(var(--c2) 0, 100% 0, 100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%, 0 100%, 0 var(--c2)); }
.store-dark small { color: var(--text2); }
.store-dark:hover { background: var(--cy); }
.store-dark:hover .store-in { background: var(--s3); }
.store:focus-visible { clip-path: none; outline-offset: 3px; }

.btn { --c: calc(var(--cut) * .6); display: inline-flex; align-items: center; justify-content: center; height: 2.6em; padding: 0 1.15em; font-weight: 600;
  text-decoration: none; white-space: nowrap; line-height: 1;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background .25s, color .25s; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: var(--cy-l); }
.btn:focus-visible { clip-path: none; }

/* Spec rows: a label, then the value */
.spec { margin-top: var(--sp-6); max-width: 34em; border-bottom: 1px solid var(--edge); }
.spec > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); align-items: baseline; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--edge); }
.spec dt { font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: var(--fs-label); color: var(--text2); }
.spec dd { font-weight: 600; color: var(--text); }
.spec .sep { color: var(--text3); margin: 0 .35em; font-weight: 500; }

/* ==================================================================== fit system
   A [data-fit] box holds a .fit-in drawn at --w × --h design pixels; site.js sets --s.
   width: the box takes the design's aspect ratio and the content scales to its width.
   contain: the box's size comes from layout; content scales to fit inside, centred. */
[data-fit] { position: relative; --s: 1; }
[data-fit] > .fit-in { position: absolute; left: 50%; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  transform-origin: 50% 0; transform: translateX(-50%) scale(var(--s)); }
[data-fit="width"] { aspect-ratio: var(--w) / var(--h); }
[data-fit="contain"] > .fit-in { top: 50%; transform-origin: 50% 50%; transform: translate(-50%, -50%) scale(var(--s)); }

/* ==== LIFTED APP UI: start ==== */
/* ---------- device frames (drawn, not images) ---------- */
/* --n is the device width in px, unitless, so the in-screen UI can scale off it in pure CSS. */
.dev { --n: 300; position: relative; width: calc(var(--n) * 1px); flex: none; }
.dev .scr { position: relative; overflow: hidden; background: #000; }
.dev .scr img { width: 100%; height: auto; }
.dev > figcaption { position: absolute; left: -30px; right: -30px; top: calc(100% + 16px); text-align: center; font-size: 14px; color: var(--text3); }

.dev-phone { --bz: calc(var(--n) * 0.03px); padding: var(--bz); border-radius: calc(var(--n) * 0.165px);
  background: linear-gradient(#1a1c20, #121316);
  box-shadow: 0 0 0 1px #33363C, inset 0 0 0 1px rgba(255,255,255,0.05), 0 calc(var(--n) * 0.12px) calc(var(--n) * 0.22px) calc(var(--n) * -0.05px) rgba(0,0,0,0.65); }
.dev-phone .scr { aspect-ratio: 402 / 874; border-radius: calc(var(--n) * 0.135px); }
.dev-phone .island { position: absolute; left: 50%; top: calc(var(--bz) + var(--n) * 0.026px); width: calc(var(--n) * 0.295px); height: calc(var(--n) * 0.087px);
  transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 40; }

.dev-tab { --bz: calc(var(--n) * 0.032px); padding: var(--bz); border-radius: calc(var(--n) * 0.062px);
  background: linear-gradient(#1a1c20, #121316);
  box-shadow: 0 0 0 1px #33363C, inset 0 0 0 1px rgba(255,255,255,0.05), 0 calc(var(--n) * 0.08px) calc(var(--n) * 0.16px) calc(var(--n) * -0.04px) rgba(0,0,0,0.65); }
.dev-tab .scr { aspect-ratio: 834 / 1210; border-radius: calc(var(--n) * 0.03px); }
.dev-tab.land { --bz: calc(var(--n) * 0.024px); border-radius: calc(var(--n) * 0.045px); }
.dev-tab.land .scr { aspect-ratio: 1210 / 834; border-radius: calc(var(--n) * 0.022px); }

/* In-page app screens are laid out at native points and scaled to the frame */
.ui-fit { position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform-origin: 0 0; transform: scale(calc(var(--n) * 0.94 / 402)); overflow: hidden; }
.ui-fit-land { position: absolute; left: 0; top: 0; width: 1210px; height: 834px; transform-origin: 0 0; transform: scale(calc(var(--n) * 0.952 / 1210)); overflow: hidden; }

/* ---------- the Mineral Line mark (assets/brand/mark.svg) ---------- */
.mark { display: inline-flex; flex: none; height: 26px; }
.mark svg { height: 100%; width: auto; display: block; }
.intro-mark { height: 34px; }
.boot .mark { height: 40px; }

/* replays start from a clean slate: no transitions while a demo resets */
.notrans, .notrans * { transition: none !important; }

/* =====================================================================
   In-page app UI (scoped under .ui). Measurements from the real tracker.
   ===================================================================== */
.ui { font-family: 'Barlow', -apple-system, system-ui, sans-serif; color: var(--text); font-size: 16px; line-height: 1.35; background: var(--bg); text-align: left; }
.ui .i { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ui svg.fill { fill: currentColor; stroke: none; }
.ui .caps { text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; font-size: 12px; }

.ui .sb { position: absolute; left: 0; right: 0; top: 0; height: 54px; font-family: -apple-system, system-ui, sans-serif; }
.ui .sb .time { position: absolute; left: 0; width: 138px; top: 17px; text-align: center; font-weight: 600; font-size: 17px; letter-spacing: -0.2px; color: #fff; }
.ui .sb .r { position: absolute; right: 30px; top: 21px; display: flex; gap: 6px; align-items: center; }
.ui .home-ind { position: absolute; bottom: 8px; left: 50%; width: 139px; height: 5px; margin-left: -69.5px; border-radius: 3px; background: rgba(255,255,255,0.88); }

/* Header (src/app/(tabs)/play/tracker.tsx): back, the mission as the title, then the link light, Rules and More in one glass pill */
.ui .nav { position: absolute; left: 16px; right: 16px; top: 62px; height: 44px; display: flex; align-items: center; }
.ui .nav .back { width: 44px; height: 44px; border-radius: 22px; background: var(--s1); box-shadow: 0 0 0 1px rgba(255,255,255,0.07) inset; display: flex; align-items: center; justify-content: center; }
.ui .nav .back svg { width: 24px; height: 24px; stroke-width: 2.2; }
.ui .nav .ttl { flex: 1; min-width: 0; margin: 0 8px; text-align: center; font-family: 'Barlow SC'; font-weight: 600; font-size: 20px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui .nav .grp { flex: none; height: 44px; border-radius: 22px; background: var(--s1); box-shadow: 0 0 0 1px rgba(255,255,255,0.07) inset; display: flex; align-items: center; padding: 0 8px; }
.ui .nav .grp svg { width: 23px; height: 23px; margin: 0 9px; }
.ui .nav .light { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.ui .nav .light .dot { width: 12px; height: 12px; border-radius: 6px; background: var(--legal); }

.ui .plate { --cut: 14px; height: 100%; }
.ui .plate > .in { padding: 16px; }

/* Round, then Back and Next (scoreboard.tsx RoundReadout, PhaseControls) */
.ui .rhead { display: flex; align-items: center; height: 48px; gap: 8px; }
.ui .rnd { font-family: 'Barlow SC'; font-weight: 600; font-size: 22px; line-height: 27px; font-variant-numeric: tabular-nums; margin-right: auto; }
.ui .rnd span { color: var(--text3); }
.ui .sq { width: 48px; height: 48px; border-radius: 10px; background: var(--s3); display: flex; align-items: center; justify-content: center; color: var(--text2); }
.ui .sq svg { width: 22px; height: 22px; stroke-width: 2; }
.ui .next { height: 48px; padding: 0 20px; border-radius: 10px; background: var(--s3); display: flex; align-items: center; font-size: 16px; font-weight: 600; }

/* Phase track: a bar per phase, the current one in the accent and the only one named, under its own bar */
.ui .stepper { display: flex; gap: 4px; margin-top: 12px; }
.ui .stepper > div { flex: 1; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.ui .stepper i { display: block; height: 4px; border-radius: 1px; background: #30343A; }
.ui .stepper .done i { background: #62676F; }
.ui .stepper .now i { background: var(--terran); }
.ui .stepper .caps { display: block; font-size: 12px; line-height: 16px; letter-spacing: 1.1px; text-align: center; color: var(--text); visibility: hidden; }
.ui .stepper .now .caps { visibility: visible; }
.ui.zerg-ui .stepper .now i { background: var(--zerg); }

/* Score: your side on your faction's fill, theirs plain with their VP in their accent */
.ui .score { display: flex; border-radius: 10px; overflow: hidden; }
.ui .flow .score { margin-top: 20px; }
.ui .flow .score .side { padding: 14px 12px; gap: 20px; }
.ui .score .side { flex: 1 1 0; min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 12px; transition: background-color .5s; }
.ui .score .me { background: var(--terran-fill); color: #fff; }
.ui .score .me.zerg { background: var(--zerg-fill); }
.ui .score .them { background: var(--s2); }
.ui .score .top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 40px; }
.ui .score .top > div:first-child { min-width: 0; }
.ui .score .name { font-size: 17px; font-weight: 600; line-height: 21px; white-space: nowrap; }
.ui .score .res { display: flex; align-items: center; gap: 3px; font-size: 13px; line-height: 18px; margin-top: 1px; }
.ui .score .res svg { width: 11px; height: 11px; stroke-width: 2.2; }
.ui .score .me .res { color: #fff; }
.ui .score .them .res { color: var(--text2); }
.ui .first { display: flex; align-items: center; gap: 3px; font-size: 13px; line-height: 21px; color: var(--text2); flex: none; }
.ui .me .first { color: #fff; }
.ui .first svg { width: 14px; height: 14px; }
.ui .ctl { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.ui .ctl .vp { font-family: 'Barlow SC'; font-weight: 600; font-size: 40px; line-height: 48px; font-variant-numeric: tabular-nums; min-width: 1ch; text-align: center; }
.ui .vp.z { color: var(--zerg); }
.ui .vp.t { color: var(--terran); }
.ui .pm { position: relative; width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.ui .me .pm { background: rgba(255,255,255,0.16); color: #fff; }
.ui .them .pm { background: var(--s3); color: var(--text); }
.ui .pm svg { width: 20px; height: 20px; stroke-width: 2; }

/* Tournament clock (clock-panel.tsx): the round clock with Pause, then a pool under each score */
.ui .chead { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.ui .chead .lbl { font-size: 14px; font-weight: 500; color: var(--text2); }
.ui .chead .val { font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; margin-left: -8px; }
.ui .chead .pause { margin-left: auto; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--s3); display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.ui .chead .pause svg { width: 15px; height: 15px; }
.ui .clock { display: flex; gap: 8px; margin-top: 12px; }
.ui .tile { flex: 1 1 0; min-width: 0; min-height: 112px; border-radius: 10px; padding: 8px 12px 14px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.ui .tile .top { position: absolute; top: 8px; right: 8px; }
.ui .tile .time { font-family: 'Barlow SC'; font-weight: 600; font-size: 56px; line-height: 62px; text-align: center; font-variant-numeric: tabular-nums lining-nums; }
.ui .tile.run { background: var(--terran-fill); color: #fff; }
.ui .tile.wait { background: var(--s2); box-shadow: 0 0 0 1px var(--line) inset; }
.ui .tile.wait .time { color: var(--text2); }
.ui .tile .pass { display: flex; align-items: center; gap: 4px; height: 27px; padding: 0 8px; border-radius: 6px; background: #30343A; font-size: 14px; font-weight: 500; color: var(--text); }
.ui .tile .pass svg { width: 14px; height: 14px; stroke-width: 2; }

/* Supply Pool and Mission Markers (SupplyBlock, MarkersBlock) */
.ui .block { margin-top: 20px; }
.ui .bhead { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.ui .bhead .h { font-size: 17px; font-weight: 600; line-height: 21px; }
.ui .bhead .h b { font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; margin-left: 8px; font-variant-numeric: tabular-nums; }
.ui .bhead .r { font-size: 13px; color: var(--text3); }
.ui .chip { height: 32px; padding: 0 12px; border-radius: 8px; box-shadow: 0 0 0 1.5px var(--terran) inset; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.ui .mkn { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--text3); }
.ui .chip svg { width: 16px; height: 16px; stroke-width: 2; }
.ui .srow { display: flex; align-items: center; min-height: 28px; margin-top: 6px; gap: 12px; }
.ui .srow .n { width: 96px; font-size: 14px; font-weight: 500; color: var(--text2); }
.ui .meter { flex: 1; display: flex; gap: 3px; }
.ui .meter i { flex: 1; height: 6px; border-radius: 2px; background: var(--s3); }
.ui .meter i.on { background: var(--terran); }
.ui .meter.zerg i.on { background: var(--zerg); }
.ui .srow .v { width: 28px; text-align: right; font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.ui .markers { display: flex; gap: 8px; margin-top: 8px; }
.ui .markers .mk { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ui .markers .tok { position: relative; width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: var(--s2); box-shadow: 0 0 0 1.5px #3A3E45 inset;
  transition: background-color .3s, box-shadow .3s; }
.ui .markers .tok b { font-family: 'Barlow SC'; font-weight: 600; font-size: 28px; line-height: 34px; color: var(--text3); }
.ui .markers .ini { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 9px; display: none; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 600; line-height: 1; color: #fff; box-shadow: 0 0 0 1.5px var(--s1); }
.ui .markers .w { font-size: 12px; font-weight: 500; line-height: 16px; color: var(--text3); }
.ui .markers .mk.t .tok { background: rgba(63,126,255,0.18); box-shadow: 0 0 0 1.5px var(--terran) inset; }
.ui .markers .mk.z .tok { background: rgba(180,92,255,0.18); box-shadow: 0 0 0 1.5px var(--zerg) inset; }
.ui .markers .mk.t .tok b, .ui .markers .mk.z .tok b { color: var(--text); }
.ui .markers .mk.t .ini { display: flex; background: var(--terran-fill); }
.ui .markers .mk.z .ini { display: flex; background: var(--zerg-fill); }
.ui .markers .mk.t .w, .ui .markers .mk.z .w { color: var(--text2); }

.ui .tabbar { position: absolute; left: 22px; right: 22px; bottom: 22px; height: 62px; border-radius: 31px; background: rgba(34,36,41,0.96);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07) inset, 0 10px 30px rgba(0,0,0,0.45); display: flex; padding: 4px; z-index: 5; }
.ui .tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 27px; color: #D5D7DB;
  font-family: -apple-system, system-ui, sans-serif; font-size: 10px; font-weight: 500; }
.ui .tabbar .tab.on { background: rgba(255,255,255,0.08); color: var(--terran-ink); }
.ui.zerg-ui .tabbar .tab.on { color: var(--zerg-ink); }
.ui .tabbar .tab svg { width: 25px; height: 25px; }

/* flow layout (linked phones): the page under the header, then the army below the panel */
.ui .flow { position: absolute; left: 16px; right: 16px; top: 124px; }
.ui .units { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.ui .seg { display: flex; height: 36px; padding: 2px; border-radius: 10px; background: var(--s1); }
.ui .seg span { flex: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text2); position: relative; }
.ui .seg .on { background: var(--s3); color: var(--text); }
.ui .seg .on::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 28px; margin-left: -14px; height: 2px; border-radius: 1px; background: var(--terran); }
.ui.zerg-ui .seg .on::after { background: var(--zerg); }
.ui .ucard { background: var(--s1); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.ui .uh { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.ui .ut { flex: 1; min-width: 0; }
.ui .un { display: flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 600; line-height: 21px; }
.ui .un svg.ch { width: 12px; height: 12px; color: var(--text3); stroke-width: 2.2; }
.ui .um { font-size: 13px; line-height: 18px; color: var(--text3); }
.ui .ust { display: flex; align-items: center; gap: 8px; }
.ui .uhp { font-size: 14px; font-weight: 500; color: var(--text2); }
.ui .uhp b { font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; color: var(--text); }
.ui .hpb { margin-left: auto; display: flex; gap: 8px; }
.ui .hpb i { width: 36px; height: 36px; border-radius: 10px; background: var(--s3); display: flex; align-items: center; justify-content: center; }
.ui .hpb svg { width: 16px; height: 16px; }
.ui .hpb .dmg { color: var(--damage); }
.ui .hpb .heal { color: var(--legal); }
.ui .ustats { display: flex; gap: 6px; }
.ui .ustats > div { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--s2); display: flex; flex-direction: column; }
.ui .ustats .k { font-size: 11px; font-weight: 500; color: var(--text3); white-space: nowrap; }
.ui .ustats .v { font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; }
.ui .pips { display: inline-flex; gap: 2px; }
.ui .pips i { width: 7px; height: 10px; border-radius: 1.5px; background: var(--s3); }
.ui .pips i.l { background: var(--text); }
.ui .pips i.d { background: var(--damage); }
.ui .act { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: var(--terran-fill); color: #fff; flex: none; }
.ui.zerg-ui .act { background: var(--zerg-fill); }
.ui .act svg { width: 16px; height: 16px; stroke-width: 2.5; }


/* ---------- tracker additions ---------- */
.ui span[data-f] { display: inline-block; }
.ui .flow .clockwrap { margin-top: 14px; }
.ui .tile .top { position: absolute; top: 10px; right: 10px; }
.ui .tile .pass[hidden] { display: none; }
.ui .tile { transition: background-color .35s, box-shadow .35s, color .35s; }
.ui .tile .time { transition: color .35s; }
.ui .tile.run.z { background: var(--zerg-fill); }
.ui .tile.wait { background: var(--s2); color: var(--text); }
.ui [data-t] { position: relative; }
.ui .res[data-t] { border-radius: 6px; }
.ui .next { transition: background-color .3s; }

/* change feedback, shared by every demo */
.ui .chg { animation: chg .55s var(--ease); }
@keyframes chg { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ui .mk.chg, .ui .dp-mk.chg { animation: pop .55s var(--ease); }
@keyframes pop { 0% { transform: scale(.78); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.ui .stepper .now.chg i, .ui .dp-bars i.now.chg { animation: fillbar .55s var(--ease); transform-origin: 0 0; }
.ui .stepper .now.chg { animation: none; }
@keyframes fillbar { from { transform: scaleX(0); } }
.ui .flash { animation: flash 1s ease-out; }
@keyframes flash { 0% { box-shadow: inset 0 0 0 2px rgba(255,255,255,.75); } 100% { box-shadow: inset 0 0 0 2px rgba(255,255,255,0); } }
.ui .tapfx { position: absolute; inset: -6px; border-radius: 14px; border: 2px solid rgba(255,255,255,.9); pointer-events: none; animation: ring .7s ease-out forwards; z-index: 5; }
@keyframes ring { 0% { opacity: .95; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.35); } }
.ui .tapping { animation: press .4s ease-out; }
@keyframes press { 30% { transform: scale(.92); filter: brightness(1.35); } 100% { transform: none; } }
.ui [data-live] .dot { transition: transform .3s; }
.ui [data-live].ping .dot { animation: ping .9s ease-out; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61,190,122,.85); transform: scale(1.3); } 100% { box-shadow: 0 0 0 12px rgba(61,190,122,0); transform: none; } }

/* ---------- table display (landscape Split layout, from brief3 clock-table) ---------- */
.disp { background: var(--bg); font-family: 'Barlow', sans-serif; }
.disp .tsb { position: absolute; left: 0; right: 0; top: 0; height: 24px; z-index: 50; font-family: -apple-system, system-ui, sans-serif; color: #fff; font-size: 15px; font-weight: 600; }
.disp .tsb .l { position: absolute; left: 22px; top: 7px; display: flex; gap: 7px; }
.disp .tsb .r { position: absolute; right: 20px; top: 7px; display: flex; gap: 7px; align-items: center; }
.dp-wrap { position: absolute; inset: 0; display: flex; }
.dp-field { width: 380px; flex: none; padding: 54px 36px 30px; display: flex; flex-direction: column; color: #fff; }
.dp-field.t { background: var(--terran-fill); }
.dp-field.z { background: var(--zerg-fill); text-align: right; }
.dp-nm { font-family: 'Barlow SC'; font-weight: 700; font-size: 46px; line-height: 55px; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }
.dp-fac { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 22px; font-weight: 500; line-height: 27px; }
.dp-field.z .dp-fac { flex-direction: row-reverse; }
.dp-ftag { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; background: #fff; color: #111214; font-size: 18px; font-weight: 600; }
.dp-ftag svg { width: 16px; height: 16px; stroke-width: 2; }
.dp-vpa { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.dp-vprow { position: relative; display: flex; align-items: flex-end; gap: 14px; }
.dp-field.z .dp-vprow { flex-direction: row-reverse; }
.dp-vp { font-family: 'Barlow SC'; font-weight: 700; font-size: 170px; line-height: 170px; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.dp-vpl { font-family: 'Barlow SC'; font-weight: 600; font-size: 32px; line-height: 36px; padding-bottom: 34px; }
.dp-plus { position: absolute; top: -10px; left: 150px; height: 52px; padding: 0 14px; border-radius: 10px; background: #fff; color: var(--terran-fill);
  font-family: 'Barlow SC'; font-weight: 700; font-size: 38px; line-height: 52px; animation: plus1 1.8s var(--ease) forwards; pointer-events: none; }
.dp-field.z .dp-plus { left: auto; right: 150px; color: var(--zerg-fill); }
@keyframes plus1 { 0% { opacity: 0; transform: translateY(24px) scale(.8); } 15% { opacity: 1; transform: none; } 70% { opacity: 1; transform: translateY(-6px); } 100% { opacity: 0; transform: translateY(-22px); } }
.dp-row { border-top: 1px solid rgba(255,255,255,0.3); padding: 14px 0; }
.dp-row .kv { display: flex; justify-content: space-between; align-items: center; }
.dp-row .k { font-size: 22px; font-weight: 500; line-height: 27px; }
.dp-row .v { font-family: 'Barlow SC'; font-weight: 600; font-size: 34px; line-height: 41px; font-variant-numeric: tabular-nums; }
.dp-row .v small { font-weight: 500; font-size: 26px; }
.dp-seg { display: flex; gap: 4px; margin-top: 10px; }
.dp-seg i { flex: 1; height: 10px; border-radius: 2px; background: rgba(255,255,255,0.26); }
.dp-seg i.on { background: #fff; }
.dp-live { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 22px; }
.dp-field.z .dp-live { flex-direction: row-reverse; }
.dp-live .dot { width: 10px; height: 10px; border-radius: 5px; background: #fff; }
.dp-live.ping .dot { animation: pingw .9s ease-out; }
@keyframes pingw { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.9); } 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
.dp-strip { flex: 1; min-width: 0; padding: 40px 16px 16px; display: flex; flex-direction: column; }
.dp-frame { --cut: 22px; flex: 1; background: #3A3E45; padding: 1px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.dp-frame > .in { height: 100%; background: var(--s1); padding: 22px 24px 18px; display: flex; flex-direction: column; text-align: center;
  clip-path: polygon(21.4px 0, 100% 0, 100% calc(100% - 21.4px), calc(100% - 21.4px) 100%, 0 100%, 0 21.4px); }
.dp-mis { font-size: 22px; line-height: 27px; color: var(--text2); white-space: nowrap; }
.dp-mis b { font-family: 'Barlow SC'; font-weight: 600; font-size: 24px; color: var(--text); }
.dp-rnd { font-family: 'Barlow SC'; font-weight: 600; font-size: 60px; line-height: 72px; margin-top: 14px; }
.dp-rnd span { color: var(--text3); font-weight: 500; }
.dp-ph { font-family: 'Barlow SC'; font-weight: 700; font-size: 66px; line-height: 76px; letter-spacing: 3.3px; text-transform: uppercase; }
.dp-bars { display: flex; gap: 6px; width: 300px; margin: 16px auto 22px; }
.dp-bars i { flex: 1; height: 6px; border-radius: 1.5px; background: var(--s3); }
.dp-bars i.done { background: #5B6068; }
.dp-bars i.now { background: var(--text); }
.dp-hr { height: 1px; background: var(--line); margin: 0 -24px; }
.dp-sec { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.dp-rnd + .dp-ph { margin-top: 0; }
.dp-lbl { font-size: 20px; line-height: 24px; font-weight: 500; color: var(--text2); }
.dp-mks { display: flex; gap: 9px; margin-top: 14px; }
.dp-mk { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; }
.dp-mk .tk { position: relative; width: 100%; max-width: 86px; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 0 0 1.5px #3A3E45 inset; color: var(--text2); transition: background-color .3s, box-shadow .3s, color .3s; }
.dp-mk.t .tk { background: var(--terran-fill); box-shadow: none; color: #fff; }
.dp-mk.z .tk { background: var(--zerg-fill); box-shadow: none; color: #fff; }
.dp-mk .n { font-family: 'Barlow SC'; font-weight: 700; font-size: 32px; line-height: 39px; }
.dp-mk .w { font-size: 14px; font-weight: 500; line-height: 17px; max-width: 72%; }
.dp-mk .ini { position: absolute; top: -4.5px; right: -4.5px; width: 30px; height: 30px; border-radius: 15px; display: none; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.dp-mk.t .ini { display: flex; background: var(--terran-fill); }
.dp-mk.z .ini { display: flex; background: var(--zerg-fill); }
.dp-lead { font-size: 22px; font-weight: 500; line-height: 30px; }
.dp-lead b { font-family: 'Barlow SC'; font-weight: 600; font-size: 26px; }
.dp-lbar { display: flex; align-items: center; gap: 4px; margin-top: 14px; }
.dp-lbar i { flex: 1; height: 12px; border-radius: 2px; background: var(--s3); transition: background-color .3s; }
.dp-lbar i.on { background: var(--terran-fill); }
.dp-lbar i.on.z { background: var(--zerg-fill); }
.dp-lbar .ax { flex: none; width: 2px; height: 26px; margin: 0 4px; border-radius: 1px; background: var(--text2); }
.dp-win { font-size: 18px; line-height: 22px; color: var(--text3); margin-top: 10px; }
.dp-log { justify-content: flex-start; gap: 0; }
.dp-lg { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 0 12px; margin: 0 -8px; border-radius: 8px; font-size: 20px; font-weight: 500; line-height: 24px; color: var(--text3); text-align: left; white-space: nowrap; transition: background-color .4s, color .4s; }
.dp-lg.top { min-height: 48px; color: var(--text); }
.dp-lg span { overflow: hidden; text-overflow: ellipsis; }
.dp-lg .sq { flex: none; width: 12px; height: 12px; border-radius: 2px; background: var(--text3); }
.dp-lg .sq.t { background: var(--terran-fill); }
.dp-lg .sq.z { background: var(--zerg-fill); }
.dp-lg.hot.t { background: var(--terran-fill); color: #fff; }
.dp-lg.hot.z { background: var(--zerg-fill); color: #fff; }
.dp-lg.hot .sq { background: #fff; }
.dp-lg.in { animation: lgin .45s var(--ease); }
@keyframes lgin { from { opacity: 0; transform: translateY(-10px); } }
.dp-foot { height: 36px; margin-top: 10px; display: flex; align-items: center; gap: 24px; font-size: 18px; color: var(--text2); }
.dp-foot .c { flex: 1; display: flex; align-items: center; justify-content: center; gap: 24px; }
.dp-foot b { font-family: 'Barlow SC'; font-weight: 600; font-size: 20px; letter-spacing: .8px; color: var(--text); }
.dp-foot .menu { width: 40px; height: 40px; border-radius: 20px; background: var(--s3); display: flex; align-items: center; justify-content: center; color: var(--text); }
.dp-foot .menu svg { width: 20px; height: 20px; }

/* ---------- demo chrome: replay button, wires between devices ---------- */
.replay { display: flex; align-items: center; gap: 7px; margin: 30px auto 0; height: 34px; padding: 0 12px; border: 0; border-radius: 17px; background: none;
  color: var(--text3); font-family: 'Barlow', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: color .2s, background .2s, opacity .3s; }
.replay:hover { color: var(--text); background: var(--s1); }
.replay svg { width: 15px; height: 15px; }
html:not(.motion) .replay { display: none; }
.replay.busy { opacity: .45; }

.wire { position: relative; flex: 0 0 56px; align-self: center; height: 2px;
  background: repeating-linear-gradient(90deg, var(--edge) 0 5px, transparent 5px 10px); }
.wire i { position: absolute; top: -3px; left: -4px; width: 8px; height: 8px; border-radius: 4px; background: var(--c, var(--terran)); animation: wire var(--t, .45s) linear forwards; }
.wire i.rev { animation-name: wirer; }
@keyframes wire { 0% { left: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 4px); opacity: 0; } }
@keyframes wirer { 0% { left: calc(100% - 4px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: -4px; opacity: 0; } }

/* ---------- Ask HQ screen ---------- */
.ui.ask .bnav { position: absolute; left: 17px; right: 17px; top: 58px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.ui.ask .bttl { font-family: 'Barlow SC'; font-weight: 600; font-size: 19px; }
.ui.ask .sugg { position: absolute; left: 16px; right: 16px; top: 120px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.ui.ask.s-empty .sugg { opacity: 1; visibility: visible; }
.ui.ask .sugg .lead { font-size: 15px; color: var(--text2); padding: 0 4px; }
.ui.ask .sgh { font-family: 'Barlow SC'; font-weight: 600; font-size: 18px; margin: 20px 4px 10px; }
.ui.ask .sgl { background: var(--s1); border-radius: 14px; overflow: hidden; }
.ui.ask .sg { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 12px 0 16px; font-size: 15.5px; border-top: 1px solid var(--line); }
.ui.ask .sg:first-child { border-top: 0; }
.ui.ask .sg svg { width: 14px; height: 14px; color: var(--text3); }
.ui.ask .chat { position: absolute; left: 16px; right: 16px; top: 120px; display: flex; flex-direction: column; transition: opacity .3s; }
.ui.ask.s-empty .chat { opacity: 0; }
.ui.ask .q { align-self: flex-end; max-width: 290px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--s3); font-size: 16px; font-weight: 500; }
.ui.ask .typing { display: none; align-self: flex-start; gap: 5px; margin-top: 18px; padding: 13px 14px; border-radius: 16px; background: var(--s2); }
.ui.ask .typing.on { display: flex; }
.ui.ask .typing i { width: 7px; height: 7px; border-radius: 4px; background: var(--text3); animation: dots 1s infinite; }
.ui.ask .typing i:nth-child(2) { animation-delay: .15s; } .ui.ask .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.ui.ask .a { margin: 16px 4px 0; font-size: 16px; line-height: 1.42; color: var(--text); }
.ui.ask .a p + p { margin-top: 10px; }
.ui.ask .cite { color: var(--terran-ink); font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 4px; padding: 0 1px; transition: background-color .35s, color .35s; }
.ui.ask .cite.hl { background: var(--terran-fill); color: #fff; }
.ui.ask .srcs { margin-top: 20px; background: var(--s1); border-radius: 14px; overflow: hidden; }
.ui.ask .srch { font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; padding: 11px 16px 4px; }
.ui.ask .src { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 16px; border-top: 1px solid var(--line); transition: background-color .35s; }
.ui.ask .srch + .src { border-top: 0; }
.ui.ask .src .sn { width: 22px; font-family: 'Barlow SC'; font-weight: 600; font-size: 16px; color: var(--terran-ink); }
.ui.ask .src > div { flex: 1; }
.ui.ask .src b { display: block; font-size: 15.5px; font-weight: 600; }
.ui.ask .src small { display: block; font-size: 13px; color: var(--text3); }
.ui.ask .src svg { width: 14px; height: 14px; color: var(--text3); }
.ui.ask .src.hl { background: rgba(63,126,255,0.16); }
.ui.ask .sign { margin: 12px 4px 0; font-size: 13px; color: var(--text3); line-height: 1.35; }
.ui.ask .rv { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ui.ask .rv.hid { opacity: 0; transform: translateY(10px); }
.ui.ask .askbar { position: absolute; left: 16px; right: 16px; bottom: 30px; height: 48px; border-radius: 24px; background: var(--s2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  display: flex; align-items: center; padding: 0 6px 0 18px; font-size: 16px; z-index: 6; transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.ui.ask .askbar .ph { color: var(--text3); }
.ui.ask .askbar .tw { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; margin-right: 8px; }
.ui.ask .askbar .typed, .ui.ask .askbar .caret, .ui.ask .askbar .ph { flex: none; }
.ui.ask .askbar .caret { display: none; width: 2px; height: 22px; margin-left: 1px; border-radius: 1px; background: var(--terran); animation: blink 1s steps(1) infinite; }
.ui.ask .askbar i { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: none; position: relative; }
.ui.ask .askbar .mic { background: var(--s3); color: var(--text2); }
.ui.ask .askbar .send { display: none; background: var(--terran-fill); color: #fff; }
.ui.ask .askbar svg { width: 19px; height: 19px; stroke-width: 2.2; }
.ui.ask.focus .askbar { box-shadow: inset 0 0 0 1.5px var(--terran); }
.ui.ask.focus .askbar .caret { display: block; }
.ui.ask.has-text .askbar .ph { display: none; }
.ui.ask.has-text .askbar .mic { display: none; }
.ui.ask.has-text .askbar .send { display: flex; }
.ui.ask.kb .askbar { transform: translateY(-262px); }
.ui.ask .kb { position: absolute; left: 0; right: 0; bottom: 0; height: 284px; padding: 9px 3px 0; background: #1B1C1F; border-top: 1px solid #2A2C30; z-index: 5;
  transform: translateY(101%); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.ui.ask.kb .kb { transform: none; }
.ui.ask .kr { display: flex; justify-content: center; gap: 6px; margin-bottom: 11px; }
.ui.ask .kr.r2 { padding: 0 18px; }
.ui.ask .kb b { flex: 0 0 33.4px; height: 44px; border-radius: 6px; background: #46484C; color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, system-ui, sans-serif; font-size: 22px; font-weight: 400; box-shadow: 0 1px 0 rgba(0,0,0,.45); transition: background-color .08s; }
.ui.ask .kb b.sp { flex-basis: 44px; background: #2E3033; }
.ui.ask .kb b.sp.w { margin: 0 6px; }
.ui.ask .kb b.sp svg { width: 22px; height: 22px; }
.ui.ask .kb b.n { flex-basis: 92px; font-size: 16px; }
.ui.ask .kb b.space { flex: 1; font-size: 16px; }
.ui.ask .kb b.hit { background: #75787E; }
.ui.ask .home-ind { z-index: 8; }

/* ---------- Lock Screen + Dynamic Island ---------- */
.lockui { background: #141518; font-family: -apple-system, system-ui, sans-serif; }
.lockui .home { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease .1s; }
.lockui.s-home .home, .lockui.s-compact .home, .lockui.s-expanded .home { opacity: 1; }
.lockui .grid { position: absolute; left: 30px; right: 30px; top: 96px; display: grid; grid-template-columns: repeat(4, 62px); justify-content: space-between; row-gap: 34px; }
.lockui .grid i { width: 62px; height: 62px; border-radius: 15px; background: var(--c); position: relative; }
.lockui .grid i::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: -15px; height: 5px; border-radius: 3px; background: #2A2D32; }
.lockui .dock { position: absolute; left: 14px; right: 14px; bottom: 24px; height: 92px; border-radius: 32px; background: rgba(255,255,255,.06); display: flex; justify-content: space-around; align-items: center; padding: 0 10px; }
.lockui .dock i { width: 62px; height: 62px; border-radius: 15px; background: var(--c); }
.lockui .dock i.ours { background: #272A2F; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px #33373D; }
.lockui .mk4 { display: flex; gap: 3px; width: 38px; }
.lockui .mk4 b { flex: 1; height: 5px; border-radius: 1px; background: #454950; }
.lockui .mk4 b:first-child { background: #8A8F97; } .lockui .mk4 b:nth-child(2) { background: var(--terran); }
.lockui .lockl { position: absolute; inset: 0; transition: opacity .45s ease, transform .55s var(--ease); }
.lockui.s-home .lockl, .lockui.s-compact .lockl, .lockui.s-expanded .lockl { opacity: 0; transform: translateY(-60px); }
.lockui .lk { position: absolute; top: 62px; left: 50%; margin-left: -8px; width: 16px; height: 20px; color: rgba(255,255,255,0.9); }
.lockui .date { position: absolute; top: 92px; left: 0; right: 0; text-align: center; font-size: 21px; font-weight: 600; color: rgba(255,255,255,0.9); }
.lockui .big { position: absolute; top: 112px; left: 0; right: 0; text-align: center; font-size: 118px; font-weight: 700; line-height: 1.05; letter-spacing: -3px; color: rgba(255,255,255,0.93); }
.lockui .la-card { position: absolute; left: 14px; right: 14px; top: 600px; border-radius: 24px; padding: 10px 14px; background: rgba(12,13,16,0.82);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.09) inset; color: #ECEDEF; display: flex; flex-direction: column; gap: 7px; }
.lockui .hd { display: flex; align-items: baseline; gap: 6px; font-size: 14px; line-height: 18px; white-space: nowrap; }
.lockui .hd b { font-weight: 600; }
.lockui .hd .ph { color: var(--terran-ink); }
.lockui .hd .ms { margin-left: auto; font-size: 13px; color: #A2A7AE; }
.lockui .labar { display: flex; gap: 5px; }
.lockui .labar span { flex: 1; display: flex; gap: 2px; }
.lockui .labar i { flex: 1; height: 4px; border-radius: 2px; background: #34373D; transition: background-color .3s; }
.lockui .labar i.done { background: #8B9098; }
.lockui .labar i.now { background: var(--terran-fill); }
.lockui .plates { display: flex; gap: 8px; }
.lockui .pl { flex: 1; min-width: 0; min-height: 44px; border-radius: 12px; padding: 5px 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #fff; }
.lockui .pl.t { background: var(--terran-fill); }
.lockui .pl.z { background: var(--zerg-fill); }
.lockui .pl .lb { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lockui .pl.r .lb { align-items: flex-end; }
.lockui .pl .nm { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.lockui .fl { width: 10px; height: 10px; }
.lockui .pl .ck { font-size: 14px; font-weight: 600; line-height: 17px; font-variant-numeric: tabular-nums; opacity: .75; }
.lockui .pl .ck.run { opacity: 1; }
.lockui .pl .v { font-size: 30px; font-weight: 700; line-height: 34px; font-variant-numeric: tabular-nums; }
.lockui .pl.r .v { font-size: 26px; }
.lockui .labtn { display: flex; gap: 8px; }
.lockui .labtn .b { flex: 1; height: 28px; border-radius: 14px; background: rgba(236,237,239,0.14); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 500; color: #ECEDEF; position: relative; }
.lockui .labtn .b.clk { color: var(--terran-ink); background: rgba(143,178,255,0.16); }
.lockui .labtn svg { width: 13px; height: 13px; stroke-width: 2; }
.lockui .qb { position: absolute; bottom: 42px; width: 50px; height: 50px; border-radius: 25px; background: rgba(255,255,255,0.13); display: flex; align-items: center; justify-content: center; color: #fff; }
.lockui .qb svg { width: 22px; height: 22px; }
.lockui .qb.l { left: 46px; } .lockui .qb.r { right: 46px; }
.lockui .lsb { position: absolute; inset: 0 0 auto 0; height: 54px; opacity: 0; transition: opacity .4s; z-index: 10; }
.lockui.s-home .lsb, .lockui.s-compact .lsb, .lockui.s-expanded .lsb { opacity: 1; }
.lockui .dyn { position: absolute; top: 11px; left: 50%; width: 126px; height: 37px; margin-left: -63px; border-radius: 19px; background: #000; z-index: 30; overflow: hidden;
  transition: width .5s cubic-bezier(.3,1.25,.5,1), height .5s cubic-bezier(.3,1.25,.5,1), margin-left .5s cubic-bezier(.3,1.25,.5,1), border-radius .5s ease; }
.lockui.s-compact .dyn { width: 252px; margin-left: -126px; }
.lockui.s-expanded .dyn { width: 382px; margin-left: -191px; height: 206px; border-radius: 46px; }
.lockui .dyn .cmp, .lockui .dyn .exp { position: absolute; opacity: 0; transition: opacity .2s; }
.lockui .dyn .cmp { inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 15px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lockui.s-compact .dyn .cmp { opacity: 1; transition-delay: .25s; }
.lockui .dyn .lead, .lockui .dyn .trail { color: var(--terran-ink); }
.lockui .dyn .exp { left: 0; top: 0; width: 382px; height: 206px; padding: 16px 22px 16px; display: flex; flex-direction: column; justify-content: space-between; color: #ECEDEF; }
.lockui.s-expanded .dyn .exp { opacity: 1; transition-delay: .25s; }
.lockui .exp .top { display: flex; align-items: flex-start; justify-content: space-between; }
.lockui .exp .side { width: 110px; color: var(--terran-ink); padding-left: 4px; }
.lockui .exp .side.r { text-align: right; color: var(--zerg-ink); padding: 0 4px 0 0; display: flex; flex-direction: column; align-items: flex-end; }
.lockui .exp .nm { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.lockui .exp .v { font-size: 30px; font-weight: 700; line-height: 34px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lockui .exp .v.sm { font-size: 24px; }
.lockui .exp .mid { display: flex; flex-direction: column; align-items: center; gap: 1px; padding-top: 22px; }
.lockui .exp .mid b { font-size: 13px; font-weight: 600; }
.lockui .exp .mid span { font-size: 12px; color: #A2A7AE; }
.lockui .exp .labar { margin: 0 6px; }
.lockui .exp .clks { display: flex; align-items: center; justify-content: space-between; margin: 0 6px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lockui .exp .clks .t { color: var(--terran-ink); }
.lockui .exp .clks .z { color: var(--zerg-ink); opacity: .75; }
.lockui .exp .clks .fp { font-size: 12px; font-weight: 400; color: #A2A7AE; }
.lockui .exp .labtn { margin: 0 6px; }

.lockui .lsb .sb .time { width: 100px; }
.lockui .lsb .sb .r { right: 18px; }
.lockui .lsb .sb .r svg:first-child { display: none; }
.lockui.s-expanded .lsb { opacity: 0; }

.ui.bld .bnav { position: absolute; left: 17px; right: 17px; top: 58px; height: 44px; display: flex; align-items: center; justify-content: space-between; }
.ui .navbtn { width: 44px; height: 44px; border-radius: 22px; background: var(--s2); box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset; display: flex; align-items: center; justify-content: center; }
.ui .navbtn svg { width: 22px; height: 22px; }
.ui .bttl { font-size: 17px; font-weight: 600; }
.ui .bcard { position: absolute; left: 16px; right: 16px; top: 118px; background: var(--s1); border-radius: 16px; padding: 14px 16px 0; }
.ui .bres { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 14px; }
.ui .bl { display: block; font-size: 12px; color: var(--text3); }
.ui .bv { display: block; margin-top: 2px; font-family: 'Barlow SC'; font-weight: 600; font-size: 25px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui .bv small { font-size: 16px; color: var(--text2); font-weight: 500; }
.ui .sup { text-align: right; }
.ui .bar { display: block; margin-top: 8px; height: 4px; border-radius: 2px; background: var(--s3); overflow: hidden; }
.ui .bar i { display: block; height: 100%; width: 100%; background: var(--text); transform-origin: 0 0; transform: scaleX(var(--v)); transition: transform .6s var(--ease); }
.ui .bar.g i { background: var(--legal); }
.ui .bslots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ui .bs { display: block; margin-top: 2px; font-family: 'Barlow SC'; font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.ui .bslots .dim .bs { color: var(--text3); }
.ui .segs { display: flex; gap: 3px; margin-top: 6px; }
.ui .segs i { flex: 1; height: 4px; border-radius: 1px; background: var(--s3); transition: background .3s; }
.ui .segs i.on { background: var(--terran); }
.ui .blegal { display: flex; align-items: center; justify-content: space-between; height: 50px; margin-top: 14px; border-top: 1px solid var(--line); }
.ui .blegal .ok { display: flex; align-items: center; gap: 6px; color: var(--legal); font-weight: 600; font-size: 17px; transition: opacity .3s, transform .4s var(--ease); }
.ui .blegal .ok svg { width: 18px; height: 18px; stroke-width: 2.4; }
.ui .blegal .ok.off { opacity: 0; transform: translateX(-8px); }
.ui .blegal .rl { display: flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text2); }
.ui .blegal .rl svg { width: 13px; height: 13px; }
.ui .buhead { position: absolute; left: 20px; right: 16px; top: 376px; display: flex; align-items: center; justify-content: space-between; }
.ui .buhead > span:first-child { font-family: 'Barlow SC'; font-weight: 600; font-size: 22px; }
.ui .addu { --cut: 9px; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 16px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.ui .addu svg { width: 16px; height: 16px; stroke-width: 2.2; }
.ui .bunits { position: absolute; left: 16px; right: 16px; top: 432px; background: var(--s1); border-radius: 14px; overflow: hidden; }
.ui .bu { display: flex; justify-content: space-between; align-items: flex-start; padding: 11px 16px; border-top: 1px solid var(--line); transition: opacity .4s var(--ease), transform .5s var(--ease), background-color 1.2s; }
.ui .bu:first-child { border-top: 0; }
.ui .bu b { display: block; font-weight: 600; font-size: 16px; }
.ui .bu span { display: block; font-size: 14px; color: var(--text2); margin-top: 1px; }
.ui .bu small { display: block; font-size: 12.5px; color: var(--text3); margin-top: 1px; }
.ui .bu em { font-style: normal; font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.ui .bu.off { opacity: 0; transform: translateY(-10px); }
.ui .bu.new { background: rgba(63,126,255,0.14); transition: none; }
.ui .bu em { display: flex; align-items: center; gap: 10px; align-self: center; }
.ui .bu em svg { width: 13px; height: 13px; color: var(--text3); stroke-width: 2.2; }
.ui .navgrp { height: 44px; border-radius: 22px; background: var(--s2); box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset; display: flex; align-items: center; padding: 0 8px; }
.ui .navgrp svg { width: 22px; height: 22px; margin: 0 9px; }
.ui.bld .tabbar .tab.on { color: var(--terran-ink); }

/* =====================================================================
   Rules
   ===================================================================== */

/* =====================================================================
   Stats (HTML iPad, animates in)
   ===================================================================== */
.stats-ui { background: var(--bg); font-family: 'Barlow', sans-serif; }
.stats-ui .tsb { position: absolute; left: 0; right: 0; top: 0; height: 24px; font-family: -apple-system, system-ui, sans-serif; color: #fff; font-size: 15px; font-weight: 600; }
.stats-ui .tsb .l { position: absolute; left: 22px; top: 7px; display: flex; gap: 7px; }
.stats-ui .tsb .r { position: absolute; right: 20px; top: 7px; display: flex; gap: 7px; align-items: center; }
.st-head { position: absolute; left: 28px; right: 28px; top: 32px; height: 44px; display: flex; align-items: center; justify-content: center; }
.st-pill { display: flex; gap: 2px; height: 40px; padding: 4px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.st-pill span { padding: 0 14px; display: flex; align-items: center; border-radius: 16px; font-size: 15px; font-weight: 500; }
.st-pill .sbi svg { width: 20px; height: 20px; }
.st-pill .on { background: rgba(63,126,255,.18); color: var(--terran-ink); }
.st-ttl { position: absolute; left: 28px; top: 88px; font-family: 'Barlow SC'; font-weight: 600; font-size: 34px; line-height: 41px; }
.st-bar { position: absolute; left: 28px; right: 28px; top: 142px; height: 36px; display: flex; align-items: center; gap: 16px; }
.st-seg { width: 300px; height: 36px; display: flex; background: var(--s1); border-radius: 10px; padding: 2px; }
.st-seg span { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--text2); border-radius: 8px; }
.st-seg .on { background: var(--s3); color: var(--text); }
.st-chips { display: flex; gap: 8px; }
.st-chips span { height: 32px; padding: 0 12px; border-radius: 8px; background: var(--s2); font-size: 14px; font-weight: 500; display: flex; align-items: center; color: var(--text2); }
.st-chips .on { background: var(--text); color: var(--bg); font-weight: 600; }
.st-n { margin-left: auto; font-size: 13px; color: var(--text3); }
.st-kpis { position: absolute; left: 28px; right: 28px; top: 202px; height: 96px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; background: var(--s1); border-radius: 14px; }
.st-kpi { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; border-left: 1px solid var(--line); }
.st-kpi:first-child { border-left: 0; }
.st-kpi .k { display: block; font-size: 13px; color: var(--text3); }
.st-kpi .v { display: block; font-family: 'Barlow SC'; font-weight: 600; font-size: 28px; line-height: 34px; font-variant-numeric: tabular-nums; }
.st-kpi .v.g { color: var(--legal); }
.st-kpi .s { display: block; font-size: 13px; color: var(--text3); }
.st-kpi .s.up { color: var(--legal); }
.ring { width: 56px; height: 56px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .trk { stroke: var(--s3); }
.ring .seg { stroke-dasharray: calc(var(--a) * 150.8) 150.8; stroke-dashoffset: calc(var(--o) * -150.8); transition: stroke-dasharray .8s var(--ease); }
.ring .seg.w { stroke: var(--legal); } .ring .seg.dd { stroke: var(--amber); transition-delay: .6s; } .ring .seg.l { stroke: var(--damage); transition-delay: .8s; }
.st-sec { position: absolute; left: 28px; right: 28px; top: 322px; display: flex; align-items: center; justify-content: space-between; }
.st-sec b { font-family: 'Barlow SC'; font-weight: 600; font-size: 22px; line-height: 27px; }
.st-sec .key { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text3); }
.st-sec .key i { width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.st-sec .key i.w, .st-mc .mbar i.w { background: var(--legal); }
.st-sec .key i.l, .st-mc .mbar i.l { background: var(--damage); }
.st-sec .key i.d, .st-mc .mbar i.d { background: var(--amber); }
.st-grid { position: absolute; left: 28px; right: 28px; top: 362px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-mc { background: var(--s1); border-radius: 14px; padding: 16px; }
.st-mc .mh { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.st-mc .mh b { flex: 1; font-family: 'Barlow SC'; font-weight: 600; font-size: 18px; line-height: 22px; }
.st-mc .mh span { font-size: 12px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text3); text-align: right; }
.st-mc .mh span:nth-child(2) { width: 64px; } .st-mc .mh span:nth-child(3) { width: 52px; }
.st-mc .mr { padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.st-mc .mr + .mr { border-top: 1px solid var(--line); }
.st-mc .mr.fx + .mr.fx { border-image: linear-gradient(90deg, transparent 40px, var(--line) 40px) 1; }
.st-mc .ml { display: flex; align-items: center; gap: 16px; }
.st-mc .nm { flex: 1; font-size: 16px; line-height: 22px; }
.st-mc .rec { width: 64px; text-align: right; font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; color: var(--text2); font-variant-numeric: tabular-nums; }
.st-mc .pc { width: 52px; text-align: right; font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.st-mc .mbar { display: flex; gap: 2px; height: 5px; transform-origin: 0 0; transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 60ms + .3s); }
.st-mc .mr.fx .mbar { margin-left: 40px; }
.st-mc .mbar i { border-radius: 4px; }
.fb { width: 24px; height: 24px; border-radius: 6px; background: var(--s3); display: flex; align-items: center; justify-content: center; flex: none; }
.fb svg { width: 15px; height: 15px; }
.fb.terran { color: var(--terran); } .fb.zerg { color: var(--zerg); } .fb.protoss { color: var(--protoss); }
.stats-ui.pre .st-mc .mbar { transform: scaleX(0); }
.stats-ui.pre .ring .seg { stroke-dasharray: 0 150.8; }
/* ==== LIFTED APP UI: end ==== */

/* ==================================================================== mock additions */
.dev > figcaption { font-size: 15px; }
/* tracker: Game options menu and the undo toast (src/app/(tabs)/play/tracker.tsx) */
.ui .gmenu { position: absolute; z-index: 20; top: 112px; right: 16px; width: 252px; padding: 6px 0; border-radius: 16px; background: rgba(40, 43, 48, .97);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 20px 50px rgba(0, 0, 0, .6); transform-origin: 92% 0; opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .22s, transform .32s cubic-bezier(.3, 1.3, .5, 1); }
.ui .gmenu .mrow { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; font-size: 16px; color: var(--text); transition: background .2s; }
.ui .gmenu .mrow + .mrow { border-top: 1px solid rgba(255, 255, 255, .06); }
.ui .gmenu svg { width: 20px; height: 20px; flex: none; color: var(--text2); }
.ui .gmenu .mrow.hit { background: rgba(255, 255, 255, .1); }
.ui.menu-open .gmenu { opacity: 1; transform: none; }
.ui .toast { position: absolute; z-index: 20; left: 50%; bottom: 100px; height: 40px; padding: 0 16px; border-radius: 20px; display: flex; align-items: center; white-space: nowrap;
  background: rgba(236, 237, 239, .96); color: #0E0F11; font-size: 15px; font-weight: 600; translate: -50% 12px; opacity: 0; transition: opacity .3s, translate .4s var(--ease); }
.ui.toast-on .toast { opacity: 1; translate: -50% 0; }
.ui .pips i { transition: background-color .3s; }
.ui .pips i.hit { animation: piphit .6s ease-out; }
@keyframes piphit { 0% { transform: scaleY(1.6); } 100% { transform: none; } }

/* builder: over the limit, then fixed */
.ui .bar.over i { background: var(--damage); }
.ui .bv.over b { color: var(--damage); }
.ui .blegal { position: relative; }
.ui .blegal .bad { position: absolute; left: 0; top: 50%; display: flex; align-items: center; gap: 6px; color: var(--damage); font-weight: 600; font-size: 16px;
  translate: 0 -50%; opacity: 0; transition: opacity .3s; pointer-events: none; }
.ui .blegal .bad svg { width: 16px; height: 16px; stroke-width: 2.6; }
.ui .blegal .fixb { position: absolute; right: 0; top: 50%; translate: 0 -50%; height: 32px; padding: 0 14px; border-radius: 8px; display: flex; align-items: center;
  background: var(--damage); color: #fff; font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .3s; }
.ui .blegal .rl { transition: opacity .3s; }
.ui.is-over .blegal .bad, .ui.is-over .blegal .fixb { opacity: 1; }
.ui.is-over .blegal .rl, .ui.is-over .blegal .ok { opacity: 0; }
.ui .bu.extra { overflow: hidden; max-height: 80px; transition: max-height .45s var(--ease), padding .45s var(--ease), opacity .3s, background-color 1.2s; }
.ui .bu.extra.off { max-height: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; transform: none; }

/* lock screen card: idle states for the bento loop */
.lock-dev .ui { cursor: default; }


/* the in-page app keeps the app's own weights */
.ui { font-weight: 400; }
/* device captions would be tiny once scaled: kept for screen readers only */
.dev > figcaption { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==================================================================== nav */
.site-nav { position: fixed; z-index: 100; left: 0; right: 0; top: 0; height: var(--nav-h); font-size: var(--fs-nav);
  transition: background .4s, box-shadow .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s; }
.site-nav.is-scrolled { background: rgba(14, 15, 17, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.nav-in { height: 100%; display: flex; align-items: center; gap: var(--sp-5); padding: 0 var(--gut); }
.brand { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; flex: none; }
.mark { display: inline-flex; flex: none; height: 1.55em; }
.mark svg { height: 100%; width: auto; display: block; }
.brand-name { font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: 1.25em; line-height: 1; }
.nav-links { flex: 1; display: flex; justify-content: center; }
.nav-links ul { display: flex; gap: .2em; }
.nav-links a { position: relative; display: flex; align-items: baseline; height: 2.6em; padding: 0 .75em; align-items: center; color: var(--text2); font-weight: 500; text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links .n { font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: .9em; color: var(--text3); margin-right: .45em; font-variant-numeric: tabular-nums; transition: color .2s; }
.nav-links a.is-active .n { color: var(--cy); }
.nav-links a::after { content: ''; position: absolute; left: .75em; right: .75em; bottom: .3em; height: 2px; background: var(--cy); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav-links a.is-active::after { transform: none; }
.nav-act { display: flex; align-items: center; gap: var(--sp-4); flex: none; }
.nav-app { color: var(--text); font-weight: 600; text-decoration: none; }
.nav-app:hover { color: var(--cy-l); }
.btn-sm { height: 2.5em; }
.nav-prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--cy-d), var(--cy-l)); transform-origin: 0 50%;
  transform: scaleX(var(--page-p, 0)); opacity: 0; transition: opacity .4s; }
.site-nav.is-scrolled .nav-prog { opacity: .9; }

/* ==================================================================== hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; max-height: 1400px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 2200px) { .hero { max-height: none; } }
.hero [data-hero-canvas] { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2;
  --hero-focus-x: .7; --hero-focus-y: .37; --hero-scale: .7; }
@media (orientation: portrait) and (min-width: 561px) { .hero [data-hero-canvas] { --hero-focus-x: .6; --hero-focus-y: .5; --hero-scale: .8; } }
.hero-fallback { position: absolute; inset: 0; z-index: -2; }
.hero-fallback svg { width: 100%; height: 100%; display: block; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 15, 17, .85), rgba(14, 15, 17, .4) 55%, rgba(14, 15, 17, 0)); }

.hero-hud { position: absolute; inset: calc(var(--nav-h) + 14px) calc(var(--gut) * .5) 18px; pointer-events: none; opacity: .7; }
.hud-c { position: absolute; width: clamp(14px, 1vw, 36px); height: clamp(14px, 1vw, 36px); border: 0 solid rgba(166, 230, 243, .5); }
.hud-c.tl { left: 0; top: 0; border-width: 2px 0 0 2px; } .hud-c.tr { right: 0; top: 0; border-width: 2px 2px 0 0; }
.hud-c.bl { left: 0; bottom: 0; border-width: 0 0 2px 2px; } .hud-c.br { right: 0; bottom: 0; border-width: 0 2px 2px 0; }

.hero-body { position: relative; padding: 0 var(--gut) clamp(40px, 6.5vh, 140px);
  opacity: calc(1 - var(--hero-p, 0) * 1.5); translate: 0 calc(var(--hero-p, 0) * -40px); }
.hero-kicker { display: flex; align-items: center; gap: var(--sp-3); font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: var(--fs-label); color: var(--text2); }
.hero-kicker span + span:not(.tag)::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: var(--sp-3); vertical-align: .22em; background: var(--cy-d); transform: rotate(45deg); }
.hero-kicker .tag + span::before { display: none !important; }
.hero-title { font-size: min(19.4vw, 34vh); line-height: .8; letter-spacing: 0; font-weight: 600; margin: var(--sp-3) 0 0 -.045em; white-space: nowrap; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--sp-4) var(--sp-6); margin-top: var(--sp-5);
  padding-top: var(--sp-4); border-top: 1px solid rgba(236, 237, 239, .16); }
.hero-lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.5; color: var(--text2); max-width: 27em; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-3); }
.hero .stores { font-size: clamp(16px, 1.22vw, 52px); }
.hero .store { font-size: inherit; }
.hero-facts { font-size: clamp(15px, .95vw, 40px); font-weight: 500; color: var(--text2); }
.hero-facts span { margin: 0 .45em; color: var(--text3); }

/* ==================================================================== ticker */
.ticker { border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); overflow: hidden; background: var(--s1); }
.ticker-row { display: flex; gap: 1.6em; padding: .85em 0; white-space: nowrap; font-family: 'Barlow SC', sans-serif; font-weight: 600;
  font-size: clamp(19px, 1.2vw + 2px, 54px); line-height: 1.2; color: var(--text); }
.ticker-row .ml-marquee-track { gap: 1.6em; }
.ticker-row span { display: inline-flex; align-items: center; gap: 1.6em; flex: none; }
.ticker-row span::after { content: ''; width: .34em; height: .34em; background: var(--cy); transform: rotate(45deg); }
html:not(.motion) .ticker-row { padding-left: var(--gut); }

/* ==================================================================== slides: demo chrome
   Every section is one "slide": site.js plays its timeline once when it's mostly in view,
   then it rests on its last frame. Nothing is pinned or scroll-scrubbed. */
.replay { display: inline-flex; align-items: center; gap: .45em; height: 2.3em; margin-top: var(--sp-4); padding: 0 .9em 0 .75em; border: 0; border-radius: 999px;
  background: var(--s2); box-shadow: inset 0 0 0 1px var(--edge); color: var(--text2); font-family: 'Barlow', sans-serif; font-size: calc(var(--fs-body) * .88);
  font-weight: 600; cursor: pointer; transition: color .2s, background .2s, opacity .3s; }
.replay:hover { color: var(--text); background: var(--s3); }
.replay svg { width: 1em; height: 1em; }
html:not(.motion) .replay { display: none; }
.replay.busy { opacity: .5; }

/* ==================================================================== 01 tracker */
.trk-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-6); align-items: center; padding: 0 var(--gut); }
.trk-copy { max-width: 40em; }
.trk .h2 { font-size: var(--fs-h2-pin); max-width: 12ch; }
.steps { margin-top: var(--sp-5); border-bottom: 1px solid var(--edge); }
.step { position: relative; display: grid; grid-template-columns: 2.6em minmax(0, 1fr); align-items: baseline; padding: var(--sp-3) 0; border-top: 1px solid var(--edge); }
.step-n { font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: var(--fs-label); color: var(--text3); font-variant-numeric: tabular-nums; transition: color .4s; }
.step h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; }
.step-b { all: unset; cursor: pointer; transition: color .4s; }
.step-b::after { content: ''; position: absolute; inset: 0; }
.step-b:hover { color: var(--cy-l); }
.step-b:focus-visible { outline: 2px solid var(--cy-l); outline-offset: 4px; }
.step p { margin-top: var(--sp-1); color: var(--text); font-size: calc(var(--fs-body) * 1.05); font-weight: 500; line-height: 1.55; max-width: 28em; }
/* the current beat's step is lit and open; a bar under it fills while the beat lasts */
.trk-scene[data-beat] .step:not(.is-current) .step-b { color: var(--text3); }
.trk-scene[data-beat] .step:not(.is-current) .step-b:hover { color: var(--text); }
.trk-scene[data-beat] .step.is-current .step-n { color: var(--cy); }
.trk-scene[data-beat] .step p { max-height: 0; margin-top: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .35s, margin-top .5s var(--ease-out); }
.trk-scene[data-beat] .step.is-current p { max-height: 6em; opacity: 1; margin-top: var(--sp-1); }
.step::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cy); transform: scaleX(0); transform-origin: 0 50%; }
.trk-scene.is-playing .step.is-current::after { transform: scaleX(1); transition: transform var(--beat, 1.3s) linear; }

.trk-stage { position: relative; height: clamp(520px, 80vh, 1700px); width: 100%; justify-self: center;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent); }
.trk-stage > .fit-in { display: flex; align-items: center; justify-content: center; }
.trk-cam { transform: scale(.94); transition: transform 1s var(--ease-out); transform-origin: 50% 50%; will-change: transform; }
.trk-phone { --n: 440; }
/* the camera, per beat: scale, then centre the region (offsets from the phone centre, measured in the mock at --n 440). Beat 4 is the whole phone. */
.trk-scene[data-beat="0"] .trk-cam { transform: scale(1.75) translate(0, 112px); }
.trk-scene[data-beat="1"] .trk-cam { transform: scale(2) translate(0, 250px); }
.trk-scene[data-beat="2"] .trk-cam { transform: scale(1.6) translate(0, -112px); }
.trk-scene[data-beat="3"] .trk-cam { transform: scale(1.6) translate(0, -170px); }
.trk-phone .ui .flow { transition: transform .9s var(--ease-out); }
.trk-phone .ui::before { content: ''; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 118px; background: linear-gradient(var(--bg) 88%, rgba(14, 15, 17, 0)); pointer-events: none; }
.trk-phone .ui .sb, .trk-phone .ui .nav { z-index: 4; }
.trk-scene[data-beat="3"] .trk-phone .ui .flow { transform: translateY(-250px); }

/* ==================================================================== versus (faction poster) */
.vs-pin { position: relative; height: 84vh; height: 84svh; min-height: 560px; max-height: 1500px; overflow: hidden; color: #fff; background: var(--bg); }
@media (min-width: 2200px) { .vs-pin { max-height: none; } }
/* --e: how far each field reaches (1 = to the middle). Starts most of the way in; .is-on closes it. */
.vs-scene { --e: 1; }
.motion .vs-scene { --e: .62; }
.motion .vs-scene.is-on { --e: 1; }
.vs-field { position: absolute; top: 0; bottom: 0; width: 50%; display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--sp-7) var(--sp-7) var(--sp-6); transition: clip-path 1.1s var(--ease-out); }
.vs-t { left: 0; background: var(--terran-fill); clip-path: inset(0 calc((1 - var(--e)) * 100%) 0 0); }
.vs-z { right: 0; background: var(--zerg-fill); text-align: right; align-items: flex-end; clip-path: inset(0 0 0 calc((1 - var(--e)) * 100%)); }
.vs-top { display: flex; flex-direction: column; gap: var(--sp-2); }
.vs-nm { font-family: 'Barlow SC', sans-serif; font-weight: 700; font-size: clamp(30px, 4.2vw, 180px); line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.vs-fac { font-size: var(--fs-lead); font-weight: 600; }
.vs-vp { display: flex; align-items: flex-end; gap: .12em; font-family: 'Barlow SC', sans-serif; font-weight: 700; line-height: .78; }
.vs-z .vs-vp { flex-direction: row-reverse; }
.vs-vp b { font-size: min(31vw, 60vh); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.vs-vp span { font-size: clamp(24px, 2.6vw, 110px); font-weight: 600; padding-bottom: .25em; }
.vs-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; transition: opacity .6s .7s; }
.motion .vs-scene:not(.is-on) .vs-seam { opacity: 0; }
.vs-seam i { position: absolute; inset: 0; background: linear-gradient(transparent, var(--cy-l) 20%, #fff 50%, var(--cy-l) 80%, transparent);
  box-shadow: 0 0 24px 4px rgba(166, 230, 243, .55); }
.vs-mid { --c: calc(var(--cut) * .8); position: absolute; left: 50%; top: var(--sp-7); translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .2em; padding: .85em 1.5em; background: var(--bg); color: var(--text);
  font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: clamp(16px, 1.15vw, 48px); line-height: 1.15; white-space: nowrap;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.vs-mid span { font-size: 1.6em; }
.vs-mid em { font-style: normal; color: var(--text3); }

/* ==================================================================== 02 linked */
.lk-head { position: relative; z-index: 2; padding: 0 var(--gut); }
.lk-titles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-8); margin-top: var(--sp-4); }
.lk-t .h2 { margin-top: 0; font-size: var(--fs-h2-pin); max-width: 11ch; }
.lk-t .lede { margin-top: var(--sp-3); max-width: 28em; }
.lk-t2 { transition: opacity .6s; }
.motion .lk-scene:not([data-beat="2"]) .lk-t2 { opacity: .32; }
.lk-head .replay { margin-top: var(--sp-3); }

.lk-stage { --w: 1500; --h: 760; position: relative; height: clamp(380px, 56vh, 1300px); margin: var(--sp-5) var(--gut) 0; }
.lk-set { position: relative; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); }
.lk-dev { position: absolute; top: 20px; left: 0; transition: transform 1s var(--ease-out); }
.lk-pd, .lk-pm { --n: 330; }
/* final layout (no motion, and beat 2): phones at the sides, the table display between */
.lk-d1 { transform: translateX(0); }
.lk-d2 { transform: translateX(1170px); }
.lk-mid { position: absolute; inset: 0; pointer-events: none; }
.lk-tab { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.lk-disp { --n: 760; }
.lk-wire { position: absolute; top: 378px; left: 330px; width: 840px; height: 2px; background: repeating-linear-gradient(90deg, var(--edge) 0 6px, transparent 6px 12px); transition: left 1s var(--ease-out), width 1s var(--ease-out), opacity .5s; }
.lk-wire i { position: absolute; top: -4px; left: -5px; width: 10px; height: 10px; border-radius: 5px; background: var(--c, var(--terran)); box-shadow: 0 0 12px var(--c, var(--terran)); animation: wire var(--t, .6s) linear forwards; }
.lk-wire i.rev { animation-name: wirer; }
.lk-qr { position: absolute; left: 50%; top: 378px; display: flex; flex-direction: column; align-items: center; gap: 14px; transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s, transform .8s var(--ease-out); }
.qr-card { position: relative; width: 168px; padding: 14px; background: #ECEDEF; color: #0E0F11; overflow: hidden;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.qr-svg { display: block; width: 100%; height: auto; }
.qr-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--cy); box-shadow: 0 0 14px 2px rgba(92, 196, 224, .8); opacity: 0; }
.qr-code { font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: 24px; letter-spacing: .12em; color: var(--text); }
.lk-scene[data-beat="0"] .qr-scan { opacity: 1; animation: qrscan 1s var(--ease) infinite; }
@keyframes qrscan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
/* beats 0 and 1: phones close together, no display */
.lk-scene[data-beat="0"] .lk-d1 { transform: translateX(285px); }
.lk-scene[data-beat="0"] .lk-d2 { transform: translateX(885px); }
.lk-scene[data-beat="1"] .lk-d1 { transform: translateX(345px); }
.lk-scene[data-beat="1"] .lk-d2 { transform: translateX(825px); }
.lk-scene[data-beat="0"] .lk-wire { left: 615px; width: 270px; opacity: .6; }
.lk-scene[data-beat="1"] .lk-wire { left: 675px; width: 150px; }
.lk-scene[data-beat="0"] .lk-qr { opacity: 1; }
.lk-scene[data-beat="1"] .lk-qr { transform: translate(-50%, -50%) scale(.6); }
.lk-scene[data-beat="0"] .lk-tab, .lk-scene[data-beat="1"] .lk-tab { opacity: 0; transform: translate(-50%, -40%) scale(.9); }
/* unlinked: the link light is grey until the scan */
.lk-scene[data-beat="0"] [data-live] .dot { background: var(--text3); }

/* ==================================================================== 03 army */
.army-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-6) var(--sp-8); align-items: center; }
.army-devs { width: min(100%, calc(78vh * 640 / 860)); justify-self: center; }
.army-devs .fit-in > div { position: absolute; }
.army-b { left: 120px; top: 0; }
.bld-dev { --n: 400; }
.army-s1 { left: 0; top: 150px; }
.army-s2 { right: 0; top: 70px; }
.army-s1 .dev, .army-s2 .dev { --n: 280; }

/* ==================================================================== 04 rules */
.rules-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: auto auto 1fr; gap: 0 var(--sp-8); align-items: start; }
.rules-copy { grid-column: 1; grid-row: 1; }
.rules-rev { margin-top: var(--sp-4); max-width: 34em; color: var(--text3); font-size: calc(var(--fs-body) * .82); line-height: 1.6; }
.rules-q { grid-column: 1; grid-row: 2; margin-top: var(--sp-6); display: flex; gap: .3em; align-items: flex-start;
  font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: clamp(30px, 3.3vw, 140px); line-height: 1.05; letter-spacing: -.005em; }
.q-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: .76em; height: .76em; margin-top: .15em;
  line-height: 1; background: var(--cy); clip-path: polygon(.14em 0, 100% 0, 100% calc(100% - .14em), calc(100% - .14em) 100%, 0 100%, 0 .14em); }
.q-mark::before { content: 'Q'; font-size: .62em; font-weight: 700; color: var(--bg); }
.q-text { color: var(--text); max-width: 14ch; }
.rules-devs { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.rules-devs .fit-in > div { position: absolute; }
.rules-s { left: 0; top: 90px; }
.rules-s .dev { --n: 300; }
.rules-a { right: 0; top: 0; z-index: 2; }
.ask-dev { --n: 400; }
.cites { grid-column: 1; grid-row: 3; margin-top: var(--sp-6); max-width: 32em; border-bottom: 1px solid var(--edge); }
.cites li { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; align-items: baseline; gap: var(--sp-2); padding: var(--sp-3) var(--sp-2) var(--sp-3) 0; border-top: 1px solid var(--edge); transition: background .35s; }
.cites .cn { font-family: 'Barlow SC', sans-serif; font-weight: 700; color: var(--terran-ink); font-variant-numeric: tabular-nums; padding-left: var(--sp-1); }
.cites b { font-weight: 600; }
.cites small { font-size: .9em; font-weight: 500; color: var(--text2); text-align: right; }
.cites li.hl { background: linear-gradient(90deg, rgba(63, 126, 255, .2), rgba(63, 126, 255, 0)); }

/* ==================================================================== 05 stats */
.stats-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-6) var(--sp-8); align-items: center; }
.stats-tab { --n: 1000; }
.stats-dev .tilt { transform-style: preserve-3d; }

/* ==================================================================== 06 the tournament kit: its own act */
.kit-sec { margin-top: var(--sec-y); padding: var(--sp-8) 0 var(--sp-9); background:
  linear-gradient(var(--bg), rgba(14, 15, 17, 0) 18%, rgba(14, 15, 17, 0) 82%, var(--bg)),
  repeating-linear-gradient(90deg, rgba(233, 162, 59, .05) 0 1px, transparent 1px clamp(60px, 6vw, 240px)),
  repeating-linear-gradient(0deg, rgba(233, 162, 59, .05) 0 1px, transparent 1px clamp(60px, 6vw, 240px)), #0A0B0C;
  border-top: 2px solid rgba(233, 162, 59, .4); }
.kit-act { position: relative; padding: var(--sp-6); }
.act-c { position: absolute; width: clamp(20px, 1.8vw, 64px); height: clamp(20px, 1.8vw, 64px); border: 0 solid var(--amber); }
.act-c.tl { left: 0; top: 0; border-width: 3px 0 0 3px; } .act-c.tr { right: 0; top: 0; border-width: 3px 3px 0 0; }
.act-c.bl { left: 0; bottom: 0; border-width: 0 0 3px 3px; } .act-c.br { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
.act-strip { display: flex; align-items: center; gap: var(--sp-3); font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: var(--fs-label); line-height: 1.2; }
.act-strip .idx-n { color: var(--amber); }
.act-label { color: var(--amber-ink); }
.act-rule { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(233, 162, 59, .55) 0 8px, transparent 8px 16px); }
.act-meta { color: var(--text2); }
.act-title { margin-top: var(--sp-4); max-width: none; }
.act-lead { max-width: 34em; }
.act-mods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: var(--sp-6); border-top: 2px solid rgba(233, 162, 59, .45); }
.act-mods li { display: flex; flex-direction: column; gap: var(--sp-1); padding: var(--sp-3) var(--sp-3) 0 0; font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: var(--fs-h3); line-height: 1.1; }
.act-mods li + li { padding-left: var(--sp-3); border-left: 1px solid rgba(233, 162, 59, .2); }
.act-mods span { font-size: var(--fs-label); color: var(--amber); font-variant-numeric: tabular-nums; }
.kit-sec .one-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-7); }
.kit-sec .one-list li { padding-top: var(--sp-3); border-top: 3px solid var(--amber); color: var(--text2); }
.one-list b { display: block; margin-bottom: var(--sp-1); color: var(--text); font-weight: 600; line-height: 1.3; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-7);
  grid-template-areas:
    "clock clock clock clock clock clock clock clock lock lock lock lock"
    "draft draft draft draft result result result result lock lock lock lock"
    "cards cards cards cards store store store store store store store store"; }
.c-clock { grid-area: clock; } .c-lock { grid-area: lock; } .c-draft { grid-area: draft; } .c-result { grid-area: result; } .c-cards { grid-area: cards; } .c-store { grid-area: store; }
.card { --c: var(--cut); position: relative; padding: 1px; min-width: 0; background: linear-gradient(160deg, rgba(233, 162, 59, .45), var(--edge) 38%);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.card-in { --c2: calc(var(--c) - .5px); position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(120% 70% at 100% 0%, rgba(233, 162, 59, .06), transparent 60%), var(--s1);
  clip-path: polygon(var(--c2) 0, 100% 0, 100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%, 0 100%, 0 var(--c2)); }
.card-copy { padding: var(--pad) var(--pad) 0; }
.card-copy h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; }
.card-copy p { margin-top: var(--sp-2); color: var(--text2); max-width: 34em; }
.card-copy p + p { margin-top: var(--sp-2); }
.card-art { margin-top: auto; overflow: hidden; }
.card-art.ph-art { margin-top: var(--sp-5); }
.card-art .fit-in > .dev { position: absolute; }
.ph-art .dev { --n: 300; left: 50px; top: 0; }
.clock-art .clock-tab, .store-art .store-tab { --n: 660; left: 40px; top: 64px; }
.clock-art .clock-phone, .store-art .store-phone { --n: 200; right: 40px; top: 120px; z-index: 2; }
.c-clock .card-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; }
.c-clock .card-copy { padding-bottom: var(--pad); }
.c-clock .card-art { margin-top: 0; align-self: end; }
.c-store .card-art { margin-top: var(--sp-5); }
.lock-art .lock-dev { --n: 360; left: 40px; top: 20px; }
.c-lock .card-art { margin-top: var(--sp-5); }

/* ==================================================================== 07 privacy + FAQ */
.priv-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--sp-6) var(--sp-8); align-items: start; }
.priv .h2 { max-width: 14ch; }
.faq-title { font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: var(--fs-label); color: var(--text2); padding-bottom: var(--sp-3); }
.faq details { border-top: 1px solid var(--edge); }
.faq details:last-child { border-bottom: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-3); padding: var(--sp-4) 0;
  font-size: calc(var(--fs-body) * 1.14); font-weight: 600; line-height: 1.35; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cy-l); }
.faq summary::after { content: ''; width: .8em; height: .8em; flex: none;
  background: linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 50% 50% / 2px 100% no-repeat;
  color: var(--text2); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--cy); }
.faq-a p { padding: 0 var(--sp-6) var(--sp-4) 0; color: var(--text2); max-width: 36em; }
.faq-a a { color: var(--cy-l); }

/* ==================================================================== 08 join: the finale */
.join { padding-bottom: var(--sp-8); overflow: hidden; }
.join-stage { position: relative; height: 76vh; height: 76svh; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center;
  padding: calc(var(--nav-h) + var(--sp-6)) var(--gut) 0; isolation: isolate; }
.join-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; --hero-focus-x: .5; --hero-focus-y: .9; --hero-scale: .78; }
.join-stage .hero-fallback { position: absolute; inset: 0; z-index: -2; }
.join-stage .hero-fallback svg { width: 100%; height: 100%; display: block; }
.join-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.join-head { display: flex; flex-direction: column; align-items: center; }
.join-head .h2 { max-width: none; text-shadow: 0 6px 60px rgba(14, 15, 17, .85), 0 2px 18px rgba(14, 15, 17, .7); }
.join-head .lede { color: var(--text); text-shadow: 0 2px 20px rgba(14, 15, 17, .95); }
.idx-c { justify-content: center; }
.join .wrap { position: relative; z-index: 1; }
.join-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-5); }
.jcard { --c: var(--cut); background: var(--edge); padding: 1px; min-width: 0;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.jcard-in { --c2: calc(var(--c) - .5px); height: 100%; display: flex; flex-direction: column; padding: var(--pad); background: var(--s1);
  clip-path: polygon(var(--c2) 0, 100% 0, 100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%, 0 100%, 0 var(--c2)); }
.jcard-n { font-family: 'Barlow SC', sans-serif; font-weight: 600; font-size: var(--fs-label); color: var(--cy); font-variant-numeric: tabular-nums; }
.jcard h3 { font-size: calc(var(--fs-h3) * 1.2); font-weight: 600; margin-top: var(--sp-2); }
.jsteps { counter-reset: j; margin: var(--sp-4) 0 var(--sp-5); }
.jsteps li { counter-increment: j; position: relative; padding: var(--sp-2) 0 var(--sp-2) 2em; border-top: 1px solid var(--edge); color: var(--text2); }
.jsteps li::before { content: counter(j); position: absolute; left: 0; top: var(--sp-2); font-family: 'Barlow SC', sans-serif; font-weight: 700; color: var(--cy); font-variant-numeric: tabular-nums; }
.jsteps b { color: var(--text); font-weight: 600; }
.jcopy { margin: var(--sp-4) 0 var(--sp-5); color: var(--text2); }
.store-wide { margin-top: auto; align-self: stretch; }
.store-wide .store-in { min-width: 0; width: 100%; }
.join-note { margin-top: var(--sp-5); color: var(--text2); }
.join-note b { color: var(--text); font-weight: 600; }
.join-note a { color: var(--cy-l); }

/* ==================================================================== footer */
.foot { border-top: 1px solid var(--edge); padding: var(--sp-6) 0 var(--sp-7); background: var(--s1); }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.brand-lg { font-size: calc(var(--fs-body) * 1.2); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.foot-links a { color: var(--text); font-weight: 500; text-decoration: none; }
.foot-links a:hover { color: var(--cy-l); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer { margin-top: var(--sp-4); max-width: 62em; color: var(--text2); font-size: calc(var(--fs-body) * .9); line-height: 1.6; }

/* ==================================================================== responsive */
@media (max-width: 1280px) {
  .nav-links .n { display: none; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "clock clock" "lock draft" "lock result" "cards cards" "store store"; }
  .c-cards .card-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .c-cards .card-art { margin-top: 0; align-self: end; }
  .act-mods { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--sp-3); }
  .act-mods li:nth-child(4) { padding-left: 0; border-left: 0; }
  .kit-sec .one-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  :root { --sec-y: var(--sp-8); }
  .hero-row { grid-template-columns: 1fr; }
  .hero-cta { align-items: flex-start; }

  /* tracker: copy on top, only the current step, then the lens */
  .trk-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .trk .h2 { font-size: clamp(32px, 8vw, 56px); max-width: 16ch; }
  .trk-scene[data-beat] .steps { display: grid; margin-top: var(--sp-4); border: 0; }
  .trk-scene[data-beat] .step { grid-area: 1 / 1; border: 0; padding: 0 0 var(--sp-2); opacity: 0; translate: 0 10px; pointer-events: none; transition: opacity .35s, translate .45s var(--ease-out); }
  .trk-scene[data-beat] .step.is-current { opacity: 1; translate: 0 0; pointer-events: auto; }
  .trk-scene[data-beat] .step::after { bottom: 0; }
  .trk-stage { height: min(74svh, 150vw); }
  .trk-copy .replay { margin-top: var(--sp-2); }
  /* gentler zoom in the narrow lens */
  .trk-scene[data-beat="0"] .trk-cam { transform: scale(1.3) translate(0, 112px); }
  .trk-scene[data-beat="1"] .trk-cam { transform: scale(1.4) translate(0, 250px); }
  .trk-scene[data-beat="2"] .trk-cam { transform: scale(1.25) translate(0, -112px); }
  .trk-scene[data-beat="3"] .trk-cam { transform: scale(1.3) translate(0, -170px); }

  .lk-titles { grid-template-columns: 1fr; row-gap: var(--sp-5); }

  .army-grid, .rules-grid, .stats-grid, .priv-grid { grid-template-columns: 1fr; }
  .army-devs, .rules-devs, .stats-dev { margin-top: var(--sp-6); }
  .army-devs { width: min(100%, 420px); }
  .rules-copy, .rules-q, .rules-devs, .cites { grid-column: 1; grid-row: auto; }
  .faq { margin-top: var(--sp-6); }
  .join-grid { grid-template-columns: 1fr; }
  .kit-sec { margin-top: var(--sp-6); padding: var(--sp-6) 0 var(--sp-6); }
  .priv { padding-top: var(--sp-7); }
  .faq { margin-top: var(--sp-4); }
  .priv-grid { row-gap: 0; }
  .join { padding-bottom: var(--sp-6); }
}
@media (max-width: 699px) {
  :root { --pad: 24px; }

  /* the kit as a horizontal snap scroller: cards keep their own heights */
  .bento { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: var(--sp-6) calc(var(--gut) * -1) 0; padding: 0 var(--gut) 12px; scroll-padding: 0 var(--gut); scrollbar-width: none; }
  .bento::-webkit-scrollbar { display: none; }
  .bento > .card { flex: 0 0 84%; scroll-snap-align: start; }
  .c-clock, .c-store { flex-basis: 92% !important; }
  .c-clock .card-in, .c-store .card-in, .c-cards .card-in { display: flex; }
  .c-clock .card-copy { padding-bottom: 0; }
  .c-clock .card-art, .c-store .card-art, .c-cards .card-art { margin-top: var(--sp-4); align-self: stretch; }
  .c-lock .lock-art { aspect-ratio: 440 / 600; }
  .kit-act { padding: var(--sp-5) 20px; }
  .act-strip { flex-wrap: wrap; row-gap: var(--sp-1); }
  .act-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .act-mods li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .act-mods li:nth-child(4) { padding-left: var(--sp-3); border-left: 1px solid rgba(233, 162, 59, .2); }
  .act-mods li { padding-bottom: var(--sp-3); border-bottom: 1px solid rgba(233, 162, 59, .2); }
  .kit-sec .one-list { grid-template-columns: 1fr; gap: var(--sp-4); }

  .vs-field { padding: var(--sp-5) 20px var(--sp-5); }
  .motion .vs-scene { --e: .84; }
  .vs-pin { height: 78svh; min-height: 520px; }
  .vs-mid { top: 50%; translate: -50% -50%; }
  .vs-vp b { font-size: min(30vw, 40vh); }
  .vs-vp span { font-size: 16px; }
  .vs-fac { font-size: 15px; }

  .join-stage { height: 80svh; min-height: 560px; padding-top: calc(var(--nav-h) + var(--sp-5)); }
  .join-stage canvas { --hero-focus-y: .9; --hero-scale: .62; }
}
@media (max-width: 560px) {
  .nav-app { display: none; }
  .hero-title { font-size: 26.5vw; line-height: .86; white-space: normal; margin-top: var(--sp-2); max-width: 4.2em; }
  .hero [data-hero-canvas] { --hero-focus-x: .5; --hero-focus-y: .29; --hero-scale: .5; }
  .hero-kicker { gap: var(--sp-2); flex-wrap: wrap; }
  .hero-kicker span + span:not(.tag)::before { margin-right: var(--sp-2); }
  .hero .stores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; font-size: 16px; }
  .hero-cta { width: 100%; }
  .hero .store-in { min-width: 0; height: 3.3em; padding: 0 .6em; align-items: center; }
  .hero .store small { display: none; }
  .hero .store b { font-size: 1.15em; }
  .spec > div { grid-template-columns: 5.6em minmax(0, 1fr); }
  .faq-a p { padding-right: 0; }
  .cites li { grid-template-columns: 2em minmax(0, 1fr); row-gap: 2px; }
  .cites small { grid-column: 2; text-align: left; }
  .foot-links { gap: var(--sp-2) var(--sp-4); }
}

/* 02 linked on phones: the table display on top, the two phones overlapping its lower edge */
@media (max-width: 700px) {
  .lk-stage { --w: 760; --h: 1160; height: auto; aspect-ratio: 760 / 1160; margin-top: var(--sp-5); }
  .lk-tab { left: 0; top: 0; transform: none; z-index: 0; }
  .lk-dev { z-index: 1; }
  .lk-d1 { transform: translate(0, 420px); }
  .lk-d2 { transform: translate(430px, 420px); }
  .lk-wire { top: 767px; left: 330px; width: 100px; }
  .lk-qr { top: 170px; }
  .lk-scene[data-beat="0"] .lk-d1, .lk-scene[data-beat="1"] .lk-d1 { transform: translate(0, 330px); }
  .lk-scene[data-beat="0"] .lk-d2, .lk-scene[data-beat="1"] .lk-d2 { transform: translate(430px, 330px); }
  .lk-scene[data-beat="0"] .lk-wire, .lk-scene[data-beat="1"] .lk-wire { top: 677px; left: 330px; width: 100px; }
  .lk-scene[data-beat="0"] .lk-tab, .lk-scene[data-beat="1"] .lk-tab { transform: translateY(40px) scale(.94); }
  .lk-scene[data-beat="1"] .lk-qr { opacity: 0; transform: translate(-50%, -50%) scale(.8); }
  .qr-card { width: 200px; }
}
}
