/* ============================================================
   不败世界与终焉之花 — Final Bloom Apocalypse Theme
   Wilting-petal purples, apocalypse golds, last-bloom motifs
   Light twilight background
   ============================================================ */

/* ========== FONT IMPORT ========== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* === COLOR PALETTE — Final Bloom Apocalypse === */
  --bg:              #faf7f2;
  --bg-warm:         #f5f0e8;
  --twilight:        #e8dff2;
  --twilight-deep:   #d4c5e8;
  --purple-darkest:  #1f0d2e;
  --purple-deep:     #3e2058;
  --purple-mid:      #6a3d96;
  --purple-light:    #8b5fbf;
  --purple-pale:     #b89dd6;
  --purple-ghost:    #d9cae8;
  --gold-bright:     #d4a843;
  --gold-mid:        #c4993a;
  --gold-deep:       #a67c2e;
  --gold-pale:       #e8d19e;
  --gold-ghost:      #f2e6cc;
  --pink-wilt:       #c97a8c;
  --pink-deep:       #b05a6e;
  --pink-pale:       #e8b8c4;
  --rose-dusk:       #d4899e;
  --text:            #2b1a3d;
  --text-soft:       #5c4870;
  --text-muted:      #8a7a9e;
  --text-light:      #b8a8cc;
  --white:           #ffffff;
  --card-bg:         #fefdf9;
  --card-border:     #e8dff2;
  --header-bg:       rgba(31, 13, 46, 0.96);
  --header-border:   #6a3d96;
  --overlay:         rgba(31, 13, 46, 0.55);
  --overlay-light:   rgba(31, 13, 46, 0.15);
  --shadow-sm:       0 2px 8px rgba(62, 32, 88, 0.08);
  --shadow-md:       0 4px 20px rgba(62, 32, 88, 0.12);
  --shadow-lg:       0 8px 40px rgba(62, 32, 88, 0.16);
  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       20px;

  /* === TYPOGRAPHY === */
  --font-serif:      'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-sans:       'Noto Sans SC', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;

  /* === ACCENT COLORS FOR STRONG TAGS === */
  --accent-gold:     #c4993a;
  --pink-fierce:     #c24a64;
  --danger-red:      #c0392b;
  --text-muted-alt:  #7a6b90;
  --uniform-navy:    #2c1a4a;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  position: relative;
  overflow-x: hidden;
}

/* === Twilight body background with subtle bloom petal pattern === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(180, 157, 214, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 85%, rgba(232, 209, 158, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(200, 180, 220, 0.06) 0%, transparent 60%);
}

/* ========== SCREEN READER ONLY ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ========== STICKY HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--header-border);
  padding: 0;
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo img {
  height: 36px;
  width: 36px;
  border-radius: 6px;
}

.header-logo span {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-nav a {
  color: var(--purple-ghost);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--gold-bright);
  background: rgba(106, 61, 150, 0.2);
}

/* === Header CTA Button === */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-mid));
  color: var(--purple-darkest) !important;
  padding: 8px 20px !important;
  border-radius: 24px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(196, 153, 58, 0.35);
}

.header-cta:hover {
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-deep));
  box-shadow: 0 4px 18px rgba(196, 153, 58, 0.5);
  transform: translateY(-1px);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  padding: 60px 24px 80px;
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(31, 13, 46, 0.65) 0%, rgba(62, 32, 88, 0.45) 40%, rgba(180, 157, 214, 0.2) 100%),
    var(--twilight);
}

/* === Decorative falling petals in hero (pseudo-elements) === */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 3px at 15% 30%, rgba(201, 122, 140, 0.5) 0%, transparent 100%),
    radial-gradient(circle 4px at 25% 60%, rgba(196, 153, 58, 0.4) 0%, transparent 100%),
    radial-gradient(circle 3px at 60% 20%, rgba(180, 157, 214, 0.45) 0%, transparent 100%),
    radial-gradient(circle 5px at 75% 70%, rgba(201, 122, 140, 0.35) 0%, transparent 100%),
    radial-gradient(circle 3px at 85% 35%, rgba(232, 209, 158, 0.45) 0%, transparent 100%),
    radial-gradient(circle 4px at 40% 80%, rgba(139, 95, 191, 0.3) 0%, transparent 100%),
    radial-gradient(circle 2px at 10% 85%, rgba(212, 168, 67, 0.4) 0%, transparent 100%),
    radial-gradient(circle 3px at 90% 15%, rgba(212, 137, 158, 0.4) 0%, transparent 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title-main {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 12px rgba(31, 13, 46, 0.45);
  margin-bottom: 12px;
  line-height: 1.3;
}

.hero-title-main .jp-subtitle {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--gold-pale);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--purple-ghost);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === Sub-page hero (reduced padding & compact h1) === */
.hero-subpage {
  padding: 40px 24px 48px;
}

