@font-face { font-family: 'Fraunces Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/fraunces-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Fraunces Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/fraunces-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fraunces Variable'; font-style: italic; font-display: swap; font-weight: 100 900; src: url(../fonts/fraunces-latin-wght-italic.woff2) format('woff2-variations'); }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --bg: #6a4a2a;
  --bg-glow: #b38552;
  --panel: rgba(24, 19, 15, 0.74);
  --panel-solid: #18130f;
  --panel-hi: rgba(255, 238, 214, 0.06);
  --line: rgba(255, 236, 210, 0.1);
  --line-strong: rgba(255, 236, 210, 0.18);
  --text: #f4ebdd;
  --muted: #b3a491;
  --faint: #7d705f;
  --gold: #dcb46c;
  --gold-soft: rgba(220, 180, 108, 0.16);
  --live: #ff5d50;
  --win: #9fd38a;
  --radius: 14px;
  --serif: 'Fraunces Variable', Georgia, serif;
  --sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --top-h: 60px;
  --lib-w: 372px;
  --moves-w: 292px;
  color-scheme: dark;
}
:root[data-scene='chessmate'] { --bg: #8f7658; --bg-glow: #bea07e; }
:root[data-scene='marble'] { --bg: #0c0f11; --bg-glow: #1e2629; }
:root[data-scene='rosewood'] { --bg: #100a08; --bg-glow: #2e1710; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: radial-gradient(ellipse 80% 70% at 50% 42%, var(--bg-glow), var(--bg) 70%) var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background 0.6s;
}
button, select, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }

/* ---------- glass surfaces ---------- */
.library, .moves-panel, .controls, .player-card, .topbar .pill-select, .toast {
  background: var(--panel);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.icon-btn:hover { background: var(--panel-hi); color: var(--text); }
.icon-btn.on { color: var(--gold); background: var(--gold-soft); }
.icon-btn:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: linear-gradient(to bottom, rgba(8, 6, 5, 0.75), transparent);
  z-index: 20; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { font-family: var(--serif); font-size: 21px; font-weight: 560; letter-spacing: 0.01em; white-space: nowrap; }
.brand em { font-style: italic; font-weight: 400; color: var(--gold); }
.event-line { flex: 1; min-width: 0; text-align: center; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-line b { color: var(--text); font-weight: 560; }
.top-actions { display: flex; align-items: center; gap: 4px; }
.pill-select {
  appearance: none; height: 34px; border-radius: 999px; padding: 0 30px 0 14px; margin-right: 6px;
  font-size: 13px; color: var(--text);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b3a491' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.pill-select option { background: var(--panel-solid); }
#btnSound:not(.on) .wave { opacity: 0.25; }

/* ---------- library ---------- */
.library {
  position: fixed; top: calc(var(--top-h) + 4px); left: 14px; bottom: 14px; width: var(--lib-w);
  border-radius: var(--radius); z-index: 15;
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(-100% - 30px)); transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
body.lib-open .library { transform: none; }
.lib-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 0 12px; }
.tabs { display: flex; gap: 2px; flex: 1; background: rgba(0,0,0,0.25); border-radius: 10px; padding: 3px; }
.tabs button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 7px 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.tabs button.active { background: var(--panel-hi); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.close-lib { display: none; }
.tab-body { flex: 1; overflow-y: auto; padding: 14px 12px 18px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.lib-note { color: var(--muted); margin: 0 4px 12px; font-size: 13px; }
.lib-note code { font-family: var(--mono); font-size: 12px; }

.event-card {
  position: relative; border-radius: 12px; overflow: hidden; padding: 16px 16px 14px;
  background: linear-gradient(160deg, rgba(220,180,108,0.16), rgba(0,0,0,0.2)), var(--bg-img, none) center/cover;
  border: 1px solid var(--line-strong); margin-bottom: 12px;
}
.event-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,11,9,0.95) 20%, rgba(14,11,9,0.55)); }
.event-card > * { position: relative; }
.event-card .kicker { display: flex; gap: 8px; align-items: center; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.event-card h2 { font-family: var(--serif); font-weight: 520; font-size: 22px; line-height: 1.15; margin: 6px 0 4px; }
.event-card .sub { color: var(--muted); font-size: 12.5px; }
.back-link { border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 0 4px 10px; }
.back-link:hover { color: var(--text); }

.live-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; color: var(--live); }
.live-pill::before, .live-btn .dot { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,93,80,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,93,80,0.55); } 70% { box-shadow: 0 0 0 7px rgba(255,93,80,0); } 100% { box-shadow: 0 0 0 0 rgba(255,93,80,0); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 11px; font-size: 12px; color: var(--muted); }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { background: var(--gold-soft); border-color: rgba(220,180,108,0.5); color: var(--text); }
.round-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.round-row select { flex: 1; height: 34px; border-radius: 9px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); padding: 0 10px; }
.round-row .count { color: var(--faint); font-size: 12px; white-space: nowrap; }

