/* Single home for every color literal. Achromatic OKLCH: chroma is exactly 0 everywhere. */
:root {
  --c-0: oklch(0.08 0 0);
  --c-1: oklch(0.12 0 0);
  --c-2: oklch(0.17 0 0);
  --c-3: oklch(0.24 0 0);
  --c-4: oklch(0.36 0 0);
  --c-5: oklch(0.52 0 0);
  --c-6: oklch(0.68 0 0);
  --c-7: oklch(0.82 0 0);
  --c-8: oklch(0.92 0 0);
  --c-9: oklch(0.97 0 0);
  --c-10: oklch(1 0 0);

  --bg: var(--c-0);
  --bg-raised: var(--c-1);
  --ink: var(--c-9);
  --ink2: var(--c-7);
  --ink3: var(--c-6);
  --line: color-mix(in oklch, var(--c-10) 9%, transparent);
  --line2: color-mix(in oklch, var(--c-10) 16%, transparent);
  --glass-top: color-mix(in oklch, var(--c-10) 7%, transparent);
  --glass-bot: color-mix(in oklch, var(--c-10) 2%, transparent);
  --glow: color-mix(in oklch, var(--c-10) 22%, transparent);
  --shadow: color-mix(in oklch, var(--c-0) 90%, transparent);

  --light-bg: var(--c-9);
  --light-ink: var(--c-1);
  --light-ink2: var(--c-4);
  --light-line: color-mix(in oklch, var(--c-0) 14%, transparent);

  --state-ok: var(--c-10);
  --state-wait: var(--c-6);
  --state-off: var(--c-4);
}

/* Layout and motion. Every color comes from tokens.css variables. */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace; font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 56px); position: relative; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--light-ink); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--c-10); color: var(--c-0); padding: 12px 16px; border-radius: 12px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 10px; }