.hero-subpage-title {
  font-size: 2rem;
  font-weight: 700;
}

/* ========== CONTENT SECTIONS ========== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-alt {
  background: var(--bg-warm);
  padding: 56px 0;
}

.section-no-padding {
  padding: 0;
}

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

.section-title-group-spaced {
  margin-top: 48px;
}

.section-title-group h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  text-align: center;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

/* === Content Section H2 (sub-page title that's visually h1 but semantically h2) === */
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

/* ========== DIVIDER WITH BLOOM MOTIF ========== */
.divider-bloom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
}

.divider-bloom::before,
.divider-bloom::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--purple-pale));
}

.divider-bloom::after {
  background: linear-gradient(to left, transparent, var(--purple-pale));
}

.divider-bloom span {
  font-size: 1.2rem;
  color: var(--purple-light);
}

/* ========== PROSE CENTERED (index.html game overview) ========== */
.prose-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
  color: var(--text-soft);
  line-height: 1.85;
  font-size: 0.95rem;
}

.prose-centered:last-of-type {
  margin-bottom: 40px;
}

/* ========== GAME INFO DESCRIPTIVE LINE ========== */
.game-info-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0;
}

/* ========== HERO HEADER IMAGE ========== */
.hero-image-container {
  max-width: 900px;
  margin: 32px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

/* ========== INFO CARD GRID (index.html) ========== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--purple-mid);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.3s;
}

.info-card:nth-child(2) { border-left-color: var(--gold-mid); }
.info-card:nth-child(3) { border-left-color: var(--pink-deep); }
.info-card:nth-child(4) { border-left-color: var(--purple-light); }
.info-card:nth-child(5) { border-left-color: var(--rose-dusk); }
.info-card:nth-child(6) { border-left-color: var(--gold-deep); }

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

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

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 4px;
}

.info-card p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ========== FEATURE CARDS (index.html) ========== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.3s;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-light), var(--gold-mid), var(--pink-wilt));
  border-radius: 0 0 4px 4px;
}

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

.feature-card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ========== SCREENSHOT GALLERY (index.html) ========== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.screenshot-grid a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.screenshot-grid a:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.screenshot-grid img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ========== REVIEWS / QUOTES SECTION (index.html) ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.review-card blockquote {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 12px;
  font-style: italic;
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--purple-pale);
}

.review-card .reviewer {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.review-card .reviewer::before {
  content: '— ';
  color: var(--gold-mid);
}

/* ========== CTA BANNER (index.html) ========== */
.cta-banner {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--twilight-deep) 0%, var(--purple-ghost) 50%, var(--gold-ghost) 100%);
  border-radius: var(--radius-lg);
  margin-top: 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 4px at 10% 20%, rgba(139, 95, 191, 0.3) 0%, transparent 100%),
    radial-gradient(circle 3px at 85% 70%, rgba(196, 153, 58, 0.25) 0%, transparent 100%),
    radial-gradient(circle 5px at 50% 50%, rgba(201, 122, 140, 0.2) 0%, transparent 100%);
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--purple-darkest);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-deep));
  color: #fff;
  padding: 14px 40px;
  border-radius: 28px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 18px rgba(62, 32, 88, 0.3);
  position: relative;
  z-index: 2;
}

.cta-btn:hover {
  background: linear-gradient(135deg, var(--purple-light), var(--purple-mid));
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(62, 32, 88, 0.4);
}

/* ========== GUIDE PAGE ========== */
.guide-steps-wrapper {
  counter-reset: guide-step;
}

.guide-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-bottom: 20px;
  border-left: 4px solid var(--purple-mid);
}

.guide-step:nth-child(2) { border-left-color: var(--gold-mid); }
.guide-step:nth-child(3) { border-left-color: var(--pink-deep); }
.guide-step:nth-child(4) { border-left-color: var(--purple-light); }
.guide-step:nth-child(5) { border-left-color: var(--rose-dusk); }

.guide-step h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 10px;
}

.guide-step h3::before {
  counter-increment: guide-step;
  content: '#' counter(guide-step) '  ';
  color: var(--gold-mid);
  font-weight: 900;
}

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

.guide-intro {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 28px;
}

.route-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-left: 16px;
  border-left: 4px solid var(--gold-mid);
}

.route-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}

.tip-box {
  background: linear-gradient(135deg, var(--gold-ghost), var(--twilight));
  border: 1px solid var(--gold-pale);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}

.tip-box strong {
  color: var(--gold-deep);
}

/* ========== STORY PAGE ========== */
.world-intro {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  margin-bottom: 32px;
}

.world-intro p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.85;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chapter-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  border-left: 5px solid var(--purple-light);
}

.chapter-card:nth-child(2) { border-left-color: var(--gold-mid); }
.chapter-card:nth-child(3) { border-left-color: var(--pink-deep); }
.chapter-card:nth-child(4) { border-left-color: var(--rose-dusk); }

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 8px;
}

