/* ============================================================
   永恒世界 (Eternal World) — Eternal Cosmic Theme
   Deep Time Blues + Infinity Golds + Hourglass Motifs
   Light Starlight Background · Transcendent Longevity Aesthetic
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Cosmic palette */
  --cosmic-deep: #1a2a6c;
  --cosmic-mid: #2d4a8e;
  --cosmic-light: #4a6db5;
  --cosmic-dusk: #6b8fd4;

  /* Infinity golds */
  --gold-infinity: #c9a030;
  --gold-warm: #d4a843;
  --gold-light: #e8c96a;
  --gold-pale: #f5e4b8;

  /* Backgrounds */
  --bg: #f4f6fc;
  --bg-alt: #edf0f9;
  --bg-card: #ffffff;
  --bg-header: rgba(26, 42, 108, 0.95);
  --bg-footer: #1a2a6c;

  /* Text */
  --text: #1a1f36;
  --text-light: #555b73;
  --text-muted: #8890a8;
  --text-on-dark: #e8ecf4;

  /* Accents */
  --accent: var(--gold-infinity);
  --accent-hover: var(--gold-warm);
  --accent-light: var(--gold-pale);
  --accent-glow: rgba(201, 160, 48, 0.25);

  /* Utility */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(26, 42, 108, 0.08);
  --shadow: 0 4px 16px rgba(26, 42, 108, 0.10);
  --shadow-lg: 0 8px 32px rgba(26, 42, 108, 0.12);
  --shadow-gold: 0 4px 16px var(--accent-glow);
  --transition: 0.25s ease;
  --max-width: 1200px;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', serif;
}

/* --- 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;
  position: relative;
  overflow-x: hidden;
}

/* Starlight particle background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(74, 109, 181, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(201, 160, 48, 0.05) 0%, transparent 35%),
    radial-gradient(circle at 50% 60%, rgba(45, 74, 142, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 30% 85%, rgba(232, 201, 106, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 70% 75%, rgba(107, 143, 212, 0.05) 0%, transparent 35%);
}

/* Star particle scatter via repeating dots */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1px 1px at 5% 8%, rgba(201, 160, 48, 0.4), transparent),
    radial-gradient(1px 1px at 15% 25%, rgba(74, 109, 181, 0.3), transparent),
    radial-gradient(1px 1px at 25% 12%, rgba(232, 201, 106, 0.35), transparent),
    radial-gradient(1px 1px at 38% 40%, rgba(201, 160, 48, 0.3), transparent),
    radial-gradient(1px 1px at 52% 18%, rgba(74, 109, 181, 0.35), transparent),
    radial-gradient(1px 1px at 65% 35%, rgba(201, 160, 48, 0.3), transparent),
    radial-gradient(1px 1px at 78% 8%, rgba(232, 201, 106, 0.35), transparent),
    radial-gradient(1px 1px at 88% 28%, rgba(74, 109, 181, 0.3), transparent),
    radial-gradient(1px 1px at 10% 65%, rgba(201, 160, 48, 0.3), transparent),
    radial-gradient(1px 1px at 20% 80%, rgba(74, 109, 181, 0.35), transparent),
    radial-gradient(1px 1px at 42% 72%, rgba(232, 201, 106, 0.3), transparent),
    radial-gradient(1px 1px at 58% 85%, rgba(201, 160, 48, 0.3), transparent),
    radial-gradient(1px 1px at 72% 68%, rgba(74, 109, 181, 0.35), transparent),
    radial-gradient(1px 1px at 90% 78%, rgba(201, 160, 48, 0.3), transparent);
  background-size: 100% 100%;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--cosmic-deep);
  line-height: 1.3;
}

h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 600; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; color: var(--cosmic-mid); }

a {
  color: var(--cosmic-mid);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-infinity); }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

/* Hourglass accent line under section titles */
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--cosmic-mid), var(--gold-infinity), var(--cosmic-mid));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* --- Header --- */
.site-header {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold-infinity);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-warm), var(--cosmic-dusk));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.main-nav a {
  color: var(--text-on-dark);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold-light);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-infinity);
  transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Nav CTA button */