/* scroll progress: CSS reads variables the page sets, nothing else */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--c-5), var(--c-10));
  transform: scaleX(min(1, calc(var(--sy, 0) / max(1, (var(--doc, 2) - var(--vh, 1))))));
  pointer-events: none;
}

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in oklch, var(--bg) 82%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 6px; padding: 8px clamp(12px, 3vw, 40px); min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 10px; text-decoration: none; margin-right: auto; transition: opacity .2s; }
.brand:hover { opacity: .8; }
.brand-mark { flex: none; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.nav { display: flex; gap: 4px; margin-right: 8px; }
.nav-a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 15px; transition: background .2s, color .2s; }
.nav-a:hover { background: var(--line); color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); cursor: pointer; transition: background .2s; }
.menu-btn:hover { background: var(--line); }
.menu-bars, .menu-bars::before { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.menu-bars::before { content: ""; position: absolute; top: -6px; left: 0; }
.menu[open] .menu-bars { transform: rotate(45deg); }
.menu[open] .menu-bars::before { transform: translateY(6px) rotate(-90deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px; display: flex; flex-direction: column; border-radius: 18px; background: color-mix(in oklch, var(--c-1) 96%, transparent); border: 1px solid var(--line2); backdrop-filter: blur(16px); animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
.menu-a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 600; transition: background .15s; }
.menu-a:hover { background: var(--line); }
.socials { display: flex; gap: 6px; flex: none; }
.soc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s; }
.soc svg { width: 20px; height: 20px; fill: currentColor; }
a.soc:hover { transform: translateY(-2px); background: var(--c-10); color: var(--c-0); }
.soc.is-inert { opacity: .45; cursor: not-allowed; border-style: dashed; }

/* contract slot */
.ca { display: flex; align-items: center; gap: 12px; padding: 8px clamp(12px, 3vw, 40px) 12px; border-top: 1px solid var(--line); }
.ca-k { flex: none; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.ca-v { flex: 1; min-width: 0; font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; font-size: clamp(14px, 4.4vw, 26px); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; word-break: break-all; text-align: left; background: none; border: 0; padding: 6px 0; color: var(--ink); cursor: pointer; min-height: 44px; transition: color .2s; }
.ca-v:hover { color: var(--c-10); text-shadow: 0 0 24px var(--glow); }
.ca-btn { flex: none; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--line); font-weight: 700; font-size: 14px; cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s; }
.ca-btn:hover { background: var(--c-10); color: var(--c-0); transform: translateY(-1px); }
.ca-btn.done { background: var(--c-10); color: var(--c-0); animation: pop .25s ease-out; }
.ca.is-off .ca-v { color: var(--ink3); cursor: default; font-weight: 500; }
.ca.is-off .ca-v:hover { text-shadow: none; color: var(--ink3); }
.ca.is-off .ca-btn { opacity: .4; cursor: not-allowed; }
.ca.is-off .ca-btn:hover { background: var(--line); color: inherit; transform: none; }
.ca-tip { position: absolute; right: clamp(12px, 3vw, 40px); top: calc(100% + 6px); background: var(--c-10); color: var(--c-0); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 10px; animation: tip .18s ease-out; }
.ca { position: relative; }

/* sections */
.sec { position: relative; padding-block: clamp(72px, 10vw, 140px); isolation: isolate; }
.sec.dark { background: var(--bg); color: var(--ink); }
.sec.light { background: var(--light-bg); color: var(--light-ink); }
.sec.light + .sec.dark::before, .sec.dark + .sec.light::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * clamp(40px, 7vw, 110px)); height: clamp(40px, 7vw, 110px);
  z-index: -1; pointer-events: none;
}
.sec.dark + .sec.light::before { background: var(--light-bg); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.sec.light + .sec.dark::before { background: var(--bg); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.sec { z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.light .eyebrow { color: var(--light-ink2); }
.eyebrow-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
h1, h2, h3 { font-family: "Arial Black", system-ui, sans-serif; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.2vw, 112px); font-weight: 800; line-height: .92; }
h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 700; line-height: 1; margin-top: 16px; }
.lede { max-width: 36em; margin-top: 20px; color: var(--ink2); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; text-wrap: pretty; }
.light .lede { color: var(--light-ink2); }
.sheen { background: linear-gradient(110deg, var(--c-6) 20%, var(--c-10) 50%, var(--c-6) 80%); background-size: 250% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s ease-in-out infinite alternate; }

/* hero */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 110px); overflow: clip; background: radial-gradient(60% 55% at 78% 12%, var(--c-3), transparent 70%), radial-gradient(50% 50% at 8% 90%, var(--c-2), transparent 70%), var(--bg); }
.hero-grid { padding-top: clamp(0px, 3vw, 24px); }
.hero-copy { max-width: 740px; display: flex; flex-direction: column; gap: 0; }
.hero-copy > * + * { margin-top: 26px; }
.hero-copy .lede { margin-top: 26px; }
.stage { position: absolute; inset: 0 0 auto auto; width: 44vw; height: min(940px, 100vh); z-index: -1; pointer-events: none; transform: translateY(calc(var(--sy, 0) * -.12px)); -webkit-mask-image: linear-gradient(90deg, transparent, var(--c-10) 35%); mask-image: linear-gradient(90deg, transparent, var(--c-10) 35%); }
.field { width: 100%; height: 100%; display: block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 16px; font-weight: 800; font-size: 16px; letter-spacing: -.01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; position: relative; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lit { background: linear-gradient(180deg, var(--c-10), var(--c-8)); color: var(--c-0); box-shadow: inset 0 1px var(--c-10), 0 14px 34px -10px var(--glow); }
.btn-lit:hover { box-shadow: inset 0 1px var(--c-10), 0 20px 44px -10px var(--glow), 0 0 0 4px var(--line); }
.btn-ghost { background: var(--line); color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { background: var(--line2); }
.btn-dark { background: var(--c-1); color: var(--c-9); }
.btn-dark:hover { background: var(--c-3); box-shadow: 0 16px 30px -14px var(--shadow); }

.glass { position: relative; border: 1px solid var(--line); background: linear-gradient(var(--glass-top), var(--glass-bot)); border-radius: 26px; box-shadow: inset 0 1px var(--line2), 0 40px 80px -40px var(--shadow); }
.ticker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(40px, 5vw, 64px); padding: 8px; }
.tick { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-right: 1px solid var(--line); min-width: 0; }
.tick:last-child { border-right: 0; }
.tick-k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); font-family: ui-monospace, Consolas, monospace; }
.tick-v { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.02em; min-height: 40px; display: flex; align-items: center; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.itile { padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(var(--glass-top), var(--glass-bot)); display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s, background .2s; }
.itile:hover { transform: translateY(-3px); border-color: var(--line2); background: var(--line); }
.itile-k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); font-family: ui-monospace, Consolas, monospace; }
.itile-v { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.itile-v.is-pending { color: var(--ink3); font-weight: 500; }

/* health + dot */
.health { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--line); font-size: 13px; font-weight: 600; color: var(--ink2); width: fit-content; min-height: 32px; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--state-ok); box-shadow: 0 0 10px var(--state-ok); flex: none; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s infinite; }
.health[data-state="connecting"] .dot { background: var(--state-wait); box-shadow: 0 0 8px var(--state-wait); animation: blink .9s ease-in-out infinite; }
.health[data-state="connecting"] .dot::after { animation-duration: .9s; }
.health[data-state="offline"] .dot { background: transparent; border: 2px solid var(--state-off); box-shadow: none; animation: fade 3s ease-in-out infinite; }
.health[data-state="offline"] .dot::after { display: none; }
.health[data-state="live"] { color: var(--ink); border-color: var(--c-6); }
.flash { animation: flash .9s ease-out; }

