/* Ultimate Trickshot Pool design tokens ("Midnight Hall"), copied from the game repo's design-system/tokens.
   Keep in sync by hand. Fonts are self-hosted here instead of the Google Fonts import the design system uses. */
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/BigShouldersDisplay-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Big Shoulders Display"; src: url("/assets/fonts/BigShouldersDisplay-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/IBMPlexMono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Ink: the dark hall around the table */
  --ink-950: #050a14;
  --ink-900: #08101f;
  --ink-800: #0d1830;
  --ink-700: #132241;
  --ink-600: #1c2f56;
  --ink-500: #2a4170;
  --ink-400: #4c6290;
  --ink-300: #8093bb;
  --ink-200: #b6c2dc;
  --ink-100: #e2e8f4;

  /* Felt: the signature blue cloth */
  --felt-900: #082552;
  --felt-800: #0d3675;
  --felt-700: #134a98;
  --felt-600: #1a5cba;
  --felt-500: #2472d6;
  --felt-400: #4b91ea;
  --felt-300: #8dbdf6;

  /* Brass: rails, stars, rewards, primary actions */
  --brass-800: #6b430b;
  --brass-700: #8f5c12;
  --brass-600: #b97b1e;
  --brass-500: #dc9c2e;
  --brass-400: #f2b844;
  --brass-300: #ffd37c;
  --brass-100: #fff2d1;

  /* Chalk: aim lines, guides, focus */
  --chalk-500: #3fb8f0;
  --chalk-400: #6fd0ff;
  --chalk-200: #c4ecff;

  /* Rail wood */
  --rail-900: #1c0e05;
  --rail-700: #3d2210;
  --rail-500: #6a3d1c;

  --cream: #f6f1e6;
  --cream-dim: #d9d2c2;

  /* Ball palette */
  --ball-1: #f3c02f;
  --ball-2: #2150c8;
  --ball-3: #d8312c;
  --ball-4: #5d2b8f;
  --ball-5: #f07a1b;
  --ball-6: #1f8b4c;
  --ball-7: #7d1f26;
  --ball-8: #111318;

  --pot-500: #3dd07c;
  --scratch-500: #ff5b4f;

  /* Semantic */
  --bg-app: var(--ink-900);
  --bg-deep: var(--ink-950);
  --surface-1: var(--ink-800);
  --surface-2: var(--ink-700);
  --surface-3: var(--ink-600);
  --border-subtle: rgba(182, 194, 220, 0.12);
  --border-strong: rgba(182, 194, 220, 0.24);
  --text-1: var(--cream);
  --text-2: var(--ink-200);
  --text-3: var(--ink-300);
  --text-on-brass: #2a1704;
  --accent: var(--brass-400);
  --accent-hover: var(--brass-300);
  --guide: var(--chalk-400);
  --focus-ring: var(--chalk-400);
  --success: var(--pot-500);
  --danger: var(--scratch-500);

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-ui: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --tracking-display: 0.01em;
  --tracking-label: 0.14em;

  /* Radii and layout */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --container-max: 1200px;

  /* Effects */
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.32);
  --bevel-pressed: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 8px 20px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-ball: inset -6px -8px 14px rgba(0, 0, 0, 0.45), inset 4px 4px 8px rgba(255, 255, 255, 0.25);
  --glow-brass: 0 0 0 1px rgba(242, 184, 68, 0.5), 0 0 24px rgba(242, 184, 68, 0.35);
  --lamp: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 236, 190, 0.10), transparent 70%);
  --felt-cloth: radial-gradient(ellipse 80% 70% at 50% 40%, var(--felt-500) 0%, var(--felt-600) 45%, var(--felt-800) 100%);
  --rail-brass: linear-gradient(180deg, var(--brass-300), var(--brass-500) 45%, var(--brass-700));
  --btn-brass: linear-gradient(180deg, var(--brass-300), var(--brass-400) 55%, var(--brass-500));
  --btn-felt: linear-gradient(180deg, var(--felt-500), var(--felt-600) 60%, var(--felt-700));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-roll: cubic-bezier(0.3, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
}
