/* =========================================================
   LabLoto — tokens.css  (v2 · "Noite de sorteio")
   Única fonte de cores, fontes, medidas e efeitos.
   Tema escuro é o principal; claro tem o mesmo cuidado.
   Seleção: data-theme="light|dark" no <html> (o JS do tema
   sempre define um dos dois; sem JS vale o sistema).
   ========================================================= */
:root {
  /* ---- Tema claro ---- */
  --bg: #eef1fa;
  --glow-1: rgba(43, 68, 201, .16);
  --glow-2: rgba(245, 165, 36, .14);
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --surface-2: rgba(21, 26, 51, .05);
  --line: rgba(21, 26, 51, .10);
  --line-strong: rgba(21, 26, 51, .18);
  --ink: #111633;
  --ink-soft: #565d7c;
  --primary: #2b44c9;
  --primary-ink: #ffffff;
  --accent: #f5a524;
  --accent-2: #ffcf6e;
  --accent-ink: #231600;
  --success: #128a57;
  --warning: #b36b00;
  --danger: #c8323c;
  --info: #2b44c9;
  --scrim: rgba(12, 16, 34, .45);

  /* Vidro */
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72));
  --card-border: rgba(21, 26, 51, .08);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, .9);
  --card-shadow: 0 1px 2px rgba(21, 26, 51, .05), 0 12px 32px rgba(21, 26, 51, .08);
  --blur: blur(16px);

  /* Dado */
  --die-face: #ffffff;
  --die-edge: #c9cde3;
  --die-pip: #151a33;
  --die-one: #e23c46;
  --die-shadow: rgba(21, 26, 51, .28);

  /* Cores das loterias (paleta própria, configurável no admin) */
  --hue-1: #2b44c9;
  --hue-2: #0d8a7c;
  --hue-3: #6d3fc0;
  --hue-4: #d0492f;
  --hue-5: #a86e00;
  --hue-6: #2c8a3c;
  --hue-7: #b8336a;
  --hue-8: #1d78ad;
  --hue-ink: #ffffff;

  /* Fontes */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Escala tipográfica (mobile primeiro) */
  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 1.875rem;
  --step-4: clamp(2.125rem, 8vw, 3.5rem);

  /* Espaçamentos */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* Raios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(21, 26, 51, .06), 0 2px 8px rgba(21, 26, 51, .05);
  --shadow-2: 0 18px 50px rgba(21, 26, 51, .18);

  /* Medidas de interface */
  --tap: 48px;
  --bar-h: 64px;
  --nav-h: 68px;
  --content-max: 1080px;
  --form-max: 460px;

  color-scheme: light;
}

/* ---- Tema escuro (valores) ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060a1c;
    --glow-1: rgba(70, 92, 255, .30);
    --glow-2: rgba(255, 184, 64, .10);
    --surface: rgba(255, 255, 255, .045);
    --surface-solid: #0f1430;
    --surface-2: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);
    --ink: #eef0fb;
    --ink-soft: #9ba3c8;
    --primary: #8392ff;
    --primary-ink: #060a1c;
    --accent: #ffc04d;
    --accent-2: #ffd98a;
    --accent-ink: #1d1300;
    --success: #4fd69a;
    --warning: #f3b545;
    --danger: #ff7a84;
    --info: #8392ff;
    --scrim: rgba(0, 0, 0, .62);
    --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
    --card-border: rgba(255, 255, 255, .09);
    --card-highlight: inset 0 1px 0 rgba(255, 255, 255, .07);
    --card-shadow: 0 16px 40px rgba(0, 0, 0, .35);
    --die-face: #f4f5fb;
    --die-edge: #9aa1c4;
    --die-shadow: rgba(0, 0, 0, .6);
    --hue-1: #8392ff;
    --hue-2: #3fd0bd;
    --hue-3: #ae8cff;
    --hue-4: #ff8b70;
    --hue-5: #f5b740;
    --hue-6: #6fd77d;
    --hue-7: #f57fae;
    --hue-8: #63bdf0;
    --hue-ink: #060a1c;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 10px rgba(0, 0, 0, .25);
    --shadow-2: 0 24px 60px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060a1c;
  --glow-1: rgba(70, 92, 255, .30);
  --glow-2: rgba(255, 184, 64, .10);
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #0f1430;
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --ink: #eef0fb;
  --ink-soft: #9ba3c8;
  --primary: #8392ff;
  --primary-ink: #060a1c;
  --accent: #ffc04d;
  --accent-2: #ffd98a;
  --accent-ink: #1d1300;
  --success: #4fd69a;
  --warning: #f3b545;
  --danger: #ff7a84;
  --info: #8392ff;
  --scrim: rgba(0, 0, 0, .62);
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  --card-border: rgba(255, 255, 255, .09);
  --card-highlight: inset 0 1px 0 rgba(255, 255, 255, .07);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  --die-face: #f4f5fb;
  --die-edge: #9aa1c4;
  --die-shadow: rgba(0, 0, 0, .6);
  --hue-1: #8392ff;
  --hue-2: #3fd0bd;
  --hue-3: #ae8cff;
  --hue-4: #ff8b70;
  --hue-5: #f5b740;
  --hue-6: #6fd77d;
  --hue-7: #f57fae;
  --hue-8: #63bdf0;
  --hue-ink: #060a1c;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 2px 10px rgba(0, 0, 0, .25);
  --shadow-2: 0 24px 60px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
