/* Design tokens. Layout concept: a night-sky table — a dark masthead band, star-trail
   rings behind everything, pairings on the left as table strips, live standings on the
   right (stacked on phones). Dark-first; light values below. */
:root {
  /* Color: plum night sky, gold for what you act on, teal for what's live */
  --bg: #1c1430;
  --glow: #3a2660;
  --ring: rgb(255 255 255 / 0.035);
  --surface: #281e3f;
  --surface-2: #33284c;
  --ink: #f2edf8;
  --muted: #b2a6c8;
  --line: #463a62;

  --band: #140f26;           /* masthead band, the same in both themes */
  --band-ink: #f2edf8;
  --band-muted: #b2a6c8;
  --band-line: #3b78c2;      /* thin blue rule across the top */

  --gold: #f2c14e;           /* accent: primary buttons, chosen results, 1st place */
  --gold-ink: #231a05;       /* text on gold */
  --gold-text: #f2c14e;      /* gold used as text on the page background */
  --gold-soft: rgb(242 193 78 / 0.14);
  --teal: #3fa7d6;           /* live badges */
  --teal-ink: #061e2a;

  /* Semantic */
  --win: #6fd69b;
  --loss: #ff8a80;
  --draw: #c3b1ff;
  --draw-ink: #1d1338;
  --danger: #e5484d;
  --danger-ink: #ffffff;
  --warn: #ffb35c;
  --warn-soft: rgb(255 179 92 / 0.14);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Lato", "Segoe UI", system-ui, sans-serif;
  --display-axes: "SOFT" 100, "WONK" 1;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2rem, 5.5vw, 3rem);

  /* Space and shape */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --radius-chip: 999px;
  --radius-control: 6px;
  --radius-panel: 12px;
  --shadow: 0 12px 30px -20px rgb(0 0 0 / 0.9);

  --content-max: 1180px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3eff9;
    --glow: #e2d6f6;
    --ring: rgb(70 40 120 / 0.05);
    --surface: #ffffff;
    --surface-2: #efe8f9;
    --ink: #22183a;
    --muted: #66597f;
    --line: #d7cde8;
    --gold-text: #8a6100;
    --gold-soft: rgb(242 193 78 / 0.22);
    --teal: #1f87b8;
    --teal-ink: #ffffff;
    --win: #1f8a4c;
    --loss: #c4372c;
    --draw: #6a4fd1;
    --draw-ink: #ffffff;
    --warn: #a0590a;
    --warn-soft: rgb(255 179 92 / 0.2);
    --shadow: 0 12px 30px -22px rgb(40 20 80 / 0.45);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f3eff9;
  --glow: #e2d6f6;
  --ring: rgb(70 40 120 / 0.05);
  --surface: #ffffff;
  --surface-2: #efe8f9;
  --ink: #22183a;
  --muted: #66597f;
  --line: #d7cde8;
  --gold-text: #8a6100;
  --gold-soft: rgb(242 193 78 / 0.22);
  --teal: #1f87b8;
  --teal-ink: #ffffff;
  --win: #1f8a4c;
  --loss: #c4372c;
  --draw: #6a4fd1;
  --draw-ink: #ffffff;
  --warn: #a0590a;
  --warn-soft: rgb(255 179 92 / 0.2);
  --shadow: 0 12px 30px -22px rgb(40 20 80 / 0.45);
  color-scheme: light;
}
