:root {
  color-scheme: light;
  --bg: #fcfcfb;
  --surface: #ffffff;
  --surface-2: #f4f3f0;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #8a8984;
  --line: #e6e5e0;
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --accent-soft: #e5eefb;
  --good: #1baf7a;
  --warn: #eb6834;
  --r: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141413;
    --surface: #1c1c1a;
    --surface-2: #232321;
    --ink: #f4f3ef;
    --ink-2: #c3c2b7;
    --muted: #8a8984;
    --line: #33332f;
    --accent: #3987e5;
    --accent-soft: #1d2a3b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
code, kbd { font-family: var(--mono); font-size: .88em; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 .35em; background: var(--surface); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem max(1rem, calc((100vw - 1180px) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand span { font-weight: 500; color: var(--ink-2); }
.top nav { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: .93rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

main, footer { max-width: 1180px; margin: 0 auto; padding-inline: 1rem; }
section { padding-block: 3.2rem 1rem; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .35rem; letter-spacing: -.02em; }
.section-head p { color: var(--ink-2); margin: 0 0 1.4rem; max-width: 60rem; }

.hero { padding-top: 3.4rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .6rem; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.07; letter-spacing: -.03em; margin: 0 0 1rem; max-width: 22ch; }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 52rem; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.2rem; margin-top: 1.8rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.podium { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.podium h3 { margin: .1rem 0 .7rem; font-size: 1rem; }
.pod-row { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .6rem; padding: .42rem 0; border-top: 1px solid var(--line); }
.pod-row:first-of-type { border-top: 0; }
.pod-rank { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.pod-row:nth-of-type(1) .pod-rank { color: var(--accent); }
.pod-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-bar { height: 6px; border-radius: 3px; background: var(--accent); margin-top: 4px; }
.pod-meta { font-size: .8rem; color: var(--muted); white-space: nowrap; }

.cta-card { background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.3rem 1.3rem 1.1rem; box-shadow: var(--shadow); }
.cta-card h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.cta-card p { color: var(--ink-2); }
.fine { font-size: .84rem; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); padding: .62rem 1rem; border-radius: 10px; font: 600 .95rem var(--font); cursor: pointer; text-decoration: none;
  transition: transform .06s ease, background .15s ease, border-color .15s ease; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }

/* game */
.play { scroll-margin-top: 4rem; }
.progress { position: relative; height: 8px; background: var(--surface-2); border-radius: 4px; margin-bottom: 1.1rem; }
.progress .bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 4px; transition: width .25s ease; }
.progress span { position: absolute; right: 0; top: 12px; font-size: .8rem; color: var(--muted); }
.question { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; letter-spacing: -.01em; margin: 1.6rem 0 1rem; }
.question small { display: block; font-weight: 500; font-size: .9rem; color: var(--ink-2); margin-top: .25rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1rem 1.1rem; box-shadow: var(--shadow); transition: border-color .15s ease, transform .15s ease; }
.card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.card p { flex: 1; margin: 0 0 1rem; font-size: .98rem; line-height: 1.6; white-space: pre-wrap; }
.card .meta { font-size: .78rem; color: var(--muted); }
.tag { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 8px; background: var(--accent-soft);
  color: var(--accent); font-weight: 800; }
.card.chosen { border-color: var(--accent); transform: translateY(-2px); }
.skip-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .8rem; flex-wrap: wrap; }

.play #results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow); }
.play #verdict { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0 0 .2rem; letter-spacing: -.02em; }
.judge-bars { margin: 1.1rem 0 1.2rem; display: grid; gap: .55rem; }
.jb { display: grid; grid-template-columns: minmax(9rem, 16rem) 1fr 5.5rem; gap: .7rem; align-items: center; }
.jb-name { font-weight: 600; font-size: .92rem; }
.jb-name small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.jb-track { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.jb-fill { height: 100%; background: var(--accent); border-radius: 6px; }
.jb.best .jb-fill { background: var(--good); }
.jb-val { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
@media (max-width: 560px) { .jb { grid-template-columns: 1fr 4.5rem; } .jb-track { grid-column: 1 / -1; grid-row: 2; } }
.reveal summary { cursor: pointer; font-weight: 600; margin-bottom: .5rem; }
.reveal li { margin: .25rem 0; color: var(--ink-2); }
.reveal li b { color: var(--ink); }
.submit-box { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1.1rem; }
.submit-box h4 { margin: 0 0 .3rem; }
.submit-box p { color: var(--ink-2); margin: 0 0 .8rem; }

/* leaderboard */
.table-tools { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; flex-wrap: wrap; }
.table-tools input { flex: 0 1 22rem; padding: .55rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { padding: .5rem .65rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { position: sticky; top: 0; background: var(--surface-2); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-2); cursor: pointer; user-select: none; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr.row { cursor: pointer; }
tbody tr.row:hover { background: var(--surface-2); }
td.model { font-weight: 600; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; }
td.heat { text-align: center; font-variant-numeric: tabular-nums; font-size: .8rem; min-width: 3.1rem; border-left: 2px solid var(--surface); }
tr.detail td { white-space: normal; background: var(--surface-2); color: var(--ink-2); font-size: .93rem; line-height: 1.6; }
.fig { margin: 1.2rem 0 0; }
.fig img { display: block; width: 100%; border-radius: var(--r); border: 1px solid var(--line); background: #fcfcfb; }
.fig figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.fig-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 860px) { .fig-grid { grid-template-columns: 1fr; } }

.how .steps { padding-left: 1.2rem; max-width: 60rem; }
.how .steps li { margin: .6rem 0; color: var(--ink-2); }
.how .steps strong { color: var(--ink); }
.install { display: inline-block; margin-left: .6rem; padding: .45rem .7rem; background: var(--surface-2); border-radius: 8px; }

.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 1.3rem; color: var(--ink-2); }

footer { padding-block: 2.5rem 3rem; color: var(--muted); font-size: .84rem; border-top: 1px solid var(--line); margin-top: 3rem; }

/* docs pages */
.prose { max-width: 820px; padding-block: 2.2rem 1rem; }
.prose h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); letter-spacing: -.025em; line-height: 1.12; margin: .2rem 0 .8rem; }
.prose h2 { font-size: 1.45rem; letter-spacing: -.015em; margin: 2.2rem 0 .6rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.12rem; margin: 1.6rem 0 .4rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose img { display: block; border-radius: var(--r); border: 1px solid var(--line); background: #fcfcfb; margin: 1rem 0; }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; overflow-x: auto; font-size: .86rem; line-height: 1.5; }
.prose :not(pre) > code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
.prose table { display: block; overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; }
.prose th { position: static; cursor: default; text-transform: none; letter-spacing: 0; font-size: .82rem; }
.prose blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
.prose blockquote p { margin: .3rem 0; color: var(--ink); }
.mermaid { margin: 1rem 0; text-align: center; }

/* landing v2 */
.hero h1 .accent { color: var(--accent); }
.btn.big { padding: .8rem 1.25rem; font-size: 1.02rem; }
.hero-cta { margin: 1.4rem 0 1.6rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 46rem; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; }
.stats b { display: block; font-size: 1.7rem; letter-spacing: -.02em; }
.stats span { color: var(--ink-2); font-size: .88rem; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }
.truth-note { margin-top: 1.2rem; max-width: 46rem; font-size: .92rem; color: var(--ink-2); padding: .7rem .9rem;
  border-left: 3px solid #eda100; background: color-mix(in srgb, #eda100 9%, var(--surface)); border-radius: 0 10px 10px 0; }
.more-row { display: flex; gap: 1rem; align-items: center; margin-top: .8rem; flex-wrap: wrap; }
.evals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 960px) { .evals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .evals { grid-template-columns: 1fr; } }
.eval-card { display: flex; flex-direction: column; gap: .35rem; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.eval-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.eval-kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--accent); }
.eval-card b { font-size: 1.12rem; }
.eval-card p { margin: 0; color: var(--ink-2); font-size: .9rem; flex: 1; }
.eval-link { font-size: .88rem; font-weight: 600; color: var(--accent); }
pre.install { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; overflow-x: auto; margin: 1rem 0; }
pre.install code { font-size: .92rem; }
pre.install { display: block; margin-left: 0; max-width: 100%; }
@media (max-width: 560px) {
  .top nav a:not(:first-child):not(:nth-child(2)):not(:last-child) { display: none; }
  .brand span { display: none; }
}

/* ---------- leaderboard: magnitude + phone cards ---------- */
.gap-note { font-size: .95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .65rem .85rem; max-width: 60rem; }
.gap-note:empty { display: none; }
.sort-by { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--ink-2); }
.sort-by select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  padding: .45rem .6rem; }
.sbar { display: flex; align-items: center; gap: .5rem; min-width: 9rem; }
.sbar-track { position: relative; flex: 1; height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.sbar-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 5px; }
.sbar-mid { position: absolute; top: -2px; bottom: -2px; left: 50%; width: 2px; background: var(--muted); opacity: .55; z-index: 1; }
.sbar-val { font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 700; min-width: 2.6rem; text-align: right; }
td.barcol { min-width: 11rem; }
td.nextcol { color: var(--ink-2); }
td.nextcol.strong { color: var(--ink); font-weight: 700; }
tr.gap-after td { border-bottom: 3px solid var(--accent-soft); }
.lb-detail p { margin: .2rem 0 .4rem; white-space: normal; line-height: 1.6; color: var(--ink); }
tr.detail td { white-space: normal; }
.lb-cards { display: none; }
@media (max-width: 760px) {
  .table-wrap { display: none; }
  .lb-cards { display: grid; gap: .6rem; }
  .table-tools { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
  .table-tools input { grid-column: 1 / -1; width: 100%; }
  .lb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem; cursor: pointer; }
  .lb-card:active { border-color: var(--accent); }
  .lb-card.gap-after { margin-bottom: .6rem; box-shadow: 0 3px 0 var(--accent-soft); }
  .lb-head { display: grid; grid-template-columns: auto 1fr; gap: 0 .55rem; align-items: baseline; margin-bottom: .45rem; }
  .lb-rank { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
  .lb-rank.lb-top3 { color: var(--accent); }
  .lb-strength { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .55rem; }
  .lb-lab { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .lb-name { font-weight: 700; font-size: 1.02rem; }
  .lb-meta { grid-column: 2; font-size: .78rem; color: var(--muted); }
  .lb-next { font-size: .8rem; color: var(--ink-2); margin: .35rem 0 .5rem; }
  .chips { display: flex; flex-wrap: wrap; gap: .3rem; }
  .chip { font-size: .74rem; border-radius: 6px; padding: .18rem .42rem; font-variant-numeric: tabular-nums; }
  .chip b { font-weight: 600; opacity: .85; }
}

/* ---------- game on phones: sticky pick bar ---------- */
.pick-bar { display: none; }
@media (max-width: 760px), (hover: none) {
  .keys-hint { display: none; }
  .card .btn.pick { display: none; }
  .skip-row .btn { display: none; }
  .pick-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; position: sticky; z-index: 5;
    bottom: 0; padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 75%, transparent); }
  .pick-bar .btn { padding: .8rem .6rem; font-size: 1rem; }
  .pick-bar .pick-a, .pick-bar .pick-b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .card p { font-size: 1rem; }
}

/* ---------- header on phones ---------- */
@media (max-width: 560px) {
  .top { gap: .6rem; }
  .top nav { gap: .8rem; font-size: .88rem; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; white-space: nowrap; }
  .top nav::-webkit-scrollbar { display: none; }
}

/* ---------- docs tables -> cards on phones (labels added by the layout script) ---------- */
@media (max-width: 640px) {
  .prose table.stack { display: block; border: 0; }
  .prose table.stack thead { display: none; }
  .prose table.stack tbody, .prose table.stack tr, .prose table.stack td { display: block; }
  .prose table.stack tr { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; margin-bottom: .6rem; background: var(--surface); }
  .prose table.stack td { border: 0; padding: .18rem 0; white-space: normal; display: grid; grid-template-columns: 42% 1fr; gap: .6rem; }
  .prose table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; }
  .prose table.stack td:first-child { grid-template-columns: 1fr; font-weight: 700; font-size: 1rem; }
  .prose table.stack td:first-child::before { display: none; }
}
.prose img.zoomable { cursor: zoom-in; }
.zoom-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.85); overflow: auto; display: flex; align-items: flex-start; }
.zoom-overlay img { max-width: none; width: 1400px; margin: auto; border-radius: 0; border: 0; }

@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .stats div { padding: .6rem .55rem; }
  .stats b { font-size: 1.25rem; }
  .stats div > span { font-size: .74rem; line-height: 1.3; display: block; }
  .stats div > span span { display: inline; font-size: inherit; }
  .hero h1 { font-size: 2rem; }
  .hero-cta .btn.big { flex: 1; padding: .75rem .6rem; font-size: .95rem; }
  section { padding-block: 2.2rem .6rem; }
}