/* skeleton */
.skel { display: inline-block; border-radius: 8px; background: linear-gradient(100deg, var(--line) 30%, var(--line2) 50%, var(--line) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.skel-num { width: 7em; height: 28px; }
.skel-logo { width: 36px; height: 36px; border-radius: 50%; }
.skel-line { height: 14px; width: 100%; }
.skel-line.short { width: 70%; }

/* picker */
.picker { margin-top: 40px; }
.shelf-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.stab { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--light-line); background: transparent; color: var(--light-ink2); font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.stab:hover { border-color: var(--light-ink); color: var(--light-ink); transform: translateY(-1px); }
.stab[aria-selected="true"] { background: var(--light-ink); color: var(--light-bg); border-color: var(--light-ink); }
.picker-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; align-items: start; }
.tiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.tiles-grid[hidden] { display: none; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 110px; text-align: left; border-radius: 16px; border: 1px solid var(--light-line); background: color-mix(in oklch, var(--c-10) 60%, transparent); cursor: pointer; transition: border-color .2s, background .2s, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.tile:hover { transform: translateY(-3px); border-color: var(--light-ink); box-shadow: 0 18px 30px -18px var(--shadow); }
.tile[aria-pressed="true"] { background: var(--light-ink); color: var(--light-bg); border-color: var(--light-ink); }
.tile-top { font-weight: 700; font-size: 16px; }
.tile-sub { font-size: 14px; line-height: 1.4; opacity: .75; }
.tile-flag { margin-top: auto; padding-top: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.detail { background: var(--c-1); color: var(--ink); padding: 26px; display: flex; flex-direction: column; gap: 18px; min-height: 280px; position: sticky; top: 150px; }
.dt { display: flex; flex-direction: column; gap: 14px; animation: rise .4s cubic-bezier(.2, .8, .2, 1); }
.dt[hidden] { display: none; }
.dt h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.dt p { color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--line); border-radius: 12px; padding: 8px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; transition: background .2s, transform .2s; }
.chip:hover { background: var(--line2); transform: translateY(-1px); }
.gauge { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.gauge-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-5), var(--c-10)); transform-origin: 0 50%; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.g20 { width: 20%; } .g30 { width: 30%; } .g35 { width: 35%; } .g40 { width: 40%; } .g45 { width: 45%; } .g50 { width: 50%; } .g55 { width: 55%; } .g60 { width: 60%; } .g65 { width: 65%; } .g75 { width: 75%; } .g80 { width: 80%; } .g90 { width: 90%; }
.detail-cta { align-self: flex-start; margin-top: auto; }
.detail-cta:hover { background: var(--c-10); color: var(--c-0); }

/* network */
.live { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 36px; }
.livecard { padding: 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-h { font-size: 22px; font-weight: 800; }
.tag { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--ink2); }
.pairs { display: flex; flex-direction: column; gap: 4px; }
.pair { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 56px; padding: 8px 10px; border-radius: 14px; transition: background .2s, transform .25s cubic-bezier(.2, .8, .2, 1); animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.pair:hover { background: var(--line); transform: translateX(4px); }
.skel-row { grid-template-columns: 36px minmax(0, 1fr) 80px; }
.logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--line2); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--ink2); overflow: hidden; }
.p-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-name small { color: var(--ink3); font-weight: 500; margin-left: 6px; }
.p-price { font-size: 13px; color: var(--ink2); }
.p-vol { text-align: right; font-weight: 700; }
.p-vol small { display: block; font-size: 12px; font-weight: 500; color: var(--ink3); }
.stat-list { display: flex; flex-direction: column; }
.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-bottom: 0; }
.stat dt { color: var(--ink3); font-size: 15px; flex: none; }
.stat dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.big { font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.small { font-size: 14px; color: var(--ink2); }
.note { color: var(--ink3); font-size: 14px; }

/* drill */
.drill { margin-top: 40px; padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 22px; }
.drill-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drill-clock { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.drill[data-state="play"] .drill-clock { text-shadow: 0 0 28px var(--glow); }
.drill[data-state="play"][data-low="1"] .drill-clock { animation: blink .6s ease-in-out infinite; }
.drill-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.drill-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--c-5), var(--c-10)); transform-origin: 0 50%; transform: scaleX(1); }
.drill[data-state="play"] .drill-fill { animation: drain 90s linear forwards; }
.drill[data-state="end"] .drill-fill { transform: scaleX(0); }
.drill-stage { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-height: 250px; justify-content: center; }
.drill-stage[hidden] { display: none; }
.drill-howto { color: var(--ink2); max-width: 36em; font-size: 18px; }
kbd { font-family: ui-monospace, Consolas, monospace; font-size: 13px; padding: 2px 8px; border-radius: 8px; border: 1px solid var(--line2); background: var(--line); }
.drill-rule { font-family: ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .04em; color: var(--ink3); }
.drill-card { font-family: "Arial Black", system-ui, sans-serif; font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; animation: rise .3s cubic-bezier(.2, .8, .2, 1); }
.drill-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 560px; }
.drill-answers .btn { flex-direction: column; gap: 2px; min-height: 76px; border-color: var(--line2); background: var(--line); color: var(--ink); }
.drill-word { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.drill-sub { font-size: 13px; font-weight: 600; color: var(--ink3); }
.drill-yes:hover { background: var(--c-10); color: var(--c-0); }
.drill-yes:hover .drill-sub, .drill-no:hover .drill-sub { color: inherit; }
.drill-no:hover { background: var(--c-3); border-color: var(--c-6); }
.drill-note { min-height: 24px; font-size: 15px; color: var(--ink2); }
.drill-note[data-ok="1"] { color: var(--ink); }
.drill-note[data-ok="0"] { color: var(--ink3); text-decoration: underline dotted; }
.drill-final { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.drill-grade { color: var(--ink2); font-size: 18px; max-width: 36em; }
.drill-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.dstat { display: flex; flex-direction: column; gap: 4px; padding: 4px 12px; border-right: 1px solid var(--line); min-width: 0; }
.dstat:first-child { padding-left: 0; }
.dstat:last-child { border-right: 0; }
.dstat dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); font-family: ui-monospace, Consolas, monospace; }
.dstat dd { font-size: clamp(22px, 3vw, 32px); font-weight: 700; }

