@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

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

:root {
  --bg-dark: #0a0a12;
  --bg-card: #12121e;
  --bg-card-hover: #1a1a2e;
  --bg-surface: #0e0e1a;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-glow: rgba(139, 92, 246, 0.3);
  --orange: #f59e0b;
  --green: #10b981;
  --text-primary: #f5f5f7;
  --text-secondary: #d8dbe2;
  --text-muted: #b0b5bf;
  --border: rgba(255,255,255,0.06);
  --max-width: 820px;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.25) transparent;
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.4); }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--purple-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #c4b5fd; }

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--purple); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 0 0 8px 8px;
  font-weight: 700; font-size: 0.9rem; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 2px;
}
a:focus-visible { border-radius: 4px; }
.nav-cta-sm:focus-visible, .cta-btn:focus-visible, .sticky-play-bar-cta:focus-visible {
  outline-offset: 3px;
}
.article-card:focus-visible {
  outline-offset: 4px;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  padding: 0.85rem 2rem;
  background: rgba(10,10,18,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 900;
  background: linear-gradient(135deg, var(--orange) 0%, #e8b84b 40%, var(--purple-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: 0.06em;
  filter: drop-shadow(0 0 12px rgba(245,158,11,0.15));
}
.site-nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.site-nav-links a {
  color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.site-nav-links a:hover { color: var(--purple-light); }
.site-nav-links .nav-active { color: var(--purple-light); font-weight: 600; }
.nav-cta-sm {
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff !important; padding: 0.4rem 1rem; border-radius: 8px;
  font-weight: 600 !important;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 5rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139,92,246,0.04) 0%, var(--bg-dark) 100%);
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; margin-bottom: 0.75rem;
}
.page-header p {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto;
}
.page-header .breadcrumb {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem;
}
.page-header .breadcrumb a { color: var(--text-muted); }
.page-header .breadcrumb a:hover { color: var(--purple-light); }

/* ── CONTENT AREA ── */
.content { max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem 4rem; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem 4rem; }

/* ── BLOG ARTICLE LAYOUT ── */
.blog-article {
  max-width: 740px; margin: 0 auto; padding: 2.5rem 2rem 4rem;
}
.blog-hero-img {
  width: 100%; border-radius: 16px; margin-bottom: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* ── TABLE OF CONTENTS ── */
.toc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem 1.75rem; margin-bottom: 2.5rem;
}
.toc-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--purple-light); margin-bottom: 0.75rem;
}
.toc ol {
  list-style: none; counter-reset: toc; padding-left: 0;
}
.toc li {
  counter-increment: toc; margin-bottom: 0.35rem;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero); font-weight: 700;
  color: var(--purple); margin-right: 0.6rem; font-size: 0.8rem;
}
.toc a {
  color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
  text-decoration: none; transition: color 0.2s;
}
.toc a:hover { color: var(--purple-light); }

