/* ==========================================================================
   3RR Game — Design Tokens
   Theme: "Neon Skyline" — a premium late-night megacity rooftop.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted fonts (WOFF2, variable, latin + latin-ext for the Rupee glyph)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Base */
  --color-night-sky: #05070F;         /* top of page, deep sky */
  --color-navy-panel: #0B1730;        /* card/panel background */
  --color-navy-elevated: #11213F;     /* raised elements, modals */
  --color-silhouette: #0A1226;        /* building silhouette fill */

  /* Sapphire */
  --color-sapphire-tower: #1E4FD0;    /* window-glow / tower accent */
  --color-sapphire-horizon: #2C5EE8;  /* horizon light-pollution glow */
  --color-sapphire-light: #4E76F2;

  /* Electric Cyan */
  --color-cyan-neon: #24EBFF;         /* neon signage / CTA */
  --color-cyan-soft: #9AF6FF;         /* brightest highlight, sparingly */
  --color-cyan-neon-a: rgba(36, 235, 255, 0.35);
  --color-sapphire-horizon-a: rgba(44, 94, 232, 0.4);

  /* Text & neutrals */
  --color-text-primary: #EEF3FF;
  --color-text-secondary: #93A6CC;
  --color-text-muted: #7385B0;

  /* Functional (kept in the cool family, used sparingly) */
  --color-success: #2FE0A6;
  --color-warning: #FFC067;   /* compliance banners only */
  --color-danger: #FF6B7A;    /* errors only */

  /* Effects */
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 34px var(--color-cyan-neon-a);
  --shadow-glow-sapphire: 0 0 34px var(--color-sapphire-horizon-a);
  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-lg: 28px;

  /* ---- Extensions ------------------------------------------------------ */

  /* Marquee gold — reserved for the bonus figure and signage trim so the
     supplied gold logo sits in a palette that belongs to it. */
  --color-gold: #FFC451;
  --color-gold-soft: #FFE3A3;
  --color-gold-deep: #E39A17;
  --color-gold-a: rgba(255, 196, 81, 0.32);
  --shadow-glow-gold: 0 0 34px var(--color-gold-a);

  /* Hairlines & glass */
  --color-line: rgba(147, 166, 204, 0.16);
  --color-line-strong: rgba(147, 166, 204, 0.3);
  --color-glass: rgba(11, 23, 48, 0.72);
  --color-glass-strong: rgba(9, 18, 38, 0.92);

  /* Type scale (fluid, mobile-first) */
  --font-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.05rem, 5vw, 3.15rem);
  --fs-h1: clamp(1.85rem, 5vw, 3rem);
  --fs-h2: clamp(1.5rem, 3.6vw, 2.3rem);
  --fs-h3: clamp(1.2rem, 3vw, 1.6rem);
  --fs-h4: clamp(1.02rem, 2.2vw, 1.2rem);
  --fs-lead: clamp(1rem, 2.3vw, 1.19rem);
  --fs-body: 1rem;
  --fs-sm: 0.905rem;
  --fs-xs: 0.795rem;

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.25rem;
  --space-2xl: 4.5rem;
  --space-3xl: 6.5rem;

  /* Vertical rhythm between full sections */
  --section-y: clamp(2.75rem, 5.8vw, 4.6rem);

  /* Layout — deliberately generous side gutters so content never
     touches the viewport edge on any breakpoint. */
  --shell-max: 1200px;
  --shell-wide: 1340px;
  --gutter: clamp(1.25rem, 5.2vw, 4.25rem);

  --nav-h: 66px;
  --skyline-strip-h: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-mid: 320ms;
  --dur-slow: 640ms;

  /* Layers */
  --z-bg: 0;
  --z-content: 1;
  --z-sticky: 40;
  --z-nav: 60;
  --z-overlay: 80;
  --z-modal: 100;
}

@media (min-width: 768px) {
  :root {
    --nav-h: 74px;
    --skyline-strip-h: 18px;
  }
}

@media (min-width: 1200px) {
  :root {
    --nav-h: 82px;
  }
}
