/* ==========================================================================
   StakeBonusHub — Design Tokens
   Единая система переменных. Никаких hard-coded значений в компонентах.
   ========================================================================== */

:root {
  /* --- Colors / Surfaces ----------------------------------------------- */
  --bg: #0a0e14;
  --bg-elevated: #131820;
  --surface: #1a2230;
  --surface-elevated: #222b3c;
  --border: #232b3a;
  --border-strong: #354056;

  /* --- Colors / Text --------------------------------------------------- */
  --text-primary: #f5f7fa;
  --text-secondary: #8b95a7;
  --text-tertiary: #5d6679;
  --text-inverse: #0a0e14;

  /* --- Colors / Brand & Accent ----------------------------------------- */
  --brand: #00e07a;          /* Stake-зелёный */
  --brand-strong: #00b865;
  --brand-soft: rgba(0, 224, 122, 0.12);
  --gold: #ffb547;           /* CTA highlight */
  --gold-strong: #f59f1f;

  /* --- Colors / Semantic ----------------------------------------------- */
  --success: #00e07a;
  --warning: #ffb547;
  --danger: #ff5470;
  --info: #5b9dff;

  /* --- Volatility / RTP indicators ------------------------------------ */
  --vol-low: #5b9dff;
  --vol-medium: #ffb547;
  --vol-high: #ff5470;
  --rtp-good: #00e07a;
  --rtp-avg: #ffb547;
  --rtp-poor: #ff5470;

  /* --- Typography ------------------------------------------------------ */
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Manrope', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;

  --fs-xs: 0.75rem;     /* 12 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: 1.5rem;      /* 24 */
  --fs-2xl: 1.875rem;   /* 30 */
  --fs-3xl: 2.25rem;    /* 36 */
  --fs-4xl: 3rem;       /* 48 */
  --fs-5xl: 3.75rem;    /* 60 */
  --fs-6xl: 4.5rem;     /* 72 */

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --tracking-tight: -0.02em;
  --tracking-tighter: -0.035em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;

  /* --- Space scale (8px grid) ------------------------------------------ */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Layout ---------------------------------------------------------- */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1440px;

  /* --- Radius ---------------------------------------------------------- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* --- Shadow / Elevation ---------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-glow-brand: 0 0 24px rgba(0, 224, 122, 0.25);
  --shadow-glow-gold: 0 0 24px rgba(255, 181, 71, 0.25);

  /* --- Motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 380ms;

  /* --- Z-index --------------------------------------------------------- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-modal: 1000;
  --z-toast: 2000;

  /* --- Decorative ------------------------------------------------------ */
  --gradient-hero: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    rgba(0, 224, 122, 0.18),
    transparent 60%
  ),
  radial-gradient(ellipse 60% 50% at 80% 30%, rgba(91, 157, 255, 0.10), transparent 60%);

  --gradient-cta: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-strong) 100%);

  --grain-bg: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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