/* ==========================================================================
   Escobar Bonus Empire — Design Tokens
   Single source of truth for colour, surface, glow, radius, spacing,
   typography, motion and layering. Loaded before every other stylesheet.
   ========================================================================== */

:root {
  /* ---- Brand ---------------------------------------------------------- */
  --eb-gold: #d9aa32;
  --eb-gold-bright: #f2c65b;
  --eb-gold-deep: #8f6817;
  --eb-gold-ink: #17120a;

  /* ---- Neon accents --------------------------------------------------- */
  --eb-electric: #45b8ff;
  --eb-electric-deep: #1d6fd4;
  --eb-violet: #a06bff;
  --eb-violet-deep: #5c31b8;
  --eb-amber: #ff9f2e;
  --eb-orange: #ff6a1f;
  --eb-red: #ff3b4d;
  --eb-red-soft: #ff8993;
  --eb-emerald: #3ad39a;
  --eb-mint: #73f7df;

  /* ---- Surfaces ------------------------------------------------------- */
  --eb-void: #04060a;
  --eb-bg: #06080c;
  --eb-navy: #080d1a;
  --eb-navy-deep: #050912;
  --eb-surface-1: #0b0f16;
  --eb-surface-2: #10151f;
  --eb-surface-3: #161d29;
  --eb-surface-glass: rgba(12, 17, 26, 0.72);

  /* ---- Ink ------------------------------------------------------------ */
  --eb-ink: #f5f6f8;
  --eb-ink-soft: #c3c9d3;
  --eb-ink-muted: #8b93a1;
  --eb-ink-faint: #616a79;

  /* ---- Lines ---------------------------------------------------------- */
  --eb-line: rgba(255, 255, 255, 0.09);
  --eb-line-strong: rgba(255, 255, 255, 0.16);
  --eb-line-gold: rgba(217, 170, 50, 0.42);
  --eb-line-electric: rgba(69, 184, 255, 0.34);

  /* ---- Glow levels (0 = flat, 4 = hero) -------------------------------- */
  --eb-glow-0: none;
  --eb-glow-1: 0 0 12px rgba(217, 170, 50, 0.16);
  --eb-glow-2: 0 0 22px rgba(217, 170, 50, 0.26), 0 0 4px rgba(242, 198, 91, 0.28);
  --eb-glow-3: 0 0 38px rgba(217, 170, 50, 0.34), 0 0 10px rgba(242, 198, 91, 0.36);
  --eb-glow-4: 0 0 70px rgba(217, 170, 50, 0.4), 0 0 18px rgba(242, 198, 91, 0.44);
  --eb-glow-electric: 0 0 28px rgba(69, 184, 255, 0.36);
  --eb-glow-violet: 0 0 28px rgba(160, 107, 255, 0.32);
  --eb-glow-danger: 0 0 22px rgba(255, 59, 77, 0.3);

  /* ---- Elevation ------------------------------------------------------- */
  --eb-shadow-1: 0 4px 14px rgba(0, 0, 0, 0.34);
  --eb-shadow-2: 0 14px 38px rgba(0, 0, 0, 0.42);
  --eb-shadow-3: 0 26px 70px rgba(0, 0, 0, 0.52);
  --eb-shadow-4: 0 40px 110px rgba(0, 0, 0, 0.6);

  /* ---- Radius ---------------------------------------------------------- */
  --eb-r-xs: 6px;
  --eb-r-sm: 10px;
  --eb-r-md: 14px;
  --eb-r-lg: 20px;
  --eb-r-xl: 28px;
  --eb-r-pill: 999px;

  /* ---- Spacing scale ---------------------------------------------------- */
  --eb-s-1: 4px;
  --eb-s-2: 8px;
  --eb-s-3: 12px;
  --eb-s-4: 16px;
  --eb-s-5: 24px;
  --eb-s-6: 32px;
  --eb-s-7: 48px;
  --eb-s-8: 64px;
  --eb-s-9: 96px;

  /* ---- Typography -------------------------------------------------------- */
  --eb-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --eb-font-display: "Bebas Neue", Impact, Haettenschweiler, "Arial Narrow Bold", var(--eb-font);
  --eb-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --eb-fs-micro: 10px;
  --eb-fs-xs: 11px;
  --eb-fs-sm: 13px;
  --eb-fs-md: 15px;
  --eb-fs-lg: 18px;
  --eb-fs-xl: clamp(22px, 2.4vw, 28px);
  --eb-fs-2xl: clamp(28px, 3.6vw, 42px);
  --eb-fs-3xl: clamp(38px, 6vw, 76px);
  --eb-tracking-wide: 0.16em;
  --eb-tracking-wider: 0.26em;

  /* ---- Motion ------------------------------------------------------------ */
  --eb-dur-instant: 90ms;
  --eb-dur-fast: 180ms;
  --eb-dur-base: 320ms;
  --eb-dur-slow: 620ms;
  --eb-dur-scene: 1100ms;
  --eb-ease: cubic-bezier(0.2, 0.78, 0.2, 1);
  --eb-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --eb-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---- Layout ------------------------------------------------------------ */
  --eb-content: 1120px;
  --eb-wide: 1600px;
  --eb-header-h: 72px;

  /* ---- Z-index scale ------------------------------------------------------ */
  --eb-z-canvas: 0;
  --eb-z-base: 1;
  --eb-z-raised: 10;
  --eb-z-sticky: 60;
  --eb-z-header: 100;
  --eb-z-drawer: 300;
  --eb-z-modal: 500;
  --eb-z-toast: 700;
  --eb-z-intro: 900;
  --eb-z-maintenance: 1000;

  /* ---- Effect intensity (JS lowers this on weak devices) ------------------ */
  --eb-fx: 1;
}

/* Breakpoints are documented here and used consistently across stylesheets:
   320 / 360 / 390 / 430 (phones) · 768 (tablet) · 1024 · 1366 · 1440 · 1920 */

@media (max-width: 768px) {
  :root {
    --eb-header-h: 64px;
    --eb-fx: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --eb-dur-instant: 1ms;
    --eb-dur-fast: 1ms;
    --eb-dur-base: 1ms;
    --eb-dur-slow: 1ms;
    --eb-dur-scene: 1ms;
    --eb-fx: 0;
  }
}
