/* ============================================================
   RESONANCE: A PLAGUE TALE LEGACY — Ancient Manuscript Guide Theme
   Design tokens per UI spec: ink navy / oxidized teal / antique gold / parchment ivory / earth bronze
   ============================================================ */

:root {
  /* Palette */
  --bg-primary: #101A20;
  --bg-secondary: #142329;
  --bg-card: #17262B;
  --bg-deep: #0B1216;
  --bg-header: rgba(12, 22, 27, 0.94);
  --gold: #B88A3D;
  --gold-light: #D0A653;
  --gold-dark: #806530;
  --teal: #28484A;
  --teal-light: #3D6663;
  --ivory: #E6E0D2;
  --ivory-bright: #F1EDE3;
  --text-primary: #D8D5CB;
  --text-secondary: #AAA99F;
  --text-muted: #777A73;
  --earth: #65513A;
  --earth-dark: #3C3329;
  --warning: #8E5147;
  --bronze-btn: #8E6B32;
  --bronze-btn-border: #C39A50;
  --border: rgba(184, 138, 61, 0.18);
  --border-strong: rgba(184, 138, 61, 0.38);
  --border-hi: rgba(208, 166, 83, 0.65);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-img: 0 12px 40px rgba(0, 0, 0, 0.35);
  /* legacy aliases used by inline styles in base.njk */
  --ink: var(--ivory);
  --ink-soft: var(--text-secondary);
  --ink-faint: var(--text-muted);
  --paper-edge: var(--border-strong);
  --font-head: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Cinzel', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(rgba(208, 166, 83, 0.03) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 28px 28px, 180px 180px;
  line-height: 1.75;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- background atmosphere ---------- */
.bg-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 50% -20%, rgba(61, 102, 99, 0.10), transparent 55%),
    radial-gradient(ellipse at 85% 110%, rgba(61, 102, 99, 0.07), transparent 50%);
}
.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.35);
}

/* ---------- links ---------- */
a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-light); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ivory);
  line-height: 1.3;
  font-weight: 600;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 2.8rem 0 1.1rem;
  padding-bottom: 0.55rem;
  position: relative;
}
h2::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(184,138,61,0.6), rgba(184,138,61,0.08));
}
h3 {
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.9rem 0 0.65rem;
  color: var(--ivory-bright);
}
h4 { font-size: 1rem; letter-spacing: 0.04em; margin: 1.3rem 0 0.45rem; }

p { margin: 0 0 1.05rem; }
ul, ol { margin: 0 0 1.1rem 1.4rem; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 700; color: var(--ivory-bright); }
em { font-style: italic; }

.anchor-link {
  font-size: 0.75rem;
  color: var(--gold-dark);
  margin-left: 0.5rem;
  opacity: 0;
  vertical-align: middle;
  text-decoration: none;
}
h2:hover .anchor-link, h3:hover .anchor-link { opacity: 1; }

/* archive label — small gold uppercase label above headings */
.archive-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

/* gold ornament divider */
.ornament-divider {
  text-align: center;
  color: rgba(184, 138, 61, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  margin: 1.4rem auto;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}
.ornament-divider::before, .ornament-divider::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 90px;
  max-width: 22vw;
  height: 1px;
  background: rgba(184, 138, 61, 0.45);
  margin: 0 0.9rem;
}

