/* Landing page. Tokens mirror the app's design system (study2/base/hud.css).
   Sections: base, nav, devices, intro, hero, in-page app UI, demos, sections, responsive. */

@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;
  --cut: 14px;

  --nav-h: 60px;
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Barlow', -apple-system, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.5;
  -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; }

:focus-visible { outline: 2px solid var(--terran-ink); outline-offset: 3px; border-radius: 4px; }

.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: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: 'Barlow SC', 'Barlow', sans-serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(40px, 6vw, 80px); }
h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
p { text-wrap: pretty; }

.sec-head { text-align: center; }
.sec-head h2 { max-width: 18ch; margin: 0 auto; }
.sec-head p { max-width: 36em; margin: 24px auto 0; color: var(--text2); font-size: clamp(18px, 1.5vw, 21px); }
.sec-head.left { text-align: left; }
.sec-head.left h2, .sec-head.left p { margin-left: 0; }

.soon { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px; vertical-align: middle;
  background: rgba(233,162,59,0.14); color: #F2BE6E; font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
.soon.big { height: 30px; font-size: 14px; margin-bottom: 22px; }

section { position: relative; }

.cham { position: relative; background: var(--edge); 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)); }
.cham > .in { position: relative; background: var(--s1); height: 100%;
  --c2: calc(var(--cut) - 0.6px);
  clip-path: polygon(var(--c2) 0, 100% 0, 100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%, 0 100%, 0 var(--c2)); }

