/* ═══════════════════════════════════════════════════════════
   Nine Lives Network — Design System v3 (Warm Night)
   Variables, tokens, and shared values
   Import this FIRST in every page:
   <link rel="stylesheet" href="/css/variables-v2.css">
   ═══════════════════════════════════════════════════════════ */
/* ── Google Fonts (add to <head> of every page) ──
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Press+Start+2P&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
*/
:root {
  /* ── Core Backgrounds (Warm Night) ── */
  --bg-deep:        #0e0a18;
  --bg-mid:         #120e1e;
  --bg-warm:        #1a1528;
  --bg-card:        rgba(30, 22, 42, 0.7);
  --bg-card-solid:  #1e1630;
  --bg-card-hover:  rgba(30, 22, 42, 0.85);
  --bg-card-active: rgba(30, 22, 42, 0.95);
  --bg-glass:       rgba(255, 240, 220, 0.04);
  --bg-inset:       rgba(0, 0, 0, 0.15);
  --bg-inset-alt:   rgba(0, 0, 0, 0.1);

  /* ── Borders ── */
  --border-subtle:  rgba(255, 255, 255, 0.07);
  --border-medium:  rgba(255, 255, 255, 0.12);
  --border-strong:  rgba(255, 255, 255, 0.18);
  --border:         rgba(212, 166, 75, 0.12);
  --border-warm:    rgba(255, 180, 100, 0.1);
  --border-glow:    rgba(212, 166, 75, 0.3);

  /* ── Gold System (primary accent) ── */
  --gold:           #D4A64B;
  --gold-light:     #E8C675;
  --gold-soft:      #e8c675;
  --gold-dim:       rgba(212, 166, 75, 0.15);
  --gold-glow:      rgba(212, 166, 75, 0.25);
  --gold-border:    rgba(212, 166, 75, 0.35);
  --gold-solid-bg:  linear-gradient(180deg, #D4A64B 0%, #b8903d 100%);
  --gold-btn-shadow: 0 4px 0 #8a6d2f;
  --gold-btn-glow:  0 6px 20px rgba(212, 166, 75, 0.3);

  /* ── Text Hierarchy (Warm Night) ── */
  --text-bright:    #F5F0E8;
  --text-body:      #D4C8B8;
  --text-muted:     #9B8E7E;
  --text-faint:     #6B5E50;

  /* ── Accent Colors ── */
  --cyan:           #6ac8d8;
  --cyan-glow:      rgba(106, 200, 216, 0.4);
  --cyan-dim:       rgba(106, 200, 216, 0.08);
  --green:          #6acd8a;
  --green-bg:       rgba(106, 205, 138, 0.08);
  --red:            #e85a6a;
  --red-bg:         rgba(232, 90, 106, 0.08);
  --purple:         #b088e8;
  --purple-dim:     rgba(176, 136, 232, 0.08);
  --orange:         #FF8C00;
  --orange-dim:     rgba(255, 140, 0, 0.1);
  --sunset:         #e8855a;
  --sunset-glow:    rgba(232, 133, 90, 0.15);
  --sky:            #8BB4E0;
  --live:           #00ff88;

  /* ── Stat Colors (card system) ── */
  --stat-atk:       #e85a6a;
  --stat-hp:        #6acd8a;
  --stat-spd:       #6ac8d8;
  --stat-def:       #b088e8;
  --stat-luck:      #D4A64B;

  /* ── Typography ── */
  --font-title:     'Cinzel', serif;
  --font-body:      'Crimson Text', serif;
  --font-data:      'Press Start 2P', monospace;
  --font-mono:      'JetBrains Mono', monospace;

  /* ── Spacing ── */
  --gap-xs:   4px;
  --gap-sm:   8px;
  --gap-md:   14px;
  --gap-lg:   20px;
  --gap-xl:   28px;

  /* ── Radii ── */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  /* ── School Color (overridden by JS per player) ── */
  --school-color: #D4A64B;

  /* ── House Colors (for direct reference) ── */
  --house-smoulders:   #E03C31;
  --house-darktide:    #00B4D8;
  --house-stonebark:   #5CB338;
  --house-ashenvale:   #B0C4DE;
  --house-stormrage:   #FFC800;
  --house-nighthollow: #7B2D8E;
  --house-dawnbringer: #FF8C00;
  --house-manastorm:   #5B8FE0;
  --house-plaguemire:  #E84393;
}

/* ── The global nav offset is GONE (#2461 step 11, #2478) ──
   This used to be `body { padding-top: 76px }`, clearing the fixed top nav
   bar. The nav is retired: nav.js no longer renders one and nav-v2.css is
   deleted, so the padding cleared nothing and every page opened with 76px of
   empty space at the top. Framed sheets got it too — framed-skin.css even
   documents the gap as "a little dead space at the top of a framed page",
   which was this rule, arriving through a file that could not reach it.

   Do not reinstate a global body offset. A page that needs to clear chrome
   should clear the chrome it actually has. */