/* ============================================================
   创世秩序 (The Genesis Order) — Genesis Divine Theme
   Creation-myth golds, ancient-scroll browns, sacred geometry
   ============================================================ */

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

/* ========== CSS VARIABLES ========== */
:root {
  /* Genesis Divine Palette */
  --gold-primary: #D4A843;
  --gold-deep: #B8860B;
  --gold-light: #F0D78C;
  --gold-pale: #FAF0D7;
  --scroll-brown: #8B7355;
  --brown-dark: #5C4033;
  --brown-deeper: #2C1810;
  --parchment: #FDF8F0;
  --parchment-warm: #FFF8EC;
  --divine-white: #FFFAF0;
  --text: #3E2723;
  --text-soft: #6D5D4B;
  --text-muted: #9B8B7A;
  --accent-warm: #C9A84C;
  --accent-rose: #C4876B;
  --divine-shadow: rgba(92, 64, 51, 0.12);
  --divine-shadow-lg: rgba(92, 64, 51, 0.18);
  --border-light: #E8DDD0;
  --border-warm: #D4C4AB;
  --danger-red: #C0392B;
  --success-green: #5B8C5A;

  /* Font Stack */
  --font-serif: 'Noto Serif SC', 'SimSun', 'STSong', serif;
  --font-sans: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;

  /* Spacing */
  --section-gap: 64px;
  --card-gap: 28px;
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--parchment);
  background-image:
    radial-gradient(circle at 15% 85%, rgba(212, 168, 67, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(139, 115, 85, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Sacred geometry body pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image:
    repeating-linear-gradient(60deg, transparent, transparent 60px, rgba(180, 140, 60, 0.3) 60px, rgba(180, 140, 60, 0.3) 61px),
    repeating-linear-gradient(120deg, transparent, transparent 60px, rgba(180, 140, 60, 0.3) 60px, rgba(180, 140, 60, 0.3) 61px),
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(180, 140, 60, 0.2) 60px, rgba(180, 140, 60, 0.2) 61px);
  mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 30%, black 40%, transparent 80%);
}

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

a {
  color: var(--gold-deep);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-warm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: 2.6rem;
  font-weight: 900;
}

h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
}

::selection {
  background: var(--gold-light);
  color: var(--brown-deeper);
}

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

/* ========== HEADER & NAVIGATION ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, var(--brown-deeper) 0%, #3a2018 100%);
  border-bottom: 3px solid var(--gold-primary);
  box-shadow: 0 2px 20px var(--divine-shadow-lg);
}

/* Sacred geometry ornament on header */
.site-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold-light) 5%,
    var(--gold-primary) 10%,
    transparent 15%,
    transparent 35%,
    var(--gold-primary) 40%,
    var(--gold-light) 45%,
    var(--gold-primary) 50%,
    var(--gold-light) 55%,
    var(--gold-primary) 60%,
    transparent 65%,
    transparent 85%,
    var(--gold-primary) 90%,
    var(--gold-light) 95%,
    transparent 100%
  );
  pointer-events: none;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.site-logo:hover {
  color: var(--gold-light);
}

.site-logo .logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: radial-gradient(circle, var(--gold-primary), var(--gold-deep));
  border-radius: 50%;
  color: var(--brown-deeper);
  position: relative;
}

/* Sacred geometry hexagon in logo */
.site-logo .logo-icon::after {
  content: '✧';
  position: absolute;
  font-size: 0.8rem;
  color: var(--brown-deeper);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 18px;
  color: #D4C4A0;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--gold-primary);
  border-radius: 1px;
  transition: transform var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-primary);
  background: rgba(212, 168, 67, 0.08);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: var(--brown-deeper) !important;
  font-weight: 700;
  border-radius: 24px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.3);
  position: relative;
  overflow: hidden;
}

.header-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.header-cta:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: var(--brown-deeper) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.45);
}

.header-cta:hover::before {
  left: 100%;
}

