.theme-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0 0}.theme-caption{font:11px var(--mono);letter-spacing:1.4px;color:var(--muted)}.theme-options{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.theme-options button{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 13px;background:transparent;border:1px solid transparent;border-radius:4px;font:12px var(--sans);color:var(--muted);min-height:36px}.theme-options button[aria-pressed=true]{border-color:var(--line);background:var(--bg);color:var(--text)}.theme-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.amber-dot{background:#ffc278}.terminal-dot{background:#91d8f7}.original-dot{background:#cdf68a}
html[data-theme=amber]{--bg:#111110;--surface:#1b1916;--line:#36312a;--muted:#aaa398;--text:#f3eee6;--lime:#ffc278;--orange:#e99d72;--serif:'DM Sans',Arial,sans-serif;--board-light:#e0d7c8;--board-dark:#837262;--board-last:#efd09a;--board-last-dark:#c2a06a;--board-border:#3b342c}
html[data-theme=terminal]{--bg:#0d141b;--surface:#131e28;--line:#2d3d4c;--muted:#9baebd;--text:#e6eff5;--lime:#91d8f7;--orange:#efb67c;--sans:ui-monospace,'Cascadia Code',Consolas,monospace;--serif:ui-monospace,'Cascadia Code',Consolas,monospace;--board-light:#d6e1e7;--board-dark:#698292;--board-last:#b1e0ee;--board-last-dark:#7fb3c9;--board-border:#2d404f}
html:not([data-theme=original]) .intro h1{font-size:clamp(32px,3.8vw,52px);font-weight:600;letter-spacing:-2px;line-height:1.1}html:not([data-theme=original]) .intro em{font-style:normal;font-weight:600}html:not([data-theme=original]) .player-heading h2{font-size:30px;font-weight:500;letter-spacing:-1px}html:not([data-theme=original]) .panel-title h2{font-size:21px;font-weight:500;letter-spacing:-.5px}html:not([data-theme=original]) .scoreboard strong{font-weight:500;font-size:40px}html:not([data-theme=original]) .fly-stage{background:radial-gradient(ellipse at 50% 60%,var(--surface),var(--bg));border-color:var(--line)}html:not([data-theme=original]) .specimen.active .fly-stage{border-color:var(--lime)}html:not([data-theme=original]) .view-kicker,html:not([data-theme=original]) .view-hint,html:not([data-theme=original]) .reset-view{color:var(--muted)}html:not([data-theme=original]) .board-shell{border-color:var(--board-border)}html:not([data-theme=original]) .square{background:var(--board-light)}html:not([data-theme=original]) .square.dark{background:var(--board-dark)}html:not([data-theme=original]) .square.last{background:var(--board-last)}html:not([data-theme=original]) .square.dark.last{background:var(--board-last-dark)}html:not([data-theme=original]) .square.check{background:#e59781}html:not([data-theme=original]) .square .coord{color:#36424a}html:not([data-theme=original]) .square.dark .coord{color:#f6f4ee}html:not([data-theme=original]) .primary-button{color:#1b1c1e}html:not([data-theme=original]) .speed-control button.selected,html:not([data-theme=original]) .move-san.latest,html:not([data-theme=original]) .icon-button:hover{background:var(--surface)}html:not([data-theme=original]) .move-san{color:var(--text)}html:not([data-theme=original]) .move-san.latest{color:var(--lime)}html:not([data-theme=original]) .game-overlay{background:color-mix(in srgb,var(--bg) 94%,transparent)}html:not([data-theme=original]) .live-dot{box-shadow:none}html:not([data-theme=original]) dialog{background:var(--bg);border-color:var(--line)}
html[data-theme=terminal] .intro h1{font-size:clamp(28px,3.2vw,44px);font-weight:400;letter-spacing:-1.7px}html[data-theme=terminal] .intro em{font-weight:400}html[data-theme=terminal] .brand{letter-spacing:1px;font-size:21px}html[data-theme=terminal] .player-heading h2{font-size:26px;letter-spacing:-1px}html[data-theme=terminal] .panel-title h2{font-size:18px}html[data-theme=terminal] .fly-stage,html[data-theme=terminal] .brain-stage,html[data-theme=terminal] .board-shell,html[data-theme=terminal] .primary-button,html[data-theme=terminal] .theme-options,html[data-theme=terminal] .theme-options button{border-radius:0}html[data-theme=terminal] .intro-copy>p:last-child{font-size:13px}html[data-theme=terminal] .specimen-label{letter-spacing:1.2px}
@media(max-width:800px){.theme-bar{padding-top:14px;justify-content:center}.theme-caption{display:none}.theme-options{width:100%;max-width:440px}.theme-options button{flex:1;padding:8px 6px;font-size:12px}.intro{padding-top:24px}html:not([data-theme=original]) .intro h1{font-size:38px}html[data-theme=terminal] .intro h1{font-size:32px}html:not([data-theme=original]) .player-heading h2{font-size:26px}html[data-theme=terminal] .player-heading h2{font-size:23px}html:not([data-theme=original]) .panel-title h2{font-size:20px}html[data-theme=terminal] .panel-title h2{font-size:17px}}

.broadcast-badge{font:11px var(--mono);letter-spacing:1px;color:var(--muted);padding:10px;border:1px solid var(--line)}
.site-header nav .social-x{width:38px;height:38px;flex-shrink:0;justify-content:center;border:1px solid var(--line);border-radius:6px;color:var(--text);background:var(--surface)}.social-x svg{width:17px;height:17px}.site-header nav .social-x:hover{color:var(--lime);border-color:var(--lime)}@media(max-width:600px){.site-header{gap:12px}.site-header nav{gap:12px}.site-header nav .nav-active{display:none}.site-header nav .text-button{font-size:12px}}
