/* ============================================================
   Twitch Drops Miner — Design tokens
   Toutes les couleurs, espacements, rayons et polices passent par ici.
   ============================================================ */
:root {
  /* Surfaces */
  --bg: #0e0e11;
  --bg-elev: #121216;
  --card: #17171c;
  --card-hover: #1b1b21;
  --card-inset: #121216;
  --overlay: rgba(8, 8, 10, 0.72);

  /* Contours */
  --border: #2a2a33;
  --border-strong: #3b3b47;
  --border-focus: #9147ff;

  /* Texte */
  --text: #ededf0;
  --text-2: #a9a9b4;
  --text-3: #8a8a96;
  --text-disabled: #5c5c68;
  --text-on-accent: #ffffff;

  /* Accent (violet Twitch) */
  --accent: #9147ff;
  --accent-hover: #a46cff;
  --accent-active: #7d36e6;
  --accent-soft: rgba(145, 71, 255, 0.16);
  --accent-text: #c29bff;

  /* États */
  --green: #3fb950;
  --green-soft: rgba(63, 185, 80, 0.14);
  --green-text: #6fd47c;
  --yellow: #e3b341;
  --yellow-soft: rgba(227, 179, 65, 0.14);
  --yellow-text: #f0c75e;
  --red: #f85149;
  --red-soft: rgba(248, 81, 73, 0.14);
  --red-text: #ff7b73;
  --blue: #58a6ff;
  --blue-soft: rgba(88, 166, 255, 0.14);

  /* Rayons */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Espacements (échelle 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* Typographie */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Consolas", "SF Mono", monospace;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 13px;
  --fs-base: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 28px;
  --lh: 1.5;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);

  /* Mise en page */
  --sidebar-w: 224px;
  --topbar-h: 56px;
  --content-pad: var(--space-6);

  /* Mouvement */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 320ms;

  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur: 0ms;
    --dur-slow: 0ms;
  }
}