.header-cta::after {
  content: '↗';
  font-size: 0.85rem;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.75rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.mobile-toggle:hover {
  background: rgba(212, 168, 67, 0.1);
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  padding: 80px 24px 100px;
  text-align: center;
  background: linear-gradient(170deg,
    var(--brown-deeper) 0%,
    #3a2518 30%,
    #4a3020 60%,
    var(--brown-dark) 100%
  );
  overflow: hidden;
  isolation: isolate;
}

/* Sacred geometry overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.08;
  background:
    radial-gradient(circle at 20% 30%, var(--gold-light) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, var(--gold-primary) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, var(--gold-pale) 0%, transparent 55%);
}

/* Sacred geometry mandala in hero */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  z-index: 0;
  opacity: 0.06;
  background:
    conic-gradient(from 0deg at 50% 50%, var(--gold-primary) 0deg, transparent 30deg, var(--gold-primary) 60deg, transparent 90deg,
      var(--gold-primary) 120deg, transparent 150deg, var(--gold-primary) 180deg, transparent 210deg,
      var(--gold-primary) 240deg, transparent 270deg, var(--gold-primary) 300deg, transparent 330deg, var(--gold-primary) 360deg);
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

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

.hero h1 {
  color: var(--gold-primary);
  font-size: 3.2rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}

.hero h1 .highlight {
  color: var(--gold-light);
  position: relative;
  display: inline-block;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #C4B08A;
  margin-bottom: 10px;
  font-weight: 400;
}

.hero-tagline {
  font-size: 1rem;
  color: #A89878;
  margin-bottom: 24px;
  font-style: italic;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.25);
  color: var(--gold-light);
  font-size: 0.85rem;
  border-radius: 20px;
  font-family: var(--font-sans);
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-gap) 24px;
  position: relative;
  z-index: 1;
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* Divine separator */
.divine-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px auto;
  max-width: 300px;
}

.divine-separator::before,
.divine-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.divine-separator span {
  font-size: 1.2rem;
  color: var(--gold-deep);
}

/* ========== CARD SYSTEM ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--card-gap);
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

.card {
  background: var(--divine-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 12px var(--divine-shadow);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--divine-shadow-lg);
  border-color: var(--gold-primary);
}

/* Gold accent left border on cards */
.card::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 0;
  width: 4px;
  height: 40px;
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-deep));
  border-radius: 0 3px 3px 0;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--brown-deeper);
}

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

/* Feature card variant */
.feature-card {
  background: linear-gradient(135deg, var(--divine-white) 0%, var(--parchment-warm) 100%);
}

.feature-card .card-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  color: var(--gold-deep);
  font-size: 1.5rem;
}

/* ========== GAME INFO CARDS (index) ========== */
.game-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.game-info-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--divine-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.game-info-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 16px var(--divine-shadow);
}

.game-info-card .info-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
}

.game-info-card .info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.game-info-card .info-value {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-deeper);
}

/* ========== SCREENSHOT GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 16 / 10;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  box-shadow: 0 2px 10px var(--divine-shadow);
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 6px 24px var(--divine-shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 1.8rem;
  background: rgba(44, 24, 16, 0.7);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  pointer-events: none;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 12, 8, 0.95);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 50px rgba(0,0,0,0.6);
  border: 2px solid rgba(212, 168, 67, 0.3);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: var(--gold-primary);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
  transition: color var(--transition-fast);
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--gold-primary);
  background: rgba(0,0,0,0.3);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2001;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(212, 168, 67, 0.2);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ========== PLAYER REVIEWS ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--card-gap);
}

.review-card {
  background: var(--divine-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 10px var(--divine-shadow);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 18px;
  font-size: 4rem;
  color: var(--gold-pale);
  font-family: var(--font-serif);
  line-height: 1;
}

.review-text {
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 14px;
  padding-top: 16px;
}

.review-author {
  font-weight: 600;
  color: var(--brown-dark);
  font-size: 0.9rem;
}

.review-rating {
  color: var(--gold-deep);
  font-size: 0.85rem;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--brown-deeper) 0%, #4a3020 100%);
  border-radius: var(--radius-lg);
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(212, 168, 67, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(240, 215, 140, 0.08) 0%, transparent 40%);
}

.cta-banner h2 {
  color: var(--gold-light);
  font-size: 2rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: #C4B08A;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: var(--brown-deeper) !important;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.35);
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(184, 134, 11, 0.5);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
}

.cta-button::after {
  content: '→';
  font-size: 1.2rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--brown-deeper);
  padding: 24px;
  text-align: center;
  border-top: 2px solid var(--gold-primary);
  position: relative;
  z-index: 1;
}

.site-footer p {
  color: #A89878;
  font-size: 0.85rem;
  margin: 0;
}

/* ========== ACCORDION (FAQ) ========== */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--divine-white);
  transition: all var(--transition-fast);
}

.accordion-item:hover {
  border-color: var(--border-warm);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.accordion-header:hover {
  background: var(--gold-pale);
}

.accordion-header::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold-deep);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-item.active .accordion-header {
  background: var(--gold-pale);
  color: var(--gold-deep);
}

.accordion-item.active .accordion-header::after {
  content: '−';
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-body {
  max-height: 800px;
}

.accordion-content {
  padding: 0 24px 20px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ========== TABLE STYLES ========== */
.table-scroll {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 6px var(--divine-shadow);
}

.content-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--divine-white);
}

.content-table thead {
  background: linear-gradient(135deg, var(--brown-deeper), var(--brown-dark));
}

