@font-face{font-family:"Compile Pixel";src:url("assets/compile-pixel.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"DM Sans";src:url("assets/fonts/dm-sans.ttf") format("truetype");font-weight:100 1000;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("assets/fonts/plex-mono.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("assets/fonts/plex-mono-semibold.ttf") format("truetype");font-weight:600 800;font-display:swap}

:root {
  color-scheme: light;
  --ink: #202f2c;
  --muted: #53605a;
  --paper: #f7f5eb;
  --panel: #fffcf1;
  --chrome: #eae8dc;
  --orange: #ff9155;
  --mint: #98ecbb;
  --console: #082c2b;
  --line: #a8aca0;
  --frame: var(--ink);
  --shadow: var(--ink);
  --window-shadow: #283a32;
  --card-shadow: #364338;
  --dialog-shadow: #132923;
  --header: #faf8ee;
  --paper-dot: #53655528;
  --focus: #00796a;
  --link: #3d6250;
  --link-hover: #a74018;
  --brand-accent: #b94d22;
  --button-ink: var(--ink);
  --primary-hover: #ffa066;
  --on-art: #fffcf1;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "DM Sans", system-ui, sans-serif;
  --pixel: "Compile Pixel", var(--mono);
  --page: 1060px;
  --workstation-art: url("assets/workstation.webp");
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101918;
  --header: #16221f;
  --panel: #1b2a26;
  --chrome: #293c35;
  --console: #092b29;
  --ink: #edf4e9;
  --muted: #b2c5b9;
  --line: #50695c;
  --rule: var(--line);
  --frame: #708e7f;
  --shadow: #07100d;
  --window-shadow: #060e0b;
  --card-shadow: #08120e;
  --dialog-shadow: #050c09;
  --paper-dot: #94bdab26;
  --mint: #a7efc4;
  --focus: #9ff1bd;
  --link: var(--mint);
  --text-link: var(--mint);
  --link-hover: #d5ffdf;
  --brand-accent: #ffb67b;
  --orange: #ffb566;
  --primary-hover: #ffc98c;
  --primary-frame: #ffcd90;
  --button-ink: #291b0f;
  --control-fill: #263b32;
  --control-hover: #334b40;
  --control-on: #2e4e3c;
  --active-control-ink: var(--mint);
  --disabled-fill: #27352f;
  --inset: #111d1a;
  --field-ring: var(--focus);
  --field-prompt: var(--mint);
  --subtle-fill: #22372d;
  --readout: #cdded0;
  --placeholder: #99b0a2;
  --danger: #ffad96;
  --meter-track: #2c4036;
  --meter-border: #678672;
  --meter-fill: #8bddaa;
  --gem-mark: #504027;
  --gem-text: #ffe4a7;
  --backdrop: #050e0bd1;
  accent-color: var(--mint);
}

:root[data-theme="dark"] ::selection { color: #102219; background: #abecc2; }

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-dot) .75px, transparent .85px);
  background-size: 7px 7px;
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { color: inherit; font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, textarea:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
button, a, summary { -webkit-user-select: none; user-select: none; }
h1, h2, h3, p { margin: 0; }
button { background: transparent; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; vertical-align: middle; }
.sprite, .brand img { object-fit: contain; image-rendering: pixelated; flex-shrink: 0; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--panel); padding: 10px; }
.page:focus, #results-title:focus { outline: 0; }
.site-header { background: var(--header); border-bottom: 2px solid var(--frame); }
.header-inner, .page, .footer-inner { width: min(var(--page), calc(100% - 72px)); margin-inline: auto; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.wordmark { font: 400 34px/1 var(--pixel); font-synthesis: none; letter-spacing: -.035em; }
.wordmark span { color: var(--brand-accent); }
.nav, .nav-item, .sound-button { display: flex; align-items: center; }
.nav { gap: 18px; }
.nav-item { gap: 8px; padding: 8px 4px; border: 0; font: 600 13px var(--mono); }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item:hover, .text-button:hover, .source-link:hover { color: var(--link-hover); }
.nav-divider { width: 1px; height: 21px; background: var(--rule, #b8b8ac); }
.sound-button, .close-button { width: 36px; height: 35px; justify-content: center; background: var(--control-fill, var(--panel)); border: 1.5px solid var(--frame); border-radius: 5px; }
.sound-button:enabled:hover, .close-button:enabled:hover { background: var(--control-hover, #e9e8d8); }
.sound-button[aria-pressed=true] { color: var(--active-control-ink, var(--ink)); background: var(--control-on, #ceebce); }
.sound-button .icon { width: 18px; height: 18px; }
.theme-control {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--ink);
  background: var(--control-fill, var(--panel));
  border: 1.5px solid var(--frame);
  border-radius: 5px;
}
.theme-control select {
  display: block;
  min-height: 32px;
  margin: 0;
  padding: 5px 25px 5px 32px;
  font: 600 12px/1.3 var(--mono);
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.theme-control option { color: var(--ink); background: var(--panel); }
.theme-control .icon { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.theme-symbol { left: 9px; width: 16px; height: 16px; }
.theme-chevron { right: 8px; width: 12px; height: 12px; }
.theme-control:hover { background: var(--control-hover, #e9e8d8); }
.theme-control:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.theme-control select:focus-visible { outline: none; }
.theme-control:has(select:disabled) { background: var(--disabled-fill, #e7e7db); color: var(--muted); }
.page { padding-block: clamp(24px, 3.6vw, 42px) 40px; }
.console { border: 2px solid var(--frame); border-radius: 10px; box-shadow: 4px 5px 0 var(--window-shadow); background: var(--panel); overflow: clip; }
.window-bar, .dialog-top { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 17px; background: var(--chrome); border-bottom: 2px solid var(--frame); font: 500 11px/1.3 var(--mono); }
.file-label, .file-date, .dialog-top > span { display: inline-flex; align-items: center; gap: 11px; }
.file-label { font-weight: 600; letter-spacing: .035em; }
.window-lights { display: inline-flex; align-items: center; gap: 5px; }
.window-lights i { width: 9px; height: 9px; border: 1px solid var(--frame); background: #ee8d64; border-radius: 50%; display: block; }
.window-lights i:nth-child(2) { background: #edc570; }
.window-lights i:nth-child(3) { background: #86b298; }
.file-date { gap: 6px; text-transform: uppercase; font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.file-date .icon { width: 14px; height: 14px; }
.hero, .result-screen {
  position: relative;
  isolation: isolate;
  background-color: #021c1b;
  background-image: var(--workstation-art);
  background-size: cover;
  background-position: center;
  color: var(--on-art);
}
.hero { display: flex; align-items: center; aspect-ratio: 3.12; min-height: 305px; }
.hero-copy { position: relative; z-index: 1; width: 52%; padding: 27px 0 31px clamp(25px, 4.2vw, 52px); }
.build-tag { display: inline-flex; align-items: center; gap: 9px; padding: 5px 9px; border: 1px solid #6aa994; background: #0a2e29e8; color: #a0e7bc; font: 600 10px/1.3 var(--mono); letter-spacing: .09em; }
.signal { height: 12px; display: inline-flex; align-items: end; gap: 2px; }
.signal i { width: 3px; height: 4px; background: #98e5b2; }
.signal i:nth-child(2) { height: 7px; }
.signal i:nth-child(3) { height: 10px; }
.pixel-title, .outcome h1 { font-family: var(--pixel); font-weight: 400; font-synthesis: none; }
.hero h1 { margin: 15px 0 15px; font-size: clamp(49px, 5.75vw, 77px); line-height: 1; letter-spacing: -.035em; color: #fff6d8; text-shadow: 2px 3px 0 #24463b; }
.cursor, .accent { color: #ff9450; }
.cursor { display: inline-block; margin-left: 3px; }
.hero-copy > p { font: 400 clamp(12px, 1.2vw, 15px)/1.65 var(--mono); color: #d3e7d9; text-shadow: 0 1px 2px #001c1b; }
.launch-deck, .reveal-actions { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.launch-deck { padding: 18px 25px 19px; border-top: 2px solid var(--frame); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.button { min-height: 44px; padding: 11px 18px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font: 600 14px/1.3 var(--mono); border: 1.8px solid var(--frame); border-radius: 5px; box-shadow: 2px 3px 0 var(--shadow); transition: background-color .12s, transform .12s, box-shadow .12s; }
.button .icon { width: 18px; height: 18px; stroke-width: 2; }
.button.primary { color: var(--button-ink); background: var(--orange); border-color: var(--primary-frame, var(--frame)); }
.button.secondary { background: var(--control-fill, #f8f5e8); }
.button.primary:not(:disabled):hover { background: var(--primary-hover); }
.button.secondary:not(:disabled):hover { background: var(--control-hover, #edecdc); }
.button:not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 3px 4px 0 var(--shadow); }
.button:not(:disabled):active { transform: translate(2px, 2px); box-shadow: 0 1px 0 var(--shadow); }
.button:disabled { color: var(--muted); background: var(--disabled-fill, #e7e7db); border-color: var(--line); box-shadow: none; }
.specs, .specs span { display: inline-flex; align-items: center; }
.specs { gap: 15px; font: 500 12px var(--mono); color: var(--readout, #46524b); }
.specs span { gap: 7px; white-space: nowrap; }
.specs .icon { width: 17px; height: 17px; }
.specs > i { height: 16px; width: 1px; background: var(--rule, #b9bba9); }

.rarity-guide, .review-section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: 13px; }
.section-heading h2 { display: inline-flex; align-items: center; gap: 9px; font: 750 23px/1.2 var(--sans); letter-spacing: -.045em; }
.section-heading h2 .icon { width: 20px; height: 20px; stroke-width: 1.8; }
.section-heading p { color: var(--muted); font: 400 11px/1.5 var(--mono); }
.section-heading p span { color: var(--ink); }
.tier-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tier-direction { display: inline-flex; align-items: center; gap: 7px; }
.tier-direction .icon { width: 17px; height: 15px; }
.hdd, .common { --tone: #b8d8eb; --tint: #e0edf2; --tone-ink: #284b61; }
.ssd { --tone: #efa27b; --tint: #f8e1d2; --tone-ink: #783d20; }
.ram, .uncommon { --tone: #b5dcb0; --tint: #dfedd6; --tone-ink: #2c5538; }
.cache, .rare { --tone: #cbb9ec; --tint: #ece4f6; --tone-ink: #544071; }
.register, .deep-cut { --tone: #f5ce80; --tint: #faecca; --tone-ink: #67491b; }
.miss { --tone: #b8bab0; --tint: #e7e7de; --tone-ink: #454a43; }
/* The progress segments use the bright hardware color. Labels sit on a
   separate, darker tint so the colored text stays readable. */
:root[data-theme="dark"] :is(.hdd, .common) {
  --tone: #8dc8e8; --tint: #2a4452; --tone-ink: #aee0fa; --tier-surface: #1b2d35; --tier-frame: #638da2;
}
:root[data-theme="dark"] .ssd {
  --tone: #f1a577; --tint: #4d352a; --tone-ink: #ffc5a1; --tier-surface: #32271f; --tier-frame: #a47458;
}
:root[data-theme="dark"] :is(.ram, .uncommon) {
  --tone: #9ad494; --tint: #2b4430; --tone-ink: #bbebae; --tier-surface: #203026; --tier-frame: #6a9468;
}
:root[data-theme="dark"] :is(.cache, .rare) {
  --tone: #c7abea; --tint: #3c344d; --tone-ink: #decdff; --tier-surface: #2c2635; --tier-frame: #8c72aa;
}
:root[data-theme="dark"] :is(.register, .deep-cut) {
  --tone: #f1c476; --tint: #4c3e27; --tone-ink: #ffdc93; --tier-surface: #332d21; --tier-frame: #a98951;
}
:root[data-theme="dark"] .miss {
  --tone: #a1afa6; --tint: #35403b; --tone-ink: #d5dcd3; --tier-surface: #28332d; --tier-frame: #79867c;
}
:root[data-theme="dark"] .tier-name { color: var(--tone-ink); }
.tier-card { min-height: 85px; padding: 12px; display: flex; align-items: center; gap: 10px; position: relative; border: 1.5px solid var(--frame); border-radius: 6px; box-shadow: 2px 2px 0 var(--card-shadow); background: var(--tier-surface, var(--panel)); border-color: var(--tier-frame, var(--frame)); }
.tier-visual, .outcome-sprite { display: grid; place-items: center; flex-shrink: 0; background-color: var(--tint); border: 1px solid var(--tier-frame, color-mix(in srgb, var(--tone-ink) 60%, var(--panel))); border-radius: 4px; }
.tier-visual { width: 48px; height: 48px; }
.tier-visual .sprite { width: 42px; height: 42px; }
.tier-info { align-self: center; min-width: 0; }
.tier-name { display: block; font-size: 16px; line-height: 1.25; font-weight: 750; letter-spacing: -.04em; }
.tier-description { display: block; margin-top: 4px; font: 400 11px/1.4 var(--mono); color: var(--muted); }
.tier-points { position: absolute; right: 7px; top: 7px; padding: 1px 4px; border: 1px solid var(--tier-frame, color-mix(in srgb, var(--tone-ink) 50%, white)); background: var(--tint); color: var(--tone-ink); border-radius: 3px; font: 600 10px/1.4 var(--mono); }
.site-footer { margin-top: auto; }
.footer-inner { padding: 15px 0 21px; border-top: 1px solid var(--rule, #a6ad9f); display: flex; justify-content: space-between; align-items: center; gap: 18px; font: 400 11px/1.5 var(--mono); color: var(--muted); }
.footer-credit, .reset-clock { display: inline-flex; align-items: center; gap: 8px; }
.footer-credit .icon { width: 15px; height: 15px; }
.reset-clock time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.status-pixel { display: inline-block; width: 7px; height: 7px; background: var(--meter-fill, #5ca479); border: 1px solid var(--meter-border, #28583f); }

/* Live rounds and answer reveals share the same terminal frame. */
.round-screen { position: relative; padding: 25px clamp(20px, 4vw, 42px) 31px; color: #fff8df; background-color: var(--console); background-image: radial-gradient(#92b79d29 .8px, transparent .9px); background-size: 8px 8px; }
.round-status, .round-nav, .question-clock { display: flex; align-items: center; }
.round-status { justify-content: space-between; gap: 16px; }
.round-nav { gap: 14px; font: 600 12px/1.3 var(--mono); letter-spacing: .06em; }
.muted-on-dark { color: #a6c0b6; }
.round-track { display: flex; gap: 4px; }
.round-track > i { width: 19px; height: 7px; background: #2b4c46; border: 1px solid #5c8171; }
.round-track > i.current { background: #f99a5c; border-color: #f99a5c; }
.round-track > i[class]:not([class=""]):not(.current) { background: var(--tone); border-color: var(--tone); }
.question-clock { color: #c1f3cd; border: 1px solid #719c85; border-radius: 4px; padding: 5px 9px; gap: 6px; font: 600 13px var(--mono); min-width: 66px; justify-content: center; font-variant-numeric: tabular-nums; }
.question-clock .icon { width: 16px; height: 16px; }
.question-clock.urgent { color: #ffbd97; border-color: #f2a56e; }
.topic, .outcome-kicker, .quiet-score, .dialog-eyebrow { font: 600 10.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.topic { margin: 29px 0 10px; display: flex; flex-wrap: wrap; gap: 9px; color: #b5d0c0; }
.topic span { color: var(--mint); }.topic i { font-style: normal; color: #8baa9a; }
.round-screen #question-title { max-width: 830px; font: 650 clamp(26px, 3.1vw, 40px)/1.22 var(--sans); letter-spacing: -.035em; text-wrap: pretty; overflow-wrap: anywhere; }
@media (min-width: 760px) {
  .round-screen { isolation: isolate; min-height: 218px; }
  .round-screen::before { content: ""; position: absolute; z-index: -1; bottom: 0; right: 1%; width: 32%; height: 86%; background: linear-gradient(0deg, transparent 57%, var(--console) 100%), var(--workstation-art) 87% bottom / auto 100%; mask-image: linear-gradient(90deg, transparent 0%, black 30%, black 84%, transparent 100%); opacity: var(--machine-light); }
  .round-screen #question-title { max-width: 72%; }
  .question-clock, .quiet-score { background-color: var(--console); }
  .reveal-screen::before { right: 13%; }
}
.timer-track { position: absolute; height: 4px; bottom: 0; left: 0; right: 0; background: #304c44; }
.timer-track i { display: block; height: 100%; background: #94d7a6; transform-origin: left; transition: transform .2s linear; }
.answer-deck, .reveal-deck { padding: 24px clamp(20px, 4vw, 42px); }
.answer-deck label { display: block; margin-bottom: 9px; font: 600 13px var(--mono); }
.answer-row { display: flex; gap: 12px; }
.input-wrap { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--inset, #fffef9); border: 1.8px solid var(--frame); border-radius: 5px; padding: 0 14px; }
.input-wrap:focus-within { box-shadow: 0 0 0 2px var(--field-ring, #6fa68a); }
.input-wrap:has([aria-invalid=true]) { border-color: var(--danger, #ae5428); }
.input-wrap > span:first-child { font: 600 20px var(--mono); color: var(--field-prompt, #3e7557); }
.input-wrap input { display: block; width: 100%; min-width: 0; min-height: 46px; border: none; outline: none; background: transparent; font: 500 16px var(--mono); }
.input-wrap input:focus-visible { outline: none; }.input-wrap input::placeholder { color: var(--placeholder, #7b8177); opacity: 1; }
.input-wrap input { caret-color: var(--field-prompt, var(--ink)); }
.input-wrap:has(input:disabled) { background: var(--disabled-fill, #e7e7db); }
.input-wrap input:disabled { color: var(--muted); -webkit-text-fill-color: var(--muted); opacity: 1; cursor: not-allowed; }
.input-wrap:has([aria-invalid=true]):focus-within { box-shadow: 0 0 0 2px var(--danger, #ae5428); }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 12px; }
.form-bottom p { font: 400 12px/1.6 var(--mono); color: var(--muted); }
.answer-deck:has([aria-invalid=true]) #answer-message { color: var(--danger, #99401e); }
.text-button, .source-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; font: 600 12px/1.4 var(--mono); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.text-button { color: var(--text-link, inherit); }
.text-button .icon, .source-link .icon { width: 14px; height: 14px; }
.power-meter { display: flex; gap: 20px; align-items: center; margin-top: 25px; border: 1.5px solid var(--frame); box-shadow: 2px 2px 0 var(--shadow); border-radius: 6px; padding: 13px 22px; background: var(--panel); }
.power-caption { display: flex; gap: 10px; align-items: center; }
.power-caption strong, .power-caption span { display: block; }
.power-caption strong { font-weight: 750; font-size: 15px; line-height: 1.2; }
.power-caption span { color: var(--muted); font: 400 11px var(--mono); }
.meter { flex: 1; height: 15px; background-color: var(--meter-track, #d2d3c5); border: 1px solid var(--meter-border, #718475); position: relative; }
.meter span { display: block; height: 100%; background: var(--meter-fill, #53a87b); }
.meter::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to right,transparent 0,transparent calc(100% / 14 - 2px),var(--panel) calc(100% / 14 - 2px),var(--panel) calc(100% / 14)); }
.power-score { font: 400 12px var(--mono); white-space: nowrap; }
.power-score b { font-size: 16px; }
.reveal-screen { padding-bottom: 24px; }
.quiet-score { color: #bdd6c4; }
.outcome { margin: 23px 0 12px; display: flex; align-items: center; gap: 14px; }
.outcome-sprite { width: 68px; height: 68px; border-width: 2px; }
.outcome-kicker { color: #a6dfb6; margin-bottom: 5px; }
.outcome h1 { font-size: clamp(31px, 4.4vw, 52px); line-height: 1; letter-spacing: -.025em; }
.outcome-points { margin-left: auto; color: #a4eabe; font: 400 clamp(25px, 3.8vw, 48px)/1 var(--pixel); white-space: nowrap; }
.outcome-points small { font: 600 12px var(--mono); }
.answer-return { font: 400 13px/1.6 var(--mono); color: #cbe0d3; overflow-wrap: anywhere; }
.answer-return strong { color: #fff9e4; }.answer-return span { font-size: 11px; }
.reveal-deck h2, .review-detail h3 { font: 700 19px/1.4 var(--sans); letter-spacing: -.02em; }
.explanation { margin: 12px 0; max-width: 800px; }
.explanation > p { font-size: 15px; color: var(--readout, #425148); }
.explanation .earlier-award { margin-bottom: 8px; }
.explanation .discovery { display: flex; gap: 7px; align-items: center; color: var(--ink); font: 400 12px/1.5 var(--mono); margin: 0 0 8px; }
.discovery strong { color: var(--gem-text, inherit); background: var(--gem-mark, #f6e7bd); padding: 1px 5px; }
.source-link { margin-top: 4px; font-size: 11px; color: var(--link); }
.answer-board { border-top: 1px solid var(--rule, #c2c9b7); border-bottom: 1px solid var(--rule, #c2c9b7); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.answer-board > summary { display: flex; gap: 7px; align-items: center; padding: 11px 2px; font: 600 12px var(--mono); }
.answer-board > summary span { color: var(--muted); }
.answer-board > summary .icon { width: 15px; height: 15px; margin-left: auto; }
details[open] > summary > .icon:last-child { transform: rotate(180deg); }
.board-tiers { padding: 0 6px 10px 0; max-height: min(44vh, 360px); overflow-y: auto; overscroll-behavior: contain; }
.board-tiers:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.board-tier { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; font: 400 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.board-rank { flex: 0 0 116px; padding: 3px 5px; border-radius: 2px; background: var(--tint); color: var(--tone-ink); font: 600 11px/1.5 var(--mono); }
.reveal-actions { justify-content: flex-end; margin-top: 19px; }

.result-screen { background-position: 55% center; padding: 26px clamp(20px, 4vw, 45px); }
.result-screen::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #011c1bed 10%, #011c1b99 55%, transparent 75%); }
.result-screen h1 { margin: 14px 0 9px; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; letter-spacing: -.035em; }
.final-score { display: flex; align-items: baseline; gap: 8px; }
.final-score strong { font: 400 46px/1.1 var(--pixel); color: #ffb47b; }
.final-score span, .result-screen > p:not(.build-tag) { font: 500 13px var(--mono); color: #d9e8da; }
.result-screen > p:not(.build-tag) { margin-top: 8px; }
.result-chips { display: flex; gap: 5px; margin-top: 13px; }
.result-chips > span { display: grid; place-items: center; width: 31px; height: 23px; font: 600 10px var(--mono); color: var(--tone-ink); background: var(--tone); border: 1px solid var(--tone-ink); border-radius: 2px; }
:root[data-theme="dark"] .result-chips > span { background: var(--tint); border-color: var(--tier-frame); }
.review-list { overflow: clip; border: 1.5px solid var(--frame); border-radius: 6px; box-shadow: 2px 2px 0 var(--shadow); background: var(--panel); }
.review-row + .review-row { border-top: 1px solid var(--rule, #bfc4b4); }
.review-row > summary { display: flex; align-items: center; gap: 15px; padding: 10px 18px; }
.review-row > summary:hover, .answer-board > summary:hover { background: var(--control-hover, #eaeede88); }
.row-number { color: var(--muted); font: 500 12px var(--mono); }
.review-badge { background: var(--tint); border-radius: 3px; width: 33px; height: 33px; display: grid; place-items: center; }
:root[data-theme="dark"] .review-badge { box-shadow: inset 0 0 0 1px var(--tier-frame); }
.review-name { min-width: 0; }
.review-name strong, .review-name small { display: block; }
.review-name strong { font-size: 15px; overflow-wrap: anywhere; }
.review-name small { color: var(--muted); font: 400 10px/1.4 var(--mono); }
.review-score { margin-left: auto; font: 600 14px var(--mono); }
.review-row > summary > .icon { width: 14px; height: 14px; }
.review-detail { padding: 6px 20px 18px; }

dialog { color: var(--ink); background: var(--panel); width: min(500px, calc(100% - 34px)); max-height: min(88svh, 760px); padding: 0; border: 2px solid var(--frame); border-radius: 8px; box-shadow: 5px 6px 0 var(--dialog-shadow); overflow-y: auto; }
dialog::backdrop { background: var(--backdrop, #102820a8); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { position: sticky; top: 0; z-index: 1; padding: 5px 10px 5px 16px; }
.dialog-top > span .icon { width: 15px; height: 15px; }
.close-button { display: inline-flex; align-items: center; width: 29px; height: 27px; border-radius: 3px; }
.close-button .icon { width: 14px; height: 14px; }
.dialog-body { padding: 22px 25px 25px; }
.dialog-eyebrow { color: var(--field-prompt, #437357); margin-bottom: 5px; }
.dialog-body h2 { font: 400 34px/1.2 var(--pixel); letter-spacing: -.035em; }
.dialog-body h3 { margin: 21px 0 10px; font-size: 17px; }
.rules { list-style: none; counter-reset: rules; margin: 19px 0; padding: 0; }
.rules li { counter-increment: rules; position: relative; padding-left: 33px; margin: 12px 0; }
.rules li::before { content: counter(rules, decimal-leading-zero); color: var(--field-prompt, #435c4c); font: 600 12px var(--mono); position: absolute; top: 3px; left: 0; background: var(--control-on, #e3ebd9); padding: 1px 4px; }
.rules strong { font-size: 15px; }
.rules p, .dialog-footnote { font-size: 13px; line-height: 1.55; color: var(--muted); }
.manual-example { padding: 12px 14px; border: 1px dashed var(--rule, #819581); background: var(--subtle-fill, #e9efdf); }
.manual-example > b { display: block; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.manual-example > span { display: block; font-size: 14px; margin: 3px 0; }
.manual-example p { font: 400 12px var(--mono); }.manual-example i { margin: 0 6px; }
.dialog-footnote { margin: 14px 0 0; }
.dialog-footnote + .button { margin-top: 15px; }
.stat-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.stat-blocks > div { padding: 12px 4px; text-align: center; background: var(--subtle-fill, #eeefdf); border: 1px solid var(--rule, #a8b19e); border-radius: 4px; }
.stat-blocks strong, .stat-blocks span { display: block; }
.stat-blocks strong { color: var(--field-prompt, #284b37); font: 400 28px var(--pixel); }
.stat-blocks span { font: 400 10px var(--mono); }
.empty-stats { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule, #c1c7b7); padding: 9px 0; font: 500 12px var(--mono); }
.history small { margin-left: 7px; color: var(--muted); }
#share-text { width: 100%; resize: vertical; margin: 15px 0; padding: 12px; font: 500 13px/1.7 var(--mono); border: 1.5px solid var(--frame); border-radius: 4px; background: var(--inset, #edf2e7); }

@media (max-width: 900px) {
  .nav { gap: 10px; }.nav-item { gap: 6px; font-size: 12px; }
  .tier-card { padding: 10px; gap: 7px; }
  .tier-visual { width: 40px; height: 42px; }.tier-visual .sprite { width: 36px; height: 36px; }
  .tier-name { font-size: 14px; }.tier-description { font-size: 10px; }
  .tier-points { position: absolute; right: 6px; top: 5px; font-size: 9px; padding: 0 3px; }
  .section-heading p { font-size: 10px; }
}
@media (max-width: 700px) {
  .header-inner, .page, .footer-inner { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; gap: 10px; }
  .brand { gap: 8px; }.brand img { width: 38px; height: 38px; }.wordmark { font-size: 30px; }
  .nav { gap: 8px; }.nav-item { font-size: 12px; gap: 5px; }
  /* The select still covers the full target and opens the platform picker. */
  .theme-control { width: 36px; height: 35px; }
  .theme-control select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; font-size: 16px; opacity: 0; }
  .theme-control .theme-symbol { left: 50%; transform: translate(-50%, -50%); }
  .theme-control .theme-chevron { display: none; }
  .page { padding-block: 22px 30px; }
  .hero { min-height: 266px; }.hero-copy { padding-left: 24px; width: 55%; }
  .hero h1 { font-size: clamp(40px, 7.8vw, 55px); }
  .hero-copy > p { font-size: 11px; }
  .launch-deck { flex-wrap: wrap; gap: 15px; padding: 14px 17px 16px; }
  .specs { font-size: 10px; gap: 9px; }.specs .icon { width: 14px; height: 14px; }
  .button { font-size: 13px; padding: 10px 13px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tier-card { min-height: 72px; padding: 9px; }
  .tier-name { font-size: 15px; }.tier-description { font-size: 11px; }
  .tier-card.register { grid-column: 1 / -1; }
  .tier-points { position: static; padding: 1px 4px; margin-left: auto; }
  .rarity-guide, .review-section { margin-top: 28px; }
  .round-screen { padding-top: 20px; }.round-track > i { width: 12px; }
  .footer-inner { font-size: 10px; }
}
@media (max-width: 520px) {
  .header-inner, .page, .footer-inner { width: calc(100% - 28px); }
  .brand { gap: 6px; }.brand img { width: 33px; height: 33px; }.wordmark { font-size: 28px; }
  .header-inner { gap: 8px; }
  .nav { gap: 4px; }.nav-item { justify-content: center; }.nav-item span { display: none; }
  .nav-item, .theme-control, .sound-button { flex: 0 0 38px; width: 38px; height: 40px; min-width: 38px; }
  .nav-item .icon { width: 18px; height: 18px; }.nav-divider { height: 18px; margin: 0 2px; }
  .page { padding-top: 17px; }.console { border-radius: 7px; box-shadow: 3px 4px 0 var(--window-shadow); }
  .window-bar { min-height: 33px; padding: 6px 9px; gap: 5px; font-size: 10px; }.file-label { gap: 7px; }.window-lights { gap: 3px; }.window-lights i { width: 7px; height: 7px; }
  .file-date { font-size: 8px; letter-spacing: .025em; gap: 4px; }.file-date .icon { width: 11px; height: 11px; }
  .hero { --art-height: clamp(125px, 36vw, 165px); aspect-ratio: auto; min-height: 258px; display: flex; align-items: flex-start; background-size: auto var(--art-height); background-position: right top; background-repeat: no-repeat; }
  .hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,transparent 0,transparent calc(var(--art-height) - 33px),#021c1b var(--art-height)),linear-gradient(90deg,#021c1b9c 0%,transparent 58%); }
  .hero-copy { padding: 19px 17px 18px; width: 100%; }
  .build-tag { font-size: 8px; padding: 4px 6px; gap: 5px; }.signal { transform: scale(.8); transform-origin: left bottom; }
  .hero h1 { margin: calc(var(--art-height) - 49px) 0 10px; font-size: clamp(40px, 11.5vw, 55px); line-height: .98; }
  .hero-copy > p { font-size: 11px; line-height: 1.6; }
  .launch-deck { display: block; padding: 14px; }.actions { flex-wrap: nowrap; gap: 9px; }
  .actions .button { flex: 1; white-space: nowrap; padding: 10px; gap: 6px; }.actions .primary { flex: 1.5; }
  .specs { display: flex; justify-content: center; margin-top: 14px; }
  .tier-grid { gap: 9px; }.tier-card { gap: 7px; min-height: 66px; padding: 8px; }.tier-visual { width: 34px; height: 37px; }.tier-visual .sprite { width: 31px; height: 31px; }
  .tier-points { position: absolute; top: 4px; right: 4px; padding: 0 3px; font-size: 8px; }.tier-name { font-size: 14px; }.tier-description { font-size: 10px; margin-top: 2px; }
  .tier-card.register .tier-points { position: static; align-self: center; margin-right: 5px; font-size: 11px; }
  .section-heading h2 { font-size: 21px; }.section-heading p { font-size: 10px; }
  .rarity-guide, .review-section { margin-top: 24px; }
  .footer-inner { flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding-bottom: 14px; }
  .round-nav { gap: 7px; font-size: 10px; }.round-track { gap: 2px; }.round-track > i { width: 9px; height: 6px; }
  .round-screen { padding: 16px 15px 22px; }.round-screen #question-title { font-size: 25px; }
  .topic { margin-top: 20px; gap: 6px; font-size: 9px; }.question-clock { font-size: 11px; min-width: 52px; padding: 4px 6px; }
  .answer-deck, .reveal-deck { padding: 17px 14px; }.answer-row { gap: 7px; }.answer-row .button { padding-inline: 11px; }
  .input-wrap { padding-inline: 9px; gap: 5px; }.form-bottom p { font-size: 10px; }.form-bottom { gap: 8px; }
  .power-meter { padding: 10px; gap: 10px; margin-top: 17px; }.power-caption { gap: 5px; }.power-caption .sprite { width: 28px; height: 28px; }.power-caption strong { font-size: 12px; }.power-caption span { font-size: 9px; }.power-score { font-size: 10px; }.power-score b { font-size: 13px; }
  .quiet-score { font-size: 8px; }.outcome { gap: 8px; }.outcome-sprite { width: 46px; height: 46px; }.outcome-sprite .sprite { width: 40px; height: 40px; }.outcome h1 { font-size: 29px; }.outcome-kicker { font-size: 8px; }.outcome-points { font-size: 24px; }.outcome-points small { font-size: 9px; }
  .answer-return,.board-tier { font-size: 11px; }.board-tier { gap: 7px; }.board-rank { flex-basis: 95px; font-size: 9px; }
  .reveal-deck h2, .review-detail h3 { font-size: 17px; }.explanation > p { font-size: 14px; }.explanation .discovery { font-size: 10px; }
  .result-screen { padding: 20px 16px; background-position: 62% center; }.result-screen::before { background: linear-gradient(90deg,#011c1bf5 10%,#011c1bcf 68%,#011c1b55); }
  .results-console .launch-deck > .text-button { display: flex; margin: 12px auto 0; }
  .review-row > summary { gap: 9px; padding: 9px 10px; }.review-detail { padding: 7px 12px 13px; }
  .dialog-body { padding: 18px; }.dialog-body h2 { font-size: 29px; }.history small { display: block; margin-left: 0; }
}
@media (max-width: 375px) {
  .header-inner { gap: 5px; }
  .nav { gap: 3px; }.nav-divider { display: none; }
}
@media (max-width: 350px) {
  .header-inner { gap: 4px; width: calc(100% - 20px); }
  .brand { gap: 4px; }.brand img { width: 27px; height: 27px; }.wordmark { font-size: 24px; }
  .nav-item, .theme-control, .sound-button { flex-basis: 34px; width: 34px; min-width: 34px; }
  .tier-card { gap: 4px; padding: 6px; }.tier-name { font-size: 12px; }.tier-description { font-size: 9px; }
  .file-date .icon, .answer-row .button .icon { display: none; }
  .actions .button { font-size: 11px; }.nav { gap: 2px; }
  .section-heading p span { display: block; }
}
@media (max-width: 310px) {
  body { min-width: 0; }
  .header-inner { width: calc(100% - 12px); }
  .page, .footer-inner { width: calc(100% - 20px); }
  .brand img { width: 23px; height: 23px; }.wordmark { font-size: 21px; }
  .nav-item, .theme-control, .sound-button { flex-basis: 32px; width: 32px; min-width: 32px; }
  .actions { gap: 6px; }.actions .button { min-width: 0; padding-inline: 6px; gap: 4px; white-space: normal; }
  .launch-deck { padding-inline: 10px; }
}
@media (pointer: coarse) {
  #share-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
