/* ================================
   WARMANE promo — Epic Fantasy UI
   ================================ */

:root {
  --bg: #0a0806;
  --bg-2: #12100c;
  --bg-3: #1a1612;
  --ink: #f4e9d3;
  --ink-dim: #b8a888;
  --ink-muted: #8a7c63;
  --gold: #f5c249;
  --gold-2: #d89a2e;
  --gold-3: #a67413;
  --blood: #a0201a;
  --frost: #5fb4d8;
  --frost-2: #2d7ea0;
  --arcane: #9b6dd0;
  --line: rgba(245, 194, 73, 0.18);
  --card: rgba(255, 255, 255, 0.03);
  --card-2: rgba(255, 255, 255, 0.05);
  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 880px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 8, 6, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 900; letter-spacing: 0.15em; }
.logo-mark { color: var(--gold); font-size: 22px; text-shadow: 0 0 18px var(--gold-3); }
.logo-text { font-size: 18px; background: linear-gradient(180deg, #fff0c7, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 28px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--gold); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--serif); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 13px;
  border-radius: 2px;
  cursor: pointer; transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 12px; }
.btn-lg { padding: 16px 36px; font-size: 14px; }
.btn-xl { padding: 20px 48px; font-size: 15px; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  color: #1a0f00;
  box-shadow: 0 4px 24px rgba(245, 194, 73, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 194, 73, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--gold-3);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(245, 194, 73, 0.08);
  color: var(--gold);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex; align-items: center;
  padding: 120px 28px 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(95, 180, 216, 0.12), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(160, 32, 26, 0.15), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(245, 194, 73, 0.08), transparent 60%),
    linear-gradient(180deg, #0a0806 0%, #14100a 100%);
  z-index: -2;
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(245, 194, 73, 0.015) 2px, rgba(245, 194, 73, 0.015) 3px);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.8) 0.5px, transparent 1px),
    radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.6) 0.5px, transparent 1px),
    radial-gradient(circle at 35% 65%, rgba(255, 255, 255, 0.5) 0.5px, transparent 1px),
    radial-gradient(circle at 85% 55%, rgba(255, 255, 255, 0.7) 0.5px, transparent 1px),
    radial-gradient(circle at 50% 85%, rgba(255, 255, 255, 0.4) 0.5px, transparent 1px);
  opacity: 0.6;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  z-index: -1;
  pointer-events: none;
}
.hero-content { max-width: 1100px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(245, 194, 73, 0.08);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  margin-bottom: 28px;
  color: var(--ink-dim);
}
.eyebrow strong { color: var(--gold); font-weight: 600; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.gradient-text {
  background: linear-gradient(135deg, #fff0c7 0%, var(--gold) 40%, #ff9a3c 70%, var(--blood) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 32px rgba(245, 194, 73, 0.3));
}
.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 680px;
  color: var(--ink-dim);
  margin-bottom: 44px;
  line-height: 1.7;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 80px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  max-width: 800px;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 36px);
  color: var(--gold); font-weight: 700;
}
.hero-stats span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-muted); }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-muted);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== TRUSTBAR ===== */
.trustbar {
  background: #05040300;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: linear-gradient(180deg, rgba(245, 194, 73, 0.03), transparent);
}
.trustbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.trustbar p {
  font-family: var(--serif); font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted);
}
.trustbar em { color: var(--gold); font-style: normal; }
.trust-items { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: var(--ink-dim); }

/* ===== SECTIONS ===== */
.section { padding: 120px 0; position: relative; }
.section.dark { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.section-head.left { text-align: left; margin-left: 0; }
.kicker {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 600;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.1; margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-dim); font-size: 17px; }

