:root {
  --bg: #08080b;
  --bg-alt: #0e0e13;
  --surface: #13131a;
  --surface-hover: #1a1a24;
  --border: rgba(255, 255, 255, 0.09);
  --border-crimson: rgba(220, 38, 38, 0.35);
  --text: #f1efe9;
  --text-muted: #a8a399;
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --accent: #d4a359;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.55);
  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-seal: 'Noto Serif SC', serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 16px; color: var(--text); }
h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: 0.02em; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 16px; }

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 12px;
}
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-sub { color: var(--text-muted); font-size: 16px; margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 11, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.brand-text { display: flex; align-items: baseline; gap: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; }
.brand-cn { font-family: var(--font-seal); font-size: 14px; color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.is-active { color: var(--text); background: rgba(220, 38, 38, 0.14); }
.nav-link.is-active { color: var(--primary); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-crimson); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--primary); }
.btn-ghost { background: rgba(255, 255, 255, 0.05); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-ghost.is-playing { border-color: var(--primary); color: var(--accent); }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; padding: 72px 0; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: brightness(0.45) contrast(1.06); }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,11,0.55) 0%, rgba(8,8,11,0.35) 45%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-crest {
  font-family: var(--font-seal); font-size: clamp(44px, 7vw, 72px); font-weight: 700;
  color: var(--primary); letter-spacing: 0.12em; margin: 0 0 12px;
  text-shadow: 0 4px 24px rgba(220, 38, 38, 0.55); transition: transform 0.2s, filter 0.2s;
}
.hero-crest.is-playing { transform: scale(1.04); filter: brightness(1.25); }
.hero-title { margin-bottom: 16px; }
.hero-lead { font-size: 18px; color: var(--text); max-width: 64ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Grids & Cards */
.pillar-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.entity-grid, .game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.timeline-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px;
}
.pillar-card, .entity-card, .timeline-card, .game-card, .related-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.pillar-card:hover, a.entity-card:hover, a.related-card:hover {
  transform: translateY(-3px); border-color: var(--border-crimson); box-shadow: var(--shadow-lg);
}
.pillar-thumb, .entity-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.timeline-img { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--bg-alt); }
.timeline-img img { object-position: center 15%; cursor: zoom-in; }
.pillar-thumb img, .entity-thumb img, .timeline-img img, .game-card img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s;
}
.game-card img { aspect-ratio: 16 / 9; }
a.pillar-card:hover .pillar-thumb img, a.entity-card:hover .entity-thumb img { transform: scale(1.04); }
.pillar-tag, .entity-badge, .timeline-year {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: rgba(8, 8, 11, 0.82); color: var(--accent); border: 1px solid rgba(212, 163, 89, 0.35);
}
.pillar-body, .entity-body, .timeline-body, .game-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.pillar-body p, .entity-body p, .timeline-body p, .game-card-body p { color: var(--text-muted); font-size: 14px; flex: 1; }
.timeline-body p.timeline-era { flex: 0 0 auto; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary); margin: 0 0 8px; }
.card-cta { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 8px; }
.card-meta { font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.entity-card.is-preview { opacity: 0.88; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag-pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--text-muted); }
.center-cta { margin-top: 32px; text-align: center; }

/* Interactive Decoder */
.decoder-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.decoder-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; overflow: visible; }
.decoder-line { fill: none; stroke: rgba(217, 119, 6, 0.34); stroke-width: 1.5; stroke-dasharray: 4 4; transition: stroke 0.2s, stroke-width 0.2s; }
.decoder-line.is-active { stroke: var(--primary); stroke-width: 2.5; stroke-dasharray: none; filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.55)); }
.decoder-line-dot { fill: rgba(217, 119, 6, 0.55); transition: fill 0.2s; }
.decoder-line-dot.is-active { fill: var(--primary); }
.decoder-stage {
  position: relative; z-index: 2; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-crimson); background: var(--surface); box-shadow: var(--shadow-lg);
}
.decoder-stage img { display: block; width: 100%; height: auto; }
.hotspot-pin {
  position: absolute; z-index: 4; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(220, 38, 38, 0.9); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.22); transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.hotspot-pin:hover, .hotspot-pin.is-active { transform: translate(-50%, -50%) scale(1.18); background: var(--primary); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.36); }