.content-table thead th {
  color: var(--gold-light);
  padding: 14px 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  text-align: left;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--gold-primary);
}

.content-table tbody td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.content-table tbody tr:last-child td {
  border-bottom: none;
}

.content-table tbody tr:nth-child(even) {
  background: var(--parchment-warm);
}

.content-table tbody tr:hover {
  background: var(--gold-pale);
}

.td-highlight {
  color: var(--gold-deep);
  font-weight: 700;
}

/* ========== STEP GUIDE ========== */
.step-list {
  list-style: none;
  counter-reset: step-counter;
}

.step-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 60px;
  margin-bottom: 32px;
}

.step-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: var(--brown-deeper);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

.step-list h3 {
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.step-list p {
  color: var(--text-soft);
}

/* ========== TIPS BOX ========== */
.tips-box {
  background: linear-gradient(135deg, var(--gold-pale), #FFF3DC);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
}

.tips-box strong {
  color: var(--brown-dark);
}

.tips-box p {
  margin-bottom: 6px;
}

.tips-box p:last-child {
  margin-bottom: 0;
}

.warning-box {
  background: linear-gradient(135deg, #FDF2F2, #FDE8E8);
  border-left: 4px solid var(--danger-red);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
}

.warning-box strong {
  color: var(--danger-red);
}

/* ========== CHARACTER CARDS ========== */
.char-card {
  display: flex;
  gap: 20px;
  background: var(--divine-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 2px 12px var(--divine-shadow);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.char-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 6px 24px var(--divine-shadow-lg);
  transform: translateY(-2px);
}

.char-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-deep), var(--accent-rose));
}

.char-card-portrait {
  width: 100px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gold-deep);
  border: 2px solid var(--border-warm);
}

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

.char-card-info h3 {
  color: var(--brown-deeper);
  margin-bottom: 4px;
}

.char-card-info .char-title {
  font-size: 0.85rem;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.char-card-info .char-desc {
  font-size: 0.93rem;
  color: var(--text-soft);
  line-height: 1.7;
}

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

.char-trait {
  display: inline-block;
  padding: 3px 12px;
  background: var(--gold-pale);
  color: var(--brown-dark);
  font-size: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border-warm);
}

/* ========== STORY PAGE ELEMENTS ========== */
.chapter-card {
  background: var(--divine-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 0 2px 10px var(--divine-shadow);
}

.chapter-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-primary), var(--gold-deep));
  border-radius: 4px 0 0 4px;
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown-deeper);
  margin-bottom: 8px;
}

.chapter-num {
  display: inline-block;
  padding: 3px 12px;
  background: var(--gold-pale);
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 10px;
}

.endings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--card-gap);
}

.ending-card {
  background: var(--divine-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px var(--divine-shadow);
}

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

.ending-card h3 {
  color: var(--brown-deeper);
  font-size: 1.15rem;
}

.ending-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ========== UTILITY CLASSES ========== */

/* Content list classes (avoid inline styles) */
.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-gold { color: var(--gold-deep); }
.strong-red { color: var(--danger-red); }
.strong-muted { color: var(--text-muted); }
.strong-navy { color: var(--brown-dark); }
.strong-green { color: var(--success-green); }

/* System requirements headings */
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-top: 24px;
  margin-bottom: 12px;
}

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

/* Section-break sub-headings */
.section-subheading {
  text-align: center;
  margin: 40px 0 24px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Sub-page hero */
.hero-subpage {
  padding: 40px 24px 48px !important;
}

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

/* Guide page helpers */
.guide-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.9;
}

.route-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.route-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin: 24px 0 8px;
}

/* Content section H2 that acts like H1 (for sub-pages) */
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .card-grid-3,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .site-header {
    position: sticky;
  }

  .header-inner {
    height: 56px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 59px;
    left: 0;
    width: 100%;
    background: var(--brown-deeper);
    flex-direction: column;
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    border-bottom: 3px solid var(--gold-primary);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 24px;
    border-radius: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding: 48px 20px 60px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .content-section {
    padding: 40px 16px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .card-grid-3,
  .card-grid-2,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .char-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .char-card-portrait {
    width: 80px;
    height: 104px;
  }

  .char-card::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
  }

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

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

  .header-cta {
    padding: 7px 16px;
    font-size: 0.85rem;
  }

  .step-list li {
    padding-left: 46px;
  }

  .step-list li::before {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }

  .hero {
    padding: 36px 16px 48px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

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

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

  .site-logo {
    font-size: 1.1rem;
  }

  .site-logo .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .game-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-section {
    padding: 32px 12px;
  }

  .card {
    padding: 20px;
  }

  .char-card {
    padding: 18px;
  }

  .cta-button {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .accordion-header {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .accordion-content {
    padding: 0 16px 16px;
  }
}
