/* 新聞百萬富翁 design tokens.
 * Dark "晚間新聞攝影棚" is the default; the player can switch to light "白色新聞編輯台" (theme.js).
 * Components use these variables only, never literal colors. */
:root,
[data-theme="dark"] {
  --bg: #0B0A1A;
  --bg-panel: #16142E;
  --bg-option: #1B1838;
  --line: #3A3470;
  --text: #F5F3FF;
  --text-muted: #A9A3C9;
  --primary: #9B87F5;
  --on-primary: #0B0A1A; /* white on this purple is only 2.9:1 */
  --gold: #F2C14E;
  --on-gold: #1A1505;
  --breaking: #D62839; /* white text on it ≥ 4.5:1 (WCAG AA) */
  --on-breaking: #FFFFFF;
  --correct: #3DDC97;
  --wrong: #FF5C5C;
  --ticker-bg: #000000;
  --ticker-fg: #FFFFFF;
  --on-correct: #04210F;
  --on-wrong: #2A0505;
  --selected-bg: #F2C14E;
  --on-selected: #1A1505;
  --post-bg: #FFFFFF;
  --post-fg: #1C1C22;
  --post-muted: #5B5870;
  --post-line: #E2E0EA;
  --glow-1: rgba(155, 135, 245, 0.33);
  --glow-2: rgba(242, 193, 78, 0.2);
  --wall: rgba(255, 255, 255, 0.024);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #EEF0F4;
  --bg-panel: #FFFFFF;
  --bg-option: #FFFFFF;
  --line: #C9CDD8;
  --text: #14161C;
  --text-muted: #5D6270;
  --primary: #5B47D6;
  --on-primary: #FFFFFF;
  --gold: #FFD24D;
  --on-gold: #14161C;
  --breaking: #D62839;
  --on-breaking: #FFFFFF;
  --correct: #12805A;
  --wrong: #C42B2B;
  --ticker-bg: #14161C;
  --ticker-fg: #FFFFFF;
  --on-correct: #FFFFFF;
  --on-wrong: #FFFFFF;
  --selected-bg: #FFD24D;
  --on-selected: #14161C;
  --post-bg: #FFFFFF;
  --post-fg: #14161C;
  --post-muted: #4F5463;
  --post-line: #D8DBE3;
  --glow-1: rgba(91, 71, 214, 0.08);
  --glow-2: rgba(255, 210, 77, 0);
  --wall: rgba(20, 22, 28, 0);
  color-scheme: light;
}
:root {
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif; /* Google Fonts, spec 8.2.1 */
  --font-num: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 4px;
  --wrap: 1100px;
}
[data-theme="light"] { --font-display: var(--font-sans); --radius: 2px; }
