/* Shared semantic tokens. Both the player portal and Django admin load this first. */
:root {
  color-scheme: light;
  font-family: var(--font-ui);
  --bg: #f5f5f7;
  --surface: #fff;
  --surface-2: #f9f9fb;
  --surface-3: #f0f1f4;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9df;
  --accent: #6d28d9;
  --accent-strong: #5b21b6;
  --good: #2f7d55;
  --warn: #946200;
  --bad: #b42318;
  --shadow: 0 1px 2px rgb(0 0 0 / 4%), 0 10px 30px rgb(0 0 0 / 6%);
  --radius: 20px;
  --board-open: #f8f8fb;
  --board-pending: #fff7df;
  --board-approved: #eaf7ef;
  --board-rejected: #fff0ee;
  --board-locked: #ececf1;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --soul-purple: #7c3aed;
  --soul-purple-strong: #8b5cf6;
  --soul-purple-soft: color-mix(in srgb, var(--soul-purple) 14%, transparent);

  --ds-radius-sm: 12px;
  --ds-radius-md: 16px;
  --ds-radius-lg: 20px;
  --ds-space-1: 6px;
  --ds-space-2: 10px;
  --ds-space-3: 14px;
  --ds-space-4: 18px;
  --ds-space-5: 24px;
  --ds-space-6: 32px;
  --ds-space-7: 44px;
  --ds-control-h: 40px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0a0e;
  --surface: #151319;
  --surface-2: #1b1821;
  --surface-3: #24202b;
  --text: #f7f4fb;
  --muted: #aaa3b3;
  --line: #302a38;
  --accent: var(--soul-purple-strong);
  --accent-strong: #a78bfa;
  --good: #6fd29a;
  --warn: #e4b15d;
  --bad: #ff8277;
  --shadow: 0 1px 2px rgb(0 0 0 / 28%), 0 18px 48px rgb(0 0 0 / 28%);
  --board-open: #202126;
  --board-pending: #3a301d;
  --board-approved: #173426;
  --board-rejected: #3a211f;
  --board-locked: #17181b;
}

html[data-theme="light"] {
  color-scheme: light;
}

@media (max-width: 760px) {
  :root { --ds-control-h: 44px; }
}