/* ---------- layout ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.2rem 3.5rem;
  position: relative;
  z-index: 1;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 2.4rem;
  padding: 1.6rem 0 0;
  align-items: start;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184, 138, 61, 0.28);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.65rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  height: 70px;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-head);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ivory-bright);
  text-transform: uppercase;
}
.brand:hover .brand-word { color: var(--gold-light); }
.brand-sub {
  font-family: var(--font-head);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
}
.header-nav a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--ivory);
  text-transform: uppercase;
  padding: 0.35rem 0.1rem;
  position: relative;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--gold-light); }
.header-nav a.active { color: var(--gold); }
.header-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--gold);
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(184,138,61,0.38);
  color: var(--ivory);
  font-size: 1.1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
}
.search-toggle {
  background: none;
  border: 1px solid rgba(205, 170, 90, 0.25);
  color: var(--ivory);
  font-size: 1.15rem;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.search-toggle:hover { border-color: var(--gold); color: var(--gold-light); }

/* search panel */
.search-panel {
  display: none;
  position: fixed;
  top: 70px;
  left: 0; right: 0;
  z-index: 99;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(184, 138, 61, 0.35);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.2rem;
}
.search-panel.open { display: block; }
.search-panel-inner { max-width: 760px; margin: 0 auto; }
.search-panel label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.search-panel input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  color: var(--ivory);
  font-size: 1.1rem;
  font-family: var(--font-body);
  padding: 0.55rem 0;
  outline: none;
}
.search-panel input:focus { border-bottom-color: var(--gold); }
.search-hit {
  display: block;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--ivory);
  font-size: 0.92rem;
}
.search-hit span {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
}
.search-hit:hover { color: var(--gold-light); }
.search-empty { font-size: 0.85rem; color: var(--text-muted); margin: 0.4rem 0; }
.search-count { font-size: 0.72rem; color: var(--text-muted); margin: 0.6rem 0 0; }

/* ---------- breadcrumbs ---------- */
.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #817D70;
  margin: 1.1rem 0 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.breadcrumb a { color: #817D70; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(184, 138, 61, 0.28);
  margin: 0 -1.2rem;
  padding: 3.5rem 1.2rem;
  overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(10, 18, 22, 0.92) 0%, rgba(10, 18, 22, 0.45) 55%, transparent 100%),
    linear-gradient(to top, var(--bg-primary) 0%, transparent 40%),
    url('/assets/hero.jpg');
  background-size: cover;
  background-position: center 38%;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 0.2rem; }
.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-tagline {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 560px;
  margin-bottom: 1.7rem;
}
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.hero-btn, .btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hero-btn {
  background: var(--bronze-btn);
  color: #F0E8D6;
  border: 1px solid var(--bronze-btn-border);
}
.hero-btn:hover { background: #a37d3c; color: #F0E8D6; }
.btn--secondary, .btn-secondary {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.btn--secondary:hover, .btn-secondary:hover { background: rgba(184, 138, 61, 0.1); color: var(--gold-light); }

/* ---------- game info bar ---------- */
.game-info-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 2rem 0 0.5rem;
}
.info-cell {
  background: var(--bg-secondary);
  padding: 0.85rem 1rem;
  text-align: center;
}
.info-cell .value {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--ivory-bright);
  text-transform: uppercase;
}
.info-cell small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.25rem;
}

/* game information panel (two-column rows) */
.game-info-panel {
  background: rgba(20, 35, 41, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  margin: 1.6rem 0;
  overflow: hidden;
}
.game-info-panel h3 {
  margin: 0;
  padding: 0.8rem 1.1rem;
  background: rgba(40, 72, 74, 0.35);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}
.game-info-panel .panel-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid rgba(184, 138, 61, 0.1);
}
.game-info-panel .panel-row:last-child { border-bottom: none; }
.game-info-panel .panel-label {
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.6rem 1.1rem;
  background: rgba(0, 0, 0, 0.12);
}
.game-info-panel .panel-value {
  padding: 0.6rem 1.1rem;
  color: var(--ivory);
  font-size: 0.92rem;
}

/* ---------- category cards ---------- */
.guide-grid { margin-top: 2.6rem; }
.guide-grid h2 { text-align: center; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.cat-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid rgba(184, 138, 61, 0.22);
  border-radius: 5px;
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.cat-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.cat-card .cat-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.cat-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  transition: color 0.2s;
}
.cat-card:hover h3 { color: var(--gold-light); }
.cat-card p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin: 0;
  line-height: 1.6;
}
.cat-card .cat-arrow {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: var(--gold-dark);
  font-size: 1rem;
  transition: color 0.2s;
}
.cat-card:hover .cat-arrow { color: var(--gold-light); }