/* ---------- homepage (library-first) ---------- */
.hero-home { padding-top: 2.2rem; }
.hero-home h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin-bottom: .6rem; }
.hero-home .lede { font-size: 1.08rem; margin: 0 0 1.1rem; max-width: 40rem; }
.qs { max-width: 46rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.qs-tabs { display: flex; align-items: center; gap: .2rem; padding: .35rem .4rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.qs-tabs button { border: 0; background: none; font: 600 .84rem var(--font); color: var(--ink-2); padding: .4rem .7rem; border-radius: 8px; cursor: pointer; }
.qs-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.qs-tabs .copy { margin-left: auto; color: var(--accent); }
.qs-code { margin: 0; padding: .9rem 1rem; overflow-x: auto; font: .88rem/1.6 var(--mono); }
.qs-code code { font-size: inherit; }
.c { color: var(--muted); } .s { color: #1a7f55; } .k { color: #a2388f; font-weight: 600; } .n { color: #b35c00; }
@media (prefers-color-scheme: dark) { .s { color: #6fd3a3; } .k { color: #e58ad3; } .n { color: #f0a45a; } }
.hero-proof { margin: .8rem 0 0; font-size: .92rem; color: var(--ink-2); }
.hero-proof b { color: var(--ink); font-variant-numeric: tabular-nums; }
.btn.small { padding: .35rem .7rem; font-size: .84rem; }

/* watch Jev sort */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--shadow); max-width: 52rem; }
.demo-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); }
.demo-top b { color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-top .btn { margin-left: auto; }
.demo-pair { min-height: 7.2rem; margin: .8rem 0; padding: .8rem .9rem; background: var(--surface-2); border-radius: 10px; }
.dp-items { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; font-size: .9rem; color: var(--ink-2); }
.dp-items .dp-win { color: var(--ink); font-weight: 700; }
.dp-vs { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.dp-meter { display: flex; align-items: center; gap: .7rem; margin: .55rem 0 .3rem; }
.dp-track, .dr-track, .t-track, .post-track { position: relative; flex: 1; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.dp-track i, .dr-track i, .t-track i, .post-track i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 5px; transition: width .35s ease; }
.dp-track em, .t-track em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink-2); opacity: .55; }
.dp-num { font: 600 .84rem var(--mono); white-space: nowrap; }
.demo-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; counter-reset: dr; }
.demo-rank li { display: grid; grid-template-columns: 1.4rem minmax(0, 1.5fr) minmax(4rem, 1fr) 3rem; gap: .6rem; align-items: center; counter-increment: dr; font-size: .9rem; }
.demo-rank li::before { content: counter(dr); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.demo-rank li.lead .dr-name { font-weight: 700; }
.dr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-val, .t-val { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .dp-items { grid-template-columns: 1fr; gap: .15rem; }
  .dp-vs { font-size: .68rem; }
  .demo-pair { min-height: 10.5rem; }
  .demo-rank li { grid-template-columns: 1.1rem minmax(0, 1fr) 2.8rem; row-gap: .2rem; }
  .demo-rank .dr-name { white-space: normal; }
  .demo-rank .dr-track { grid-column: 2 / 3; grid-row: 2; }
  .demo-rank .dr-val { grid-row: 1 / 3; grid-column: 3; }
}

/* Jev vs the field */
.vs-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
table.vs td, table.vs th { white-space: normal; }
table.vs td.win { color: var(--good); font-weight: 800; }
table.vs td.cost { font-weight: 700; }
table.vs td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
table.vs th { cursor: default; }
@media (max-width: 640px) {
  table.vs thead { display: none; }
  table.vs, table.vs tbody, table.vs tr { display: block; }
  table.vs tr { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .8rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
  table.vs td { border: 0; padding: 0; }
  table.vs td:first-child { grid-column: 1 / -1; font-weight: 700; margin-bottom: .2rem; }
  table.vs td:not(:first-child)::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
}

/* showdown taste */
.taste-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .55rem; max-width: 46rem; }
.taste-list li { display: grid; grid-template-columns: 2.2rem minmax(0, 11rem) 1fr 3rem; gap: .2rem .6rem; align-items: center; }
.t-rank { font-weight: 800; color: var(--muted); }
.taste-list li:first-child .t-rank { color: var(--accent); }
.t-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-next { grid-column: 2 / -1; margin-top: -.15rem; }
@media (max-width: 560px) {
  .taste-list li { grid-template-columns: 2rem 1fr 3rem; }
  .t-track { grid-column: 2 / 3; grid-row: 2; }
  .t-val { grid-row: 1 / 3; grid-column: 3; }
  .t-next { grid-column: 2 / -1; grid-row: 3; }
}

/* how it works */
.flow { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; gap: .7rem; } }
.flow li { display: flex; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; }
.flow-n { flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.flow b { display: block; margin-bottom: .2rem; }
.flow p { margin: 0 0 .3rem; color: var(--ink-2); font-size: .92rem; }
.flow code { font-size: .8rem; }
.eq { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 1rem !important; color: var(--ink) !important; overflow-x: auto; white-space: nowrap; }
.worked { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; margin-bottom: 1rem; max-width: 52rem; }
.worked summary { cursor: pointer; font-weight: 700; }
.worked > p { color: var(--ink-2); }
.worked-grid { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; }
@media (max-width: 560px) { .worked-grid { grid-template-columns: 1fr; } }
table.pmat { width: auto; font-variant-numeric: tabular-nums; }
table.pmat th, table.pmat td { text-align: center; padding: .35rem .55rem; cursor: default; position: static; }
table.pmat td.w { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
table.pmat td.d { color: var(--muted); }
.post { display: grid; gap: .45rem; }
.post-row { display: grid; grid-template-columns: 1.2rem 1fr 2.8rem; gap: .6rem; align-items: center; font-weight: 600; }
.post-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* go deeper + roadmap */
.eval-card.feature { background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.roadmap { padding-left: 1.2rem; max-width: 52rem; }
.roadmap li { margin: .5rem 0; color: var(--ink-2); }
.roadmap b { color: var(--ink); }
.eval-result { font-size: .88rem; color: var(--ink); background: var(--surface-2); border-radius: 8px; padding: .45rem .6rem; }
.eval-truth { font-size: .82rem !important; color: var(--muted) !important; }
.dp-tag { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-right: .4rem; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 800; vertical-align: 1px; }
.flow code.blk { display: block; margin: .3rem 0; white-space: nowrap; overflow-x: auto; }
.hero-proof code { font-size: .82em; background: var(--surface-2); padding: .1em .35em; border-radius: 5px; }
@media (max-width: 420px) { .qs-code { font-size: .8rem; padding: .8rem .85rem; } }

/* several questions, one ranking */
.blend { padding-top: 2.2rem; }
.blend-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 860px) { .blend-grid { grid-template-columns: 1fr; } }
.blend-out { margin: 0; }
.blend-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: .9rem; }
.blend-table th { position: static; cursor: default; }
.blend-table td { white-space: normal; font-variant-numeric: tabular-nums; }
.blend-table td:nth-child(3), .blend-table td:nth-child(4), .blend-table th:nth-child(3), .blend-table th:nth-child(4) { text-align: center; color: var(--ink-2); }
.blend-table td.r1 { color: var(--accent); font-weight: 800; }
.blend-table tr.lead td:nth-child(2) { font-weight: 700; }
.blend-table td:last-child { white-space: nowrap; font-weight: 700; }
.blend-table tbody tr:last-child td { border-bottom: 0; }
.bb { display: inline-block; width: 3.2rem; height: 8px; border-radius: 4px; background: var(--line); margin-right: .45rem; overflow: hidden; vertical-align: 1px; }
.bb i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.blend-out figcaption { margin-top: .6rem; font-size: .88rem; color: var(--ink-2); }
.blend-out figcaption code { font-size: .82em; background: var(--surface-2); padding: .1em .3em; border-radius: 4px; }
@media (max-width: 420px) {
  .blend-table th, .blend-table td { padding: .45rem .4rem; }
  .blend-table th:first-child, .blend-table td:first-child { padding-left: .7rem; }
  .bb { width: 1.8rem; }
}
