/* ========================================
   混沌之魂 (Chaos Souls) - Chaotic Soul Theme
   Void Purples + Soul-Flame Blues + Fractured Crystal Motifs
   Dark Ethereal on Light Misty Background
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg: #f5f4f8;
  --bg-alt: #eceaf2;
  --bg-header: #1a0f2e;
  --bg-hero: #120824;
  --bg-footer: #1a0f2e;
  --bg-card: #ffffff;
  --bg-card-alt: #f8f7fc;
  --bg-tip: #f0edf8;

  --accent: #4a9eff;
  --accent-hover: #3a7eef;
  --accent-light: #d0e4ff;
  --accent-glow: rgba(74, 158, 255, 0.25);

  --void: #6b2fa0;
  --void-dark: #2d1742;
  --void-light: #8b5fc0;
  --void-glow: rgba(107, 47, 160, 0.2);

  --crystal: #00d4ff;
  --crystal-light: #80ecff;
  --crystal-glow: rgba(0, 212, 255, 0.3);

  --text: #2d1742;
  --text-light: #6b5b7a;
  --text-muted: #9388a3;
  --text-inverse: #f0ecf8;

  --gold: #c9a030;
  --gold-light: #e0c860;

  --border: #d8d4e8;
  --border-light: #eae6f4;
  --shadow: 0 2px 12px rgba(45, 23, 66, 0.08);
  --shadow-lg: 0 8px 32px rgba(45, 23, 66, 0.12);
  --shadow-glow: 0 0 24px var(--crystal-glow);

  --radius: 8px;
  --radius-lg: 12px;
  --radius-sm: 4px;

  --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-heading: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Serif SC', serif;

  --max-width: 1120px;
  --header-height: 64px;
}

/* --- 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);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Light misty background with ethereal crystal shard pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(0, 212, 255, 0.06), transparent),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(107, 47, 160, 0.05), transparent),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(74, 158, 255, 0.04), transparent),
    radial-gradient(ellipse 30% 40% at 25% 80%, rgba(0, 212, 255, 0.04), transparent);
}

/* --- Header --- */
header {
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 2px solid var(--void);
  box-shadow: 0 2px 16px rgba(26, 15, 46, 0.3);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-inverse);
  text-decoration: none;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--void), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 12px rgba(74, 158, 255, 0.4);
  position: relative;
}
.logo-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--crystal), var(--void));
  z-index: -1;
  opacity: 0.6;
}

/* Nav */
nav { display: flex; align-items: center; gap: 8px; }
nav a {
  color: rgba(240, 236, 248, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  position: relative;
  white-space: nowrap;
}
nav a:hover,
nav a.active {
  color: var(--text-inverse);
  background: rgba(74, 158, 255, 0.15);
}
nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}
.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--void)) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 20px !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 2px 12px rgba(74, 158, 255, 0.35);
  transition: all 0.3s !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(74, 158, 255, 0.5) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-inverse);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-hero) 0%, #1a1040 40%, #2d1742 70%, var(--bg) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.35;
  z-index: 0;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
/* Crystal fracture overlays */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 30% 50% at 20% 30%, rgba(0, 212, 255, 0.12), transparent),
    radial-gradient(ellipse 25% 40% at 80% 60%, rgba(107, 47, 160, 0.15), transparent),
    radial-gradient(circle at 50% 70%, rgba(74, 158, 255, 0.08), transparent 60%);
  pointer-events: none;
}
/* Fracture lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(30deg, transparent 48%, rgba(0, 212, 255, 0.06) 48.5%, rgba(0, 212, 255, 0.06) 49.5%, transparent 49.5%),
    linear-gradient(-25deg, transparent 65%, rgba(107, 47, 160, 0.05) 65.5%, rgba(107, 47, 160, 0.05) 66%, transparent 66%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 48px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(0, 212, 255, 0.4), 0 0 80px rgba(107, 47, 160, 0.3);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--crystal), var(--accent), var(--void-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: 1.15rem;
  color: rgba(240, 236, 248, 0.75);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero-tags span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(240, 236, 248, 0.85);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  backdrop-filter: blur(4px);
}
.hero .btn-hero {
  display: inline-block;
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--void));
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(74, 158, 255, 0.4);
  transition: all 0.3s;
  letter-spacing: 0.04em;
}
.hero .btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.55);
}

/* Page hero (sub-pages) */
.page-hero {
  background: linear-gradient(180deg, var(--bg-hero), #1a1040, var(--bg));
  min-height: 220px;
}
.page-hero .hero h1 { font-size: 2.4rem; }

/* --- Crystal Divider --- */
.crystal-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--crystal), var(--void), var(--accent), transparent);
  margin: 0 auto;
  max-width: 200px;
  border-radius: 2px;
  opacity: 0.5;
}

/* --- Content Sections --- */
main { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }
.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--void-dark);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 40px;
}
.section-alt { background: var(--bg-alt); }

