/* ========================================================
   诅咒铠甲 (Cursed Armor) — Cursed Armor Dark Fantasy Theme
   Tarnished bronze + dark curse purples + engraved-rune motifs
   Tragic magical-equipment aesthetic on light worn parchment
   ======================================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg: #f5f0e6;
  --bg-parchment-dark: #e8e0d0;
  --bg-card: #faf6ee;
  --bg-header: #1a1118;
  --bg-footer: #1a1118;
  --text: #2d1f2e;
  --text-muted: #6b5a6e;
  --text-light: #c8b8cc;
  --accent: #7b3a9e;
  --accent-hover: #9b5ac0;
  --accent-light: #e8d4f5;
  --accent-dark: #4e1d68;
  --bronze: #8b6d4a;
  --bronze-light: #b8956a;
  --bronze-dark: #5c3d1e;
  --bronze-pale: #d4c4a8;
  --rune-glow: rgba(123, 58, 158, 0.25);
  --rune-glow-strong: rgba(123, 58, 158, 0.4);
  --border: #d4cbb8;
  --border-light: #e5ded0;
  --shadow: rgba(30, 10, 40, 0.08);
  --shadow-md: rgba(30, 10, 40, 0.12);
  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --max-width: 1100px;
  --radius: 6px;
  --radius-sm: 4px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Parchment texture + rune glow body background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* parchment grain */
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(139, 109, 74, 0.03) 2px,
      rgba(139, 109, 74, 0.03) 4px
    ),
    /* subtle rune glow orbs at corners */
    radial-gradient(ellipse at 10% 20%, var(--rune-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 30%, rgba(139, 109, 74, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 80%, var(--rune-glow) 0%, transparent 40%),
    radial-gradient(ellipse at 15% 75%, rgba(139, 109, 74, 0.08) 0%, transparent 40%);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
h1 { font-size: 2.25rem; margin-bottom: 0.5em; }
h2 { font-size: 1.75rem; margin-bottom: 0.5em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
p { margin-bottom: 1em; }

/* --- Header --- */
header {
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--bronze);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
header::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 15%,
    var(--bronze-light) 30%,
    var(--accent) 50%,
    var(--bronze-light) 70%,
    var(--accent) 85%,
    transparent 100%
  );
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #f0e6d8;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--bronze-dark), var(--bronze));
  border: 2px solid var(--bronze-light);
  border-radius: 4px;
  font-size: 1.2rem;
  color: #f0e6d8;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--rune-glow);
}
nav { display: flex; align-items: center; gap: 0.3rem; }
nav a {
  color: #c8b8cc;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active {
  background: rgba(123, 58, 158, 0.2);
  color: #f0e6d8;
}
.nav-cta {
  background: linear-gradient(135deg, var(--bronze-dark), var(--bronze)) !important;
  color: #f5f0e6 !important;
  font-weight: 600;
  padding: 0.45rem 1.2rem !important;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bronze-light);
  box-shadow: 0 0 10px var(--rune-glow);
  transition: box-shadow 0.3s, transform 0.2s !important;
}
.nav-cta:hover {
  box-shadow: 0 0 18px var(--rune-glow-strong);
  transform: translateY(-1px);
  color: #fff !important;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #c8b8cc;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
}