.hotspot-num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #fff; line-height: 1; }
.decoder-list { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.decoder-card {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.decoder-card:hover, .decoder-card.is-active {
  border-color: var(--primary); background: rgba(220, 38, 38, 0.09); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.decoder-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.decoder-badge {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid rgba(220, 38, 38, 0.55); background: rgba(220, 38, 38, 0.14);
  color: var(--text); font-family: var(--font-display); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.decoder-card.is-active .decoder-badge, .decoder-card:hover .decoder-badge {
  background: var(--primary); border-color: #fff; color: #fff;
}
.decoder-card-titles { min-width: 0; }
.decoder-short { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 2px; }
.decoder-card h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.decoder-card-desc { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.65; }

/* Page Hero & Breadcrumb */
.page-hero { padding: 48px 0 36px; border-bottom: 1px solid var(--border); background: radial-gradient(circle at 20% 0%, rgba(153, 27, 27, 0.2), transparent 55%); }
.page-lead { font-size: 18px; color: var(--text-muted); max-width: 68ch; }
.game-tagline { font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 20px; gap: 8px; font-size: 13px; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,0.28); }
.breadcrumb a:hover { color: var(--primary); }

/* Bestiary Filter */
.filter-bar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 14px;
}
.filter-search input {
  width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 15px;
}
.filter-search input:focus { border-color: var(--primary); outline: none; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
  min-height: 38px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer;
}
.filter-pill.is-active, .filter-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-count { font-size: 13px; color: var(--text-muted); margin: 0; }
.bestiary-group { margin-bottom: 56px; }
.group-head { margin-bottom: 24px; max-width: 72ch; }
.group-head p { color: var(--text-muted); }
.callout-box {
  margin-top: 24px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-crimson); color: var(--text);
}
.callout-box p { margin: 0; font-size: 15px; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); background: var(--surface); border-radius: var(--radius); }

/* Key Info & Dev Timeline */
.keyinfo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.keyinfo-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.keyinfo-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.keyinfo-value { font-size: 15px; color: var(--text); }

