/* ============================================
   爱丽丝的摇篮 - Alice in Wonderland Theme
   Whimsical teals, playing-card reds, checkerboard motifs
   Dreamlike storybook aesthetic on light bg
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Base palette */
  --bg: #faf7f2;
  --bg-alt: #f3efe7;
  --bg-card: #ffffff;
  --bg-header: #1a3c3a;
  --text: #2d2420;
  --text-light: #6b5e53;
  --text-muted: #9a8c7e;
  --border: #e0d8cc;
  --border-light: #f0ebe0;

  /* Alice Wonderland palette */
  --accent: #c41e3a;
  --accent-hover: #a0182e;
  --accent-light: #fce8ec;
  --teal: #2a9d8f;
  --teal-dark: #1b6b61;
  --teal-light: #e8f5f3;
  --teal-bg: #f0f8f7;
  --gold: #b8860b;
  --gold-light: #fdf3d0;
  --card-red: #c41e3a;
  --card-black: #1a1210;

  /* Gradients */
  --hero-gradient: linear-gradient(135deg, #1a3c3a 0%, #2a5a56 40%, #3a7068 100%);
  --cta-gradient: linear-gradient(135deg, var(--accent) 0%, #d9445a 100%);
  --teal-gradient: linear-gradient(135deg, var(--teal) 0%, #3db8a8 100%);

  /* Spacing */
  --section-gap: 4rem;
  --content-width: 1100px;
  --content-narrow: 800px;

  /* Typography */
  --font-heading: 'Georgia', 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-decorative: 'Georgia', serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 18, 16, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 18, 16, 0.08);
  --shadow-lg: 0 8px 30px rgba(26, 18, 16, 0.10);
  --shadow-card: 0 2px 8px rgba(26, 18, 16, 0.06);
  --shadow-cta: 0 4px 16px rgba(196, 30, 58, 0.25);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Transitions */
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    /* Subtle checkerboard pattern */
    repeating-conic-gradient(rgba(196, 30, 58, 0.015) 0% 25%, transparent 0% 50%) 0 0 / 40px 40px;
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Storybook paper texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(42, 157, 143, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(196, 30, 58, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(184, 134, 11, 0.03) 0%, transparent 50%);
  opacity: 0.6;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal-dark);
}

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

ul, ol {
  padding-left: 1.5em;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.35;
  color: var(--text);
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

/* --- Utility --- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--content-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-gap) 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0.75rem auto 0;
}

/* Checkerboard divider */
.checker-divider {
  width: 100%;
  height: 16px;
  background:
    repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 8px, var(--card-black) 8px, var(--card-black) 16px);
  margin: 0;
}

.checker-divider-teal {
  width: 100%;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, var(--teal) 0px, var(--teal) 6px, var(--teal-dark) 6px, var(--teal-dark) 12px);
  margin: 0;
}

/* Card suit divider */
.suit-divider {
  text-align: center;
  margin: 2rem 0;
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  user-select: none;
}

/* --- Header --- */
.site-header {
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

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

/* Checkerboard accent line under header */
.site-header::after {
  content: '';
  display: block;
  height: 4px;
  background:
    repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 10px, var(--card-black) 10px, var(--card-black) 20px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--teal);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.main-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
  color: #ffffff;
  background: rgba(42, 157, 143, 0.25);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cta-gradient);
  color: #ffffff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px !important;
  font-weight: 600;
  font-size: 0.9rem !important;
  box-shadow: var(--shadow-cta);
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}

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

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

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  background: var(--hero-gradient);
  padding: 5rem 0;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

/* Wonderland card-suit overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(42, 157, 143, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(196, 30, 58, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(184, 134, 11, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-visual {
  max-width: 600px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

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

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-tags .tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.hero-tags .tag-accent {
  background: rgba(196, 30, 58, 0.5);
}

.hero-tags .tag-teal {
  background: rgba(42, 157, 143, 0.5);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cta-gradient);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: all var(--transition);
}

.btn-hero:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
}

/* Page hero (sub-pages) */
.page-hero {
  background: var(--hero-gradient);
  padding: 3rem 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(42, 157, 143, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #ffffff;
  font-size: 2.2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* --- Info Cards --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

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

.info-card .info-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.info-card .info-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.info-card .info-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--teal);
  transition: all var(--transition);
}

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

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

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Character Cards --- */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

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

.char-card-header {
  padding: 1.5rem 1.5rem 0.75rem;
  text-align: center;
}

.char-card .char-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  border: 3px solid var(--teal);
  background: var(--teal-light);
  overflow: hidden;
}

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

.char-card .char-avatar.avatar-accent {
  border-color: var(--accent);
  background: var(--accent-light);
}

.char-card .char-avatar.avatar-gold {
  border-color: var(--gold);
  background: var(--gold-light);
}

.char-card h3 {
  margin-bottom: 0.2rem;
}

.char-card .char-role {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.char-card .char-body {
  padding: 0 1.5rem 1.5rem;
}

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

.char-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-teal {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.tag-accent {
  background: var(--accent-light);
  color: var(--accent);
}

.tag-gold {
  background: var(--gold-light);
  color: var(--gold);
}

/* --- Story Blocks --- */
.story-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
}

.story-block h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.story-block p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.story-chapter {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* --- Guide Steps --- */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-step {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.guide-step:hover {
  box-shadow: var(--shadow-md);
}

.guide-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.guide-step-content h3 {
  margin-bottom: 0.35rem;
}

.guide-step-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.guide-tip {
  background: var(--teal-bg);
  border-left: 4px solid var(--teal);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--teal-dark);
}

.guide-tip strong {
  color: var(--teal-dark);
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 1rem;
  transition: color var(--transition);
}

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

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--teal);
  transition: transform var(--transition);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

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

.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 2px solid transparent;
  aspect-ratio: 16/9;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

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

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

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--hero-gradient);
  padding: 3rem 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(196, 30, 58, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-banner .btn-hero {
  font-size: 1.05rem;
  padding: 0.8rem 2.25rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--teal);
}

.breadcrumbs span {
  margin: 0 0.4rem;
  color: var(--text-muted);
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
}

.stats-row .stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stats-row .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

/* --- Versions / Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.info-table th,
.info-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.info-table th {
  background: var(--teal-bg);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.9rem;
  width: 30%;
}

.info-table td {
  color: var(--text-light);
  font-size: 0.95rem;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* --- Tip Box --- */
.tip-box {
  background: var(--teal-bg);
  border-left: 4px solid var(--teal);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--teal-dark);
}

.tip-box-warning {
  background: #fff8e6;
  border-left-color: var(--gold);
  color: #6b4c00;
}

.tip-box-accent {
  background: var(--accent-light);
  border-left-color: var(--accent);
  color: var(--accent);
}

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

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

/* --- Ending / World Cards --- */
.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ending-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  text-align: center;
  transition: all var(--transition);
}

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

.ending-card h3 {
  margin-bottom: 0.5rem;
}

.ending-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-header);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background:
    repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 10px, var(--card-black) 10px, var(--card-black) 20px);
  margin-bottom: 1.5rem;
}

/* --- Spacing Utilities --- */
.my-2 {
  margin: 2.5rem 0;
}

/* --- Text Center --- */
.text-center {
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-gap: 2.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

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

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-header);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem;
    gap: 0.5rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
  }

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

  .main-nav a {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

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

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

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

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

  .guide-step {
    flex-direction: column;
  }

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

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

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

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

  .hero {
    padding: 3rem 0;
  }

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

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