/* ===== REALMS ===== */
.realms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.realm {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s;
  overflow: hidden;
}
.realm:hover { border-color: var(--gold-3); transform: translateY(-4px); background: var(--card-2); }
.realm::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(245, 194, 73, 0.08), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.realm:hover::before { opacity: 1; }
.realm-featured {
  background: linear-gradient(160deg, rgba(245, 194, 73, 0.06), var(--card));
  border-color: var(--gold-3);
}
.realm-featured::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.realm-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(245, 194, 73, 0.15); color: var(--gold);
  border: 1px solid var(--gold-3);
  margin-bottom: 16px;
}
.tag-hardcore { background: rgba(160, 32, 26, 0.15); color: #e26262; border-color: #6a1a15; }
.tag-new { background: rgba(95, 180, 216, 0.15); color: var(--frost); border-color: var(--frost-2); }
.tag-pvp { background: rgba(155, 109, 208, 0.15); color: var(--arcane); border-color: #5a3a80; }

.realm h3 { font-family: var(--serif); font-size: 32px; font-weight: 700; margin-bottom: 6px; }
.realm-meta { font-size: 13px; color: var(--ink-muted); margin-bottom: 16px; letter-spacing: 0.05em; }
.realm p { color: var(--ink-dim); margin-bottom: 18px; }
.realm ul { list-style: none; margin-bottom: 22px; }
.realm li {
  padding: 6px 0 6px 22px; position: relative;
  font-size: 14px; color: var(--ink-dim);
}
.realm li::before {
  content: '◆'; color: var(--gold); position: absolute; left: 0; top: 6px; font-size: 10px;
}
.players-bar {
  height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; overflow: hidden;
  margin-bottom: 8px;
}
.players-bar > div { height: 100%; border-radius: 2px; }
.players-label { font-size: 12px; color: var(--ink-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ===== USP ===== */
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.usp {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.usp:hover { border-color: var(--gold-3); background: var(--card-2); }
.usp-icon { font-size: 36px; margin-bottom: 18px; filter: drop-shadow(0 0 12px rgba(245, 194, 73, 0.4)); }
.usp h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 12px; color: var(--gold); }
.usp p { color: var(--ink-dim); font-size: 15px; }
.usp em { color: var(--ink); font-style: normal; }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 12px; top: 10px; bottom: 10px;
  width: 1px; background: linear-gradient(180deg, var(--gold-3), transparent);
}
.t-item { position: relative; padding-bottom: 48px; }
.t-item::before {
  content: ''; position: absolute; left: -33px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold-3);
}
.t-item.t-now::before { background: var(--gold); box-shadow: 0 0 20px var(--gold); }
.t-year {
  font-family: var(--serif); font-weight: 900;
  font-size: 14px; color: var(--gold); letter-spacing: 0.2em;
  margin-bottom: 6px;
}
.t-body h4 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.t-body p { color: var(--ink-dim); max-width: 640px; }

/* ===== COINS ===== */
.coins-section { background: linear-gradient(180deg, #13100b, #0a0806); }
.coin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.coin-card {
  padding: 40px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.coin-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top, rgba(245, 194, 73, 0.06), transparent 60%);
  pointer-events: none;
}
.coin-visual { margin-bottom: 24px; display: flex; justify-content: center; }
.coin-disc {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 32px; font-weight: 900;
  position: relative;
  animation: spin 18s linear infinite;
}
.coin-disc::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, rgba(245,194,73,0.4), transparent);
  z-index: -1;
  filter: blur(8px);
}
.coin-gold {
  background: radial-gradient(circle at 35% 30%, #ffe082, var(--gold) 50%, #8a5e10 100%);
  color: #3d2500;
  box-shadow: 0 0 40px rgba(245, 194, 73, 0.5), inset 0 -4px 12px rgba(0,0,0,0.3);
}
.coin-silver {
  background: radial-gradient(circle at 35% 30%, #ecf4ff, #a8b8cc 50%, #4a5668 100%);
  color: #1a2030;
  box-shadow: 0 0 40px rgba(168, 184, 204, 0.3), inset 0 -4px 12px rgba(0,0,0,0.3);
}
.coin-bronze {
  background: radial-gradient(circle at 35% 30%, #f5c7a0, #c27b4a 50%, #5a3010 100%);
  color: #2a1400;
  box-shadow: 0 0 40px rgba(194, 123, 74, 0.4), inset 0 -4px 12px rgba(0,0,0,0.3);
}
@keyframes spin { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }

.coin-card h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 14px; }
.tag-soft {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 3px 8px; background: rgba(245,194,73,0.1); color: var(--gold);
  border: 1px solid var(--line); vertical-align: middle;
  font-family: var(--sans); font-weight: 500;
}
.coin-card > p { color: var(--ink-dim); text-align: left; margin-bottom: 18px; font-size: 15px; }
.check-list { list-style: none; text-align: left; }
.check-list li {
  padding: 8px 0 8px 26px; position: relative;
  font-size: 14px; color: var(--ink-dim);
  border-top: 1px solid var(--line);
}
.check-list li:first-child { border-top: none; }
.check-list li::before {
  content: '✓'; color: var(--gold); position: absolute; left: 0; top: 8px;
  font-weight: 700;
}

.coin-callout {
  display: grid; grid-template-columns: 2fr 1fr; gap: 32px;
  align-items: center;
  padding: 40px;
  background: linear-gradient(135deg, rgba(245, 194, 73, 0.08), rgba(160, 32, 26, 0.04));
  border: 1px solid var(--gold-3);
  margin-bottom: 24px;
}
.coin-callout h4 { font-family: var(--serif); font-size: 26px; margin-bottom: 10px; color: var(--gold); }
.coin-callout p { color: var(--ink-dim); }
.coin-callout strong { color: var(--ink); }

.small-print {
  font-size: 12px; color: var(--ink-muted); text-align: center;
  max-width: 720px; margin: 0 auto;
}

/* ===== ROADMAP ===== */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.road-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-muted);
}
.road-live { border-left-color: #4ade80; }
.road-live .road-status { color: #4ade80; }
.road-soon { border-left-color: var(--gold); }
.road-soon .road-status { color: var(--gold); }
.road-future { border-left-color: var(--frost-2); }
.road-future .road-status { color: var(--frost); }
.road-status {
  display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 14px;
}
.road-card h4 { font-family: var(--serif); font-size: 20px; margin-bottom: 8px; }
.road-card p { font-size: 14px; color: var(--ink-dim); }

/* ===== QUOTES ===== */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
blockquote {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-3);
  position: relative;
}
blockquote::before {
  content: '"'; position: absolute; top: -10px; left: 20px;
  font-family: var(--serif); font-size: 90px; color: var(--gold); opacity: 0.3;
  line-height: 1;
}
blockquote p { font-style: italic; color: var(--ink); margin-bottom: 18px; font-size: 16px; }
blockquote cite { font-style: normal; font-size: 13px; color: var(--gold); letter-spacing: 0.05em; }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--serif); font-size: 19px; font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 24px; font-weight: 300; transition: transform 0.3s; }
.faq-item[open] summary { color: var(--gold); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-item p { padding: 0 0 22px; color: var(--ink-dim); max-width: 780px; }

/* ===== FINAL CTA ===== */
.final-cta {
  position: relative;
  padding: 140px 28px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(160, 32, 26, 0.25), transparent 60%),
    radial-gradient(ellipse at 30% 30%, rgba(245, 194, 73, 0.15), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.cta-bg::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255,255,255,0.6) 0.5px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.4) 0.5px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.5) 0.5px, transparent 1px);
  opacity: 0.5;
}
.final-cta h2 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.05;
  margin-bottom: 24px;
}
.final-cta > .container > p { font-size: 19px; color: var(--ink-dim); margin-bottom: 44px; }
.final-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.final-stats { font-size: 13px; color: var(--ink-muted); letter-spacing: 0.1em; }
.final-stats strong { color: #4ade80; }

/* ===== FOOTER ===== */
footer {
  background: #050403;
  padding: 60px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer-inner .logo { margin-bottom: 14px; }
.muted { color: var(--ink-muted); font-size: 14px; max-width: 380px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h5 { font-family: var(--serif); color: var(--gold); margin-bottom: 14px; letter-spacing: 0.15em; font-size: 12px; text-transform: uppercase; }
.footer-cols a { display: block; color: var(--ink-dim); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-cols a:hover { color: var(--gold); }
.disclaimer { padding-top: 24px; }
.disclaimer p { font-size: 11px; color: var(--ink-muted); max-width: 900px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .realms-grid, .usp-grid, .coin-grid, .roadmap-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .coin-callout { grid-template-columns: 1fr; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .trustbar .container { justify-content: center; text-align: center; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .btn-lg, .btn-xl { width: 100%; }
  .hero-ctas, .final-ctas { flex-direction: column; }
}

/* ================================
   Live Population Panel
   ================================ */

#population .section-head p {
  max-width: 620px;
}

.pop-panel {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(245, 194, 73, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(245, 194, 73, 0.08);
}

.pop-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.pop-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pop-stat strong {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1;
}

.pop-stat-primary strong {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.pop-stat > span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

.pop-delta {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  text-transform: none;
}
.pop-delta.up   { color: var(--gold); }
.pop-delta.down { color: var(--gold-3); }
.pop-delta.flat { color: var(--ink-muted); }

.pop-chart-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  padding: 8px 0;
}

#pop-chart {
  width: 100% !important;
  height: 100% !important;
}

.pop-chart-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-style: italic;
  text-align: center;
  padding: 20px;
}
.pop-chart-fallback[hidden] { display: none !important; }

/* ---- Time-range dropdown (top-right of panel) ---- */
.pop-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.pop-range-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

.pop-range-select {
  position: relative;
}

.pop-range-select::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gold);
  font-size: 0.75rem;
}

.pop-range-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 8px 32px 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pop-range-select select:hover {
  border-color: var(--gold-3);
}

.pop-range-select select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 194, 73, 0.18);
}