/* ---------- featured guides ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.featured-main {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  text-decoration: none;
}
.featured-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 18, 22, 0.92) 0%, rgba(10, 18, 22, 0.35) 55%, transparent 100%);
}
.featured-main .featured-text { position: relative; z-index: 2; padding: 1.5rem; }
.featured-main .cat-label {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}
.featured-main h3 { color: var(--ivory-bright); margin: 0 0 0.3rem; font-size: 1.2rem; }
.featured-main .featured-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.featured-side { display: grid; grid-template-rows: repeat(2, 1fr); gap: 1.4rem; }
.featured-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid rgba(184, 138, 61, 0.22);
  border-radius: 5px;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  transition: transform 0.22s, border-color 0.22s;
}
.featured-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.featured-card h3 { font-size: 0.98rem; margin: 0.3rem 0 0.35rem; }
.featured-card p { font-size: 0.84rem; color: var(--text-secondary); margin: 0; }

/* ---------- article layout ---------- */
.main-content {
  min-width: 0;
  max-width: 860px;
}
.main-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(184, 138, 61, 0.25);
  border-radius: 3px;
  margin: 1.1rem 0 0.4rem;
  box-shadow: var(--shadow-img);
}
.img-caption, figcaption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.4rem;
}
.last-updated {
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.6rem;
}
.page-intro {
  font-size: 1.02rem;
  color: var(--text-secondary);
  border-left: 2px solid rgba(184, 138, 61, 0.4);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* sidebar */
.sidebar { position: sticky; top: 92px; }
.nav-section {
  border-top: 1px solid rgba(184, 138, 61, 0.4);
  padding-top: 0.9rem;
  margin-bottom: 1.6rem;
}
.nav-section h3 {
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.nav-section ul { list-style: none; margin: 0; }
.nav-section li { margin-bottom: 0.3rem; }
.nav-section a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 1px solid transparent;
  padding-left: 0.65rem;
  display: block;
  transition: color 0.2s, border-color 0.2s;
}
.nav-section a:hover { color: var(--gold-light); border-left-color: var(--gold); }
.nav-section.related-links { border-top-color: rgba(184, 138, 61, 0.2); }

/* ---------- callouts ---------- */
.callout {
  border-left: 3px solid var(--gold);
  background: rgba(184, 138, 61, 0.07);
  border-radius: 3px;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  font-size: 0.94rem;
}
.callout .callout-label {
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.35rem;
}
.callout.important { border-left-color: var(--gold-dark); background: rgba(101, 81, 58, 0.12); }
.callout.important .callout-label { color: var(--gold-light); }
.callout.secret { border-left-color: var(--teal-light); background: rgba(61, 102, 99, 0.1); }
.callout.secret .callout-label { color: var(--teal-light); }
.callout.warning { border-left-color: var(--warning); background: rgba(142, 81, 71, 0.1); }
.callout.warning .callout-label { color: #c98a7d; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- step-by-step ---------- */
.guide-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(184, 138, 61, 0.12);
}
.guide-step:last-child { border-bottom: none; }
.guide-step .step-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.05em;
}
.guide-step h3 { margin: 0 0 0.45rem; font-size: 1rem; }
.guide-step p { margin: 0; font-size: 0.93rem; color: var(--text-primary); }

/* ---------- tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 0.9rem;
  background: rgba(23, 38, 43, 0.6);
  border: 1px solid var(--border);
}
th {
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 0.7rem 0.9rem;
  background: rgba(40, 72, 74, 0.35);
  border-bottom: 1px solid var(--border-strong);
}
td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(184, 138, 61, 0.1);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
td a { color: var(--gold-light); }

/* ---------- tags ---------- */
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 0.18rem 0.55rem;
  margin: 0 0.35rem 0.35rem 0;
}

/* ---------- cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(184, 138, 61, 0.22);
  border-radius: 5px;
  padding: 1.1rem 1.2rem;
}
.card h3 { font-size: 0.95rem; margin: 0 0 0.4rem; }
.card p { font-size: 0.84rem; color: var(--text-secondary); margin: 0 0 0.6rem; }
.card-link { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

/* collectible museum cards */
.collectible-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0;
}
.collectible-card {
  background: var(--bg-card);
  border: 1px solid rgba(184, 138, 61, 0.18);
  border-radius: 4px;
  padding: 1rem 1.1rem;
}
.collectible-card .cc-type {
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-light);
  display: block;
  margin-bottom: 0.4rem;
}
.collectible-card h4 { font-size: 0.92rem; margin: 0 0 0.35rem; }
.collectible-card p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }

/* character cards */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.character-card {
  background: var(--bg-card);
  border: 1px solid rgba(184, 138, 61, 0.22);
  border-radius: 5px;
  padding: 1.2rem 1.3rem;
  transition: transform 0.22s, border-color 0.22s;
}
.character-card:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.character-card .cc-role {
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}
.character-card h3 { font-size: 1rem; margin: 0 0 0.45rem; }
.character-card p { font-size: 0.84rem; color: var(--text-secondary); margin: 0; }

/* ---------- chapter list (walkthrough hub) ---------- */
.chapter-list { margin: 1.4rem 0; }
.chapter-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(184, 138, 61, 0.12);
  align-items: start;
}
.chapter-item:last-child { border-bottom: none; }
.chapter-item .ch-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1.1;
}
.chapter-item h3 { margin: 0 0 0.35rem; font-size: 1.02rem; }
.chapter-item h3 a { color: var(--ivory-bright); }
.chapter-item h3 a:hover { color: var(--gold-light); }
.chapter-item p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }
.chapter-item .ch-meta {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

/* ---------- FAQ ---------- */
.home-faq { margin-top: 2.6rem; }
.home-faq h2 { text-align: center; }
.faq-item {
  border: 1px solid rgba(184, 138, 61, 0.18);
  border-radius: 4px;
  background: rgba(23, 38, 43, 0.55);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-item summary {
  font-family: var(--font-head);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--ivory);
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item summary:hover { color: var(--gold-light); }
.faq-body {
  padding: 0 1.2rem 1rem;
  color: var(--text-primary);
  font-size: 0.92rem;
}
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(184, 138, 61, 0.35);
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.6rem 1.2rem 1.8rem;
}
.footer-brand { text-align: center; margin-bottom: 1.8rem; }
.footer-word {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ivory-bright);
  display: block;
}
.footer-sub {
  font-family: var(--font-head);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 1.6rem;
}
.footer-col strong {
  font-family: var(--font-head);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.7rem;
}
.footer-col a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}
.footer-col a:hover { color: var(--gold-light); }
.footer-divider {
  text-align: center;
  color: rgba(184, 138, 61, 0.45);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  margin: 1.2rem 0;
  user-select: none;
}
.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ---------- ad slot ---------- */
.ad-slot {
  min-height: 90px;
  margin: 1.8rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(184, 138, 61, 0.15);
  border-radius: 4px;
  background: rgba(23, 38, 43, 0.35);
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 4rem 1rem; }
.notfound .big { font-size: 3rem; margin-bottom: 1rem; color: var(--gold-dark); }
.notfound h1 { margin-bottom: 0.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .content-wrapper { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: block; }
  .header-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-header);
    border-bottom: 1px solid rgba(184, 138, 61, 0.28);
    padding: 0.8rem 1.2rem 1.1rem;
    gap: 0.2rem;
    backdrop-filter: blur(10px);
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 0.55rem 0; width: 100%; border-bottom: 1px solid rgba(184,138,61,0.1); }
  .header-nav a.active::after { display: none; }
}

@media (max-width: 720px) {
  .hero { min-height: 420px; padding: 2.4rem 1.2rem; }
  .sidebar { grid-template-columns: 1fr; }
  .nav-section.related-links { display: none; }
  .guide-step { grid-template-columns: 48px 1fr; gap: 0.9rem; }
  .guide-step .step-num { font-size: 1.7rem; }
  .chapter-item { grid-template-columns: 52px 1fr; gap: 0.9rem; }
  .game-info-panel .panel-row { grid-template-columns: 1fr; }
  .game-info-panel .panel-label { border-bottom: 1px solid rgba(184,138,61,0.1); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1rem 3rem; }
  .hero { margin: 0 -1rem; }
  .ornament-divider::before, .ornament-divider::after { width: 40px; }
}
