:root {
  color-scheme: light;
  --ink: #152238;
  --muted: #53637a;
  --soft: #728198;
  --blue: #1764d5;
  --blue-strong: #0d55c5;
  --blue-pale: #eaf2ff;
  --line: #dce4ee;
  --line-soft: #e8edf3;
  --surface: #ffffff;
  --surface-subtle: #f7f9fc;
  --page: #f4f6f9;
  --green: #1f7a50;
  --shadow: 0 8px 26px rgba(26, 48, 79, .055);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: var(--blue); text-underline-offset: .17em; }
a:hover { color: var(--blue-strong); }
button, input, select { font: inherit; }
button, select, input { color: var(--ink); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #90baff; outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 14px; font-size: clamp(2.1rem, 4.2vw, 3.35rem); line-height: 1.08; letter-spacing: -.045em; }
h2 { margin-bottom: 10px; font-size: 1.42rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { margin-bottom: 5px; font-size: 1rem; line-height: 1.3; }
small, .small-note { color: var(--muted); font-size: .86rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; transform: translateY(-160%); padding: 9px 14px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 15; top: 0; display: flex; align-items: center; gap: 24px; min-height: 68px; padding: 0 clamp(18px, 5vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.wordmark { flex: 0 0 auto; color: var(--ink); font-size: 1rem; font-weight: 760; letter-spacing: -.035em; text-decoration: none; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 0 auto; }
.primary-nav a { padding: 8px 13px; border-radius: 9px; color: #34445b; font-size: .91rem; font-weight: 560; text-decoration: none; }
.primary-nav a:hover { background: var(--surface-subtle); }
.primary-nav a[aria-current="page"] { background: var(--blue-pale); color: var(--blue-strong); }
.source-link { flex: 0 0 auto; color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; }
.source-link span { margin-right: 4px; color: #34445b; }
.menu-toggle { display: none; }

main { width: min(1200px, calc(100% - 44px)); min-height: calc(100vh - 146px); margin: 0 auto; padding: 36px 0 60px; }
.data-status { margin: 0 0 18px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: .85rem; }
.data-status[data-state="ready"] { border-color: #cce7d8; background: #f3fbf6; color: var(--green); }
.data-status[data-state="error"] { border-color: #f0caca; background: #fff8f8; color: #9b2e2e; }
.page[hidden] { display: none; }
.page { animation: page-in .18s ease-out; }
@keyframes page-in { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.eyebrow { margin-bottom: 8px; color: var(--blue); font-size: .74rem; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: center; gap: clamp(28px, 6vw, 76px); padding: 35px 12px 36px; }
.hero-lede { max-width: 720px; margin-bottom: 12px; color: #273a55; font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.35; }
.hero-copy { max-width: 690px; margin-bottom: 23px; color: var(--muted); font-size: 1rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; font-size: .9rem; font-weight: 650; text-decoration: none; transition: background .12s ease, border-color .12s ease, transform .12s ease; }
.button:hover:not(:disabled) { border-color: #afc9ec; background: #f7faff; color: var(--ink); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:disabled { color: #8794a5; cursor: not-allowed; }
.button-primary { border-color: var(--blue); background: var(--blue); color: #fff; }
.button-primary:hover:not(:disabled) { border-color: var(--blue-strong); background: var(--blue-strong); color: #fff; }
.button-secondary { border-color: #b7cbed; color: #174e9e; }
.hero-game { position: relative; width: min(100%, 360px); height: 292px; justify-self: center; overflow: hidden; border: 8px solid #10151d; border-radius: 18px; background-color: #090d13; box-shadow: 0 14px 35px rgba(14, 28, 49, .17); }
.hero-game::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(115,138,164,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(115,138,164,.14) 1px, transparent 1px); background-size: 10% 10%; content: ""; }
.mini-bricks { position: absolute; top: 9%; right: 7%; left: 7%; display: grid; grid-template-columns: repeat(8,1fr); gap: 3px; }
.mini-bricks i { height: 13px; border: 1px solid rgba(17,24,39,.5); border-radius: 2px; background: #e14b43; }
.mini-bricks i:nth-child(n+9):nth-child(-n+16) { background: #ed9b36; }
.mini-bricks i:nth-child(n+17) { background: #36a36c; }
.mini-ball { position: absolute; top: 52%; left: 60%; width: 12px; height: 12px; border-radius: 50%; background: #f8fbff; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.mini-paddle { position: absolute; bottom: 12%; left: 45%; width: 12%; height: 9px; border-radius: 3px; background: #f8fbff; }
.hero-game p { position: absolute; right: 12px; bottom: 1px; color: rgba(230,238,248,.65); font-size: .72rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 8px 0 20px; }
.stat-card, .panel, .link-card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.stat-card { min-height: 102px; padding: 17px 18px; }
.stat-value { display: block; margin-bottom: 3px; font-size: 1.46rem; font-weight: 760; letter-spacing: -.035em; line-height: 1.2; }
.stat-label { color: var(--muted); font-size: .87rem; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr); gap: 16px; margin-top: 16px; }
.panel { padding: 21px; }
.process-panel, .overview-results { min-width: 0; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 20px 0 0; padding: 0; list-style: none; }
.process-list li { display: flex; align-items: flex-start; gap: 10px; }
.step-number { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font-weight: 750; }
.process-list h3 { margin-top: 2px; font-size: .91rem; }
.process-list p { margin-bottom: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading a { flex: 0 0 auto; font-size: .88rem; font-weight: 650; text-decoration: none; }
.compact-heading { align-items: center; }
.ranking-list { display: grid; gap: 0; }
.ranking-row { display: grid; grid-template-columns: minmax(130px, 1fr) auto; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: .83rem; }
.ranking-row:last-child { border-bottom: 0; }
.iterative-callout { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 16px 0 4px; padding: 18px 21px; border: 1px solid #cdddf4; border-radius: 12px; background: #f7faff; }
.iterative-callout h2 { margin-bottom: 5px; font-size: 1.1rem; }
.iterative-callout p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); font-size: .88rem; }
.iterative-callout .eyebrow { margin-bottom: 4px; }
.ranking-row strong { font-variant-numeric: tabular-nums; }
.ranking-row .class-label { display: block; color: var(--soft); font-size: .7rem; }
.small-note { margin-bottom: 0; line-height: 1.45; }
.overview-results .small-note { margin-top: 13px; }
.link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 16px; }
.link-card { display: grid; grid-template-columns: 36px minmax(0,1fr) 15px; align-items: center; gap: 11px; padding: 15px; color: var(--ink); text-decoration: none; }
.link-card:hover { border-color: #bdd1ed; background: #fbfdff; }
.link-card strong, .link-card small { display: block; }
.link-card strong { margin-bottom: 3px; font-size: .91rem; }
.link-card small { line-height: 1.35; }
.link-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--blue-pale); color: var(--blue); font-weight: 750; }
.link-card b { color: var(--blue); }

.page-intro { margin: 6px 0 24px; }
.page-intro p:last-child { max-width: 790px; margin-bottom: 0; color: var(--muted); font-size: 1.04rem; }
.arena-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(285px, .88fr); gap: 16px; align-items: start; }
.arena-game-panel { padding: 0; overflow: hidden; }
.game-status-bar { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 17px; background: #152133; color: #fff; font-size: .86rem; }
.game-status-bar strong { margin-left: 4px; font-variant-numeric: tabular-nums; }
.state-pill { padding: 3px 9px; border-radius: 99px; background: #e5edf8; color: #263c5a; font-size: .77rem; font-weight: 700; }
.state-pill[data-state="playing"] { background: #d9f3e6; color: #176443; }
.state-pill[data-state="over"] { background: #fff0eb; color: #a33c23; }
#game-canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #080b10; image-rendering: pixelated; }
.canvas-caption { margin: 0; padding: 9px 14px 11px; color: var(--muted); font-size: .78rem; }
.arena-side { display: grid; gap: 14px; }
.control-panel h2, .selected-model-panel h2 { font-size: 1.1rem; }
.control-panel label, .inline-select, .speed-control, .search-control { display: grid; gap: 5px; color: #34445b; font-size: .81rem; font-weight: 650; }
.control-panel > select, .control-panel > input, .speed-control select, .inline-select select, .search-control input { width: 100%; min-height: 37px; padding: 7px 9px; border: 1px solid #cad5e3; border-radius: 7px; background: #fff; }
.seed-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.seed-row input { width: 100%; min-width: 0; min-height: 37px; padding: 7px 9px; border: 1px solid #cad5e3; border-radius: 7px; background: #fff; }
.seed-row .button { min-height: 37px; padding-inline: 10px; font-size: .78rem; }
.control-panel > label:not(:first-of-type) { margin-top: 12px; }
.control-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 13px; }
.control-buttons .button { padding-inline: 8px; font-size: .82rem; }
.control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.control-row > .button { width: 100%; }
.speed-control { gap: 4px; }
.speed-control select { min-height: 39px; }
.caveat-note { margin: 13px 0 0; padding: 9px 10px; border-left: 3px solid #e4a63c; border-radius: 0 7px 7px 0; background: #fff9ec; color: #685127; font-size: .77rem; line-height: 1.4; }
.model-summary { font-size: .87rem; }
.model-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 15px; margin: 12px 0 0; font-size: .83rem; }
.model-summary dt { color: var(--muted); }
.model-summary dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.arena-detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; margin-top: 16px; align-items: start; }
.observation-panel, .inspector-panel { min-width: 0; }
.inline-select { display: flex; align-items: center; gap: 8px; }
.inline-select select { min-width: 150px; width: auto; }
.observation-layout { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 20px; }
.observation-grid { display: grid; grid-template-columns: repeat(10, 1fr); width: 220px; aspect-ratio: 1; overflow: hidden; border: 1px solid #34445b; border-radius: 7px; background: #0b1119; }
.observation-cell { border: 1px solid rgba(180,203,228,.18); }
.observation-cell.on { background: #1882ec; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.observation-cell.brick.on { background: #e86750; }
.observation-cell.ball.on { background: #fff3a7; }
.observation-cell.trail.on { background: #ffb869; }
.observation-cell.paddle.on { background: #2185df; }
.inspector-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 700; }
.summary-hint { color: var(--soft); font-size: .72rem; font-weight: 500; }
.decision-inspector { display: grid; gap: 9px; margin-top: 14px; }
.logit-row { display: grid; grid-template-columns: 72px 1fr 55px; align-items: center; gap: 9px; font-size: .78rem; }
.logit-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e7edf4; }
.logit-fill { height: 100%; border-radius: inherit; background: #4385dc; }
.logit-fill.selected { background: #1764d5; }
.logit-row output { text-align: right; font-variant-numeric: tabular-nums; }
.layer-summary { padding: 10px 11px; border-radius: 8px; background: var(--surface-subtle); color: var(--muted); font-size: .8rem; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 13px; }
.summary-item { padding: 12px; border-radius: 9px; background: var(--surface-subtle); }
.summary-item strong, .summary-item span { display: block; }
.summary-item strong { margin-bottom: 3px; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.summary-item span { color: var(--muted); font-size: .78rem; }

.model-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 27px 0 12px; }
.model-group-heading h2 { margin-bottom: 4px; }
.model-group-heading p { margin-bottom: 0; color: var(--muted); font-size: .87rem; }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: .73rem; font-weight: 700; white-space: nowrap; }
.badge-blue { background: var(--blue-pale); color: var(--blue-strong); }
.badge-neutral { background: #eef1f5; color: #526074; }
.badge-green { background: #e3f4ea; color: #1c754a; }
.model-profiles, .comparison-profiles { display: grid; gap: 12px; }
.model-card, .comparison-card { padding: 0; overflow: hidden; }
.model-card summary, .comparison-card summary { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(4,minmax(80px,.65fr)) 18px; align-items: center; gap: 14px; padding: 15px 18px; cursor: pointer; list-style: none; }
.model-card summary::-webkit-details-marker, .comparison-card summary::-webkit-details-marker { display: none; }
.model-card summary:hover, .comparison-card summary:hover { background: #fbfdff; }
.profile-title strong, .profile-title small { display: block; }
.profile-title small { margin-top: 4px; }
.profile-metric span, .profile-metric strong { display: block; }
.profile-metric span { color: var(--soft); font-size: .72rem; }
.profile-metric strong { font-size: .9rem; font-variant-numeric: tabular-nums; }
.profile-chevron { color: var(--blue); font-size: 1.1rem; }
.profile-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 18px; border-top: 1px solid var(--line-soft); }
.profile-body h3 { margin-bottom: 8px; }
.profile-body p { color: var(--muted); font-size: .88rem; }
.profile-definition { display: grid; grid-template-columns: minmax(130px, .7fr) 1fr; gap: 7px 12px; margin: 0; font-size: .82rem; }
.profile-definition dt { color: var(--muted); }
.profile-definition dd { margin: 0; overflow-wrap: anywhere; }
.hash-text { color: #526078; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; overflow-wrap: anywhere; }
.response-details { margin-top: 14px; }
.response-details summary { display: inline-block; padding: 0; color: var(--blue); cursor: pointer; font-size: .86rem; font-weight: 650; }
.response-text { max-height: 420px; overflow: auto; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; color: #25344b; white-space: pre-wrap; overflow-wrap: anywhere; font: .75rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.intervention-card { margin-top: 24px; border-color: #ead9ca; background: #fffdfa; }
.intervention-card h2 { margin-bottom: 8px; }
.intervention-card > p:not(.eyebrow) { max-width: 840px; color: var(--muted); }
.intervention-summary { display: flex; flex-wrap: wrap; gap: 10px 20px; color: #5f4d3e; font-size: .82rem; }
.intervention-summary > span { min-width: 0; overflow-wrap: anywhere; }
.intervention-summary code { overflow-wrap: anywhere; word-break: break-all; }
.secondary-group { margin-top: 31px; }
.comparison-profiles { grid-template-columns: repeat(2,1fr); }
.iterative-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; min-width: 0; margin-top: 30px; }
.iterative-section > .model-group-heading { margin: 0; }
.iterative-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.iterative-profile { min-width: 0; padding: 18px; }
.iterative-profile h3 { min-height: 2.6em; margin-bottom: 13px; font-size: 1.03rem; }
.iterative-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 13px; margin: 0 0 13px; }
.iterative-metrics div { min-width: 0; }
.iterative-metrics dt { color: var(--muted); font-size: .75rem; }
.iterative-metrics dd { margin: 1px 0 0; font-size: .92rem; font-weight: 710; font-variant-numeric: tabular-nums; }
.iterative-profile .download-list { gap: 6px; }
.iterative-profile .download-link { padding: 6px 8px; font-size: .73rem; }
.hash-line { overflow-wrap: anywhere; color: var(--soft); font-size: .68rem; line-height: 1.4; }
.hash-line code { overflow-wrap: anywhere; }
.data-integrity-note { margin: 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.iterative-results-grid { margin-top: 0; }
.iterative-mean-chart { display: grid; gap: 13px; margin-top: 17px; }
.iterative-mean-row { display: grid; grid-template-columns: minmax(100px,.95fr) minmax(90px,1.5fr) 112px; align-items: center; gap: 9px; font-size: .76rem; }
.iterative-chart-label { overflow: hidden; color: #42536b; text-overflow: ellipsis; white-space: nowrap; }
.iterative-mean-row strong { text-align: right; white-space: nowrap; font-size: .74rem; font-variant-numeric: tabular-nums; }
.iterative-score-track { position: relative; height: 13px; border-radius: 99px; background: #edf1f6; }
.iterative-score-bar { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: var(--blue); }
.iterative-score-error { position: absolute; top: -2px; height: 17px; border-right: 2px solid #193e75; }
.iterative-distribution-chart { display: grid; gap: 10px; margin-top: 15px; }
.iterative-histogram-row { display: grid; grid-template-columns: minmax(100px,.9fr) minmax(0,2fr); align-items: center; gap: 10px; font-size: .73rem; }
.iterative-histogram-row > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iterative-histogram { display: flex; height: 47px; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), #edf1f6 calc(25% - 1px), #edf1f6 25%); }
.iterative-histogram-bin { display: block; min-width: 0; flex: 1 1 0; background: #5891d8; }
.iterative-section .results-table-panel, .iterative-section .comparisons-panel { margin-top: 0; }
.iterative-section .results-table-panel th, .iterative-section .comparisons-panel th { white-space: normal; }
.iterative-audit-note { border-left: 4px solid #6b91c5; }
.iterative-audit-note ul { margin: 8px 0 15px; padding-left: 20px; }
.iterative-audit-note li { margin-bottom: 7px; color: #46566c; font-size: .88rem; }

.results-notice { margin: 0 0 16px; padding: 12px 15px; border: 1px solid #cdddf4; border-radius: 10px; background: #f5f9ff; color: #334969; font-size: .87rem; }
.results-notice strong { color: #1b355c; }
.results-table-panel { padding-bottom: 16px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: 10px 11px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
th { color: #526078; font-size: .73rem; font-weight: 700; white-space: nowrap; }
td { font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
.condition-cell strong, .condition-cell small { display: block; }
.condition-cell small { margin-top: 3px; }
.class-chip { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #eef2f7; color: #46556b; font-size: .68rem; white-space: nowrap; }
.class-chip.primary_zero_shot { background: var(--blue-pale); color: #1457b3; }
.class-chip.reference { background: #fff3d8; color: #795c11; }
.class-chip.trained_baseline { background: #e7f5ee; color: #216745; }
.results-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.chart-panel { min-width: 0; }
.chart-panel canvas { display: block; width: 100%; min-width: 0; height: auto; margin-top: 12px; }
.mean-chart { display: grid; gap: 7px; margin: 14px 0 16px; }
.mean-row { display: grid; grid-template-columns: minmax(104px, .8fr) minmax(90px, 1.4fr) 65px; align-items: center; gap: 8px; font-size: .72rem; }
.mean-label { overflow: hidden; color: #42536b; text-overflow: ellipsis; white-space: nowrap; }
.mean-track { height: 11px; border-radius: 99px; background: #edf1f6; }
.mean-bar { height: 100%; min-width: 2px; border-radius: inherit; background: var(--blue); }
.mean-row[data-class="reference"] .mean-bar { background: #c48c19; }
.mean-row[data-class="trained_baseline"] .mean-bar { background: #32956a; }
.mean-value { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.action-panel, .comparisons-panel, .historical-panel, .downloads-panel { margin-top: 16px; }
.capture-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.capture-controls .small-note { grid-column: 1 / -1; color: var(--muted); font-size: .76rem; }
#arena-capture-status[data-state="recording"] { color: #176443; font-weight: 650; }
.capture-controls button { min-width: 0; }
.visual-results-section { margin-top: 24px; }
.visual-results-section > .page-intro { margin-bottom: 16px; }
.visual-results-section > .page-intro h2 { margin-bottom: 5px; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.visual-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.visual-card { min-width: 0; overflow: hidden; padding: 13px; }
.visual-card > a { display: grid; min-height: 220px; place-items: center; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 9px; background: #fff; }
.visual-card img { display: block; width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.visual-card figcaption { display: grid; gap: 6px; padding: 11px 2px 2px; }
.visual-card figcaption strong { font-size: .94rem; }
.visual-card figcaption span { color: var(--muted); font-size: .82rem; line-height: 1.45; }
.visual-card figcaption small { color: var(--soft); font-size: .72rem; line-height: 1.45; }
.gameplay-media-panel { margin-top: 15px; border-left: 4px solid #5084c7; }
.gameplay-media-panel h3 { margin-bottom: 7px; }
.gameplay-media-panel .button { margin: 5px 0 12px; }
.gameplay-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.gameplay-video { display: grid; gap: 8px; min-width: 0; }
.gameplay-video video { display: block; width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #111827; }
.gameplay-video > a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.gameplay-video > a img { display: block; width: 100%; height: auto; max-height: 500px; object-fit: contain; }
.gameplay-video figcaption { color: var(--muted); font-size: .8rem; }
.action-table { min-width: 760px; }
.search-control { display: flex; align-items: center; gap: 9px; }
.search-control input { min-width: 190px; width: 220px; }
.comparison-row-ns { color: #5b6471; }
.download-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 13px 0 16px; }
.download-link { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fafcff; font-size: .78rem; text-decoration: none; }

.method-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); align-items: start; gap: 17px; }
.method-nav { position: sticky; top: 84px; display: grid; gap: 2px; padding: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.method-nav a { padding: 8px 10px; border-radius: 7px; color: #3c4d64; font-size: .84rem; text-decoration: none; }
.method-nav a:hover { background: var(--blue-pale); color: var(--blue-strong); }
.method-content { display: grid; gap: 13px; min-width: 0; }
.method-section { min-width: 0; scroll-margin-top: 85px; }
.method-section p, .method-section li { color: #46566c; font-size: .91rem; }
.method-section p:last-child { margin-bottom: 0; }
.method-section h3 { margin-top: 18px; }
.method-section code { padding: 2px 4px; border-radius: 4px; background: #f0f3f7; color: #34445b; font-size: .83em; overflow-wrap: anywhere; }
.audit-section { border-left: 4px solid var(--blue); }
.audit-section ul { margin-bottom: 0; padding-left: 21px; }

.site-footer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 24px; padding: 21px clamp(22px, 5vw, 64px); border-top: 1px solid var(--line); background: #fff; }
.site-footer p { margin: 0; color: var(--muted); font-size: .8rem; }
.footer-caveat { grid-column: 2; color: var(--soft) !important; }

@media (max-width: 920px) {
  .site-header { gap: 15px; padding-inline: 22px; }
  .primary-nav a { padding: 8px 9px; font-size: .84rem; }
  main { width: min(100% - 32px, 1200px); }
  .hero-grid { gap: 25px; }
  .overview-columns { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .model-card summary, .comparison-card summary { grid-template-columns: minmax(150px,1.4fr) repeat(4,minmax(65px,.65fr)) 14px; gap: 9px; padding-inline: 13px; }
  .arena-layout { grid-template-columns: minmax(0,1.05fr) minmax(270px,.95fr); }
  .process-list { grid-template-columns: repeat(2,1fr); }
  .iterative-profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .visual-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .site-header { min-height: 61px; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 16px; }
  .wordmark { font-size: .91rem; }
  .menu-toggle { display: inline-flex; min-height: 36px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
  .source-link { font-size: .82rem; }
  .primary-nav { display: none; order: 5; width: 100%; flex: 1 0 100%; flex-wrap: wrap; justify-content: flex-start; margin: 4px 0 0; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 7px 9px; }
  main { width: calc(100% - 24px); padding-top: 22px; }
  .hero-grid { grid-template-columns: 1fr; padding: 20px 4px 26px; }
  .hero-game { width: min(100%, 330px); height: 265px; }
  .stat-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .stat-card { min-height: 86px; padding: 13px; }
  .stat-value { font-size: 1.22rem; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .page-intro p:last-child { font-size: .96rem; }
  .arena-layout, .arena-detail-grid, .results-two-col, .method-layout { grid-template-columns: minmax(0, 1fr); }
  .visual-gallery, .gameplay-video-grid { grid-template-columns: minmax(0, 1fr); }
  .arena-game-panel, .arena-side, .observation-panel, .inspector-panel, .episode-summary { min-width: 0; }
  .arena-side { grid-template-columns: minmax(0, 1fr); }
  .observation-layout { grid-template-columns: 172px 1fr; gap: 12px; }
  .observation-grid { width: 172px; }
  .summary-grid { grid-template-columns: repeat(2,1fr); }
  .model-card summary, .comparison-card summary { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .profile-title { grid-column: 1 / -1; }
  .profile-metric { min-width: 0; }
  .profile-chevron { grid-column: 2; grid-row: 1; }
  .profile-body { grid-template-columns: 1fr; gap: 15px; }
  .comparison-profiles { grid-template-columns: 1fr; }
  .iterative-profile-grid { grid-template-columns: minmax(0,1fr); }
  .iterative-profile h3 { min-height: 0; }
  .iterative-callout { align-items: flex-start; flex-direction: column; }
  .iterative-mean-row { grid-template-columns: minmax(90px,1fr) minmax(75px,1.2fr) 100px; gap: 7px; }
  .iterative-histogram-row { grid-template-columns: minmax(90px,1fr) minmax(0,1.4fr); }
  .method-nav { position: static; grid-template-columns: repeat(2,1fr); }
  .site-footer { grid-template-columns: 1fr auto; padding: 18px 16px; }
  .site-footer p { grid-column: 1 / -1; }
  .footer-caveat { grid-column: 1 / -1; }
  .section-heading { align-items: flex-start; }
  .search-control { display: grid; }
  .search-control input { width: 190px; min-width: 0; }
}
@media (max-width: 410px) {
  body { font-size: 14px; }
  .control-buttons { grid-template-columns: 1fr 1fr; }
  .control-buttons #arena-reset { grid-column: 1 / -1; }
  .observation-layout { grid-template-columns: 1fr; }
  .observation-grid { width: min(100%, 220px); }
  .inline-select { display: grid; }
  .inline-select select { min-width: 0; width: 100%; }
  .mean-row { grid-template-columns: 94px 1fr 52px; }
  .capture-controls { grid-template-columns: minmax(0,1fr); }
  .capture-controls .small-note { grid-column: 1; }
  .visual-card > a { min-height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