/* ---- Realm filter buttons (replaces static legend) ---- */
.pop-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pop-filter-btn {
  --realm-color: #e6d7a5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
              box-shadow 0.25s ease, transform 0.15s ease;
}

.pop-filter-btn:hover {
  color: var(--ink);
  border-color: var(--realm-color);
  transform: translateY(-1px);
}

.pop-filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 194, 73, 0.25);
}

.pop-filter-btn.is-active {
  color: #0f0f10;
  background: var(--realm-color);
  border-color: var(--realm-color);
  box-shadow: 0 0 18px -2px var(--realm-color), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.pop-filter-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--realm-color);
  box-shadow: 0 0 8px var(--realm-color);
}

.pop-filter-swatch-all {
  background: linear-gradient(135deg, #6ab7ff 0%, #c77dff 35%, #ffd166 70%, #ef476f 100%);
  box-shadow: 0 0 8px rgba(245, 194, 73, 0.5);
}

.pop-filter-btn.is-active .pop-filter-swatch {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25) inset;
}

/* ---- Chart loading overlay ---- */
.pop-chart-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(2px);
  color: var(--ink-dim);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
}
.pop-chart-loading[hidden] { display: none !important; }

.pop-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(245, 194, 73, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: pop-spin 0.8s linear infinite;
}