.nav-cta {
  background: linear-gradient(135deg, var(--gold-infinity), var(--gold-warm));
  color: var(--cosmic-deep) !important;
  padding: 8px 20px !important;
  border-radius: 20px;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-light));
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
  color: var(--cosmic-deep) !important;
}

.nav-cta::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  z-index: 1;
}

.hero-home { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background-size: cover;
  background-position: center;
}

.hero-home .hero-bg { background-image: url('../img/hero-main.webp'); }
.hero-story .hero-bg { background-image: url('../img/world-stars.webp'); }
.hero-characters .hero-bg { background-image: url('../img/char-annie.webp'); }
.hero-guide .hero-bg { background-image: url('../img/world-cyber.webp'); }
.hero-faq .hero-bg { background-image: url('../img/hero-main.webp'); }

/* Cosmic radial glow overlay */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201, 160, 48, 0.08) 0%, rgba(74, 109, 181, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--cosmic-mid), var(--cosmic-light));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--cosmic-deep) 30%, var(--gold-infinity));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag-gold {
  background: var(--gold-pale);
  color: #8b6914;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-blue {
  background: rgba(74, 109, 181, 0.12);
  color: var(--cosmic-mid);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-dusk {
  background: rgba(107, 143, 212, 0.12);
  color: var(--cosmic-light);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-infinity), var(--gold-warm));
  color: var(--cosmic-deep);
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--accent-glow);
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-warm), var(--gold-light));
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
  color: var(--cosmic-deep);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--cosmic-mid);
  padding: 12px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--cosmic-mid);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--cosmic-mid);
  color: #fff;
}

.hero-visual {
  flex: 0 0 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold-pale);
  position: relative;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 160, 48, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* Page hero (sub-pages) */
.page-hero {
  padding: 60px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 160, 48, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--cosmic-deep), var(--gold-infinity));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: var(--text-light);
  max-width: 600px;
  margin: 10px auto 0;
}

/* Hourglass divider */
.cosmic-divider {
  text-align: center;
  padding: 20px 0;
  font-size: 1.1rem;
  color: var(--gold-infinity);
  letter-spacing: 8px;
  position: relative;
  z-index: 1;
}

.cosmic-divider::before,
.cosmic-divider::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-pale), transparent);
  vertical-align: middle;
  margin: 0 12px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 14px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.breadcrumbs a { color: var(--cosmic-mid); }
.breadcrumbs a:hover { color: var(--gold-infinity); }
.breadcrumbs span { color: var(--text-light); }

/* --- Info Grid --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--cosmic-mid);
  transition: all var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--gold-infinity);
  transform: translateY(-2px);
}

.info-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--cosmic-deep);
  margin-top: 4px;
}

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-top: 3px solid transparent;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold-infinity);
  transform: translateY(-3px);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.feature-card-body {
  padding: 20px;
}

.feature-card-body h3 {
  margin-bottom: 8px;
}

.feature-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Story Blocks --- */
.story-block {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--cosmic-mid);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.story-block:hover {
  border-left-color: var(--gold-infinity);
  box-shadow: var(--shadow);
}

.story-chapter {
  display: inline-block;
  background: linear-gradient(135deg, var(--cosmic-mid), var(--cosmic-light));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.story-block h3 {
  margin-bottom: 10px;
}

.story-block p {
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* --- Character Cards --- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.char-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.char-card-header {
  background: linear-gradient(135deg, var(--cosmic-deep), var(--cosmic-mid));
  padding: 16px 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.char-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold-infinity);
  background: linear-gradient(135deg, var(--gold-pale), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  overflow: hidden;
}

.char-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.char-name {
  font-size: 1.1rem;
  font-weight: 600;
}

.char-role {
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-top: 2px;
}

.char-card-body {
  padding: 18px 20px;
}

.char-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.char-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.char-trait {
  background: rgba(201, 160, 48, 0.1);
  color: #8b6914;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

.char-route {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--bg-alt);
}

.char-route-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.char-route-name {
  font-size: 0.85rem;
  color: var(--cosmic-mid);
  font-weight: 500;
  margin-top: 2px;
}

/* --- Guide Steps --- */
.guide-step {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.guide-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cosmic-mid), var(--gold-infinity));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px var(--accent-glow);
}

.guide-step-content {
  flex: 1;
}