/* flow */
.facts { display: flex; margin-top: 44px; border-top: 1px solid var(--light-line); }
.fact { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 28px 22px 8px 0; border-right: 1px solid var(--light-line); margin-right: 22px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact:hover { transform: translateY(-4px); }
.fact h3 { font-size: 28px; font-weight: 800; }
.fact p { color: var(--light-ink2); }
.fact-n { font-size: 14px; color: var(--light-ink2); letter-spacing: .1em; }

.final { text-align: left; padding-block: clamp(96px, 14vw, 200px) clamp(72px, 9vw, 120px); background: radial-gradient(60% 70% at 50% 100%, var(--c-3), transparent 70%), var(--bg); }
.final h2 { font-size: clamp(56px, 9vw, 140px); font-weight: 800; line-height: .9; margin: 0 0 40px; transform: translateY(calc(var(--sy, 0) * -.02px)); }
.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 28px clamp(16px, 5vw, 88px); border-top: 1px solid var(--line); color: var(--ink3); font-size: 14px; background: var(--bg); }
.foot-l { display: flex; gap: 16px; align-items: baseline; }
.foot-l .brand-name { color: var(--ink); }

/* reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s !important; } .d2 { transition-delay: .16s !important; }

/* keyframes */
@keyframes ping { 75%, 100% { opacity: 0; transform: scale(2.4); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes fade { 50% { opacity: .4; } }
@keyframes sheen { to { background-position: 100% 0; } }
@keyframes shimmer { to { background-position: -120% 0; } }
@keyframes flash { 0% { text-shadow: 0 0 22px var(--c-10); color: var(--c-10); } 100% { text-shadow: 0 0 0 transparent; } }
@keyframes tip { 0% { opacity: 0; transform: translateY(4px); } }
@keyframes pop { 0% { opacity: 0; transform: translateY(-6px); } }
@keyframes rise { 0% { opacity: 0; transform: translateY(10px); } }
@keyframes drain { to { transform: scaleX(0); } }
@keyframes grow { 0% { transform: scaleX(0); } }

/* breakpoints */
@media (max-width: 1100px) { .picker-body { grid-template-columns: 1fr; } .detail { position: static; } .stage { width: 60vw; } }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu { display: block; }
  .stage { width: 100vw; opacity: .3; }
  .live { grid-template-columns: 1fr; }
  .facts { flex-direction: column; }
  .fact { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--light-line); padding-bottom: 24px; }
  .fact:last-child { border-bottom: 0; }
}
@media (max-width: 720px) {
  .ticker { grid-template-columns: 1fr; }
  .tick { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; justify-content: space-between; align-items: center; }
  .tick:last-child { border-bottom: 0; }
  .tiles { grid-template-columns: 1fr; }
  .livecard, .detail { padding: 20px; }
  .drill-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .dstat:nth-child(2) { border-right: 0; }
  .dstat:nth-child(3) { padding-left: 0; }
  .drill-stage { min-height: 0; }
}
@media (max-width: 520px) {
  .ca { gap: 8px; flex-wrap: wrap; }
  .ca-k { width: 100%; }
  .ca-v { flex: 1 1 200px; }
  .brand-name { font-size: 18px; }
  .top-row { gap: 4px; }
  .pair { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; }
}
@media (pointer: coarse) { .tile:hover, .btn:hover, .itile:hover, .fact:hover, a.soc:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .stage, .final h2 { transform: none; }
  .drill[data-state="play"] .drill-fill { animation: none; }
  .progress { transition: none; }
}

.sr-copy { position: fixed; left: -9999px; top: 0; opacity: 0; }