@keyframes pop-spin {
  to { transform: rotate(360deg); }
}

.pop-footnote {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-align: center;
}

.pop-footnote a {
  color: var(--gold-2);
  border-bottom: 1px dotted var(--gold-3);
}

/* Archive downloads row */
.pop-downloads {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  font-size: 0.78rem;
}
.pop-downloads-label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}
.pop-downloads-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.pop-download-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-dim);
}
.pop-download-month {
  color: var(--ink-dim);
}
.pop-download-row a {
  color: var(--gold-2);
  border-bottom: 1px dotted var(--gold-3);
  padding: 0 2px;
  transition: color 0.2s ease;
}
.pop-download-row a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.pop-download-sep {
  color: var(--ink-muted);
  opacity: 0.5;
}

/* Per-realm faction bar (Alliance vs Horde) */
.faction-block {
  margin-top: 10px;
}
.faction-bar {
  display: flex;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.faction-bar-alliance {
  height: 100%;
  background: linear-gradient(90deg, var(--frost-2), var(--frost));
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 0 6px rgba(95, 180, 216, 0.35);
}
.faction-bar-horde {
  height: 100%;
  background: linear-gradient(90deg, #8a1814, #c9352d);
  transition: width 1.2s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 0 6px rgba(201, 53, 45, 0.35);
}
.faction-label {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.faction-label .faction-a { color: var(--frost); }
.faction-label .faction-h { color: #e16960; }
.faction-label .faction-alliance,
.faction-label .faction-horde {
  font-weight: 700;
}

/* Realm saturation bar — driven by data-sat attribute set in script.js */
.players-bar-fill {
  transition: width 1.2s cubic-bezier(.2,.7,.2,1), background 0.4s ease;
  background: linear-gradient(90deg, var(--frost-2), var(--frost));
}
.players-bar-fill[data-sat="busy"] {
  background: linear-gradient(90deg, var(--gold-3), var(--gold));
}
.players-bar-fill[data-sat="full"] {
  background: linear-gradient(90deg, var(--blood), #e04a44);
}

/* ================================
   Tips Section — "Things You'll Wish You Knew"
   ================================ */

#tips .section-head p { max-width: 760px; }
#tips .section-head strong { color: var(--gold); }

/* Category filter chips (same pattern as .pop-filter-btn) */
.tips-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -24px auto 48px;
  max-width: 900px;
}
.tips-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
              box-shadow 0.25s ease, transform 0.15s ease;
}
.tips-filter-btn:hover {
  color: var(--ink);
  border-color: var(--gold-3);
  transform: translateY(-1px);
}
.tips-filter-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 194, 73, 0.25);
}
.tips-filter-btn.is-active {
  color: #1a0f00;
  background: linear-gradient(180deg, var(--gold), var(--gold-2));
  border-color: var(--gold);
  box-shadow: 0 0 18px -2px var(--gold), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}
.tips-count { opacity: 0.75; font-weight: 500; margin-left: 2px; }

/* Tips grid */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Individual tip card */
.tip-card {
  position: relative;
  padding: 26px 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cat-color, var(--gold-3));
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.tip-card:hover {
  background: var(--card-2);
  border-color: var(--gold-3);
  border-left-color: var(--cat-color, var(--gold));
  transform: translateY(-2px);
}
.tip-card[data-cat="economy"]   { --cat-color: #ffd166; }
.tip-card[data-cat="donor"]     { --cat-color: #c77dff; }
.tip-card[data-cat="account"]   { --cat-color: #ef476f; }
.tip-card[data-cat="gameplay"]  { --cat-color: #6ab7ff; }
.tip-card[data-cat="tech"]      { --cat-color: #4ade80; }
.tip-card.is-hidden { display: none; }

/* Category label */
.tip-cat {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cat-color, var(--ink-muted));
  margin-bottom: 12px;
  font-weight: 700;
  opacity: 0.9;
}

.tip-card h4 {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 10px;
  color: var(--ink);
  padding-right: 28px; /* room for ⓘ */
}
.tip-card > p {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}
.tip-card p em { color: var(--ink); font-style: italic; }
.tip-card p strong { color: var(--ink); }

/* Realm applicability pills */
.tip-realms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.tip-realm {
  --c: var(--gold);
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 3px;
  border: 1px solid var(--c);
  color: var(--c);
  background: transparent;
  text-transform: none;
  white-space: nowrap;
}
.tip-realm.yes {
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
}
.tip-realm.no {
  border-style: dashed;
  opacity: 0.4;
  color: var(--ink-muted);
  border-color: var(--ink-muted);
}
.tip-realm.warn {
  background: transparent;
  color: var(--c);
  border-color: var(--c);
  opacity: 0.85;
}
.tip-realm.na {
  border-style: dotted;
  opacity: 0.4;
  color: var(--ink-muted);
  border-color: var(--ink-muted);
}

/* Per-tip note (phase warning, caveat, etc.) */
.tip-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.5;
}

/* Inline <code> in tech tips */
.tip-card code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12.5px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--gold);
}

/* ⓘ info button + source popover */
.tip-info {
  position: absolute;
  top: 20px;
  right: 18px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink-muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
  padding: 0;
  z-index: 2;
}
.tip-info:hover {
  color: var(--gold);
  border-color: var(--gold-3);
  background: rgba(245, 194, 73, 0.1);
}
.tip-info:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 194, 73, 0.3);
}
.tip-info[aria-expanded="true"] {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(245, 194, 73, 0.15);
  transform: rotate(180deg);
}