.match { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: rgba(0,0,0,0.16); }
.match-head { display: flex; justify-content: space-between; gap: 8px; padding: 7px 11px; font-size: 12px; color: var(--muted); background: rgba(255,238,214,0.035); border-bottom: 1px solid var(--line); }
.match-head b { color: var(--text); font-weight: 600; }
.match-head .score { font-family: var(--mono); color: var(--gold); }
.game-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  width: 100%; border: 0; background: transparent; text-align: left; padding: 8px 11px; font-size: 12.5px;
  border-top: 1px solid var(--line);
}
.game-row:first-of-type { border-top: 0; }
.game-row:hover { background: var(--panel-hi); }
.game-row.active { background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.game-row .pl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-row .pl.b { text-align: right; }
.game-row .pl small { color: var(--faint); font-family: var(--mono); font-size: 11px; margin-left: 4px; }
.game-row .pl.b small { margin: 0 4px 0 0; }
.title { font-size: 10px; font-weight: 700; color: var(--gold); margin-right: 3px; letter-spacing: 0.02em; }
.game-row .mid { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: center; min-width: 48px; }
.game-row .mid.live { color: var(--live); }
.game-row .mid .w { color: var(--text); }

.section-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 18px 4px 8px; }
.search { width: 100%; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,0.3); padding: 0 12px; margin-bottom: 8px; }
.card-list { display: flex; flex-direction: column; gap: 6px; }
.list-card {
  display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 11px;
  background: rgba(0,0,0,0.16); padding: 10px 12px;
}
.list-card:hover { background: var(--panel-hi); border-color: var(--line-strong); }
.list-card.active { border-color: rgba(220,180,108,0.55); background: var(--gold-soft); }
.list-card .t { font-weight: 560; display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.list-card .t .nick { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.list-card .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.list-card .r { font-family: var(--mono); font-size: 11.5px; color: var(--gold); white-space: nowrap; }

.drop { display: block; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; margin-bottom: 10px; }
.drop.over { border-color: var(--gold); color: var(--text); background: var(--gold-soft); }
#pgnText { width: 100%; height: 130px; resize: vertical; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,0.3); padding: 10px; font: 12px/1.5 var(--mono); }
.btn-primary { width: 100%; margin: 8px 0 14px; height: 38px; border-radius: 10px; border: 0; background: var(--gold); color: #1b140c; font-weight: 650; }
.btn-primary:hover { filter: brightness(1.08); }
.skeleton { height: 38px; border-radius: 9px; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07), rgba(255,255,255,0.03)); background-size: 200% 100%; animation: sheen 1.3s infinite; margin-bottom: 6px; }
@keyframes sheen { to { background-position: -200% 0; } }
.empty { color: var(--faint); font-size: 12.5px; padding: 8px 4px; }

/* ---------- player cards ---------- */
.player-card {
  position: fixed; left: calc(50% - (var(--moves-w) + 14px) / 2); transform: translateX(-50%); z-index: 12;
  display: flex; align-items: center; gap: 12px; padding: 7px 8px 7px 14px; border-radius: 999px;
  max-width: min(560px, calc(100vw - 24px)); min-width: 280px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
body.lib-open .player-card { left: calc(50% + (var(--lib-w) + 14px) / 2 - (var(--moves-w) + 14px) / 2); }
.player-card.top { top: calc(var(--top-h) + 6px); }
.player-card.bottom { bottom: 88px; }
.player-card .swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 1px solid rgba(255,255,255,0.25); }
.player-card .swatch.w { background: radial-gradient(circle at 35% 30%, #fff8ea, #d9c29a); }
.player-card .swatch.b { background: radial-gradient(circle at 35% 30%, #5a4a3e, #0d0806); }
.player-card .who { flex: 1; min-width: 0; }
.player-card .name { font-family: var(--serif); font-size: 16.5px; font-weight: 520; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-card .meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-card .meta .elo { font-family: var(--mono); color: var(--text); opacity: 0.85; }
.player-card .res { font-family: var(--mono); font-weight: 600; color: var(--gold); font-size: 15px; padding: 0 4px; }
.clock { font: 500 17px/1 var(--mono); padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,0.35); color: var(--muted); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.player-card.to-move { border-color: rgba(220,180,108,0.55); }
.player-card.to-move .clock { background: var(--gold); color: #1b140c; }
.player-card.low .clock { background: var(--live); color: #fff; }
.player-card:empty { display: none; }

/* ---------- moves panel ---------- */
.moves-panel {
  position: fixed; top: calc(var(--top-h) + 4px); right: 14px; bottom: 14px; width: var(--moves-w);
  border-radius: var(--radius); z-index: 14; display: flex; flex-direction: column; overflow: hidden;
}
.moves-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.opening { font-family: var(--serif); font-size: 15px; line-height: 1.25; }
.opening small { display: block; font-family: var(--sans); color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.result-tag { font-family: var(--mono); font-size: 13px; color: var(--gold); white-space: nowrap; }
.moves { list-style: none; margin: 0; padding: 6px 6px 10px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; counter-reset: none; }
.moves li { display: grid; grid-template-columns: 34px 1fr 1fr; align-items: stretch; border-radius: 6px; }
.moves li:nth-child(odd) { background: rgba(255,238,214,0.025); }
.moves .no { color: var(--faint); font: 12px/28px var(--mono); text-align: right; padding-right: 8px; }
.moves button { border: 0; background: transparent; text-align: left; padding: 0 8px; height: 28px; border-radius: 6px; font: 13px/28px var(--mono); display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.moves button:hover { background: var(--panel-hi); }
.moves button.cur { background: var(--gold); color: #1b140c; }
.moves button .clk { font-size: 10.5px; color: var(--faint); }
.moves button.cur .clk { color: rgba(27,20,12,0.7); }
.moves .result-li { grid-template-columns: 1fr; text-align: center; font: 13px/32px var(--mono); color: var(--gold); background: none !important; }
.game-meta { border-top: 1px solid var(--line); padding: 10px 14px 12px; font-size: 12px; color: var(--muted); display: grid; gap: 2px; }
.game-meta a { color: var(--gold); text-decoration: none; }
.game-meta a:hover { text-decoration: underline; }

/* ---------- controls ---------- */
.controls {
  position: fixed; bottom: 16px; left: calc(50% - (var(--moves-w) + 14px) / 2); transform: translateX(-50%); z-index: 16;
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 16px;
}
body.lib-open .controls { left: calc(50% + (var(--lib-w) + 14px) / 2 - (var(--moves-w) + 14px) / 2); }
.ctrl-group { display: flex; align-items: center; gap: 2px; }
.ctrl-group.cam { border-left: 1px solid var(--line); padding-left: 6px; }
.icon-btn.play { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: #1b140c; }
.icon-btn.play:hover { background: var(--gold); filter: brightness(1.08); color: #1b140c; }
.icon-btn.play svg { fill: currentColor; stroke: currentColor; }
.icon-btn.play .i-pause { display: none; fill: none; stroke-width: 2.6; }
body.playing .icon-btn.play .i-play { display: none; }
body.playing .icon-btn.play .i-pause { display: block; }
.scrub { display: flex; align-items: center; gap: 10px; width: 230px; }
.scrub span { font: 12px var(--mono); color: var(--muted); width: 64px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--gold) var(--p, 0%), var(--line-strong) var(--p, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.5); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; }
.speed { border: 1px solid var(--line); background: transparent; border-radius: 9px; height: 32px; min-width: 42px; font: 12.5px var(--mono); color: var(--muted); }
.speed:hover { color: var(--text); }
.live-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(255,93,80,0.4); background: rgba(255,93,80,0.1); color: var(--live); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; }
.live-btn.following { background: var(--live); color: #fff; border-color: var(--live); }
.live-btn.following .dot { background: #fff; }
.live-btn .badge { font-family: var(--mono); letter-spacing: 0; }
.live-btn .badge:empty { display: none; }
.mobile-only { display: none; }

/* ---------- misc ---------- */
.toast { position: fixed; top: calc(var(--top-h) + 64px); left: 50%; transform: translate(-50%, -8px); padding: 10px 16px; border-radius: 12px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 40; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 13; }
.loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; z-index: 50; background: var(--bg); transition: opacity 0.6s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading-mark { font-size: 54px; color: var(--gold); animation: bob 1.6s ease-in-out infinite; }
.loading-text { font-family: var(--serif); font-style: italic; color: var(--muted); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  :root { --moves-w: 250px; --lib-w: 340px; }
  .scrub { width: 190px; }
  body.lib-open .player-card, body.lib-open .controls { left: calc(50% + (var(--lib-w) + 14px) / 2 - (var(--moves-w) + 14px) / 2); }
}
@media (max-width: 900px) {
  :root { --top-h: 52px; }
  .brand { font-size: 18px; }
  .event-line { display: none; }
  .brand { flex: 1; }
  .pill-select { max-width: 132px; }
  #btnVoice { display: none; }
  .library { left: 0; top: 0; bottom: 0; width: min(420px, 100vw); border-radius: 0; z-index: 30; }
  .close-lib { display: inline-grid; }
  body.lib-open .scrim { opacity: 1; pointer-events: auto; }
  .player-card, body.lib-open .player-card { left: 50%; }
  .moves-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 52vh; border-radius: 18px 18px 0 0; z-index: 30; transform: translateY(105%); transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
  body.moves-open .moves-panel { transform: none; }
  body.moves-open .scrim { opacity: 1; pointer-events: auto; }
  .mobile-only { display: inline-grid; }
  .controls { left: 8px; right: 8px; transform: none; bottom: max(8px, env(safe-area-inset-bottom)); flex-wrap: wrap; justify-content: center; row-gap: 4px; }
  body.lib-open .controls { left: 8px; }
  .scrub { order: -1; width: 100%; padding: 2px 8px 0; }
  .ctrl-group.cam { border-left: 0; padding-left: 0; }
  .player-card { min-width: 0; width: calc(100vw - 16px); padding: 5px 6px 5px 12px; gap: 8px; }
  .player-card.top { top: calc(var(--top-h) + 2px); }
  .player-card.bottom { bottom: 118px; }
  .player-card .name { font-size: 14.5px; }
  .clock { font-size: 15px; padding: 7px 10px; }
}
@media (max-width: 520px) {
  .icon-btn { width: 36px; height: 36px; }
  .controls .icon-btn.play { width: 42px; height: 42px; }
  .speed, .live-btn { height: 30px; }
  .pill-select { max-width: 110px; padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- original 1999 view ---------- */
.classic-bg { position: absolute; inset: -20px; background-size: 1592px 140px; background-repeat: repeat; filter: blur(1.5px) brightness(0.92); }
.classic-canvas { position: absolute; box-shadow: 0 20px 60px rgba(0,0,0,0.35); border-radius: 4px; }
.locked { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--muted); }
.locked div { font-size: 56px; color: var(--gold); }
.locked .btn-primary { width: auto; padding: 0 22px; }
