﻿/* ===============================================================
   Genshin Lore · Complete Redesign — "Genshin Impact" Aesthetic
   =============================================================== */

@charset "UTF-8";

/* ── Import Fonts ──────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;500;600;700;900&family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap");

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Deep background */
  --bg-deep: #02040a;
  --bg-dark: #060b18;
  --bg-mid: #0c1428;
  --bg-card: rgba(10, 16, 34, 0.82);
  --bg-card-hover: rgba(16, 26, 48, 0.92);

  /* Genshin Gold palette */
  --gold: #c9a84c;
  --gold-light: #f0d88a;
  --gold-bright: #ffdf7e;
  --gold-dark: #8b6f2e;
  --gold-glow: rgba(201, 168, 76, 0.35);
  --gold-glow-strong: rgba(201, 168, 76, 0.55);
  --gold-metallic: linear-gradient(135deg, #c9a84c, #f0d88a, #c9a84c, #8b6f2e);

  /* Celestial accents */
  --celestial-blue: #2a4f7a;
  --celestial-light: #6a9fd8;
  --celestial-glow: rgba(42, 79, 122, 0.3);
  --abyss-purple: #2d1b4e;
  --abyss-glow: rgba(56, 28, 96, 0.3);

  /* Element colors */
  --pyro: #e8734a;
  --hydro: #4db6e8;
  --anemo: #75c2b6;
  --electro: #b68fcd;
  --dendro: #8bc34a;
  --cryo: #7ec8e3;
  --geo: #c9a84c;

  /* Text */
  --text-primary: #e4dbc8;
  --text-secondary: #a89f88;
  --text-dim: #6a6450;
  --text-muted: #4a4538;

  /* Borders */
  --border: rgba(160, 130, 70, 0.15);
  --border-gold: rgba(201, 168, 76, 0.35);
  --border-light: rgba(201, 168, 76, 0.12);

  /* Sizing */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Typography */
  --font-body: "Noto Serif SC", "Georgia", "Source Han Serif SC", "SimSun", serif;
  --font-display: "Cinzel Decorative", "Cinzel", "Noto Serif SC", serif;
  --font-heading: "Cinzel", "Noto Serif SC", serif;
  --font-ui: "Noto Sans SC", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.85;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   BACKGROUND EFFECTS
   ══════════════════════════════════════════════════════════════ */

/* ── Animated Starfield Canvas ── */
#starfield {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Deep Background Overlay ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(42, 79, 122, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 75%, rgba(45, 27, 78, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(116, 72, 147, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* ── Subtle Grid Pattern Overlay ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ══════════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(4, 6, 12, 0.94);
  border-bottom-color: var(--border-gold);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width var(--transition-slow);
}

.navbar.scrolled::after { width: 80%; }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-light);
  text-decoration: none;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  font-weight: 700;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-metallic);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--gold-glow), inset 0 2px 4px rgba(255,255,255,0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-icon::after {
  content: "✦";
  font-size: 1.1rem;
  color: var(--bg-deep);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 2px;
  position: relative;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--gold-light);
  background: rgba(201, 168, 76, 0.06);
}

.nav-links a.active {
  color: var(--gold-bright);
  background: rgba(201, 168, 76, 0.08);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--gold-metallic);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--gold-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ── Hero decorative corner elements ── */
.hero::after {
  content: "✦";
  position: absolute;
  top: 15%;
  right: 8%;
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.15;
  animation: floatGlow 4s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
  50% { transform: translateY(-15px) rotate(180deg); opacity: 0.4; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 36px;
  position: relative;
  background: rgba(201, 168, 76, 0.04);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.06);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 6px;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.15);
}

.hero .subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--text-secondary);
  letter-spacing: 12px;
  margin-bottom: 24px;
  font-weight: 400;
}

.hero .divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto;
  box-shadow: 0 0 12px var(--gold-glow);
}

.hero p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 2;
  max-width: 680px;
  margin: 0 auto 36px;
  font-family: var(--font-body);
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--bg-deep);
  border: none;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: var(--gold-light);
  box-shadow: 0 0 24px var(--gold-glow);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 5px;
  margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.1);
}