.chapter-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.75;
}

.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.ending-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

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

.ending-card .ending-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.ending-card h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--purple-deep);
  margin-bottom: 6px;
}

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

.theme-analysis {
  background: linear-gradient(135deg, rgba(180, 157, 214, 0.1), rgba(232, 209, 158, 0.08));
  border: 1px solid var(--twilight-deep);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 32px;
}

.theme-analysis h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--purple-deep);
  margin-bottom: 12px;
}

.theme-analysis p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ========== CHARACTERS PAGE ========== */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.character-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}

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

.character-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.character-info {
  padding: 24px;
}

.character-info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 4px;
}

.character-role {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--gold-deep);
  background: var(--gold-ghost);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.character-info .trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.trait-pill {
  font-size: 0.75rem;
  background: var(--twilight);
  color: var(--purple-mid);
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid var(--purple-ghost);
}

.character-info p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.character-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.character-meta span {
  display: inline-block;
  margin-right: 16px;
}

.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
}

.relationship-map {
  margin-top: 32px;
  text-align: center;
}

.relation-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.relation-table th {
  background: var(--purple-mid);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--font-serif);
  font-weight: 700;
}

.relation-table td {
  padding: 10px 16px;
  border: 1px solid var(--card-border);
  color: var(--text-soft);
}

.relation-table tr:nth-child(even) td {
  background: var(--bg-warm);
}

/* ========== FAQ PAGE ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 24px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(180, 157, 214, 0.08);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-mid);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

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

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

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

.faq-note {
  margin-top: 16px;
}

/* ========== SYSTEM REQUIREMENTS (faq.html) ========== */
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--uniform-navy);
  margin-top: 24px;
  margin-bottom: 12px;
}

.sys-reqs-h3:first-of-type {
  margin-top: 8px;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.sys-table th {
  background: var(--purple-mid);
  color: #fff;
  padding: 10px 16px;
  text-align: left;
  font-family: var(--font-serif);
  font-weight: 700;
}

.sys-table th:first-child {
  width: 30%;
}

.sys-table td {
  padding: 10px 16px;
  border: 1px solid var(--card-border);
  color: var(--text-soft);
}

.sys-table tr:nth-child(even) td {
  background: var(--bg-warm);
}

.sys-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== CONTENT LIST CLASSES ========== */
.content-list {
  list-style: disc;
  padding-left: 20px;
}

.content-list-num {
  list-style: decimal;
  padding-left: 24px;
}

.content-li {
  margin-bottom: 5px;
  color: var(--text-soft);
}

.content-li-sm {
  margin-bottom: 4px;
  color: var(--text-soft);
}

.content-li-md {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.content-li-lg {
  margin-bottom: 10px;
  color: var(--text-soft);
}

/* ========== COLORED STRONG TAGS ========== */
.strong-pink { color: var(--pink-fierce); }
.strong-red { color: var(--danger-red); }
.strong-gold { color: var(--accent-gold); }
.strong-muted { color: var(--text-muted-alt); }
.strong-navy { color: var(--uniform-navy); }

/* ========== TABLE HIGHLIGHT ========== */
.td-highlight {
  color: var(--pink-fierce);
  font-weight: 700;
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(31, 13, 46, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
  background: none;
  border: none;
}

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  padding: 36px 24px;
  background: var(--purple-darkest);
  color: var(--text-light);
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--purple-mid);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
}

.back-to-top.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
}

/* ========== RESPONSIVE — 768px ========== */
@media (max-width: 768px) {
  .hero-title-main {
    font-size: 2rem;
  }

  .hero-subpage-title {
    font-size: 1.6rem;
  }

  .section {
    padding: 40px 16px;
  }

  .section-alt {
    padding: 40px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 8px 16px;
    gap: 8px;
  }

  .header-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-nav a {
    font-size: 0.82rem;
    padding: 6px 10px;
  }

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

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

  .feature-cards,
  .reviews-grid,
  .character-grid,
  .ending-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 36px 20px;
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }

  .section-title-group h2,
  .section-title {
    font-size: 1.6rem;
  }

  .content-section h2 {
    font-size: 1.7rem;
  }
}

/* ========== RESPONSIVE — 480px ========== */
@media (max-width: 480px) {
  .hero-title-main {
    font-size: 1.6rem;
  }

  .hero-title-main .jp-subtitle {
    font-size: 0.85rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .hero-subpage-title {
    font-size: 1.3rem;
  }

  .header-logo span {
    font-size: 0.9rem;
  }

  .header-cta {
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 32px 12px;
  }

  .section-alt {
    padding: 32px 0;
  }

  .character-grid {
    grid-template-columns: 1fr;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 14px 18px;
  }
}
