/* Design tokens. Ball colors and stored data are unchanged. */
:root {
  --canvas: #151718;
  --surface: #1d2021;
  --person-1: #a5c4d9;
  --person-2: #c3afd8;
  --person-3: #dfa99b;
  --person-4: #b7c394;
  --person-5: #d5bf8f;
  --person-6: #b7aea5;
  --person-7: #d2a8c1;
  --person-8: #b2b9e1;
  --raised: #272b2c;
  --card-hero: #272b2c;
  --line: #343a39;
  --line-strong: #85908b;
  --bar-done: #66706e;
  --past: #22272a;
  --ink: #eef2f1;
  --ink-muted: #a5afad;
  --brand: #99c9be;
  --logo-red: #c0565a;
  --on-brand: #142b25;
  --brand-text: #9acfc5;
  --brand-soft: #233b36;
  --focus-ring: var(--brand-text);
  --good: #3dd68c;
  --good-text: #3dd68c;
  --warn: #f5c518;
  --warn-text: #f5c518;
  --bad: #ff6b6b;
  --on-bad: #0a0c0f;
  --brass: #c99c4e;
  --brass-soft: #2c2618;
  --on-brass: #241a07;
  /* Temporary compatibility aliases; remove after consumers migrate. */
  --bg: var(--canvas);
  --text: var(--ink);
  --muted: var(--ink-muted);
  --accent: var(--brand);
  --accent-text: var(--brand-text);
  --accent-soft: var(--brand-soft);
  --on-accent: var(--on-brand);
  --ball-1: #f5c518;
  --ball-2: #2f6feb;
  --ball-3: #e5484d;
  --ball-4: #8e4ec6;
  --ball-5: #f07a2b;
  --ball-6: #2e9e5b;
  --ball-7: #8b3a2e;
  --ball-8: #111111;
  --ball-cue: #f7f9fb;
  --ball-neutral: #808080;
  --radius-10: 10px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-20: 20px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --target-min: 44px;
  --button-primary-height: 56px;
  --font-text: 'Manrope', system-ui, sans-serif;
  --font-number: 'Barlow Condensed', sans-serif;
  --radius-full: 9999px;
  --score-key-height: 64px;
  --ball-size: 36px;
  --type-title-xl: 28px;
  --type-title: 20px;
  --type-heading: 16px;
  --type-body: 16px;
  --type-body-small: 14px;
  --type-button: 16px;
  --type-label: 12px;
  --type-caption: 12px;
  --type-score-hero: 96px;
  --type-score: 40px;
  --type-stat: 32px;
  --type-number-sm: 18px;
  --type-ball: 13px;
}
:root[data-theme='light'] {
  --canvas: #f5f7f5;
  --surface: #ffffff;
  --person-1: #345774;
  --person-2: #62477d;
  --person-3: #86463c;
  --person-4: #53612c;
  --person-5: #735619;
  --person-6: #61564c;
  --person-7: #794765;
  --person-8: #464f85;
  --raised: #eaf0ed;
  --card-hero: #ffffff;
  --line: #d9e1dc;
  --line-strong: #758079;
  --bar-done: #86918c;
  --past: #e4e9e6;
  --ink: #202c28;
  --ink-muted: #5c6b64;
  --brand: #306c60;
  --logo-red: #a8434a;
  --on-brand: #ffffff;
  --brand-text: #306c60;
  --brand-soft: #e0ede7;
  --focus-ring: var(--brand-text);
  --good: #16884f;
  --good-text: #116b40;
  --warn: #8a6a00;
  /* Handbook warn is 4.39:1 on raised; text uses this accessible companion. */
  --warn-text: #806200;
  --bad: #c2333a;
  --on-bad: #ffffff;
  --brass: #7a5520;
  --brass-soft: #f4ead3;
  --on-brass: #ffffff;
}
