
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-400-900.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-var.woff2") format("woff2");
  font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0F1011; --bg-2: #131517; --surface: #17191B; --surface-2: #1D2023; --line: #2A2D31;
  --ink: #EDEDED; --ink-2: #B9BDC3; --muted: #8A8F96; --ghost: #4A4D52;
  --hero: #F5C542; --hero-soft: rgba(245, 197, 66, .14); --glow: 0 0 12px rgba(245, 197, 66, .55);
  --coin: #3E8EDE; --coin-2: #7DB5EE; --coin-soft: rgba(62, 142, 222, .16);
  --danger: #E5484D;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --read: 42rem; --wide: 72rem; --gutter: clamp(1rem, 4vw, 2.5rem);
  --r: 14px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body { overflow-wrap: break-word;
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.125rem/1.62 var(--display); font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (min-width: 900px) { body { font-size: 1.1875rem; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-color: rgba(237,237,237,.35); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--hero); }
:focus-visible { outline: 2px solid var(--hero); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--hero); color: #111; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--hero); color: #111; padding: .5rem 1rem; z-index: 99; border-radius: 6px; font-weight: 700; }
.skip:focus { left: .5rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


.s { color: var(--hero); font-weight: 600; }
.c { color: var(--coin-2); font-weight: 600; }
.d { color: var(--danger); font-weight: 600; }
.num { font-feature-settings: "tnum" 1; white-space: nowrap; }


.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(15,16,17,.96); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: var(--wide); margin: 0 auto; padding: .7rem var(--gutter); display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font: 800 1rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand svg { width: 26px; height: 26px; }
.nav-links { margin-left: auto; display: flex; gap: 1.25rem; align-items: center; font: 500 .75rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { text-decoration: none; color: var(--ink-2); padding: .5rem 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-sub { color: var(--hero); border: 1px solid rgba(245,197,66,.55); padding: .5rem .8rem; border-radius: 999px; font-weight: 700; }
.nav-links .btn-sub:hover { color: #111; background: var(--hero); }
@media (max-width: 640px) { .nav-links a:not(.btn-sub) { display: none; } }


section { position: relative; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.read { max-width: var(--read); margin: 0 auto; padding: 0 var(--gutter); }
.chapter { padding: clamp(4.5rem, 11vw, 8.5rem) 0 0; }
.kicker { font: 500 .75rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; }
.kicker b { color: var(--hero); font-weight: 700; }
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; margin: 0; }
h2 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); text-transform: uppercase; margin-bottom: 1.4rem; }
h3 { font-size: 1.35rem; letter-spacing: -.01em; font-weight: 800; margin: 2.2rem 0 .6rem; }
p { margin: 0 0 1.15em; }
.lede { font-size: 1.28em; line-height: 1.5; color: var(--ink); }
.dim { color: var(--ink-2); }
.small { font-size: .88rem; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: .45rem; font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .38rem .65rem; text-decoration: none; }
a.pill:hover { color: var(--ink); border-color: var(--muted); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.src { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }


.hero { padding: clamp(1.5rem, 5vw, 3.5rem) 0 1rem; overflow: hidden; }
.hero::before {  content: ""; position: absolute; inset: -20% -10% auto; height: 120%;
  background: radial-gradient(ellipse 50% 45% at 62% 30%, rgba(245,197,66,.07), transparent 70%),
              radial-gradient(ellipse 45% 40% at 70% 55%, rgba(62,142,222,.08), transparent 70%);
  pointer-events: none; }
.hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-grid { grid-template-areas: "head" "board" "body"; }
.hero-head { grid-area: head; } .hero-body { grid-area: body; } .board { grid-area: board; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 5fr 7fr; grid-template-areas: "head board" "body board"; align-items: end; row-gap: 0; }
  .hero-body { align-self: start; } }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); text-transform: uppercase; line-height: .98; }
.hero h1 .big { display: block; color: var(--hero); text-shadow: 0 0 28px rgba(245,197,66,.35); font-size: 1.62em; letter-spacing: -.035em; line-height: .95; margin-bottom: .08em; }
.hero h1 .coinword { color: var(--coin-2); }
.hero .lede { margin-top: 1.4rem; color: var(--ink-2); font-size: 1.12rem; max-width: 34rem; }
.hero .facts { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.scroll-cue { margin-top: 1.6rem; font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: .5rem; align-items: center; text-decoration: none; }
.scroll-cue svg { width: 14px; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }


.board { background: linear-gradient(180deg, var(--surface), #141618); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(.9rem, 2.2vw, 1.4rem); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03); position: relative; }
.board-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.board-title { font: 500 .72rem/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.board-title b { color: var(--ink); font-weight: 700; }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: .6rem; margin: .4rem 0 .8rem; }
.score .side { font: 500 .66rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.score .side strong { display: block; font: 900 clamp(1.9rem, 4.6vw, 2.7rem)/1 var(--display); letter-spacing: -.02em; margin-top: .25rem; }
.score .strat strong { color: var(--hero); text-shadow: var(--glow); }
.score .coinside { text-align: right; }
.score .coinside strong { color: var(--coin-2); }
.score .vs { font: 800 .8rem/1 var(--mono); color: var(--muted); padding-bottom: .5rem; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; fill: var(--muted); }
.chart .ann { fill: var(--ink-2); }
.chart .ann-s { fill: var(--hero); font-weight: 700; }
.chart .ann-c { fill: var(--coin-2); font-weight: 700; }
.chart .axis line, .chart .axis path { stroke: var(--line); }
.bar { fill: var(--coin); opacity: .45; transition: opacity .25s; }
.bar.hit { opacity: 1; }
.bar.flash { fill: #fff; opacity: 1; }
.sline { stroke: var(--hero); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(245,197,66,.8)); }
.verdict { margin-top: .7rem; font-size: .98rem; color: var(--ink-2); min-height: 3.1em; }
.verdict strong { color: var(--ink); }

.controls { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.chip { font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: transparent; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem .75rem; cursor: pointer; transition: all .15s; min-height: 34px; }
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #111; border-color: var(--ink); font-weight: 700; }
.chip.coin-chip[aria-pressed="true"] { background: var(--coin-2); border-color: var(--coin-2); color: #0F1011; }
.btn { font: 800 .95rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; border: 0; border-radius: 999px; padding: .9rem 1.25rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: .6rem; transition: transform .12s, box-shadow .2s; min-height: 44px; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-coin { background: #2a6bb4; color: #fff; box-shadow: 0 0 0 0 rgba(62,142,222,.0); }
.btn-coin:hover { box-shadow: 0 0 22px rgba(62,142,222,.55); }
.btn-hero { background: var(--hero); color: #111; }
.btn-hero:hover { box-shadow: var(--glow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .45; cursor: default; }


.coinguy { width: 64px; height: 64px; flex: none; cursor: pointer; transform-style: preserve-3d; background: none; border: 0; padding: 0; border-radius: 50%; }
.coinguy svg { width: 64px; height: 64px; }
.coinguy.spin { animation: coinspin .7s cubic-bezier(.3,.7,.3,1); }
@keyframes coinspin { 0% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(900deg) translateY(-26px); } 100% { transform: rotateY(1800deg) translateY(0); } }
.coinguy .lid { transform-origin: center; transform-box: fill-box; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1); } }
.flipbox { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.flipbox .tally { font: 500 .72rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.flipbox .tally b { color: var(--ink); }
.flipout { font-size: 1rem; color: var(--ink-2); min-height: 1.6em; margin-top: .2rem; }


.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 2rem 0; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg-2); padding: 1.1rem 1.1rem 1.2rem; }
.stat strong { display: block; font: 900 clamp(1.6rem, 3.6vw, 2.4rem)/1 var(--display); letter-spacing: -.02em; }
.stat span { display: block; margin-top: .5rem; font: 500 .68rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }


.orb { margin: 2rem auto; }
.orb svg text { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; fill: var(--muted); }
.fig { margin-top: 2.2rem; margin-bottom: 2.2rem; }
.fig-wide { max-width: calc(var(--wide) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: .8rem; line-height: 1.5; }
.tag-illus { font: 500 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--ghost); border-radius: 4px; padding: .3rem .45rem; }


.timeline { margin-top: 2rem; margin-bottom: 1rem; }
.tl-row { display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem; align-items: center; margin: .35rem 0; }
.tl-name { font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tl-bar { position: relative; height: 18px; }
.tl-seg { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.tl-is { background: #3a3d42; } .tl-val { background: #6b6f76; } .tl-oos { background: var(--hero); box-shadow: 0 0 10px rgba(245,197,66,.4); }
.tl-axis { display: grid; grid-template-columns: 5.6rem 1fr; gap: .8rem; margin-top: .4rem; }
.tl-axis div { position: relative; height: 1rem; font: 500 .65rem/1 var(--mono); color: var(--muted); }
.tl-axis span { position: absolute; transform: translateX(-50%); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: .45rem; vertical-align: -2px; }


.funnel { position: relative; }
.funnel-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.funnel-sticky canvas { position: absolute; inset: 0; }
.funnel-hud { transition: opacity .2s; position: absolute; left: 0; width: 100%; bottom: max(1.2rem, 5vh); text-align: center; pointer-events: none; }
.funnel-hud.under { opacity: .12; }
.funnel-hud .n { font: 900 clamp(2.6rem, 9vw, 5.5rem)/1 var(--display); letter-spacing: -.03em; color: var(--ink); text-shadow: 0 2px 30px rgba(0,0,0,.9); }
.funnel-hud .n.s { color: var(--hero); text-shadow: 0 0 30px rgba(245,197,66,.5), 0 2px 30px rgba(0,0,0,.9); }
.funnel-hud .l { font: 500 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: .5rem; text-shadow: 0 1px 12px #000; }
.funnel-steps { position: relative; z-index: 2; margin-top: -100vh; }
.fstep { min-height: 72vh; display: flex; align-items: center; padding: 0 var(--gutter); }
.fstep:first-child { min-height: 60vh; }
.fcard { max-width: 25rem; background: rgba(19,21,23,.92); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem; backdrop-filter: blur(6px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.fcard p:last-child { margin: 0; }
.fcard .step { font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .6rem; }
@media (min-width: 900px) { .fstep { justify-content: flex-start; padding-left: max(var(--gutter), calc((100vw - var(--wide)) / 2)); } }
.stamp { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%) rotate(-10deg) scale(1.4); opacity: 0;
  font: 900 clamp(1.6rem, 5vw, 2.6rem)/1 var(--display); letter-spacing: .02em; color: var(--danger); border: 4px solid var(--danger); border-radius: 8px; padding: .4rem .9rem; text-transform: uppercase;
  transition: transform .18s cubic-bezier(.2,1.4,.4,1), opacity .12s; background: rgba(15,16,17,.75); white-space: nowrap; pointer-events: none; }
.stamp.on { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(1); }
.funnel-static { display: none; }
.no-js .funnel-sticky, .no-js .funnel-steps { display: none; }
.no-js .funnel-static { display: block; }


.game { background: linear-gradient(180deg, var(--surface), #141618); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1rem, 3vw, 1.8rem); margin-top: 2rem; }
.game-step { font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.game-row { margin-bottom: 1.1rem; }
.picks { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
@media (min-width: 900px) { .picks { grid-template-columns: 7fr 5fr; align-items: start; } }
.dots { position: relative; }
.dots canvas { width: 100%; height: auto; display: block; }
.dots-label { font: 500 .7rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: .6rem; display: flex; justify-content: space-between; gap: 1rem; }
.rounds { display: grid; gap: .6rem; }
.round { border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; background: var(--bg-2); transition: border-color .3s, opacity .3s; }
.round.pending { opacity: .45; }
.round.now { border-color: var(--hero); }
.round .rt { font: 500 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.round .rv { display: flex; align-items: baseline; gap: .6rem; margin-top: .45rem; flex-wrap: wrap; }
.round .rv strong { font: 900 1.9rem/1 var(--display); letter-spacing: -.02em; }
.round .rv .of { color: var(--ink-2); font-size: .95rem; }
.round .base { font-size: .84rem; color: var(--muted); margin-top: .35rem; }
.round .base b { color: var(--ink-2); }
.walk-verdict { margin-top: 1.1rem; font-size: 1.05rem; min-height: 3em; }
.walk-verdict strong { color: var(--ink); }
.curve { margin-top: 2rem; }


.mgrid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
@media (min-width: 640px) { .mgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .mgrid { grid-template-columns: repeat(4, 1fr); } }
.mcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem .95rem .8rem; }
.mcard h3 { margin: 0; font: 800 1.05rem/1.1 var(--display); letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: baseline; }
.mcard h3 span { font: 500 .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mcard .mnums { display: flex; justify-content: space-between; margin-top: .55rem; font: 500 .66rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mcard .mnums b { display: block; font: 900 1.45rem/1 var(--display); letter-spacing: -.01em; margin-top: .2rem; }
.mcard .mnums .ms b { color: var(--hero); }
.mcard .mnums .mc { text-align: right; } .mcard .mnums .mc b { color: var(--coin-2); }
.mcard .mfoot { font-size: .8rem; color: var(--ink-2); margin-top: .5rem; line-height: 1.4; }
.mcard.note { display: flex; flex-direction: column; justify-content: center; background: transparent; border-style: dashed; }
.mcard.note p { font-size: .92rem; color: var(--ink-2); margin: 0; }


.tablewrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--line); border-radius: 10px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: .6rem .75rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { font: 500 .66rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td.s-col { color: var(--hero); font-weight: 700; } td.c-col { color: var(--coin-2); font-weight: 700; }
.tbtn { font: 500 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: .38rem .65rem; cursor: pointer; }
.tbtn:hover { color: var(--ink); border-color: var(--muted); }


.sgrid-wrap { overflow-x: auto; margin-top: 1.4rem; -webkit-overflow-scrolling: touch; }
.sgrid { border-collapse: separate; border-spacing: 3px; width: auto; min-width: 100%; font-size: .8rem; }
.sgrid th, .sgrid td { border: 0; padding: 0; white-space: nowrap; }
.sgrid thead th { background: none; padding: 0 .3rem .35rem; text-align: center; }
.sgrid tbody th { background: none; text-align: left; padding-right: .7rem; font: 500 .72rem/1.25 var(--mono); letter-spacing: .02em; text-transform: none; color: var(--ink-2); }
.sgrid tbody th { position: sticky; left: 0; z-index: 1; background: var(--bg); }
.sgrid tbody th small { display: block; color: var(--muted); font: 400 .66rem/1.25 var(--mono); max-width: 17rem; white-space: normal; }
@media (max-width: 640px) { .sgrid tbody th small { display: none; } .sgrid td button { min-width: 2.7rem; font-size: .8rem; } }
.sgrid td button { width: 100%; min-width: 3.4rem; min-height: 40px; border: 1px solid transparent; border-radius: 6px; font: 700 .85rem/1 var(--mono); cursor: pointer; color: var(--ink);
  background: rgba(245, 197, 66, var(--a, 0)); }
.sgrid td .z { display: flex; align-items: center; justify-content: center; min-width: 3.4rem; min-height: 40px; border-radius: 6px; background: var(--bg-2); color: #6b6f76; font: 700 .85rem/1 var(--mono); }
.sgrid td button.hi { color: #111; }
.sgrid td button[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--hero); }
.sgrid td button:not(.z):hover { border-color: var(--muted); }
.sgrid tfoot td, .sgrid tfoot th { text-align: center; font: 700 .78rem/1 var(--mono); color: var(--hero); padding-top: .35rem; background: none; }
.sgrid-note { margin-top: .6rem; }
.stools { margin-top: 1.4rem; }
.stools input { flex: 1 1 18rem; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: .7rem .9rem; font: 500 .95rem var(--display); min-height: 44px; }
.stools input:focus { border-color: var(--hero); outline: none; }
.stable { max-height: 70vh; overflow: auto; }
.stable table { font-size: .8rem; }
.stable th { position: sticky; top: 0; z-index: 1; padding: 0; }
.stable th button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .55rem .7rem; cursor: pointer; text-align: inherit; font: inherit; letter-spacing: inherit; text-transform: none; }
.stable th button:focus-visible { outline: 2px solid var(--hero); outline-offset: -2px; }
.stable th[aria-sort] button { color: var(--ink); }
.stable th[aria-sort=ascending] button::after { content: " ▲"; color: var(--hero); }
.stable th[aria-sort=descending] button::after { content: " ▼"; color: var(--hero); }
.stable td { padding: .45rem .7rem; font-family: var(--mono); font-size: .76rem; }
.stable td:first-child, .stable th:first-child { position: sticky; left: 0; background: var(--bg-2); }
.stable th:first-child { z-index: 2; }
.stable td.t { text-align: left; color: var(--ink-2); }
.stable td.neg { color: var(--danger); }
.stable tbody tr:hover td { background: var(--surface); }
.scaution { margin: 1.2rem 0 0; max-width: 46rem; color: var(--ink-2); }
@media (max-width: 640px) { .stable .x { display: none; } .sgrid td .z { min-width: 2.7rem; } }


.lo { display: grid; gap: 1rem; margin-top: 1.5rem; }
.lo-row { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.lo-row h3 { margin: 0 0 .7rem; font: 800 1.1rem/1 var(--display); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.lo-row h3 span { font: 500 .65rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hbar { display: grid; grid-template-columns: 9.5rem 1fr; gap: .8rem; align-items: center; margin: .35rem 0; }
@media (max-width: 520px) { .hbar { grid-template-columns: 1fr; gap: .25rem; } }
.hbar .hl { font: 500 .66rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.hbar .ht { position: relative; height: 26px; }
.hbar .hf { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.hbar .hv { position: absolute; top: 50%; transform: translateY(-50%); font: 800 .95rem/1 var(--display); white-space: nowrap; padding-left: .5rem; transition: left 1s cubic-bezier(.2,.8,.2,1); }
.hf.bh { background: var(--ink-2); } .hf.st { background: var(--hero); box-shadow: 0 0 10px rgba(245,197,66,.4); } .hf.cn { background: var(--coin); }


.limits { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: lim; }
.limits li { counter-increment: lim; position: relative; padding: 1.1rem 0 1.1rem 3rem; border-top: 1px solid var(--line); }
.limits li::before { content: counter(lim, decimal-leading-zero); position: absolute; left: 0; top: 1.25rem; font: 700 .8rem/1 var(--mono); color: var(--hero); }
.limits li strong { display: block; font-size: 1.08rem; margin-bottom: .25rem; }


.dl { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 800px) { .dl { grid-template-columns: 1fr 1fr; } }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.25rem; }
.dl-card h3 { margin-top: 0; }
.files { margin-top: 1.4rem; }
.files input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: .75rem .9rem; font: 500 .95rem var(--display); }
.flist { margin: .8rem 0 0; max-height: 34rem; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.flist ul { list-style: none; margin: 0; padding: 0; }
.flist li { padding: .65rem .9rem; border-top: 1px solid var(--line); transition: background .4s; }
.flist li.flash { background: rgba(245,197,66,.14); }
.fgroup h3 { margin: 0; padding: 1rem .9rem .2rem; font-size: 1.02rem; }
.fgroup > p { margin: 0; padding: 0 .9rem .7rem; }
.flist .fn { font: 600 .82rem/1.3 var(--mono); color: var(--ink); word-break: break-all; }
.flist .fm { font: 500 .75rem/1 var(--mono); color: var(--muted); letter-spacing: .02em; margin-left: .5rem; }
.flist .fw { font-size: .84rem; color: var(--ink-2); margin-top: .25rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
code, .code { font: 500 .85em var(--mono); background: var(--surface-2); padding: .12em .38em; border-radius: 4px; }
.cite { font: 500 .8rem/1.55 var(--mono); color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; white-space: pre-wrap; }


.sub { margin-top: clamp(4rem, 10vw, 7rem); padding: clamp(2.5rem, 6vw, 4.5rem) 0; background:
  radial-gradient(ellipse 60% 70% at 50% 0%, rgba(245,197,66,.10), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.4rem; }
.form input[type=email] { flex: 1 1 16rem; min-height: 52px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 0 1.2rem; font: 500 1.05rem var(--display); }
.form input[type=email]:focus { border-color: var(--hero); outline: none; box-shadow: 0 0 0 3px rgba(245,197,66,.25); }
.form .btn { min-height: 52px; }
.form-msg { margin-top: .8rem; font-size: .95rem; min-height: 1.5em; color: var(--ink-2); }
.form-msg.ok { color: var(--hero); } .form-msg.err { color: var(--danger); }
.hp { position: absolute; left: -5000px; }
.promise { display: grid; gap: .5rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.promise li { padding-left: 1.6rem; position: relative; color: var(--ink-2); }
.promise li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--hero); box-shadow: var(--glow); }


.about { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.about-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .about-grid { grid-template-columns: 1fr 1fr; } }
footer { border-top: 1px solid var(--line); padding: 2rem 0 2.6rem; font-size: .88rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
footer a { color: var(--ink-2); }
.nfa { font-size: .85rem; color: var(--muted); max-width: 40rem; }


.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }



@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
@media print { .nav, .sub, .controls, .flipbox { display: none; } body { background: #fff; color: #000; } }
.hero h1 .punch { display: block; margin-top: .12em; }

.vgrid { margin-top: 1.4rem; }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(4, 1fr); } }
.vgrid .mcard h3 { font-size: 1rem; }
#v-table td:first-child { white-space: normal; min-width: 14rem; }


@media (max-width: 899px) {
  .rounds { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .round { padding: .6rem .55rem; }
  .round .rt { font-size: .56rem; letter-spacing: .06em; line-height: 1.3; }
  .round .rv strong { font-size: 1.5rem; }
  .round .rv .of { display: block; font-size: .72rem; line-height: 1.3; }
  .round .base { font-size: .68rem; line-height: 1.3; }
  .board-title { font-size: .66rem; }
}


.pour canvas { display: block; }
.explain { font-size: .88rem; color: var(--ink-2); line-height: 1.5; margin: .7rem 0 0; }
.fliprow { display: flex; gap: .5rem; flex-wrap: wrap; }
.fliprow .btn-ghost { padding: .9rem 1rem; }
.coinguy { cursor: pointer; }

.trade .board { padding-bottom: 1rem; }
.trade-verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .5rem 0 .8rem; }
.tv { border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; background: var(--bg-2); }
.tv span { display: block; font: 500 .66rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tv strong { display: block; font: 900 1.25rem/1.15 var(--display); margin-top: .3rem; min-height: 1.2em; }
.tv-c strong { color: var(--ink); }
.tv-t strong { color: var(--danger); }
.zoom { margin-top: .9rem; border-top: 1px dashed var(--line); padding-top: .7rem; animation: zin .5s ease both; }
@keyframes zin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.trade .controls { justify-content: space-between; }
#tradeclock { font-family: var(--mono); }

.inline-sub { margin-top: 3rem; }
.inline-card { border: 1px solid rgba(245,197,66,.35); border-radius: var(--r); padding: 1.1rem 1.2rem; background: linear-gradient(180deg, rgba(245,197,66,.06), transparent); }
.inline-card p { margin: 0 0 .2rem; }
.inline-card .form { margin-top: .8rem; }

details.files { margin-top: 1.6rem; }
details.files > summary { list-style: none; cursor: pointer; }
details.files > summary::-webkit-details-marker { display: none; }
details.files[open] > summary { margin-bottom: .8rem; }

.lo-foot { margin: .6rem 0 0; font-size: .9rem; color: var(--ink-2); }
.lo-foot strong { color: var(--ink); }
.day { cursor: pointer; outline: none; }
.day:focus-visible rect:first-child { stroke: var(--hero); stroke-width: 2; }
.day:hover rect:first-child { fill: rgba(237,237,237,.04); }

@media (max-width: 899px) {
  
  .fstep { align-items: flex-end; padding-bottom: 4vh; }
  .fcard { padding: .8rem .95rem; font-size: .98rem; }
  .fcard p { font-size: .98rem; }
  .funnel-hud { top: 4.4rem; bottom: auto; }
  .funnel-hud .n { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .trade-verdicts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  th, td { padding: .5rem .5rem; font-size: .8rem; white-space: normal; }
  th { font-size: .6rem; letter-spacing: .04em; }
  .hbar .hv { font-size: .85rem; }
  .lo-row h3 { flex-direction: column; gap: .3rem; }
}


.bar-def { border-left: 3px solid var(--danger); padding-left: 1rem; }
.twin-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .5rem 0 .8rem; }
.twin-score > div { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; background: var(--bg-2); }
.twin-score span { display: block; font: 500 .66rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.twin-score strong { display: block; font: 900 1.15rem/1.2 var(--display); margin-top: .3rem; color: var(--ink); }
.twin-score strong.ok { color: var(--coin-2); } .twin-score strong.no { color: var(--ink-2); }
.twin-verdict { margin: .9rem 0 0; font-size: 1rem; color: var(--ink-2); }
.twin-verdict strong { color: var(--ink); }
@media (max-width: 640px) { .twin-score { grid-template-columns: 1fr; } }


.pill { max-width: 100%; overflow-wrap: anywhere; white-space: normal; line-height: 1.25; }
#twin-chips { margin: .2rem 0 .5rem; }
.twin-who { margin: 0 0 .6rem; }
.scatter { margin-top: 1.2rem; border-top: 1px dashed var(--line); padding-top: .9rem; }
.scatter canvas { display: block; }


.barslide { margin-top: 1rem; }
.barslide input[type=range] { width: 100%; accent-color: var(--danger); height: 28px; }
.barread { margin: .3rem 0 0; color: var(--ink-2); font-size: .98rem; min-height: 1.5em; }
.barread strong { color: var(--ink); }
.explain { margin: .2rem 0 .8rem; }
.inline-sub { margin-top: 2.2rem; }


.tldr { padding-top: clamp(2rem, 5vw, 3rem); }
.tldr-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.25rem .6rem; background: var(--bg-2); }
.tldr-card ol { margin: 0; padding-left: 1.2rem; }
.tldr-card li { margin: 0 0 .7rem; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.tldr-card li strong { color: var(--ink); }


.flipbig { min-height: 0; }
.flipbig b { display: block; font: 900 2.4rem/1 var(--display); letter-spacing: -.02em; margin-top: .6rem; }
.flipbig span { display: block; font: 500 .75rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-top: .25rem; }
.flipbig.cw b, .flipbig.cw span { color: var(--coin-2); }
.flipbig.sw b, .flipbig.sw span { color: var(--hero); }
.flipbig.pop b { animation: pop .18s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(1.18); } to { transform: none; } }
.pill { font-size: .75rem; }
.chip { font-size: .75rem; min-height: 40px; }
.tbtn { font-size: .75rem; min-height: 40px; padding: .5rem .8rem; }
.fdl { font: 600 .75rem/1 var(--mono); letter-spacing: .04em; color: var(--hero); margin-left: .6rem; text-decoration: none; display: inline-block; padding: .5rem 0; }
.fdl:hover { text-decoration: underline; }
.fdl.none { color: var(--muted); }


.home-hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2rem, 5vw, 3rem); }
.home-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); text-transform: uppercase; max-width: 16ch; }
.home-hero .lede { color: var(--ink-2); max-width: 40rem; margin-top: 1.2rem; }
.study-card { display: grid; gap: 0; text-decoration: none; background: linear-gradient(180deg, var(--surface), #141618); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s, transform .2s; }
.study-card:hover { border-color: var(--hero); transform: translateY(-2px); }
.study-card img { width: 100%; height: auto; }
.study-body { padding: clamp(1.1rem, 3vw, 2rem); }
.study-body h2 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); margin-bottom: .8rem; }
.study-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: .8rem; margin: 1.2rem 0 1.4rem; }
.study-body { min-width: 0; overflow-wrap: anywhere; }
.study-stats span { overflow-wrap: normal; }
.study-stats strong { white-space: nowrap; display: block; font: 900 clamp(1.3rem, 3vw, 2rem)/1 var(--display); letter-spacing: -.02em; }
.study-stats span { display: block; margin-top: .4rem; font: 500 .75rem/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) { .study-card { grid-template-columns: 1.1fr 1fr; align-items: center; } }


@media (max-width: 640px) {
  .hero h1 { font-size: 1.72rem; }
  .board { display: flex; flex-direction: column; }
  .board > .explain { order: 1; margin-top: .9rem; }
  .board > .controls, .board > .ver-hint, .board > .src, .board > .flipbox { order: 2; }
  .study-stats strong { font-size: clamp(1.05rem, 5.4vw, 1.3rem); }
}

.freadme { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.teaser { margin: 1rem 0 0; font-weight: 700; }
.teaser a { color: var(--hero); }
.statfold { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; }
.statfold summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.statfold p { margin: .8rem 0 0; }
.pickchip { background: var(--hero); color: #111; border-color: var(--hero); }
main:focus { outline: none; }
@media (max-width: 640px) {
  .sgrid { border-spacing: 2px; font-size: .7rem; }
  .sgrid .vpre { display: none; }
  .sgrid thead th { padding: 0 .1rem .3rem; font-size: .58rem; letter-spacing: .02em; white-space: normal; line-height: 1.15; vertical-align: bottom; }
  .sgrid tbody th { padding-right: .35rem; }
  .sgrid td button, .sgrid td .z { min-width: 2.3rem; font-size: .74rem; }
}
@media (max-width: 340px) { .sgrid td button, .sgrid td .z { min-width: 1.95rem; font-size: .68rem; } .sgrid thead th { font-size: .52rem; } }


@media (min-width: 1500px) { :root { --wide: 90rem; } }


.explorer { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem 1.2rem; margin-top: 1.4rem; }
.ex-title { margin: 0 0 .4rem; }
.ex-intro { margin: 0 0 1rem; max-width: 46rem; }
.ex-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .7rem; }
.ex-pick label { display: flex; flex-direction: column; gap: .3rem; font: 500 .66rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ex-pick select { min-height: 44px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .5rem; font: 500 .9rem var(--display); text-transform: none; letter-spacing: 0; max-width: 100%; }
.ex-pick select:focus { border-color: var(--hero); outline: none; }
.ex-result { margin-top: 1rem; }
.ex-result > p { margin: 0 0 .6rem; }
.ex-h { margin: .9rem 0 .4rem; font-size: 1rem; }
.ex-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ex-row { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .55rem .75rem; min-height: 44px;
  border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.ex-row:hover, .ex-row:focus-visible { border-color: var(--hero); color: var(--ink); outline: none; }
.ex-name { overflow-wrap: anywhere; }
.ex-r { font: 700 .8rem var(--mono); color: var(--hero); white-space: nowrap; }
.ex-more { margin-top: .6rem; }
.ex-detail { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.ex-detail:focus { outline: none; }
.ex-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.ex-head h4 { margin: 0; font-size: 1.25rem; }
.ex-head p { margin: .3rem 0 0; }
.ex-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; margin-top: 1rem; }
.ex-cols > div, .ex-head > div { min-width: 0; }
.ex-params li, .ex-head p { overflow-wrap: anywhere; }
@media (min-width: 900px) { .ex-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.ex-detail h5 { margin: 1rem 0 .5rem; font: 500 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ex-cols h5 { margin-top: 0; }
.ex-params { margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .92rem; }
.ex-params li { margin: .25rem 0; }
.ex-table { font-size: .82rem; }
.ex-table th[scope=row] { text-align: left; font: 500 .72rem/1.3 var(--mono); letter-spacing: .02em; text-transform: none; color: var(--ink-2); background: none; }
.ex-table td { font-family: var(--mono); }
.ex-curve { margin-top: .3rem; }
.ex-twin-out { font-size: .92rem; color: var(--ink-2); }
.ex-caution { margin-top: .8rem; color: var(--muted); }
.stable tr.ex-link { cursor: pointer; }
.ex-list li { min-width: 0; }
.ex-name { flex: 1 1 auto; min-width: 0; }
@media (max-width: 520px) { .ex-row { flex-direction: column; align-items: flex-start; gap: .25rem; } .ex-r { white-space: normal; } }