/* --- Info Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.info-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-light), rgba(0, 212, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card h4 { font-size: 0.9rem; color: var(--text-light); margin-bottom: 4px; font-weight: 500; }
.info-card p { font-size: 0.95rem; color: var(--text); font-weight: 600; }

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--void), var(--accent), var(--crystal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--crystal-glow);
  border-color: var(--accent-light);
}
.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--void-dark);
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Screenshot Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-grid a {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.35s;
  border: 2px solid var(--border-light);
  cursor: pointer;
}
.gallery-grid a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 16px var(--crystal-glow);
  border-color: var(--accent);
}
.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* --- Story Block --- */
.story-block {
  background: var(--bg-card);
  border-left: 4px solid var(--void);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.story-block:hover { border-left-color: var(--accent); }
.story-block h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--void-dark);
  margin-bottom: 8px;
}
.story-block p { color: var(--text-light); font-size: 0.95rem; line-height: 1.75; }
.story-label {
  display: inline-block;
  background: linear-gradient(135deg, var(--void-light), var(--void));
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* --- Character Cards --- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.35s;
}
.char-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--void-glow);
}
.char-card-header {
  background: linear-gradient(135deg, var(--bg-header), var(--void-dark));
  padding: 20px;
  text-align: center;
  position: relative;
}
.char-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--crystal), var(--accent));
  border-radius: 2px;
}
.char-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--void), var(--accent));
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 0 16px var(--accent-glow);
}
.char-card-header h3 {
  font-family: var(--font-heading);
  color: var(--text-inverse);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.char-card-header .char-title {
  color: rgba(240, 236, 248, 0.6);
  font-size: 0.85rem;
}
.char-card-body {
  padding: 20px;
}
.char-card-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.char-trait {
  background: var(--bg-alt);
  color: var(--void);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}
.char-trait.trait-blue { color: var(--accent); background: var(--accent-light); }

/* --- Guide Steps --- */
.guide-steps { counter-reset: step; }
.guide-step {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 24px 24px 72px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 0.3s;
}
.guide-step:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.guide-step::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--void), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}
.guide-step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--void-dark);
  margin-bottom: 8px;
}
.guide-step p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* --- Tip Box --- */
.tip-box {
  background: var(--bg-tip);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 0.95rem;
  color: var(--text-light);
}
.tip-box strong { color: var(--void); }

/* --- FAQ Accordion --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.faq-item:hover { border-color: var(--accent-light); }
.faq-item.open { border-color: var(--accent); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 48px 18px 20px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--void-dark);
  cursor: pointer;
  position: relative;
  line-height: 1.5;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--void-light), var(--void));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.faq-item.open .faq-question::after {
  content: '×';
  background: linear-gradient(135deg, var(--accent), var(--crystal));
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}
.faq-answer p { color: var(--text-light); font-size: 0.95rem; line-height: 1.75; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-header), var(--void-dark));
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 30% at 30% 30%, rgba(0, 212, 255, 0.08), transparent),
    radial-gradient(ellipse 40% 40% at 70% 60%, rgba(107, 47, 160, 0.12), transparent);
  pointer-events: none;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.cta-banner p {
  color: rgba(240, 236, 248, 0.65);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.btn-cta {
  display: inline-block;
  padding: 14px 44px;
  background: linear-gradient(135deg, var(--accent), var(--void));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(74, 158, 255, 0.4);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
  letter-spacing: 0.04em;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74, 158, 255, 0.55);
}

/* --- Tags --- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 500;
}
.tag-purple { background: #e8e0f4; color: var(--void); }
.tag-blue { background: var(--accent-light); color: var(--accent); }
.tag-cyan { background: rgba(0, 212, 255, 0.1); color: #0088aa; }

/* --- Stats Row --- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  text-align: center;
}
.stat-item .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--void);
  display: block;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--void-light); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* --- Blockquote --- */
blockquote {
  background: var(--bg-tip);
  border-left: 4px solid var(--void-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--text-light);
  font-style: italic;
}

/* --- Requirements Table --- */
.req-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.req-table th,
.req-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.req-table th {
  background: var(--bg-header);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.req-table th:first-child { border-radius: var(--radius) 0 0 0; }
.req-table th:last-child { border-radius: 0 var(--radius) 0 0; }
.req-table tr:nth-child(even) { background: var(--bg-alt); }
.req-table tr:hover { background: var(--accent-light); }

/* --- Footer --- */
footer {
  background: var(--bg-footer);
  color: rgba(240, 236, 248, 0.5);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  margin-top: 56px;
}
footer p { margin: 0; }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(18, 8, 36, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.2);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.25s;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --header-height: 56px; }
  nav { 
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-header);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  nav.open { transform: translateX(0); }
  .hamburger { display: flex; }

  .hero { min-height: 340px; }
  .hero h1 { font-size: 2rem; }
  .hero-tagline { font-size: 1rem; }
  .page-hero { min-height: 180px; }
  .page-hero .hero h1 { font-size: 1.7rem; }

  section { padding: 36px 0; }
  .section-title { font-size: 1.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { padding: 28px 20px; }
  .cta-banner h2 { font-size: 1.4rem; }
  .stats-row { gap: 20px; }
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .guide-step { padding: 18px 16px 18px 56px; }
  .guide-step::before { left: 12px; top: 18px; width: 28px; height: 28px; font-size: 0.85rem; }
}

/* --- Hero background images per page --- */
.hero-home .hero-bg { background-image: url('../img/header.jpg'); }
.hero-guide .hero-bg { background-image: url('../img/screenshot-01.jpg'); background-position: center 30%; }
.hero-story .hero-bg { background-image: url('../img/screenshot-02.jpg'); background-position: center 20%; }
.hero-characters .hero-bg { background-image: url('../img/screenshot-03.jpg'); background-position: center 25%; }
.hero-faq .hero-bg { background-image: url('../img/header.jpg'); }