/* ── ARTICLE PROSE ── */
.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 800;
  margin: 2.5rem 0 1rem; line-height: 1.25;
  padding-top: 1rem;
}
.prose h3 {
  font-size: 1.1rem; font-weight: 700;
  margin: 1.75rem 0 0.6rem; color: var(--text-primary);
}
.prose p { margin-bottom: 1.2rem; color: var(--text-secondary); font-size: 1.05rem; }
.prose strong { color: var(--text-primary); }
.prose ul, .prose ol {
  margin-bottom: 1.25rem; padding-left: 1.5rem;
  color: var(--text-secondary); font-size: 1.05rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  border-left: 3px solid var(--purple);
  padding: 0.75rem 1.25rem; margin: 1.5rem 0;
  background: rgba(139,92,246,0.05); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text-secondary);
}
.prose table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 0.85rem;
}
.prose th {
  text-align: left; padding: 0.6rem 0.75rem;
  background: var(--bg-card); color: var(--text-primary);
  border-bottom: 2px solid var(--border); font-weight: 600;
}
.prose td {
  padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.prose img {
  width: 100%; border-radius: 12px; margin: 1.5rem 0;
  border: 1px solid var(--border);
}

/* ── CALLOUT BOXES ── */
.callout {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem 1.5rem; margin: 1.75rem 0;
}
.callout-title {
  font-weight: 700; font-size: 0.85rem; margin-bottom: 0.4rem;
  color: var(--purple-light); text-transform: uppercase;
  letter-spacing: 0.04em;
}
.callout p { margin-bottom: 0.4rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-purple { border-left: 3px solid var(--purple); }
.callout-orange { border-left: 3px solid var(--orange); }
.callout-green { border-left: 3px solid var(--green); }

/* ── TIP BOX ── */
.tip-box {
  background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.15);
  border-radius: 14px; padding: 1.25rem 1.5rem; margin: 1.75rem 0;
}
.tip-box-icon {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; color: var(--purple-light);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.tip-box p { margin-bottom: 0.4rem; font-size: 0.9rem; }
.tip-box p:last-child { margin-bottom: 0; }

/* ── WARNING BOX ── */
.warning-box {
  background: rgba(245,158,11,0.06); border: 1px solid rgba(245,158,11,0.2);
  border-radius: 14px; padding: 1.25rem 1.5rem; margin: 1.75rem 0;
}
.warning-box-icon {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 700; color: var(--orange);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.warning-box p { margin-bottom: 0.4rem; font-size: 0.9rem; }
.warning-box p:last-child { margin-bottom: 0; }

/* ── STAT ROW ── */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin: 2rem 0;
}
.stat-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.25rem; text-align: center;
}
.stat-box-number {
  font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.stat-box-label {
  font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem;
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
@media (max-width: 600px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* ── NUMBERED STEP CARDS ── */
.step-grid {
  display: flex; flex-direction: column; gap: 1rem; margin: 1.75rem 0;
}
.step-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem 1.5rem;
  transition: border-color 0.3s;
}
.step-card:hover { border-color: rgba(139,92,246,0.2); }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), #6d28d9);
  color: #fff; font-weight: 800; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.step-content h4 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem;
  color: var(--text-primary);
}
.step-content p {
  font-size: 0.88rem; color: var(--text-secondary); margin: 0; line-height: 1.55;
}

/* ── COMPARISON / VS BOXES ── */
.vs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin: 1.75rem 0;
}
.vs-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem;
}
.vs-box-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.vs-box-title.bad { color: #ef4444; }
.vs-box-title.good { color: var(--green); }
.vs-box p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }
@media (max-width: 600px) {
  .vs-grid { grid-template-columns: 1fr; }
}

/* ── FEATURE HIGHLIGHT CARD ── */
.highlight-card {
  background: linear-gradient(135deg, rgba(139,92,246,0.08), rgba(245,158,11,0.05));
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 16px; padding: 1.75rem; margin: 2rem 0;
  text-align: center;
}
.highlight-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.highlight-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* ── RANKING LIST ── */
.rank-list {
  display: flex; flex-direction: column; gap: 0.75rem; margin: 1.75rem 0;
}
.rank-list-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.25rem;
  transition: border-color 0.3s;
}
.rank-list-item:hover { border-color: rgba(139,92,246,0.2); }
.rank-list-item:first-child {
  border-color: rgba(245,158,11,0.3);
  background: linear-gradient(135deg, rgba(245,158,11,0.06), var(--bg-card));
}
.rank-list-num {
  font-size: 1.2rem; font-weight: 800; color: var(--text-muted);
  width: 30px; text-align: center; flex-shrink: 0;
}
.rank-list-item:first-child .rank-list-num { color: var(--orange); }
.rank-list-body h4 {
  font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem;
  color: var(--text-primary);
}
.rank-list-body p {
  font-size: 0.82rem; color: var(--text-secondary); margin: 0; line-height: 1.5;
}
.rank-list-badge {
  margin-left: auto; font-size: 0.65rem; font-weight: 600;
  padding: 0.2rem 0.5rem; border-radius: 6px; white-space: nowrap;
  background: rgba(139,92,246,0.12); color: var(--purple-light);
}
.rank-list-item:first-child .rank-list-badge {
  background: rgba(245,158,11,0.15); color: var(--orange);
}

/* ── SECTION DIVIDER ── */
.section-divider {
  border: none; border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── ARTICLE META ── */
.article-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-muted);
  margin-bottom: 2rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-tag {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px;
  background: rgba(139,92,246,0.12); color: var(--purple-light);
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── BLOG CARD LIST ── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 4rem;
}
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: all 0.3s; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.25);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.article-card-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-bottom: 1px solid var(--border);
}
.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-card-tag {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px;
  background: rgba(139,92,246,0.12); color: var(--purple-light);
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 0.6rem; width: fit-content;
}
.article-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 800; line-height: 1.25;
  margin-bottom: 0.5rem; color: var(--text-primary);
}
.article-card-excerpt {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55;
  flex: 1;
}
.article-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-muted);
}

