/* Bhalam website tokens: values from Figma "00 — Foundations" (1706:143).
   Never type a raw colour in a component; use these. */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #05040B;
  --ink: 255 255 255;                 /* use as rgb(var(--ink) / a) */
  --text: rgb(var(--ink));
  --text-2: rgb(var(--ink) / .72);    /* lead, body on hero */
  --text-3: rgb(var(--ink) / .65);    /* card body */
  --text-muted: rgb(var(--ink) / .5); /* mono captions */

  --glass: rgb(255 255 255 / .06);
  --glass-tile: rgb(255 255 255 / .05);
  --glass-btn: rgb(255 255 255 / .07);
  --chrome: rgb(19 16 34 / .55);      /* brand pill, toggle */
  --hud: rgb(19 16 34 / .55);         /* tab bar, rail, chip: dark in both themes */
  --tray: rgb(13 11 22 / .6);         /* rank ladder */
  --summary: rgb(13 11 22 / .55);     /* session summary card */

  --border-hi: rgb(255 255 255 / .42);
  --border-mid: rgb(255 255 255 / .08);
  --border-lo: rgb(255 255 255 / .17);
  --border-pill: rgb(255 255 255 / .30);

  --shadow: 0 12px 30px -10px rgb(0 0 0 / .25);
  --shadow-chrome: 0 16px 40px -8px rgb(0 0 0 / .45);
  --shadow-pill: 0 12px 30px -10px rgb(0 0 0 / .35);

  --violet: #A78BFA;
  --indigo: #818CF8;
  --lavender: #C4B5FD;
  --emerald: #34D399;
  --amber: #FBBF24;
  --sky: #38BDF8;
  --rose: #FB7185;
  --ember: #E9A86A;
  --orange: #FB923C;

  --text-grad: linear-gradient(90deg, #DDD6FE, #A78BFA 50%, #818CF8);
  --grad-rose: linear-gradient(90deg, #FECDD3, #FB7185 50%, #A78BFA);
  --grad-orange: linear-gradient(90deg, #FED7AA, #FB923C 50%, #F472B6);
  --grad-amber: linear-gradient(90deg, #FDE68A, #FBBF24 50%, #FB923C);

  --h1-shadow: 0 4px 14px rgb(0 0 0 / .35);
  --glow-alpha: 1;                    /* light theme uses 60% of the glow opacity */
  --tile-back: transparent;           /* light: dark backing behind dark app tiles */
  --orbit-alpha: 1;
}

[data-theme="light"] {
  color-scheme: light;
  --canvas: #F3EFFB;
  --ink: 26 21 48;                    /* #1A1530 */
  --glass: rgb(255 255 255 / .42);
  --glass-tile: rgb(255 255 255 / .42);
  --glass-btn: rgb(255 255 255 / .42);
  --chrome: rgb(255 255 255 / .62);   /* brand pill + toggle only */
  --summary: rgb(255 255 255 / .62);
  --border-hi: rgb(255 255 255 / 1);
  --border-mid: rgb(255 255 255 / .35);
  --border-lo: rgb(255 255 255 / .8);
  --border-pill: rgb(255 255 255 / .9);
  --shadow: 0 12px 30px -10px rgb(91 63 181 / .16);
  --shadow-pill: 0 12px 30px -10px rgb(91 63 181 / .16);

  --violet: #6D28D9;
  --indigo: #4338CA;
  --lavender: #6D28D9;
  --emerald: #047857;
  --amber: #B45309;
  --sky: #0369A1;
  --rose: #BE123C;
  --ember: #B45309;
  --orange: #C2410C;

  --text-grad: linear-gradient(90deg, #7C3AED, #6D28D9 50%, #4F46E5);
  --grad-rose: linear-gradient(90deg, #E11D48, #BE123C 50%, #6D28D9);
  --grad-orange: linear-gradient(90deg, #EA580C, #C2410C 50%, #DB2777);
  --grad-amber: linear-gradient(90deg, #D97706, #B45309 50%, #C2410C);

  --h1-shadow: none;
  --glow-alpha: .38;
  --tile-back: #0D0B16;
  --orbit-alpha: 1;
}

:root {
  --brand: linear-gradient(90deg, #C4B5FD, #8B5CF6 55%, #6366F1);
  --brand-ink: #120530;
  --brand-glow: rgb(124 77 255 / .45);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-pill: 999px;
  --r-tile: 24px;
  --r-card: 32px;
  --r-panel: 40px;

  --page: 1200px;
  --gutter: 20px;
  --focus: #C4B5FD;

  /* rank colours (ladder, rail, chip, summary) */
  --rank-iron: #A1A1AA;
  --rank-bronze: #D9885B;
  --rank-silver: #CBD5E1;
  --rank-gold: #FBBF24;
  --rank-diamond: #60A5FA;
  --rank-platinum: #7DD3C8;
  --rank-master: #A78BFA;
  --rank-champion: #FB7185;
  --rank-ascendant: #34D399;
}