.guide-step-content h3 {
  margin-bottom: 6px;
}

.guide-step-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.guide-tip {
  background: linear-gradient(135deg, rgba(201, 160, 48, 0.08), rgba(74, 109, 181, 0.05));
  border-left: 3px solid var(--gold-infinity);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 12px 0 20px;
  font-size: 0.9rem;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.guide-tip strong {
  color: var(--gold-infinity);
}

/* --- FAQ Accordion --- */
.faq-list {
  position: relative;
  z-index: 1;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--bg-alt);
  transition: all var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-item.open {
  border-color: var(--gold-pale);
  box-shadow: var(--shadow-gold);
}

.faq-question {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--cosmic-deep);
  user-select: none;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--gold-infinity);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--cosmic-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all var(--transition);
  color: var(--cosmic-mid);
  line-height: 1;
}

.faq-item.open .faq-toggle {
  background: var(--gold-infinity);
  border-color: var(--gold-infinity);
  color: #fff;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Gallery / Screenshots --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
}

.gallery-item:hover {
  border-color: var(--gold-infinity);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 42, 108, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border: 2px solid var(--gold-pale);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: color var(--transition);
}

.lightbox-close:hover {
  color: var(--gold-light);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--cosmic-deep), var(--cosmic-mid));
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 160, 48, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(232, 201, 106, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 10px;
  position: relative;
}

.cta-banner p {
  margin-bottom: 20px;
  opacity: 0.85;
  font-size: 0.95rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .btn-primary {
  position: relative;
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-infinity);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Version / Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  position: relative;
  z-index: 1;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--bg-alt);
  font-size: 0.9rem;
}

.info-table th {
  background: linear-gradient(135deg, var(--cosmic-deep), var(--cosmic-mid));
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-table th:first-child { border-radius: var(--radius) 0 0 0; }
.info-table th:last-child { border-radius: 0 var(--radius) 0 0; }

.info-table tr:hover td {
  background: rgba(201, 160, 48, 0.04);
}

/* --- Blockquote / Reviews --- */
blockquote {
  background: var(--bg-card);
  border-left: 4px solid var(--gold-infinity);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 20px 0;
  font-style: italic;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

blockquote p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}

.review-stars {
  color: var(--gold-infinity);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  z-index: 1;
  border-left: 2px solid var(--gold-pale);
  padding-left: 24px;
  margin-left: 12px;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-infinity);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--gold-pale);
}

.timeline-version {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-infinity);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Ending Cards --- */
.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.ending-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--cosmic-mid);
  transition: all var(--transition);
}

.ending-card:hover {
  border-top-color: var(--gold-infinity);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ending-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ending-type.true { background: rgba(201, 160, 48, 0.15); color: #8b6914; }
.ending-type.normal { background: rgba(74, 109, 181, 0.1); color: var(--cosmic-mid); }
.ending-type.bad { background: rgba(160, 50, 50, 0.1); color: #a03232; }

.ending-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.ending-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
}

.ending-meta {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- Content Section --- */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.content-section p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.content-section ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content-section ul li {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 6px;
}

.content-section ul li::marker {
  color: var(--gold-infinity);
}

/* --- Tip Boxes --- */
.tip-box {
  background: rgba(74, 109, 181, 0.06);
  border-left: 4px solid var(--cosmic-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

.tip-box strong {
  color: var(--cosmic-mid);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-footer);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  border-top: 2px solid var(--gold-infinity);
}

.site-footer p {
  margin: 0;
}

/* --- Utility classes --- */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.pb-0 { padding-bottom: 0; }
.section-sm { padding: 30px 0; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }

  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bg-header);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 18px;
    transition: right var(--transition);
    z-index: 100;
    backdrop-filter: blur(16px);
  }

  .main-nav.open { right: 0; }

  .hero .container {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .hero h1 { font-size: 2rem; }
  .hero-visual { flex: 0 0 auto; max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-tags { justify-content: center; }

  .info-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .ending-grid { grid-template-columns: 1fr; }

  .stats-row { gap: 20px; }
  .stat-value { font-size: 1.5rem; }

  section { padding: 40px 0; }
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }

  .site-header .container { height: 56px; }
  .logo { font-size: 1.1rem; }
}