/* ---------- nav ---------- */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgba(14,15,17,0.78); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line); }
.nav-in { height: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-name { font-family: 'Barlow SC'; font-weight: 600; font-size: 20px; letter-spacing: 0; }
.site-nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text2); text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--s1); }
.nav-cta { --cut: 8px; display: inline-flex; align-items: center; height: 36px; padding: 0 16px; background: var(--text); color: var(--bg);
  font-family: 'Barlow SC'; font-weight: 600; font-size: 16px; text-decoration: none;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.nav-cta:focus-visible { outline-offset: 2px; clip-path: none; border-radius: 4px; }


/* ---------- 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; }

/* ---------- intro ---------- */
.intro { display: none; }
html.intro-on .intro { display: flex; position: fixed; inset: 0; z-index: 300; background: var(--bg); align-items: center; justify-content: center; cursor: default; }
html.intro-on body { overflow: hidden; }
.intro.out { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.intro-in { width: min(540px, 86vw); font-family: 'Barlow SC', sans-serif; font-variant-numeric: tabular-nums lining-nums; }
.intro-hello { margin: 26px 0 26px; min-height: 1.1em; font-size: clamp(38px, 6vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }
.intro-log { border-top: 1px solid var(--line); padding-top: 14px; }
.intro-log li { display: flex; justify-content: space-between; align-items: center; height: 34px; font-size: 20px; font-weight: 500; color: var(--text2); letter-spacing: .02em; opacity: 0; }
.intro-log li.on { opacity: 1; }
.intro-log li b { font-weight: 600; color: var(--terran-ink); opacity: 0; transition: opacity .15s; }
.intro-log li.ok b { opacity: 1; }
.intro-log li.fin { color: var(--text); font-weight: 600; }
.intro-log li.fin .t::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: var(--terran); margin-right: 10px; vertical-align: 2px; }
.intro .typing::after { content: ''; display: inline-block; width: .5em; height: .9em; margin-left: 3px; vertical-align: -2px; background: var(--terran); animation: blink .7s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.intro-bar { position: relative; margin-top: 22px; height: 3px; border-radius: 2px; background: var(--s3); }
.intro-bar i { position: absolute; inset: 0; border-radius: 2px; background: var(--terran); transform-origin: 0 0; transform: scaleX(var(--p, 0)); }
.intro-bar .pc { position: absolute; right: 0; top: 10px; font-size: 13px; color: var(--text3); }
.intro-skip { position: absolute; top: 18px; right: 20px; height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--edge); background: var(--s1);
  color: var(--text2); font-size: 15px; font-weight: 500; cursor: pointer; }
.intro-skip:hover { color: var(--text); background: var(--s2); }

/* ---------- hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(64px, 11vh, 128px)); overflow: hidden; }
.hero-copy { text-align: center; }
.hero-name { margin-top: 0; font-size: clamp(60px, 10.5vw, 150px); letter-spacing: -0.02em; line-height: 0.92; font-variant-numeric: tabular-nums; }
.hero-name .gl { color: var(--terran-ink); opacity: .7; }
.hero-bars { display: flex; gap: 5px; width: 180px; margin: 28px auto 0; }
.hero-bars i { flex: 1; height: 4px; border-radius: 1px; background: var(--s3); transform-origin: 0 0; }
.hero-bars i.done { background: #5B6068; }
.hero-bars i.now { background: var(--terran); }
.hero-lead { max-width: 34em; margin: 26px auto 0; font-size: clamp(19px, 1.7vw, 23px); color: var(--text2); line-height: 1.45; }
.stores { display: flex; justify-content: center; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.store { --cut: 10px; background: var(--edge); 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)); }
.store-in { --c2: 9.6px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 176px; height: 56px; padding: 0 22px; background: var(--s2); text-align: center;
  clip-path: polygon(var(--c2) 0, 100% 0, 100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%, 0 100%, 0 var(--c2)); }
.store small { font-size: 12px; color: var(--text2); line-height: 1.1; }
.store b { font-family: 'Barlow SC'; font-size: 22px; font-weight: 600; line-height: 1.05; }
a.store, a.store .store-in { text-decoration: none; transition: background .2s; }
a.store:hover { background: var(--text3); }
a.store:hover .store-in { background: var(--s3); }
a.store:focus-visible { outline-offset: 2px; clip-path: none; border-radius: 4px; }
.store.off { opacity: .5; }
.hero-facts { margin-top: 20px; font-size: 15px; color: var(--text3); }
.hero-facts span { margin: 0 6px; }

.hero-stage { position: relative; margin-top: clamp(56px, 8vh, 90px); height: clamp(430px, 46vw, 650px); }
.hero-tab { --n: 820; position: absolute; left: 50%; top: 0; margin-left: -350px; }
.hero-phone { --n: 250; position: absolute; left: 50%; top: 170px; margin-left: -580px; z-index: 2; }
.hero-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: 3; pointer-events: none; }

/* Hero entrance: HUD line and name come in, the devices boot into the app */
.motion .hero-name, .motion .hero-bars, .motion .hero-lead, .motion .stores, .motion .hero-facts { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.motion .hero.pre .hero-bars, .motion .hero.pre .hero-lead, .motion .hero.pre .stores, .motion .hero.pre .hero-facts { opacity: 0; transform: translateY(14px); }
.motion .hero.pre .hero-name { opacity: 0; }
.motion .hero .hero-lead { transition-delay: .35s; } .motion .hero .stores { transition-delay: .45s; } .motion .hero .hero-facts { transition-delay: .55s; }
.motion .hero.pre .hero-bars i { transform: scaleX(0); }
.hero-bars i { transition: transform .5s var(--ease); }
.hero-bars i:nth-child(1) { transition-delay: .5s; } .hero-bars i:nth-child(2) { transition-delay: .7s; }
.motion .hero-stage .dev { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .hero.pre .hero-stage .dev { opacity: 0; transform: translateY(50px); }
.motion .hero .hero-stage .hero-phone { transition-delay: .12s; }
.boot { position: absolute; inset: 0; z-index: 30; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; transition: opacity .45s ease; }
.boot .mark { transform: scale(var(--bs, 1)); }
.boot b { display: block; width: 26%; height: 2px; border-radius: 1px; background: var(--s3); overflow: hidden; }
.boot b::after { content: ''; display: block; height: 100%; background: var(--terran); transform-origin: 0 0; animation: bootbar .7s var(--ease) forwards; }
@keyframes bootbar { from { transform: scaleX(0); } to { transform: none; } }
.boot.off { opacity: 0; pointer-events: none; }
.hero-stage.pre [data-boot] { opacity: 0; transform: translateY(12px); }
.hero-stage.go [data-boot] { transition: opacity .6s var(--ease) var(--d, 0s), transform .6s var(--ease) var(--d, 0s); }

/* ---------- 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); }

.ui .nav { position: absolute; left: 17px; right: 17px; 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 { margin-left: 13px; font-family: 'Barlow SC'; font-weight: 600; font-size: 20px; line-height: 1; }
.ui .nav .grp { margin-left: auto; height: 44px; width: 154px; 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: space-around; padding: 0 6px; }
.ui .nav .grp svg { width: 23px; height: 23px; }

.ui .linkrow { position: absolute; left: 0; right: 0; top: 112px; height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 14px; color: var(--text2); }
.ui .linkrow span { display: flex; align-items: center; gap: 7px; }
.ui .linkrow .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--legal); }
.ui .linkrow svg { width: 15px; height: 15px; color: var(--text3); }
.ui .linkrow svg.chev { width: 12px; height: 12px; margin-left: -3px; }

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

.ui .rhead { display: flex; align-items: center; height: 46px; gap: 9px; }
.ui .rnd { font-family: 'Barlow SC'; font-weight: 600; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; margin-right: auto; }
.ui .rnd span { color: var(--text3); font-weight: 500; }
.ui .sq { width: 47px; height: 46px; border-radius: 10px; background: var(--s2); display: flex; align-items: center; justify-content: center; color: var(--text2); }
.ui .sq svg { width: 22px; height: 22px; stroke-width: 2; }
.ui .next { height: 46px; padding: 0 20px; border-radius: 10px; background: var(--s2); display: flex; align-items: center; font-size: 17px; font-weight: 600; }
.ui .stepper { display: flex; gap: 4px; margin-top: 12px; }
.ui .stepper > div { flex: 1; }
.ui .stepper i { display: block; height: 4px; border-radius: 1px; background: var(--s3); }
.ui .stepper .done i { background: #5B6068; }
.ui .stepper .now i { background: var(--terran); }
.ui .stepper .caps { display: block; margin-top: 8px; font-size: 12.5px; letter-spacing: 1.3px; color: var(--text3); }
.ui .stepper .done .caps { color: var(--text2); }
.ui .stepper .now .caps { color: var(--text); }
.ui.zerg-ui .stepper .now i { background: var(--zerg); }

.ui .score { display: flex; border-radius: 12px; overflow: hidden; height: 120px; }
.ui .flow .score { margin-top: 18px; }
.ui .score .side { flex: 1 1 0; min-width: 0; padding: 12px 12px 12px 14px; display: flex; flex-direction: column; justify-content: space-between; 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; }
.ui .score .name { font-size: 17px; font-weight: 600; line-height: 1.2; }
.ui .score .res { display: flex; align-items: center; gap: 4px; font-size: 15px; line-height: 1.3; margin-top: 3px; }
.ui .score .res svg { width: 14px; height: 14px; stroke-width: 2; }
.ui .score .me .res { color: rgba(255,255,255,0.86); }
.ui .score .them .res { color: var(--text2); }
.ui .first { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--text2); }
.ui .me .first { color: rgba(255,255,255,0.86); }
.ui .first svg { width: 16px; height: 16px; }
.ui .ctl { display: flex; align-items: center; justify-content: space-between; }
.ui .ctl .vp { font-family: 'Barlow SC'; font-weight: 600; font-size: 50px; line-height: 1; 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; }
.ui .me .pm { background: rgba(255,255,255,0.18); color: #fff; }
.ui .them .pm { background: var(--s3); color: var(--text); }
.ui .pm svg { width: 20px; height: 20px; stroke-width: 2; }

.ui .chead { display: flex; align-items: center; height: 40px; gap: 10px; }
.ui .chead .lbl { font-size: 15px; color: var(--text2); }
.ui .chead .val { font-family: 'Barlow SC'; font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; margin-left: 2px; }
.ui .chead .pause { margin-left: auto; height: 38px; padding: 0 14px 0 11px; border-radius: 10px; background: var(--s2); display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.ui .chead .pause svg { width: 17px; height: 17px; }
.ui .clock { display: flex; gap: 8px; margin-top: 8px; }
.ui .tile { flex: 1 1 0; min-width: 0; height: 96px; border-radius: 12px; padding: 10px 12px 10px 15px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.ui .tile .top { position: absolute; top: 10px; right: 10px; }
.ui .tile .time { font-family: 'Barlow SC'; font-weight: 600; font-size: 54px; line-height: 0.9; letter-spacing: -0.5px; 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 rgba(255,255,255,0.07) inset; }
.ui .tile.wait .time { color: var(--text2); }
.ui .tile .pass { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px 0 7px; border-radius: 7px; background: var(--s3); font-size: 14px; font-weight: 600; color: var(--text); }
.ui .tile .pass svg { width: 15px; height: 15px; stroke-width: 2; }

.ui .block { margin-top: 18px; }
.ui .bhead { display: flex; justify-content: space-between; align-items: baseline; }
.ui .bhead .h { font-size: 17px; font-weight: 600; }
.ui .bhead .h b { font-family: 'Barlow SC'; font-weight: 600; font-size: 18px; margin-left: 9px; font-variant-numeric: tabular-nums; }
.ui .bhead .r { font-size: 11px; color: var(--text3); }
.ui .bhead.mk { align-items: center; }
.ui .chip { height: 32px; padding: 0 14px; border-radius: 8px; background: var(--s3); display: flex; align-items: center; font-size: 15px; font-weight: 500; }
.ui .srow { display: flex; align-items: center; height: 30px; margin-top: 4px; gap: 12px; }
.ui .srow .n { width: 96px; font-size: 15px; 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: 26px; text-align: right; font-family: 'Barlow SC'; font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.ui .markers { display: flex; gap: 8px; margin-top: 12px; }
.ui .markers .mk { flex: 1; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Barlow SC'; font-weight: 600; font-size: 24px;
  background: var(--s1); color: var(--text3); box-shadow: 0 0 0 1px var(--edge) inset; }
.ui .markers .mk.t { background: rgba(63,126,255,0.14); color: #fff; box-shadow: 0 0 0 2px var(--terran) inset; }
.ui .markers .mk.z { background: rgba(180,92,255,0.14); color: #fff; box-shadow: 0 0 0 2px var(--zerg) inset; }

.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: 11px; 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) */
.ui .flow { position: absolute; left: 16px; right: 16px; top: 152px; }
.ui .units { margin-top: 22px; }
.ui .uhead { font-family: 'Barlow SC'; font-weight: 600; font-size: 20px; padding: 0 4px; margin-bottom: 10px; }
.ui .urow { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 12px 10px 16px; background: var(--s1); }
.ui .urow:first-of-type { border-radius: 12px 12px 0 0; }
.ui .urow + .urow { border-top: 1px solid var(--line); }
.ui .urow:last-child { border-radius: 0 0 12px 12px; }
.ui .un { font-size: 16px; font-weight: 500; }
.ui .us { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text2); margin-top: 3px; }
.ui .us em { font-style: normal; color: var(--damage); }
.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: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--terran); color: #fff; }
.ui.zerg-ui .act { background: var(--zerg); }
.ui .act svg { width: 16px; height: 16px; stroke-width: 2.25; }


/* ---------- 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-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; height: 92px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative;
  box-shadow: 0 0 0 1.5px #3A3E45 inset; color: var(--text2); transition: background-color .3s, color .3s, box-shadow .3s; }
.dp-mk.t { background: var(--terran-fill); color: #fff; box-shadow: none; }
.dp-mk.z { background: var(--zerg-fill); color: #fff; box-shadow: none; }
.dp-mk .n { font-family: 'Barlow SC'; font-weight: 700; font-size: 40px; line-height: 46px; }
.dp-mk .w { font-size: 17px; font-weight: 500; line-height: 20px; }
.dp-mk .ini { position: absolute; top: 5px; left: 8px; font-size: 15px; font-weight: 600; }
.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-foot { height: 36px; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 18px; color: var(--text2); }

/* ---------- 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: 604px; height: 150px; border-radius: 22px; padding: 15px 18px 16px; background: rgba(40,42,47,0.72);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.07) inset; color: var(--text); display: flex; flex-direction: column; justify-content: space-between; }
.lockui .hd { display: flex; justify-content: space-between; align-items: center; font-size: 15px; line-height: 20px; }
.lockui .hd b { font-weight: 600; }
.lockui .hd span { color: var(--text2); }
.lockui .body { display: flex; align-items: flex-end; justify-content: space-between; }
.lockui .p { width: 124px; }
.lockui .p.r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.lockui .nm { font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.lockui .p.r .nm { color: var(--text2); font-weight: 500; }
.lockui .t { margin-top: 8px; height: 46px; display: inline-flex; align-items: center; font-family: 'Barlow SC'; font-weight: 600; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.lockui .t.run { background: var(--terran-fill); color: #fff; border-radius: 10px; padding: 0 12px; }
.lockui .t.idle { color: var(--text2); padding: 0 2px; }
.lockui .vp { font-family: 'Barlow SC'; font-weight: 600; font-size: 50px; line-height: 1; padding-bottom: 2px; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.lockui .vp em { font-style: normal; color: var(--text3); font-weight: 500; font-size: 36px; }
.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: 254px; margin-left: -127px; }
.lockui.s-expanded .dyn { width: 382px; margin-left: -191px; height: 196px; border-radius: 48px; }
.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 12px 0 13px; font-family: 'Barlow SC'; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.lockui.s-compact .dyn .cmp { opacity: 1; transition-delay: .25s; }
.lockui .dyn .lead { display: flex; align-items: center; gap: 3px; color: #fff; }
.lockui .dyn .lead i { margin-right: 3px; }
.lockui .dyn .lead i { width: 9px; height: 9px; border-radius: 2px; background: var(--terran); }
.lockui .dyn .lead em { font-style: normal; color: #8B9099; }
.lockui .dyn .trail { display: flex; align-items: center; gap: 4px; color: var(--terran-ink); }
.lockui .dyn .trail svg { width: 11px; height: 11px; }
.lockui .dyn .exp { left: 0; top: 0; width: 382px; height: 196px; padding: 56px 26px 22px; display: flex; flex-direction: column; justify-content: space-between; color: var(--text); }
.lockui.s-expanded .dyn .exp { opacity: 1; transition-delay: .25s; }
.lockui .dyn .exp .p { width: 118px; }

.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; }

/* =====================================================================
   The assembling tracker (scroll-driven, with carousel controls)
   ===================================================================== */
.asm { padding-top: clamp(96px, 12vw, 160px); }
.asm-track { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.asm-sticky { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px;
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.asm-list { counter-reset: s; display: grid; gap: 28px; max-width: 440px; margin-left: auto; }
.asm-list li { counter-increment: s; position: relative; padding-left: 44px; }
.asm-list li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 28px; height: 28px; border-radius: 7px; background: var(--s2);
  display: flex; align-items: center; justify-content: center; font-family: 'Barlow SC'; font-weight: 600; font-size: 15px; color: var(--text2); }
.asm-list h3 { font-size: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.asm-list p { margin-top: 6px; color: var(--text2); font-size: 17px; }
.asm-nav { display: none; }

.asm-view { display: flex; justify-content: center; }
.asm-fit { --k: 0.78; position: relative; width: calc(402px * var(--k)); height: calc(874px * var(--k)); perspective: 2600px; perspective-origin: 50% 40%; }
.asm-stage { position: absolute; left: 50%; top: 50%; width: 402px; height: 874px; margin: -437px 0 0 -201px; background: transparent; transform: scale(var(--k)); transform-style: preserve-3d; }
.asm-body { position: absolute; inset: -12px; border-radius: 67px; background: linear-gradient(#1a1c20, #121316); box-shadow: 0 0 0 1px #33363C, inset 0 0 0 1px rgba(255,255,255,0.05); }
.asm-glass { position: absolute; inset: 12px; border-radius: 55px; background: var(--bg); }
.asm-back { position: absolute; inset: -12px; border-radius: 67px; background: #0b0c0e; box-shadow: 0 0 0 1px #2a2d33; transform: translateZ(-16px); opacity: 0; }
.asm-body .slot { position: absolute; left: 16px; right: 16px; border: 1.5px dashed rgba(143,178,255,0.5); border-radius: 12px; opacity: 0; }
.island3d { position: absolute; left: 50%; top: 11px; width: 126px; height: 37px; margin-left: -63px; border-radius: 19px; background: #000; opacity: 0; }
.lyr { position: absolute; left: 31px; right: 31px; --e: 0; }
.lyr-top { left: 0; right: 0; top: 0; height: 148px; }
.lyr-plate { left: 16px; right: 16px; top: 154px; height: 632px; }
.lyr-tab { left: 0; right: 0; top: 0; height: 874px; pointer-events: none; }
.lyr-tab .tabbar { z-index: auto; }
.asm-stage .tile { height: 96px; }

.motion .asm-track { height: 520vh; }
.motion .asm-sticky { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); padding-bottom: 0; }
.motion .asm-list { display: block; position: relative; min-height: 180px; margin-left: auto; }
.motion .asm-list li { position: absolute; inset: 0 0 auto 0; padding-left: 0; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.motion .asm-list li::before { display: none; }
.motion .asm-list li.on { opacity: 1; transform: none; }
.motion .asm-list li.past { opacity: 0; transform: translateY(-18px); }
.motion .asm-list h3 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; }
.motion .asm-list p { font-size: clamp(18px, 1.5vw, 21px); margin-top: 14px; max-width: 24em; }
.motion .asm-captions { max-width: 440px; margin-left: auto; width: 100%; }
.motion .asm-nav { display: flex; align-items: center; gap: 10px; margin-top: 30px; max-width: 360px; }
.asm-arrow { flex: none; width: 38px; height: 38px; border-radius: 19px; border: 0; box-shadow: inset 0 0 0 1px var(--edge); background: var(--s1); color: var(--text2);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, opacity .2s; }
.asm-arrow:hover:not(:disabled) { color: var(--text); background: var(--s2); }
.asm-arrow:disabled { opacity: .35; cursor: default; }
.asm-arrow svg { width: 18px; height: 18px; }
.asm-bars { flex: 1; display: flex; gap: 4px; }
.asm-bar { flex: 1; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; border-radius: 3px; }
.asm-bar i { display: block; width: 100%; height: 4px; border-radius: 1px; background: var(--s3); transition: background .3s, height .15s; }
.asm-bar:hover i { height: 7px; background: #3A3E45; }
.asm-bar.done i { background: #5B6068; }
.asm-bar.now i { background: var(--terran); }
.asm-bar:focus-visible { outline-offset: 0; }

.motion .asm-stage .lyr { will-change: transform; }
.motion .asm-stage .lyr:not(.lyr-tab):not(.lyr-plate) {
  background: rgb(22 24 27 / calc(var(--e) * 0.94));
  box-shadow: 0 0 0 1px rgb(143 178 255 / calc(var(--e) * 0.35)), 0 30px 50px -10px rgb(0 0 0 / calc(var(--e) * 0.55));
  border-radius: 12px; }
.motion .asm-stage .lyr-plate .plate { box-shadow: 0 30px 50px -10px rgb(0 0 0 / calc(var(--e) * 0.5)); }
.motion .asm-stage .lyr-tab .tabbar { box-shadow: 0 0 0 1px rgb(143 178 255 / calc(var(--e) * 0.35)), 0 0 0 1px rgba(255,255,255,0.07) inset, 0 10px 30px rgba(0,0,0,0.45); }
.motion .asm-stage .lyr-tab .home-ind { opacity: calc(1 - var(--e)); }

/* =====================================================================
   Linked phones, table display trio
   ===================================================================== */
.linked { padding-top: clamp(80px, 10vw, 140px); }
.duo { display: flex; justify-content: center; align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.duo .dev { --n: 320; }
.duo .wire { flex-basis: clamp(48px, 9vw, 130px); }
.demo .replay { margin-top: 64px; }

.tdisp { padding-top: clamp(120px, 14vw, 200px); }
.trio { display: flex; justify-content: center; align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.trio .wire { flex-basis: 36px; }
.trio-pd, .trio-pm { --n: 230; }
.trio-disp { --n: 640; }

/* =====================================================================
   Army
   ===================================================================== */
.army { padding-top: clamp(120px, 14vw, 200px); }
.army-grid { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); }
.army-grid .dev { --n: 300; }
.army-grid .army-build { --n: 340; }
.army-list, .army-share { margin-top: 80px; }
.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.bld .tabbar .tab.on { color: var(--terran-ink); }

/* =====================================================================
   Rules
   ===================================================================== */
.rules { padding-top: clamp(120px, 14vw, 200px); }
.rules-grid { display: flex; justify-content: center; align-items: flex-start; gap: clamp(24px, 5vw, 72px); margin-top: clamp(48px, 6vw, 80px); }
.rules-grid .dev { --n: 320; }
.rules-grid .rules-ask { --n: 360; }
.rules-search { margin-top: 60px; }

/* =====================================================================
   Stats (HTML iPad, animates in)
   ===================================================================== */
.stats { padding-top: clamp(120px, 14vw, 200px); }
.stats-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.stats-devs { display: flex; flex-direction: column; align-items: center; }
.stats-tab { --n: 700; }
.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: 24px; right: 24px; top: 34px; height: 44px; display: flex; align-items: center; }
.st-ttl { font-family: 'Barlow SC'; font-weight: 600; font-size: 30px; }
.st-pill { position: absolute; left: 50%; transform: translateX(-50%); 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-seg { position: absolute; left: 24px; right: 24px; top: 92px; height: 34px; display: flex; background: var(--s1); border-radius: 9px; padding: 2px; }
.st-seg span { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text2); border-radius: 7px; }
.st-seg .on { background: var(--s3); color: var(--text); font-weight: 600; }
.st-chips { position: absolute; left: 24px; top: 138px; display: flex; gap: 8px; }
.st-chips span { height: 30px; padding: 0 12px; border-radius: 7px; background: var(--s2); font-size: 14px; display: flex; align-items: center; color: var(--text2); }
.st-chips .on { background: var(--text); color: var(--bg); font-weight: 600; }
.st-tiles { position: absolute; left: 24px; right: 24px; top: 182px; height: 98px; display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; background: var(--s1); border-radius: 14px; }
.st-tile { display: flex; align-items: center; gap: 16px; padding: 0 22px; border-left: 1px solid var(--line); }
.st-tile:first-child { border-left: 0; }
.st-tile .k { display: block; font-size: 13px; color: var(--text3); }
.st-tile .v { display: block; font-family: 'Barlow SC'; font-weight: 600; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-tile .v.g { color: var(--legal); }
.st-tile .s { display: block; font-size: 13px; color: var(--text3); }
.st-tile .s.up { color: var(--legal); }
.ring { width: 64px; height: 64px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .trk { stroke: var(--s3); }
.ring .seg { stroke-dasharray: calc(var(--a) * 119.38) 119.38; stroke-dashoffset: calc(var(--o) * -119.38); 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-cols { position: absolute; left: 24px; right: 24px; top: 296px; bottom: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-col { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; min-height: 0; }
.st-card { background: var(--s1); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; min-height: 0; }
.st-card .ch { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.st-card .ch b { display: block; font-size: 17px; font-weight: 600; }
.st-card .ch small { display: block; font-size: 13px; color: var(--text3); }
.st-card .ch .g { color: var(--legal); font-family: 'Barlow SC'; font-weight: 600; font-size: 20px; }
.vchart { flex: 1; position: relative; display: flex; gap: 18px; padding: 6px 10px; }
.vchart .ax { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--edge); }
.vb { flex: 1; position: relative; }
.vb i { position: absolute; left: 12%; right: 12%; border-radius: 3px; transition: transform .6s var(--ease); transition-delay: calc(var(--i) * 70ms + .2s); }
.vb i.pos { bottom: 50%; height: calc(var(--h) * 48%); background: var(--legal); transform-origin: 50% 100%; }
.vb i.neg { top: 50%; height: calc(var(--h) * 48%); background: var(--damage); transform-origin: 50% 0; }
.vb i.zero { top: calc(50% - 1.5px); height: 3px; background: var(--text3); }
.st-bar { display: grid; grid-template-columns: 26px 1fr auto 56px; align-items: center; column-gap: 12px; row-gap: 7px; padding: 8px 0 7px; }
.st-bar .nm { font-size: 15.5px; font-weight: 500; }
.st-bar .rec { font-size: 14px; color: var(--text3); font-variant-numeric: tabular-nums; }
.st-bar .pc { text-align: right; font-family: 'Barlow SC'; font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.st-bar .tr { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.st-bar .tr i { display: block; height: 100%; transform-origin: 0 0; transform: scaleX(var(--w)); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 90ms + .3s); }
.st-bar .tr i.terran { background: var(--terran); } .st-bar .tr i.zerg { background: var(--zerg); } .st-bar .tr i.protoss { background: var(--protoss); }
.fb { width: 26px; height: 26px; border-radius: 7px; background: var(--s3); display: flex; align-items: center; justify-content: center; }
.fb svg { width: 16px; height: 16px; }
.fb.terran { color: var(--terran); } .fb.zerg { color: var(--zerg); } .fb.protoss { color: var(--protoss); }
.stats-ui .lh { display: grid; grid-template-columns: 26px 1fr 64px 64px; column-gap: 12px; font-family: 'Barlow SC'; font-weight: 600; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--text3); padding: 2px 0 6px; }
.stats-ui .lh span:first-child { grid-column: 1 / 3; }
.stats-ui .lh span:not(:first-child) { text-align: right; }
.stats-ui .lr { display: grid; grid-template-columns: 26px 1fr 64px 64px; column-gap: 12px; align-items: center; height: 38px; border-top: 1px solid var(--line); font-size: 15.5px; }
.stats-ui .lr .g { text-align: right; font-family: 'Barlow SC'; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats-ui .lr .pc { text-align: right; font-family: 'Barlow SC'; font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.stats-ui .pc.good { color: var(--legal); } .stats-ui .pc.bad { color: var(--damage); }
.stats-ui.pre .vb i { transform: scaleY(0); }
.stats-ui.pre .st-bar .tr i { transform: scaleX(0); }
.stats-ui.pre .ring .seg { stroke-dasharray: 0 119.38; }

/* =====================================================================
   Coming next: tournament kit
   ===================================================================== */
.upcoming { margin-top: clamp(120px, 14vw, 200px); padding: clamp(100px, 12vw, 160px) 0 clamp(80px, 10vw, 120px); background: linear-gradient(var(--s1), var(--bg) 60%); border-top: 1px solid var(--line); }
.one-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(64px, 8vw, 110px); }
.clockduo { display: flex; justify-content: center; align-items: center; }
.clockduo .dev { --n: 262; }
.clockduo .wire { flex-basis: 36px; }
.one-copy h3 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1; max-width: 12ch; }
.one-lead { margin-top: 22px; font-size: clamp(19px, 1.6vw, 22px); color: var(--text2); max-width: 28em; }
.one-list { margin-top: 36px; border-top: 1px solid var(--line); }
.one-list li { padding: 18px 0 18px 26px; border-bottom: 1px solid var(--line); color: var(--text2); font-size: 17px; position: relative; }
.one-list li::before { content: ''; position: absolute; left: 0; top: 27px; width: 12px; height: 4px; border-radius: 1px; background: var(--terran); }
.one-list b { display: block; color: var(--text); font-weight: 600; font-size: 19px; margin-bottom: 2px; }

/* Live Activity hero */
.la-hero { padding: clamp(110px, 13vw, 180px) 0 clamp(90px, 10vw, 140px); background: #08090A; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.la-stage { display: flex; flex-direction: column; align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.la-dev { --n: 400; }

.upcoming2 { padding: clamp(90px, 10vw, 140px) 0 clamp(60px, 8vw, 100px); }
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kit-card { min-width: 0; }
.kit-card > .in { display: flex; flex-direction: column; padding: 28px 28px 0; overflow: hidden; }
.kit-card h3 { font-size: 26px; }
.kit-card .soon { margin-bottom: 14px; }
.kit-card p { margin-top: 10px; color: var(--text2); font-size: 16px; }
.kit-card > .in > .dev { --n: 250; margin: 32px auto -120px; }
.kit-clock { grid-column: 1 / -1; }
.kit-clock > .in { flex-direction: row; align-items: center; gap: 40px; padding: 36px 36px 0; }
.kit-clock .kit-copy { flex: 0 0 320px; align-self: flex-start; padding-top: 8px; }
.kit-clock .kit-copy h3 { font-size: 34px; }
.kit-clock .kit-copy p { font-size: 17px; }
.clock-devs { position: relative; flex: 1; height: 500px; min-width: 0; }
.clock-tab { --n: 580; position: absolute; left: 0; top: 0; }
.clock-phone { --n: 200; position: absolute; right: 10px; top: 100px; z-index: 2; }

.store-night { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(100px, 12vw, 170px); }
.sn-copy h3 { font-size: clamp(36px, 4vw, 56px); line-height: 1; margin-top: 18px; }
.sn-copy p { margin-top: 18px; color: var(--text2); font-size: clamp(18px, 1.5vw, 20px); }
.sn-devs { position: relative; height: 560px; }
.sn-tab { --n: 660; position: absolute; right: 0; top: 0; }
.sn-phone { --n: 200; position: absolute; left: -10px; top: 160px; z-index: 2; }

/* =====================================================================
   Privacy + FAQ, footer
   ===================================================================== */
.privacy { padding: clamp(100px, 12vw, 170px) 0 clamp(80px, 10vw, 140px); }
.priv-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.priv-grid h2 { font-size: clamp(38px, 4.6vw, 64px); max-width: 13ch; }
.faq-title { font-size: 22px; margin-bottom: 8px; color: var(--text2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--text3); border-bottom: 2px solid var(--text3); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 22px; color: var(--text2); font-size: 17px; max-width: 34em; }
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: 15px; color: var(--text2); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.disclaimer { margin-top: 24px; font-size: 14px; color: var(--text3); max-width: 60em; line-height: 1.55; }

/* reveal on scroll */
.motion [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
.join { padding: 0 0 clamp(100px, 12vw, 170px); }
.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 880px; margin: clamp(48px, 6vw, 72px) auto 0; }
.join-card > .in { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; }
.join-card h3 { font-size: 26px; }
.join-steps { flex: 1; margin: 18px 0 28px; padding-left: 1.3em; color: var(--text2); font-size: 17px; }
.join-steps li + li { margin-top: 8px; }
.join-steps li { list-style: decimal; padding-left: 4px; }
.join-steps li::marker { color: var(--text3); font-weight: 600; }
.join-steps b { color: var(--text); font-weight: 600; }
.join-note { margin-top: 28px; text-align: center; color: var(--text3); font-size: 15px; }
.join-note b { color: var(--text2); font-weight: 600; }

@media (max-width: 1280px) {
  .hero-tab { --n: 760; margin-left: -320px; }
  .hero-phone { --n: 236; margin-left: -480px; }
  .clock-tab { --n: 520; }
  .clock-phone { --n: 180; }
  .clock-devs { height: 460px; }
  .sn-tab { --n: 600; }
  .trio-pd, .trio-pm { --n: 210; }
  .trio-disp { --n: 600; }
  .stats-tab { --n: 640; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-clock > .in { flex-direction: column; align-items: stretch; }
  .kit-clock .kit-copy { flex: none; }
  .clock-devs { flex: none; height: 440px; }
  .clock-tab { --n: 520; }
  .kit-result { display: none; }
  .trio-pd, .trio-pm { --n: 170; }
  .trio-disp { --n: 500; }
  .trio .wire { flex-basis: 20px; }
  .one-app { grid-template-columns: 1fr; }
  .one-copy { max-width: 620px; margin: 0 auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .sec-head.left { text-align: center; }
  .stats-grid .sec-head.left h2, .stats-grid .sec-head.left p { margin-left: auto; margin-right: auto; }
  .stats-tab { --n: 740; }
}

@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .hero-stage { height: 480px; }
  .hero-tab { --n: 600; margin-left: -250px; }
  .hero-phone { --n: 190; top: 150px; margin-left: -400px; }
  .asm-sticky { grid-template-columns: 1fr; gap: 24px; }
  .asm-list { margin: 0 auto; }
  .motion .asm-sticky { grid-template-rows: auto minmax(0, 1fr); align-items: start; padding-top: 20px; }
  .motion .asm-captions { margin: 0 auto; text-align: center; }
  .motion .asm-list { min-height: 128px; }
  .motion .asm-list h3 { justify-content: center; font-size: 34px; }
  .motion .asm-list p { margin: 10px auto 0; font-size: 17px; max-width: 26em; }
  .motion .asm-nav { margin: 16px auto 0; max-width: 320px; }
  .asm-view { align-items: flex-start; }
  .duo .dev { --n: 290; }
  .trio { display: grid; grid-template-columns: auto auto; justify-content: center; row-gap: 40px; column-gap: 24px; padding-bottom: 36px; }
  .trio-disp { --n: 640; grid-column: 1 / -1; justify-self: center; order: -1; }
  .trio .wire { display: none; }
  .trio-pd, .trio-pm { --n: 230; }
  .army-list { display: none; }
  .army-share { margin-top: 60px; }
  .stats-tab { --n: 700; }
  .store-night { grid-template-columns: 1fr; }
  .sn-copy { max-width: 600px; }
  .sn-devs { height: 480px; }
  .sn-tab { --n: 620; right: auto; left: 50%; margin-left: -260px; }
  .sn-phone { left: 50%; margin-left: -380px; top: 140px; }
  .priv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .brand-name { font-size: 18px; }
  .nav-cta { height: 34px; padding: 0 13px; font-size: 15px; }
  .hero { padding-top: calc(var(--nav-h) + 52px); }
  .hero-bars { margin-top: 22px; width: 140px; }
  .hero-lead { margin-top: 20px; }
  .stores { margin-top: 26px; gap: 10px; }
  .store-in { min-width: 0; width: 158px; height: 52px; padding: 0 14px; }
  .store b { font-size: 19px; }
  .store small { font-size: 11px; }
  .hero-stage { height: 330px; margin-top: 44px; }
  .hero-tab { --n: 340; margin-left: -150px; }
  .hero-phone { --n: 130; top: 70px; margin-left: -186px; }
  .hero-stage::after { height: 90px; }

  .sec-head p { margin-top: 18px; }
  .motion .asm-track { height: 480vh; }
  .motion .asm-list { min-height: 112px; }
  .motion .asm-list h3 { font-size: 28px; }
  .motion .asm-list p { font-size: 16px; }
  .asm-list h3 { font-size: 22px; }
  .asm-arrow { width: 34px; height: 34px; }

  .duo .dev { --n: 160; }
  .duo .wire { flex-basis: 16px; }
  .dev > figcaption { font-size: 13px; top: calc(100% + 12px); }
  .demo .replay { margin-top: 52px; }
  .trio { row-gap: 28px; column-gap: 12px; }
  .trio-disp { --n: 350; }
  .trio-pd, .trio-pm { --n: 160; }

  .army-grid { gap: 12px; }
  .army-grid .army-build { --n: 250; }
  .army-share { display: none; }
  .rules-grid { gap: 12px; }
  .rules-grid .dev { --n: 168; }
  .rules-grid .rules-ask { --n: 270; }
  .rules-search { display: none; }
  .stats-tab { --n: 350; }

  .clockduo .dev { --n: 160; }
  .clockduo .wire { flex-basis: 14px; }
  .one-list li { font-size: 16px; }
  .one-list b { font-size: 18px; }
  .la-dev { --n: 300; }
  .kit { grid-template-columns: 1fr; gap: 16px; }
  .join-grid { grid-template-columns: 1fr; gap: 16px; }
  .join-card > .in { padding: 24px 22px; }
  .kit-result { display: block; }
  .kit-card > .in { padding: 24px 22px 0; }
  .kit-card > .in > .dev { --n: 230; margin-bottom: -110px; }
  .kit-clock > .in { padding: 24px 22px 0; gap: 20px; }
  .kit-clock .kit-copy h3 { font-size: 28px; }
  .kit-clock .kit-copy p { font-size: 16px; }
  .clock-devs { height: 330px; }
  .clock-tab { --n: 320; left: -4px; }
  .clock-phone { --n: 130; right: -10px; top: 120px; }
  .sn-devs { height: 330px; }
  .sn-tab { --n: 330; left: auto; right: -8px; margin-left: 0; }
  .sn-phone { --n: 120; left: -6px; margin-left: 0; top: 90px; }
  .faq summary { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