.tip-popover {
  position: absolute;
  top: 52px;
  right: 16px;
  z-index: 5;
  min-width: 220px;
  max-width: 300px;
  padding: 14px 16px;
  background: #0f0c08;
  border: 1px solid var(--gold-3);
  border-radius: 4px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(245, 194, 73, 0.1);
  font-size: 13px;
  line-height: 1.5;
  animation: tip-pop-in 0.18s ease-out;
}
.tip-popover[hidden] { display: none; }
@keyframes tip-pop-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tip-popover::before {
  content: '';
  position: absolute;
  top: -6px; right: 20px;
  width: 10px; height: 10px;
  background: #0f0c08;
  border-top: 1px solid var(--gold-3);
  border-left: 1px solid var(--gold-3);
  transform: rotate(45deg);
}
.tip-popover-title {
  display: block;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}
.tip-popover a {
  display: block;
  color: var(--ink-dim);
  font-size: 12.5px;
  padding: 4px 0;
  border-bottom: 1px dotted transparent;
  transition: color 0.15s, border-color 0.15s;
}
.tip-popover a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-3);
}
.tip-popover em {
  display: block;
  color: var(--ink-muted);
  font-size: 12px;
  font-style: italic;
  line-height: 1.55;
}

/* Collapsible "Show 14 more" */
.tips-more {
  margin-top: 32px;
}
.tips-more > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold-3);
  border-radius: 2px;
  max-width: 360px;
  margin: 0 auto;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-weight: 700;
}
.tips-more > summary::-webkit-details-marker { display: none; }
.tips-more > summary::after {
  content: '▾';
  font-size: 12px;
  transition: transform 0.3s;
}
.tips-more[open] > summary::after { transform: rotate(180deg); }
.tips-more > summary:hover {
  background: rgba(245, 194, 73, 0.08);
  color: var(--gold);
  border-color: var(--gold);
}
.tips-grid-more {
  margin-top: 24px;
}

.tips-footer {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
.tips-footer a {
  color: var(--gold-2);
  border-bottom: 1px dotted var(--gold-3);
  padding: 0 2px;
  transition: color 0.2s, border-color 0.2s;
}
.tips-footer a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Responsive */
@media (max-width: 980px) {
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tips-grid { grid-template-columns: 1fr; gap: 16px; }
  .tip-popover { right: 10px; left: 10px; max-width: none; }
  .tip-popover::before { right: 24px; }
  .tips-filter-btn { padding: 7px 14px; font-size: 0.72rem; }
}

/* 5-col → 3-col → 2-col → 1-col responsive for the stats strip */
@media (max-width: 980px) {
  .pop-summary {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .pop-stat-primary {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
}
@media (max-width: 720px) {
  .pop-panel { padding: 20px; }
  .pop-summary {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pop-chart-wrap { height: 220px; }
  .pop-controls {
    justify-content: space-between;
  }
  .pop-filter-btn {
    padding: 7px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
  }
}
@media (max-width: 420px) {
  .pop-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pop-stat { align-items: center; }
}