.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto;
  box-shadow: 0 0 10px var(--gold-glow);
}

.section-header > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ══════════════════════════════════════════════════════════════
   CARD GRID
   ══════════════════════════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: linear-gradient(160deg, var(--bg-card), rgba(8, 14, 28, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Card corner decorations */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--border-gold);
  border-style: solid;
  opacity: 0;
  transition: opacity var(--transition);
}

.card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: var(--radius-xl) 0 0 0;
}

.card::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 var(--radius-xl) 0;
}

.card:hover {
  border-color: var(--border-gold);
  background: linear-gradient(160deg, var(--bg-card-hover), rgba(12, 20, 40, 0.95));
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 30px var(--gold-glow);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.2));
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  transition: all var(--transition);
}

.card-link:hover {
  color: var(--gold-light);
  text-shadow: 0 0 12px var(--gold-glow);
}

/* ── Element-themed cards ── */
.card.anemo { border-left: 3px solid var(--anemo); }
.card.geo { border-left: 3px solid var(--geo); }
.card.electro { border-left: 3px solid var(--electro); }
.card.dendro { border-left: 3px solid var(--dendro); }
.card.hydro { border-left: 3px solid var(--hydro); }
.card.pyro { border-left: 3px solid var(--pyro); }
.card.cryo { border-left: 3px solid var(--cryo); }

/* ══════════════════════════════════════════════════════════════
   TIMELINE
   ══════════════════════════════════════════════════════════════ */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--gold-dark), var(--gold), var(--gold-dark), transparent);
  box-shadow: 0 0 12px var(--gold-glow);
}

.timeline-item {
  position: relative;
  width: 46%;
  padding: 32px 36px;
  margin-bottom: 40px;
  background: linear-gradient(160deg, var(--bg-card), rgba(8, 14, 28, 0.88));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.timeline-item:hover {
  border-color: var(--border-gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 54%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 36px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow-strong);
  border: 3px solid var(--bg-deep);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -52px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -52px;
}

.timeline-era {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.timeline-desc strong {
  color: var(--gold-bright);
  font-family: var(--font-body);
}

/* ══════════════════════════════════════════════════════════════
   REGION CARDS
   ══════════════════════════════════════════════════════════════ */
.region-card {
  background: linear-gradient(160deg, var(--bg-card), rgba(8, 14, 28, 0.88));
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.region-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.region-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 20px var(--gold-glow);
  transform: translateY(-3px);
}

.region-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.region-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--border-gold);
  flex-shrink: 0;
}

.region-icon.mondstadt { background: rgba(117, 194, 182, 0.12); border-color: var(--anemo); }
.region-icon.liyue { background: rgba(201, 168, 76, 0.12); border-color: var(--geo); }
.region-icon.inazuma { background: rgba(182, 143, 205, 0.12); border-color: var(--electro); }
.region-icon.sumeru { background: rgba(139, 195, 74, 0.12); border-color: var(--dendro); }
.region-icon.fontaine { background: rgba(77, 182, 232, 0.12); border-color: var(--hydro); }
.region-icon.natlan { background: rgba(232, 115, 74, 0.12); border-color: var(--pyro); }
.region-icon.snezhnaya { background: rgba(126, 200, 227, 0.12); border-color: var(--cryo); }

.region-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 2px;
}

.region-subtitle {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: 4px;
}

.region-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.region-info h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
  margin-top: 16px;
}

.region-info h4:first-child { margin-top: 0; }

.region-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 12px;
}

.region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   LORE CONCEPT BLOCKS
   ══════════════════════════════════════════════════════════════ */
.lore-concept {
  background: linear-gradient(160deg, var(--bg-card), rgba(8, 14, 28, 0.88));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 32px;
  transition: all var(--transition);
  position: relative;
}

.lore-concept::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  opacity: 0.6;
}

.lore-concept:hover {
  border-color: var(--border-gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.lore-concept h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.lore-concept .lore-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 24px;
  box-shadow: 0 0 8px var(--gold-glow);
}

.lore-concept p {
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.lore-concept ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.lore-concept ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.85;
  font-size: 0.9rem;
}

.lore-concept ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 12px;
}