/* ── WIKI PAGE HEADER ── */
.wiki-page-header {
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139,92,246,0.06) 0%, rgba(245,158,11,0.02) 50%, var(--bg-dark) 100%);
  position: relative;
  overflow: hidden;
}
.wiki-page-header::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.wiki-page-header-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.wiki-page-header-content p {
  font-size: 1rem; color: var(--text-secondary);
  max-width: 500px; margin: 0 auto;
}
.wiki-breadcrumb {
  font-size: 0.78rem; color: var(--text-muted);
  margin-top: 1rem;
}
.wiki-breadcrumb a { color: var(--text-muted); }
.wiki-breadcrumb a:hover { color: var(--purple-light); }

/* ── WIKI CARDS GRID ── */
.wiki-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.wiki-cards-grid .bg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}
.wiki-cards-grid .bg-card:hover {
  border-color: rgba(139,92,246,0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.wiki-cards-grid .bg-card h4 {
  font-size: 0.95rem; font-weight: 700;
  margin-bottom: 0.4rem;
}
.wiki-cards-grid .bg-card p {
  font-size: 0.82rem; color: var(--text-secondary);
  line-height: 1.5; margin: 0;
}

/* ── DISTRICT INFO BOX ── */
.district-info-box {
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(245,158,11,0.03));
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.district-info-box p {
  font-size: 0.88rem; color: var(--text-secondary);
  margin-bottom: 0.5rem; line-height: 1.6;
}
.district-info-box p:last-child { margin-bottom: 0; }
.district-info-box strong { color: var(--purple-light); }

/* ── ENHANCED TABLE STYLES (DARK THEME) ── */
.wiki-content .prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.82rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.wiki-content .prose th {
  text-align: left;
  padding: 0.7rem 0.85rem;
  background: rgba(139,92,246,0.08);
  color: var(--purple-light);
  border-bottom: 1px solid rgba(139,92,246,0.15);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wiki-content .prose td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
}
.wiki-content .prose tr:last-child td { border-bottom: none; }
.wiki-content .prose tbody tr:hover td {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ── NPC CARD ── */
.npc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  margin: 2rem 0;
  transition: border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.npc-card:hover {
  border-color: rgba(139,92,246,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.npc-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(245,158,11,0.03));
  border-bottom: 1px solid var(--border);
}
.npc-card-avatar {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(139,92,246,0.2) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
  margin: 0 !important;
}
.npc-card-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 0.2rem 0;
  padding: 0;
  color: var(--text-primary);
}
.npc-card-title .npc-role {
  font-size: 0.82rem;
  color: var(--purple-light);
  font-weight: 600;
}
.npc-card-title .npc-company {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.npc-card-meta {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.npc-card-meta .badge {
  font-size: 0.62rem;
  padding: 0.12rem 0.45rem;
}
.npc-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.npc-card-body h3 {
  margin-top: 1.25rem;
}
.npc-card-body h3:first-child {
  margin-top: 0;
}

/* ── SKILL CARD ── */
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: border-color 0.3s;
}
.skill-card:hover { border-color: rgba(139,92,246,0.2); }

/* ── BADGE STYLES ── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-purple { background: rgba(139,92,246,0.12); color: var(--purple-light); }
.badge-orange { background: rgba(245,158,11,0.12); color: var(--orange); }
.badge-green { background: rgba(16,185,129,0.12); color: var(--green); }
.badge-red { background: rgba(239,68,68,0.12); color: #f87171; }

/* ── WIKI SIDEBAR LAYOUT ── */
.wiki-layout {
  display: grid; grid-template-columns: 240px 1fr;
  max-width: 1100px; margin: 0 auto; gap: 2rem; padding: 2rem;
}
.wiki-sidebar {
  position: sticky; top: 70px; align-self: start;
  max-height: calc(100vh - 90px); overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,0.3) transparent;
}
.wiki-sidebar::-webkit-scrollbar { width: 5px; }
.wiki-sidebar::-webkit-scrollbar-track { background: transparent; }
.wiki-sidebar::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.3); border-radius: 3px; }
.wiki-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,0.5); }
.wiki-sidebar-section {
  margin-bottom: 1.75rem;
}
.wiki-sidebar-title {
  font-size: 0.65rem; font-weight: 700; color: var(--purple-light);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 0.6rem; padding-left: 0.75rem;
  opacity: 0.7;
}
.wiki-sidebar-links {
  list-style: none; display: flex; flex-direction: column; gap: 0.1rem;
}
.wiki-sidebar-links a {
  display: block; padding: 0.4rem 0.75rem; border-radius: 8px;
  font-size: 0.82rem; color: var(--text-secondary);
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.wiki-sidebar-links a:hover {
  background: var(--bg-card); color: var(--text-primary);
  border-left-color: rgba(139,92,246,0.3);
}
.wiki-sidebar-links a.active {
  background: rgba(139,92,246,0.1);
  color: var(--purple-light);
  font-weight: 600;
  border-left-color: var(--purple);
}

.wiki-content { min-width: 0; padding-bottom: 4rem; }

/* ── GLOSSARY ── */
.glossary-letter {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 800; margin: 2rem 0 0.75rem;
  color: var(--purple-light); padding-bottom: 0.25rem;
  border-bottom: 2px solid rgba(139,92,246,0.2);
}
.glossary-term {
  margin-bottom: 1.25rem;
}
.glossary-term dt {
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.glossary-term dd {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6;
  padding-left: 0;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem; text-align: center;
  margin: 3rem 0;
}
.cta-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem;
}
.cta-banner p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.25rem; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 2rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: #fff; font-size: 0.95rem; font-weight: 700;
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 4px 20px var(--purple-glow);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--purple-glow); color: #fff; }