.dev-timeline { display: flex; flex-direction: column; gap: 16px; border-left: 2px solid var(--border-crimson); padding-left: 24px; }
.dev-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.dev-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dev-year { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 14px; }
.dev-era { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(220,38,38,0.16); color: var(--accent); }
.dev-body p { color: var(--text-muted); margin-bottom: 10px; }
.dev-links { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ext-link { font-size: 13px; color: var(--accent); }
.ext-link:hover { text-decoration: underline; }

/* Article Layout */
.article-header { padding: 40px 0 32px; border-bottom: 1px solid var(--border); }
.article-lead { font-size: 18px; color: var(--text-muted); max-width: 70ch; border-left: 3px solid var(--primary); padding-left: 16px; margin-bottom: 24px; }
.article-cover { margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); max-height: 500px; }
.article-cover img { width: 100%; height: 100%; max-height: 500px; object-fit: cover; cursor: zoom-in; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
.article-main { min-width: 0; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 32px; background: var(--bg);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Prose */
.prose-block { max-width: 70ch; font-size: 17px; line-height: 1.75; color: var(--text); }
.home-essay { margin: 0 auto; max-width: 74ch; }
.prose-block h2 { margin-top: 40px; margin-bottom: 14px; font-size: 26px; color: var(--text); scroll-margin-top: 88px; }
.prose-block h3 { margin-top: 28px; margin-bottom: 10px; font-size: 20px; color: var(--accent); scroll-margin-top: 88px; }
.prose-block p { margin-bottom: 18px; }
.article-prose > p:first-of-type::first-letter {
  float: left; font-family: var(--font-seal); font-size: 42px; line-height: 1; font-weight: 700;
  padding: 6px 10px; margin: 4px 12px 0 0; border-radius: 6px;
  background: var(--primary-hover); color: #fff;
}
.prose-block strong { color: #fff; }
.prose-block blockquote {
  margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--primary);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text);
}
.prose-block blockquote p:last-child { margin-bottom: 0; }
.prose-block ul, .prose-block ol { padding-left: 24px; margin: 0 0 20px; }
.prose-block li { margin-bottom: 8px; }
.prose-block img { border-radius: var(--radius); border: 1px solid var(--border); margin: 20px 0; cursor: zoom-in; }
.prose-block pre {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.5;
}
.prose-block hr { border: 0; height: 1px; background: var(--border); margin: 32px 0; }

/* Sticky Aside & TOC */
.aside-sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.aside-title { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.toc-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; }
.toc-link { font-size: 13px; color: var(--text-muted); padding: 4px 0 4px 10px; border-left: 2px solid transparent; transition: all 0.15s; }
.toc-link.is-sub { padding-left: 22px; font-size: 12px; }
.toc-link:hover, .toc-link.is-active { color: var(--text); border-left-color: var(--primary); }
.meta-list { margin: 0 0 16px; }
.meta-list div { margin-bottom: 10px; }
.meta-list dt { font-size: 12px; color: var(--text-muted); }
.meta-list dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.aside-back { font-size: 13px; font-weight: 600; color: var(--accent); }

/* Engage, Related, Comments */
.engage-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 20px 0; margin: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.engage-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.engage-btn:hover, .engage-btn[data-gf-liked] { border-color: var(--primary); background: rgba(220,38,38,0.16); color: #fff; }
.share-msg, .comment-msg { font-size: 13px; color: var(--accent); }

.related-block { margin: 40px 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.related-card { padding: 18px; }
.related-tag { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.related-card h3 { font-size: 16px; margin-bottom: 8px; }
.related-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

.comments-block { margin-top: 40px; }
.comment-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.comment-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.comment-row label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.comment-row input, .comment-row textarea {
  padding: 10px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); color: var(--text);
}
.comment-actions { display: flex; align-items: center; gap: 12px; }
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comments-list[data-gf-empty]::before {
  content: "No comments yet — be the first to share your lore insight or gameplay theory.";
  display: block; padding: 20px; border-radius: var(--radius); background: var(--surface); color: var(--text-muted); font-size: 14px;
}
.comment-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.comment-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.comment-head time { color: var(--text-muted); font-size: 12px; }
.owner-badge { font-size: 12px; padding: 2px 8px; border-radius: 4px; background: var(--primary); color: #fff; }
.comment-card p { margin: 0; font-size: 15px; color: var(--text); }

/* FAQ */
.article-faq { margin-top: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; min-height: 52px; padding: 16px 20px; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left; font-size: 16px; font-weight: 600; cursor: pointer;
}
.faq-chevron { color: var(--primary); font-size: 20px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.is-open .faq-chevron { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--text-muted); font-size: 15px; }
.faq-item.is-open .faq-a { display: block; }
.faq-a p { margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(4, 4, 7, 0.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: #fff; font-size: 24px; cursor: pointer;
}
.lightbox-figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox-figure img { max-height: 78vh; margin: 0 auto; border-radius: var(--radius); }
.lightbox-figure figcaption { margin-top: 12px; color: var(--text-muted); font-size: 14px; }

/* Footer & Legal */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-seal { font-family: var(--font-seal); font-size: 22px; color: var(--primary); font-weight: 700; }
.footer-tagline { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 12px; color: var(--text-muted); margin: 0; }
.legal-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.center-block { text-align: center; padding: 48px 0; }
.center-block .hero-actions { justify-content: center; }

@media (max-width: 960px) {
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decoder-grid, .article-layout { grid-template-columns: 1fr; }
  .decoder-grid { gap: 24px; }
  .decoder-lines { display: none; }
  .keyinfo-grid { grid-template-columns: repeat(2, 1fr); }
  .article-aside { order: -1; }
  .aside-sticky { position: static; }
}

@media (max-width: 640px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .hero-actions .btn { width: 100%; }
  .keyinfo-grid { grid-template-columns: 1fr; }
}

/* CJK Typography Overrides */
html[lang="zh-cn"] body { font-family: 'Noto Sans SC', -apple-system, sans-serif; }
html[lang="zh-tw"] body { font-family: 'Noto Sans TC', -apple-system, sans-serif; }
html[lang="ja"] body { font-family: 'Noto Sans JP', -apple-system, sans-serif; }
html[lang="zh-cn"] h1, html[lang="zh-cn"] h2, html[lang="zh-cn"] h3 { font-family: 'Noto Serif SC', 'Noto Sans SC', serif; letter-spacing: 0.02em; }
html[lang="zh-tw"] h1, html[lang="zh-tw"] h2, html[lang="zh-tw"] h3 { font-family: 'Noto Serif TC', 'Noto Sans TC', serif; letter-spacing: 0.02em; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { font-family: 'Noto Serif JP', 'Noto Sans JP', serif; letter-spacing: 0.02em; }

/* Language Dropdown */
.lang-dropdown {
  position: relative; margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--border);
}
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.lang-trigger:hover, .lang-dropdown.is-open .lang-trigger {
  border-color: var(--border-crimson); background: var(--surface-hover);
}
.lang-caret { transition: transform 0.2s; color: var(--text-muted); }
.lang-dropdown.is-open .lang-caret { transform: rotate(180deg); color: var(--primary); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 156px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; z-index: 60;
}
.lang-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); transition: background 0.15s, color 0.15s;
}
.lang-option:hover { background: var(--surface-hover); color: var(--text); }
.lang-option.is-active { background: rgba(220, 38, 38, 0.16); color: var(--text); }
.lang-code { font-size: 12px; color: var(--accent); opacity: 0.85; }

/* Art Gallery Grid & Responsive Video */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0;
}
.gallery-grid figure {
  margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.gallery-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin: 0; border: 0; border-radius: 0; }
.gallery-grid figcaption { padding: 10px 14px; font-size: 13px; color: var(--text-muted); }
.prose-block video { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin: 20px 0; }
.entity-body h2 { font-size: 20px; margin: 0 0 10px; }

@media (max-width: 640px) {
  .lang-dropdown { margin: 8px 0 0; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .lang-trigger { width: 100%; justify-content: space-between; }
  .lang-menu { position: static; margin-top: 8px; box-shadow: none; }
}