/* ══════════════════════════════════════════════════════════════
   INFO / QUOTE BOXES
   ══════════════════════════════════════════════════════════════ */
.info-box {
  background: rgba(30, 50, 90, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 20px 0;
}

.info-box h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.info-box p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 0;
}

.quote-block {
  background: rgba(201, 168, 76, 0.04);
  border-left: 3px solid var(--gold);
  padding: 20px 28px;
  margin: 16px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.quote-block p {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.8;
}

.quote-block .attribution {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-style: normal;
}

/* ══════════════════════════════════════════════════════════════
   ORNAMENT DIVIDER
   ══════════════════════════════════════════════════════════════ */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 56px 0;
}

.ornament-divider .line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-divider .diamond {
  width: 10px;
  height: 10px;
  background: var(--gold-metallic);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--gold-glow-strong);
}

/* ══════════════════════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════════════════════ */
.tab-nav {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  overflow-x: auto;
}

.tab-btn {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
}

.tab-btn:hover { color: var(--text-secondary); }

.tab-btn.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ══════════════════════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════════════════════ */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table thead th {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-gold);
  text-align: left;
}

table tbody td {
  padding: 12px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

table tbody tr:hover td {
  background: rgba(201, 168, 76, 0.03);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 56px 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 12, 0.8));
}

.footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.footer p { font-size: 0.82rem; color: var(--text-dim); }

.footer .footer-divider {
  width: 40px;
  height: 1px;
  background: var(--border-gold);
  margin: 20px auto;
}

/* ══════════════════════════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════════════════════════ */
.scroll-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(10, 16, 34, 0.9), rgba(4, 6, 12, 0.95));
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.scroll-top:hover {
  background: linear-gradient(135deg, rgba(20, 30, 60, 0.95), rgba(10, 16, 34, 0.98));
  box-shadow: 0 0 24px var(--gold-glow-strong);
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

/* ══════════════════════════════════════════════════════════════
   FADE-IN ANIMATION
   ══════════════════════════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   ADDITIONAL DECORATIVE UTILITIES
   ══════════════════════════════════════════════════════════════ */

/* ── Shimmer loading effect for images ── */
.img-shimmer {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(201, 168, 76, 0.08) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Section-specific background variants ── */
.section-alt {
  background: rgba(6, 10, 22, 0.4);
  position: relative;
}

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201, 168, 76, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(42, 79, 122, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Constellation decoration ── */
.constellation-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

.constellation-bg svg { width: 100%; height: 100%; }

/* ── Element glow ring ── */
.element-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid;
  position: relative;
}

.element-ring.anemo { border-color: var(--anemo); box-shadow: 0 0 16px rgba(117, 194, 182, 0.3); }
.element-ring.geo { border-color: var(--geo); box-shadow: 0 0 16px rgba(201, 168, 76, 0.3); }
.element-ring.electro { border-color: var(--electro); box-shadow: 0 0 16px rgba(182, 143, 205, 0.3); }
.element-ring.dendro { border-color: var(--dendro); box-shadow: 0 0 16px rgba(139, 195, 74, 0.3); }
.element-ring.hydro { border-color: var(--hydro); box-shadow: 0 0 16px rgba(77, 182, 232, 0.3); }
.element-ring.pyro { border-color: var(--pyro); box-shadow: 0 0 16px rgba(232, 115, 74, 0.3); }
.element-ring.cryo { border-color: var(--cryo); box-shadow: 0 0 16px rgba(126, 200, 227, 0.3); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(4, 6, 12, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 6px;
    transform: translateY(-140%);
    transition: transform var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }

  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 0.85rem; letter-spacing: 8px; }

  .card-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 24px; }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 24px 20px 24px 56px;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 17px;
    right: auto;
  }

  .region-card .region-body { grid-template-columns: 1fr; }
  .section { padding: 60px 16px; }
  .region-card { padding: 24px; }
  .lore-concept { padding: 28px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .hero p { font-size: 0.9rem; }
  .nav-inner { padding: 0 16px; }
  .region-header { flex-direction: column; text-align: center; }
  .ornament-divider .line { width: 40px; }
}

@media print {
  body { background: white; color: black; }
  #starfield { display: none; }
  .navbar { position: static; }
}