/* --- Main --- */
main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ========== HOME PAGE STYLES ========== */

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #1a1118 0%, #2d1f2e 40%, #3d2840 100%);
  padding: 4rem 1.5rem;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, var(--rune-glow-strong) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(139, 109, 74, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, var(--rune-glow) 0%, transparent 40%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    /* rune-like engraved lines */
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(139, 109, 74, 0.06) 60px,
      rgba(139, 109, 74, 0.06) 62px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 80px,
      rgba(123, 58, 158, 0.04) 80px,
      rgba(123, 58, 158, 0.04) 82px
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.75rem;
  color: #f0e6d8;
  margin-bottom: 0.3em;
  background: linear-gradient(180deg, #f5e6c8 0%, #c8a870 50%, var(--bronze) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(123, 58, 158, 0.5));
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #c8b8cc;
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.tag-accent, .tag-bronze, .tag-dark {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.tag-accent {
  background: rgba(123, 58, 158, 0.25);
  color: #d4b8e8;
  border: 1px solid rgba(123, 58, 158, 0.4);
}
.tag-bronze {
  background: rgba(139, 109, 74, 0.25);
  color: #d4c4a8;
  border: 1px solid rgba(139, 109, 74, 0.4);
}
.tag-dark {
  background: rgba(30, 10, 40, 0.4);
  color: #b8a8c8;
  border: 1px solid rgba(60, 20, 70, 0.5);
}
.hero-image {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto 2rem;
  border: 2px solid rgba(139, 109, 74, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  object-fit: cover;
}
/* Keep hero-visual as fallback for pages without hero image */
.hero-visual {
  width: 100%;
  max-width: 700px;
  height: 180px;
  margin: 0 auto 2rem;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(139, 109, 74, 0.3) 0%, transparent 60%),
    linear-gradient(180deg,
      rgba(123, 58, 158, 0.15) 0%,
      rgba(139, 109, 74, 0.1) 40%,
      rgba(92, 61, 30, 0.2) 100%
    );
  border: 1px solid rgba(139, 109, 74, 0.3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(139, 109, 74, 0.5);
  position: relative;
}
.hero-visual::after {
  content: '⚔️';
  font-size: 3rem;
  opacity: 0.6;
  filter: grayscale(0.5);
}
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f5f0e6;
  background: linear-gradient(135deg, var(--bronze-dark), var(--bronze));
  border: 1px solid var(--bronze-light);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s, background 0.3s;
  box-shadow: 0 0 15px var(--rune-glow);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}
.btn-primary:hover {
  box-shadow: 0 0 25px var(--rune-glow-strong);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--bronze), var(--bronze-light));
  color: #fff;
}
.btn-secondary {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Rune Divider --- */
.rune-divider {
  text-align: center;
  margin: 1.5rem 0;
  color: var(--bronze);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  opacity: 0.5;
}

/* --- Section --- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  position: relative;
}
.section h2 {
  text-align: center;
  margin-bottom: 0.3em;
  color: var(--text);
  position: relative;
  display: inline-block;
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, var(--bronze), var(--accent), var(--bronze));
  border-radius: 2px;
}
.section-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Info Cards --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--bronze);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.info-card:hover {
  border-left-color: var(--accent);
  box-shadow: 0 4px 16px var(--shadow-md);
}
.info-card h3 {
  color: var(--accent-dark);
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}
.info-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.feature-card:hover {
  border-left-color: var(--bronze);
  box-shadow: 0 4px 20px var(--shadow-md);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #e8d4f5;
  box-shadow: 0 0 10px var(--rune-glow);
}
.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Story Blocks --- */
.story-block {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}
.story-block:hover {
  border-left-color: var(--bronze);
}
.story-block h3 {
  color: var(--accent-dark);
  margin-bottom: 0.3rem;
}
.story-chapter {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bronze);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* --- Character Cards --- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.char-card:hover {
  box-shadow: 0 6px 24px var(--shadow-md);
}
.char-header {
  background: linear-gradient(135deg, var(--bg-header), #2d1f2e);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}
.char-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bronze), var(--accent), var(--bronze));
}
.char-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 0.75rem;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #e8d4f5;
  border: 2px solid var(--bronze-light);
  box-shadow: 0 0 12px var(--rune-glow);
  overflow: hidden;
}
.char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.char-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid var(--bronze);
}
.char-header h3 {
  color: #f0e6d8;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}
.char-role {
  color: var(--bronze-light);
  font-size: 0.85rem;
  font-weight: 500;
}
.char-body {
  padding: 1.25rem 1.5rem;
}
.char-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}
.char-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.char-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border: 1px solid rgba(123, 58, 158, 0.2);
}

/* --- Guide Steps --- */
.guide-steps {
  counter-reset: step;
  margin-bottom: 3rem;
}
.guide-step {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: box-shadow 0.3s;
}
.guide-step:hover {
  box-shadow: 0 4px 16px var(--shadow-md);
}
.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #f5f0e6;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border: 2px solid var(--bronze-light);
  box-shadow: 0 0 10px var(--rune-glow);
}
.step-content h3 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}
.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto 3rem;
}
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-body);
  text-align: left;
  transition: background 0.2s;
}
.faq-question:hover {
  background: rgba(123, 58, 158, 0.05);
}
.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s;
  color: var(--accent);
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-header), #2d1f2e);
  border: 1px solid var(--bronze-dark);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 3rem 0 2rem;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 50%, var(--rune-glow) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(139, 109, 74, 0.12) 0%, transparent 60%);
}
.cta-banner h2 {
  color: #f0e6d8;
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: #c8b8cc;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;
}
.cta-banner .btn-primary {
  position: relative;
  z-index: 1;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--accent);
}
.breadcrumbs span {
  margin: 0 0.4rem;
}

/* --- Page Hero (sub-pages) --- */
.page-hero {
  background: linear-gradient(170deg, #1a1118 0%, #2d1f2e 60%, var(--bg) 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 40% 30%, var(--rune-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 60%, rgba(139, 109, 74, 0.1) 0%, transparent 50%);
}
.page-hero h1 {
  color: #f0e6d8;
  position: relative;
  z-index: 1;
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: #c8b8cc;
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}
.stat-item {
  text-align: center;
  padding: 1.25rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  min-width: 120px;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--accent);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* --- Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table th, .info-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.info-table th {
  background: rgba(139, 109, 74, 0.08);
  color: var(--bronze-dark);
  font-weight: 600;
  width: 30%;
  font-family: var(--font-heading);
}
.info-table td {
  color: var(--text-muted);
}

/* --- Tip Box --- */
.tip-box {
  background: rgba(123, 58, 158, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.tip-box h4 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1rem; }
.tip-box p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }

/* --- Blockquote --- */
blockquote {
  background: var(--bg-card);
  border-left: 4px solid var(--bronze);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-md);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 15, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  border: 2px solid var(--bronze);
  box-shadow: 0 0 40px var(--rune-glow);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: #f0e6d8;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  color: #c8b8cc;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* --- Footer --- */
footer {
  background: var(--bg-footer);
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.88rem;
  border-top: 3px solid var(--bronze);
  position: relative;
  z-index: 1;
}

/* --- Breadcrumbs --- */
.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--accent-hover); }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.pb-0 { padding-bottom: 0; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.accent-text { color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 3px solid var(--bronze);
    gap: 0.25rem;
  }
  nav.active { display: flex; }
  nav a { width: 100%; text-align: center; padding: 0.6rem; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 2.5rem 1rem; }
  .info-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .guide-step { flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 0.75rem; }
  .stat-item { padding: 1rem 1.5rem; min-width: auto; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero { padding: 3rem 1rem; }
  .btn-primary { padding: 0.6rem 1.5rem; font-size: 1rem; }
}
