/* Dome Dash. Theme materials arrive as --m-* custom properties (client/theme.ts); these are the toy defaults. */
:root {
  --m-table: #2c6e8f; --m-table-shade: #1d4d66; --m-board: #fff4dc; --m-board-edge: #e6c98f; --m-track: #ffe7b3; --m-track-groove: #c9a467;
  --m-track-rim: #fffaf0; --m-space: #fffdf7; --m-space-shade: #d9bf8a; --m-dive: #bfe9ff; --m-lane: #fff0c4; --m-dome: rgba(210,240,255,0.28);
  --m-dome-rim: #9fd8f5; --m-dome-highlight: rgba(255,255,255,0.85); --m-bridge: #ff9f43; --m-bridge-stripe: #ffd166; --m-switch-color: #ff4f79;
  --m-ink: #2b2340; --m-panel: #fffaf0; --m-panel-ink: #2b2340; --m-accent: #ff4f79;
  --hood-0: #cdeffd; --hood-1: #dff5c8; --hood-2: #ffe0ec; --hood-3: #ffe6c7;
  --radius: 16px; --fs: 16px;
  color-scheme: light;
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs);
  -webkit-text-size-adjust: 100%;
}
:root[data-large-text] { --fs: 19px; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--m-panel-ink);
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--m-table) 80%, white 20%), var(--m-table) 55%, var(--m-table-shade));
  overflow: hidden; overscroll-behavior: none;
}
button, select, input { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
.muted { opacity: 0.72; }
.small { font-size: 0.85em; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.svg-wrap { display: inline-flex; line-height: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  border: 0; border-radius: 999px; padding: 10px 18px; min-height: 44px; font-weight: 800; letter-spacing: 0.01em;
  background: #fff; color: var(--m-ink); box-shadow: 0 3px 0 rgba(0,0,0,0.25), inset 0 -2px 0 rgba(0,0,0,0.08);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; transition: transform 0.08s;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.25); }
.btn.primary { background: var(--m-accent); color: #fff; }
.btn.danger { background: #d8283a; color: #fff; }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 0.9em; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.icon-btn { border: 0; background: rgba(255,255,255,0.16); color: #fff; width: 44px; height: 44px; border-radius: 12px; font-size: 22px; font-weight: 900; display: grid; place-items: center; }
.chip-btn { border: 0; border-radius: 999px; padding: 6px 12px; min-height: 34px; background: rgba(255,255,255,0.92); color: var(--m-ink); font-weight: 800; font-size: 0.85em; box-shadow: 0 2px 0 rgba(0,0,0,0.2); display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- cards */
.center-card, .ready-card, .results {
  max-width: 560px; margin: max(4vh, 16px) auto; padding: 24px 20px; background: var(--m-panel); color: var(--m-panel-ink);
  border-radius: 24px; box-shadow: 0 10px 0 rgba(0,0,0,0.2), 0 20px 40px rgba(0,0,0,0.25); text-align: center; max-height: calc(100dvh - 32px); overflow: auto;
}
.center-card h1, .ready-card h1, .results h1 { margin: 6px 0; font-size: 1.8em; }
.tagline { font-weight: 800; color: var(--m-accent); margin: 4px 0 12px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand-name { font-weight: 900; font-size: 1.1em; letter-spacing: 0.04em; text-transform: uppercase; color: var(--m-accent); }
.brand-tag { font-size: 0.8em; opacity: 0.75; }
.rules-list { text-align: left; padding-left: 1.3em; line-height: 1.45; }
.rules-list li + li { margin-top: 4px; }
.note { background: rgba(0,0,0,0.05); border-radius: 12px; padding: 8px 12px; text-align: left; }
.who { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.who li { background: rgba(0,0,0,0.06); border-radius: 999px; padding: 4px 10px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.who .dot { width: 9px; height: 9px; border-radius: 50%; background: #8a8; }
.who .away .dot { background: #bbb; }
.team-tag { font-size: 0.75em; background: var(--m-accent); color: #fff; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.countdown { font-weight: 800; font-size: 1.1em; }
.spinner { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; border: 6px solid rgba(0,0,0,0.12); border-top-color: var(--m-accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mark { display: inline-block; }

/* ---------------------------------------------------------------- phone layout */
.app.phone { height: 100dvh; display: grid; grid-template-rows: auto auto auto minmax(200px, 1fr) auto; max-width: 820px; margin: 0 auto; overflow: hidden; }
.app.phone.screen-ready, .app.phone.screen-results, .app.phone.screen-closed, .app.phone.screen-connecting { display: block; overflow: auto; }
.topbar { display: flex; align-items: center; gap: 8px; padding: max(6px, env(safe-area-inset-top)) 8px 4px; color: #fff; }
.status { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-weight: 800; min-width: 0; }
.status .round { opacity: 0.85; }
.status .clock { background: rgba(0,0,0,0.25); border-radius: 999px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
.status .clock.hurry { background: #d8283a; animation: pulse 0.8s ease-in-out infinite; }
.status .event-tag { background: #ffd166; color: #2b2340; border-radius: 6px; padding: 1px 8px; font-size: 0.85em; }
.status .mini-dice { display: inline-flex; gap: 3px; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.lamps { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; padding: 2px 8px 4px; }
.lamp { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px; background: rgba(0,0,0,0.18); transition: background 0.2s, box-shadow 0.2s; }
.lamp.locked { background: #fff6c2; box-shadow: 0 0 10px 2px rgba(255,214,102,0.9); }
.lamp.thinking { opacity: 0.8; }
.lamp.pass { opacity: 0.5; }
.lamp.me { outline: 2px solid #fff; }
.stage { position: relative; min-height: 0; overflow: hidden; touch-action: manipulation; }
.stage svg.board { width: 100%; height: 100%; display: block; }
.cam { position: absolute; top: 6px; right: 6px; display: flex; gap: 6px; }
.offscreen { position: absolute; left: 6px; top: 6px; display: flex; flex-direction: column; gap: 4px; max-width: 60%; }
.off-chip { border: 0; border-radius: 10px; padding: 6px 10px; background: #2b2340; color: #fff; font-weight: 700; font-size: 0.8em; text-align: left; box-shadow: 0 2px 0 rgba(0,0,0,0.3); }
.toast { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(43,35,64,0.94); color: #fff; border-radius: 14px; padding: 8px 12px; font-weight: 700; opacity: 0; transform: translateY(12px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.toast.on { opacity: 1; transform: none; }
.toast p { margin: 2px 0; }
.coach { margin-bottom: 8px; background: #ffd166; color: #2b2340; border-radius: 14px; padding: 10px 12px; font-weight: 800; box-shadow: 0 4px 0 rgba(0,0,0,0.25); }
.coach[hidden] { display: none; }
.panel { background: var(--m-panel); color: var(--m-panel-ink); border-radius: 22px 22px 0 0; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); max-height: 54dvh; overflow-y: auto; overflow-x: hidden; box-shadow: 0 -6px 18px rgba(0,0,0,0.2); }
.panel-card { text-align: center; }
.panel-card h2 { margin: 4px 0; font-size: 1.25em; }
.panel-card.pop.mine h2 { color: var(--m-accent); }
.panel-card.locked h2::before { content: "● "; color: #f6b800; }
.dome-box { display: flex; justify-content: center; }
.dome-svg { width: min(250px, 66vw); height: auto; overflow: visible; touch-action: none; user-select: none; -webkit-user-select: none; }
.event-note { background: #ffd166; border-radius: 10px; padding: 6px 10px; font-weight: 800; }
.color-tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.color-tab { border: 2px solid transparent; border-radius: 999px; padding: 4px 10px; background: rgba(0,0,0,0.06); font-weight: 800; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; color: inherit; }
.color-tab.on { border-color: var(--m-ink); background: #fff; }
.dice-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dice-row .label { font-weight: 800; font-size: 0.9em; }
.die-btn { border: 3px solid transparent; background: transparent; border-radius: 12px; padding: 2px; min-width: 44px; min-height: 44px; }
.die-btn.on { border-color: var(--m-accent); background: #fff; }
.ticket-btn { border: 2px dashed var(--m-ink); border-radius: 10px; background: #fff; padding: 4px 10px; font-weight: 800; min-height: 40px; display: inline-flex; gap: 6px; align-items: center; color: inherit; }
.ticket-btn.on { background: #ffd166; border-style: solid; }
.ticket-ico { background: #2b2340; color: #ffd166; border-radius: 4px; padding: 0 5px; font-weight: 900; }
.pressure { display: inline-flex; gap: 3px; align-items: center; font-weight: 800; font-size: 0.8em; }
.pressure i { width: 10px; height: 16px; border-radius: 3px; background: rgba(0,0,0,0.12); display: inline-block; }
.pressure i.on { background: #ff8c1a; }
.pressure.full i { background: #d8283a; }
.reroll { margin: 6px 0; }
.pawn-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.pawn-chip { border: 2px solid rgba(0,0,0,0.15); background: #fff; border-radius: 12px; padding: 4px 8px; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-weight: 700; color: inherit; }
.pawn-chip.on { border-color: var(--m-ink); box-shadow: 0 0 0 3px #ffd166; }
.pawn-chip.mate { border-style: dashed; }
.pawn-chip[disabled] { opacity: 0.4; }
.pawn-chip .dist { font-size: 0.8em; opacity: 0.8; }
.pawn-chip .stack-n { background: #2b2340; color: #fff; border-radius: 6px; padding: 0 5px; font-size: 0.75em; }
.routes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.route-btn { border: 2px solid rgba(0,0,0,0.2); background: #fff; border-radius: 999px; padding: 4px 12px; min-height: 38px; font-weight: 800; color: inherit; }
.route-btn.on { background: var(--m-ink); color: #fff; }
.prediction { background: rgba(0,0,0,0.05); border-radius: 14px; padding: 8px 12px; }
.prediction h3 { margin: 0 0 4px; font-size: 1.15em; color: var(--m-accent); }
.prediction ul { margin: 0; padding-left: 1.1em; font-size: 0.92em; line-height: 1.4; }
.hint { font-weight: 700; text-align: center; opacity: 0.8; }
.notice { background: #ffe0ec; border-radius: 10px; padding: 6px 10px; font-weight: 700; }
.request { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #e3f1ff; border-radius: 12px; padding: 6px 8px; margin-bottom: 6px; font-weight: 700; }
.lock-row { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; position: sticky; bottom: 0; background: var(--m-panel); padding-top: 4px; }
.deadline { height: 6px; border-radius: 3px; background: rgba(0,0,0,0.1); overflow: hidden; }
.deadline::before { content: ""; display: block; height: 100%; width: calc(var(--left, 1) * 100%); background: var(--m-accent); transition: width 0.25s linear; }
.btn.lock { width: 100%; min-height: 54px; font-size: 1.2em; background: var(--m-ink); color: #fff; }
.demo-bar { display: flex; gap: 6px; align-items: center; justify-content: center; background: rgba(43,35,64,0.88); color: #fff; padding: 3px 8px; font-weight: 800; font-size: 0.8em; flex-wrap: wrap; }
.demo-bar .chip-btn { min-height: 28px; padding: 3px 10px; }
.app.tv .demo-bar { position: fixed; left: 12px; bottom: 12px; border-radius: 999px; z-index: 5; }

/* ---------------------------------------------------------------- board */
svg.board text { font-family: inherit; }
.hood-name { font-weight: 900; font-size: 15px; fill: var(--m-ink); opacity: 0.7; paint-order: stroke; stroke: rgba(255,255,255,0.8); stroke-width: 4px; }
.switch-letter { fill: #fff; font-weight: 900; }
.bridge-letter { font-weight: 900; font-size: 13px; fill: var(--m-ink); paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.bridge .plank { transition: transform 0.6s cubic-bezier(.3,1.6,.5,1); }
.bridge-ghost { opacity: 0.45; }
.bridge-ghost rect { stroke-dasharray: 6 4; }
.pawn { cursor: pointer; }
.pawn .pawn-lift { transition: transform 0.15s; }
.pawn.lifted .pawn-lift { transform: translateY(-10px); }
.pawn.lifted .pawn-shadow { opacity: 0.2; }
.pawn.selectable .pawn-lift { filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 7px #ffd166); }
.pawn.in-stack-hidden { display: none; }
.ghost { opacity: 0.45; pointer-events: none; }
.before-ghost { opacity: 0.35; pointer-events: none; }
.route-line { opacity: 0.55; pointer-events: none; }
.route-step { animation: step-in 0.25s both; pointer-events: none; }
.step-num { font-weight: 900; fill: var(--m-ink); }
@keyframes step-in { from { opacity: 0; transform-box: fill-box; } to { opacity: 1; } }
.alt-exit { cursor: pointer; }
.alt-q { font-weight: 900; fill: var(--m-ink); }
.stack-badge { cursor: pointer; }
.spot-ring { animation: spot 1s ease-out 2; transform-box: fill-box; transform-origin: center; }
@keyframes spot { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.static-path { opacity: 0.85; }

/* ---------------------------------------------------------------- dome */
.dome-shell, .dome-dice { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.1s ease-out; }
.dome.pressed .dome-shell { transform: scale(1.04, 0.9); }
.dome.pressed .dome-dice { animation: tremble 0.07s linear infinite; }
.dome.popping .dome-shell { animation: snap 0.3s cubic-bezier(.3,1.8,.5,1); }
.dome.ready .dome-base ellipse:first-child { animation: ready-glow 1.2s ease-in-out infinite; }
.dome.ready { cursor: pointer; }
.dome.settled .dome-dice { animation: settle 0.35s ease-out; }
.dome.tumbling .dome-dice { transform: translateY(-4px); }
.crack-seg { stroke: rgba(255,255,255,0.22); }
.crack-seg.on { stroke: #fff6c2; filter: drop-shadow(0 0 3px #ffd166); }
.crack-line { stroke: #fff; }
.dome.charged .crack-seg { stroke: #ffd166; animation: charged 0.9s ease-in-out infinite alternate; }
.dome.resealing .crack-seg { animation: reseal 0.6s ease-out; }
.dome-event { font-weight: 900; fill: #fff; paint-order: stroke; stroke: #2b2340; stroke-width: 4px; }
@keyframes tremble { 0% { transform: translate(-1.5px, 0) rotate(-2deg); } 50% { transform: translate(1.5px, -1px) rotate(2deg); } 100% { transform: translate(-1px, 1px) rotate(-1deg); } }
@keyframes snap { 0% { transform: scale(1.04, 0.9); } 45% { transform: scale(0.97, calc(1 + 0.06 * var(--snap, 1))); } 100% { transform: scale(1, 1); } }
@keyframes settle { 0% { transform: translateY(-6px); } 60% { transform: translateY(1px); } 100% { transform: none; } }
@keyframes ready-glow { 50% { filter: drop-shadow(0 0 8px #fff); } }
@keyframes charged { to { filter: drop-shadow(0 0 8px #ffd166); } }
@keyframes reseal { from { stroke: #fff; } to { stroke: rgba(255,255,255,0.22); } }

/* ---------------------------------------------------------------- TV layout */
.app.tv { height: 100vh; display: grid; grid-template-columns: 1fr minmax(320px, 26vw); gap: 0; overflow: hidden; }
.app.tv.screen-ready, .app.tv.screen-results, .app.tv.screen-closed, .app.tv.screen-connecting { display: grid; place-items: center; grid-template-columns: 1fr; font-size: 1.4em; }
.tv-main { position: relative; display: grid; gap: 8px; padding: 12px; min-height: 0; }
.tv-main.tables-2 { grid-template-columns: 1fr 1fr; }
.tv-main.tables-3, .tv-main.tables-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.tv-table { position: relative; min-height: 0; display: flex; flex-direction: column; }
.tv-table svg.board { flex: 1; width: 100%; height: 100%; min-height: 0; }
.tv-table-label { position: absolute; top: 4px; left: 8px; color: #fff; font-weight: 900; font-size: 1.3em; text-shadow: 0 2px 0 rgba(0,0,0,0.3); }
.tv-side { background: var(--m-panel); color: var(--m-panel-ink); padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; box-shadow: -8px 0 20px rgba(0,0,0,0.25); }
.tv-side .brand { align-items: flex-start; }
.tv-side .status { flex: none; justify-content: flex-start; }
.tv-side .brand-name { font-size: 1.8em; }
.tv-side .brand-tag { font-size: 1.1em; font-weight: 800; }
.status.big { font-size: 1.35em; justify-content: flex-start; color: var(--m-ink); }
.status.big .clock { background: var(--m-ink); color: #fff; }
.banner { font-size: 1.35em; font-weight: 900; min-height: 2.6em; color: var(--m-accent); }
.lamps.bank { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; }
.lamps.bank .lamp { border-radius: 12px; padding: 4px 6px; justify-content: flex-start; background: rgba(0,0,0,0.07); min-width: 0; }
.lamps.bank .lamp.locked { background: #fff6c2; }
.lamp-table { grid-column: 1 / -1; font-weight: 900; margin-top: 4px; }
.lamp-name { font-weight: 800; font-size: 0.85em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scores { display: flex; flex-direction: column; gap: 4px; overflow: auto; min-height: 0; }
.score-row { display: flex; align-items: center; gap: 8px; font-weight: 800; padding: 3px 6px; border-radius: 10px; }
.score-row.win { background: #fff6c2; }
.score-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-togo { font-size: 0.8em; opacity: 0.7; font-variant-numeric: tabular-nums; }
.score-pts { font-variant-numeric: tabular-nums; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--m-ink); display: inline-block; }
.pips i.on { background: #f6b800; }
.badge { font-size: 0.7em; border-radius: 6px; padding: 1px 5px; background: #2b2340; color: #ffd166; }
.badge.pressure { background: #ff8c1a; color: #fff; }
.feed { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 0.95em; }
.feed li { background: rgba(0,0,0,0.05); border-radius: 10px; padding: 6px 8px; }
.feed li:first-child { background: #fff6c2; }
.scheme { opacity: 0.8; }

/* ---------------------------------------------------------------- results, sheets */
.standings { list-style: none; padding: 0; text-align: left; }
.standings li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; font-weight: 700; }
.standings li.me { background: rgba(0,0,0,0.06); }
.standings li.win { background: #fff6c2; }
.standings .place { width: 1.6em; font-weight: 900; text-align: center; }
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet { background: var(--m-panel); color: var(--m-panel-ink); width: min(620px, 100%); max-height: 86dvh; overflow: auto; border-radius: 22px 22px 0 0; padding: 8px 16px 20px; animation: sheet-in 0.2s ease-out; }
.sheet header { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--m-panel); }
.sheet header .icon-btn { background: rgba(0,0,0,0.08); color: var(--m-ink); }
.sheet h3 { margin: 14px 0 6px; }
@keyframes sheet-in { from { transform: translateY(30px); opacity: 0; } }
.toggle { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 700; min-height: 44px; }
.toggle input { width: 22px; height: 22px; }
.mechanics dt { font-weight: 900; margin-top: 6px; }
.mechanics dd { margin: 0 0 4px; }
.stack-fan { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stack-fan li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(0,0,0,0.05); }
.stack-fan li.mine { background: #fff6c2; }
.stack-fan li span { flex: 1; }

/* ---------------------------------------------------------------- demo picker, split */
.demo-picker { max-width: 760px; margin: 0 auto; padding: 16px; color: var(--m-panel-ink); height: 100dvh; overflow: auto; }
.demo-picker header { display: flex; gap: 14px; align-items: center; color: #fff; }
.demo-picker header h1 { margin: 0; }
.demo-card { background: var(--m-panel); border-radius: 20px; padding: 14px 16px; margin: 12px 0; box-shadow: 0 6px 0 rgba(0,0,0,0.2); }
.demo-card h2 { margin: 0 0 4px; }
.demo-card select { min-height: 40px; border-radius: 10px; padding: 4px 8px; }
.split { display: flex; gap: 12px; padding: 12px; height: 100vh; align-items: center; }
.split-tv { flex: 1; height: min(100%, 56vw); border: 0; border-radius: 12px; background: #000; }
.split-phone { width: 390px; height: min(844px, 100%); border: 0; border-radius: 28px; background: #000; flex: none; }
.pantry-only details { text-align: left; margin: 12px 0; }

/* ---------------------------------------------------------------- effects, accessibility modes */
:root[data-effect="snow"] .stage::after, :root[data-effect="snow"] .tv-main::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background-image: radial-gradient(3px 3px at 20px 30px, #fff, transparent), radial-gradient(2px 2px at 80px 120px, #fff, transparent), radial-gradient(3px 3px at 150px 60px, #fff, transparent), radial-gradient(2px 2px at 220px 160px, #fff, transparent);
  background-size: 260px 200px; animation: snow 9s linear infinite;
}
@keyframes snow { to { background-position: 40px 200px; } }
.reconnecting .topbar::after, .reconnecting .tv-side::before { content: "Reconnecting…"; background: #d8283a; color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: 0.8em; }
:root[data-reduced-motion] *, :root[data-reduced-motion] *::before, :root[data-reduced-motion] *::after { animation: none !important; transition: none !important; }
:root[data-high-contrast] { --m-panel: #fff; --m-panel-ink: #000; }
:root[data-high-contrast] .lamp.locked { outline: 3px solid #000; }
:root[data-high-contrast] .muted { opacity: 1; }
:root[data-high-contrast] .pawn .pawn-art { filter: drop-shadow(0 0 1.5px #000) drop-shadow(0 0 1.5px #000); }
@media (max-width: 380px) { :root { --fs: 15px; } }