/* ── SUPER FOOTER ── */
.super-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 0;
  text-align: left;
}
.super-footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.super-footer-brand {
  text-align: left;
}
.super-footer-brand p {
  font-size: 1rem; color: var(--text-secondary);
  line-height: 1.7; margin-top: 1rem; max-width: 300px;
}
.super-footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 900;
  background: linear-gradient(135deg, var(--orange) 0%, #e8b84b 40%, var(--purple-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.06em;
  filter: drop-shadow(0 0 12px rgba(245,158,11,0.15));
  display: inline-block;
}
.super-footer-brand .footer-contact {
  margin-top: 1.25rem; font-size: 0.95rem; color: var(--text-muted);
  line-height: 2;
}
.super-footer-brand .footer-contact a { color: var(--purple-light); }
.super-footer-col {
  text-align: left;
}
.super-footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 1rem;
}
.super-footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.super-footer-col ul li a {
  color: var(--text-secondary); font-size: 1rem;
  transition: color 0.2s;
}
.super-footer-col ul li a:hover { color: var(--purple-light); }
.super-footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem; color: var(--text-muted);
  text-align: left;
}
.super-footer-bottom a { color: var(--text-muted); }
.super-footer-bottom a:hover { color: var(--purple-light); }
.super-footer-legal { display: flex; gap: 1.5rem; }
@media (max-width: 768px) {
  .super-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem;
  }
}
@media (max-width: 500px) {
  .super-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem;
  }
  .super-footer-bottom { flex-direction: column; text-align: center; }
  .super-footer-legal { justify-content: center; }
}

/* Legacy footer (fallback) */
.site-footer {
  padding: 2rem; text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.95rem; color: var(--text-muted);
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--purple-light); }

/* ── STICKY BOTTOM BAR ── */
.sticky-play-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-play-bar.visible {
  transform: translateY(0);
}
.sticky-play-bar-text {
  color: #9ca3af;
  font-size: 0.85rem;
  font-weight: 500;
}
.sticky-play-bar-text strong {
  color: #f1f1f4;
}
.sticky-play-bar-cta {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  padding: 0.45rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.sticky-play-bar-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.sticky-play-bar-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.sticky-play-bar-close:hover {
  color: #9ca3af;
}
@media (max-width: 500px) {
  .sticky-play-bar { padding: 0.5rem 1rem; gap: 0.75rem; }
  .sticky-play-bar-text { font-size: 0.75rem; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .wiki-layout { grid-template-columns: 1fr; }
  .wiki-sidebar { position: static; max-height: none; }
  .site-nav-links { display: none; }
  .card-grid { grid-template-columns: 1fr; }
}
