/* ===== 赤莲忍法帖 - Crimson Lotus Ninja Theme ===== */
/* Lotus-red, shadow-ninja black, shuriken-star motifs, light scroll bg */

@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');

:root {
  --font-serif: 'Noto Serif SC', 'SimSun', 'STSong', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Lotus Red palette */
  --lotus-red: #c41e3a;
  --lotus-crimson: #9b1b30;
  --lotus-dark: #6b1422;
  --lotus-glow: #ff4d6a;
  --lotus-petal: #ffe0e6;
  --lotus-blush: #fff5f7;

  /* Shadow Ninja palette */
  --ninja-black: #1a1a2e;
  --ninja-charcoal: #2d2d44;
  --ninja-smoke: #3d3d56;
  --ninja-ash: #6b6b80;
  --ninja-mist: #a0a0b0;

  /* Scroll bg */
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --bg-warm: #f7f2eb;
  --bg-cream: #fefcf5;

  /* Text */
  --text: #1a1a1a;
  --text-soft: #555555;
  --text-muted: #888888;
  --text-inverse: #f0ede8;

  /* Borders */
  --border-light: #e5ded5;
  --border-soft: #e8e2d8;

  /* Accent */
  --accent-gold: #d4a017;
  --accent-gold-light: #f0d068;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lotus: 0 4px 20px rgba(196,30,58,0.15);

  /* Sizing */
  --header-height: 64px;
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

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

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

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

/* Subtle scroll texture background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(196,30,58,0.02) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(196,30,58,0.02) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(250,248,245,0.9) 0%, rgba(248,244,238,0.95) 100%);
}

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

/* ===== Links ===== */
a {
  color: var(--lotus-red);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--lotus-crimson);
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ninja-black);
  border-bottom: 3px solid var(--lotus-red);
  box-shadow: var(--shadow-lg);
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-inverse);
  text-decoration: none;
}

.header-logo:hover {
  color: var(--lotus-glow);
}

.header-logo img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

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

nav a {
  color: var(--ninja-mist);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--text-inverse);
  background: rgba(196,30,58,0.15);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--lotus-glow);
  border-radius: 1px;
}

/* Shuriken bullet between nav items */
nav a + a::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 4px;
  height: 4px;
  background: var(--lotus-red);
  opacity: 0.3;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lotus-red);
  color: #fff;
  padding: 8px 22px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lotus);
}

.header-cta:hover {
  background: var(--lotus-glow);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196,30,58,0.3);
}

.header-cta::after {
  content: '→';
  font-weight: 700;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(160deg, var(--ninja-black) 0%, var(--ninja-charcoal) 35%, var(--ninja-smoke) 70%, var(--ninja-black) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 24px 100px;
}

/* Shuriken motif overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(196,30,58,0.12) 0%, transparent 40%),
    radial-gradient(circle at 75% 60%, rgba(196,30,58,0.08) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, rgba(212,160,23,0.04) 0%, transparent 60%);
}

/* Star/shuriken decorative elements */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 15% 25%, rgba(196,30,58,0.4) 50%, transparent 50%),
    radial-gradient(2px 2px at 30% 50%, rgba(255,77,106,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 55% 20%, rgba(196,30,58,0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 70% 35%, rgba(255,77,106,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 85% 65%, rgba(196,30,58,0.25) 50%, transparent 50%),
    radial-gradient(2px 2px at 45% 75%, rgba(212,160,23,0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 10% 70%, rgba(255,77,106,0.3) 50%, transparent 50%),
    radial-gradient(2px 2px at 60% 80%, rgba(196,30,58,0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 20%, rgba(212,160,23,0.2) 50%, transparent 50%),
    radial-gradient(1px 1px at 35% 15%, rgba(196,30,58,0.25) 50%, transparent 50%);
}

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

.hero-image {
  max-width: 640px;
  margin: 0 auto 30px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 60px rgba(196,30,58,0.15);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-inverse);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 40px rgba(196,30,58,0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--ninja-mist);
  max-width: 550px;
  margin: 0 auto 24px;
  line-height: 1.8;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--ninja-ash);
  margin-bottom: 0;
  font-weight: 300;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tag {
  background: rgba(196,30,58,0.15);
  color: var(--lotus-glow);
  border: 1px solid rgba(196,30,58,0.25);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

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

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

/* ===== Main Content ===== */
main {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 64px 0;
}

section:nth-child(even) {
  background: var(--bg-warm);
}

section:nth-child(odd) {
  background: var(--bg);
}

/* ===== Section Headings ===== */
.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-soft);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Lotus divider */
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--lotus-red), transparent);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--lotus-red);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  opacity: 0.03;
  background: radial-gradient(circle, var(--lotus-red) 0%, transparent 70%);
  border-radius: 50%;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

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

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

/* Feature cards (index) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--lotus-crimson);
  transition: all 0.25s ease;
  text-align: center;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-left-color: var(--lotus-red);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  display: block;
}

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

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

/* ===== Screenshot Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  aspect-ratio: 16/10;
  background: var(--ninja-charcoal);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 0.8;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(196,30,58,0.15);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s;
}

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

/* ===== Review Section ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--lotus-petal);
  line-height: 1;
}

.review-text {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
  padding-top: 8px;
}

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

/* ===== CTA Banner (index only) ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--ninja-black) 0%, var(--ninja-charcoal) 50%, var(--ninja-smoke) 100%);
  text-align: center;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 25% 50%, rgba(196,30,58,0.1) 0%, transparent 40%),
    radial-gradient(circle at 75% 50%, rgba(212,160,23,0.06) 0%, transparent 40%);
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,77,106,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 50% 40%, rgba(196,30,58,0.25) 50%, transparent 50%),
    radial-gradient(2px 2px at 80% 30%, rgba(255,77,106,0.25) 50%, transparent 50%),
    radial-gradient(1px 1px at 35% 70%, rgba(212,160,23,0.2) 50%, transparent 50%),
    radial-gradient(2px 2px at 65% 65%, rgba(196,30,58,0.2) 50%, transparent 50%);
}

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

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

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lotus-red);
  color: #fff;
  padding: 14px 40px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-lotus);
  position: relative;
  z-index: 2;
}

.cta-btn:hover {
  background: var(--lotus-glow);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,30,58,0.35);
}

/* ===== Content Section (sub-pages) ===== */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

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

.content-section p {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 20px;
}

.content-section .intro-text {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--lotus-red);
}

/* ===== Guide Page ===== */
.guide-step {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--lotus-red);
  counter-increment: step-counter;
}

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

.guide-step h3::before {
  content: counter(step-counter) ". ";
  color: var(--lotus-red);
  font-weight: 900;
}

.tip-box {
  background: var(--lotus-blush);
  border: 1px solid var(--lotus-petal);
  border-left: 4px solid var(--lotus-red);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.93rem;
  color: var(--lotus-crimson);
}

.tip-box strong {
  color: var(--lotus-dark);
}

/* Guide page utility classes */
.guide-intro {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 32px;
}

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

.route-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lotus-crimson);
  margin-top: 24px;
  margin-bottom: 12px;
}

/* ===== Story Page ===== */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--lotus-crimson);
  margin-top: 28px;
  margin-bottom: 14px;
  padding-left: 14px;
  border-left: 3px solid var(--lotus-red);
}

.story-block {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.story-block h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

/* ===== Characters Page ===== */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

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

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

.char-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--ninja-charcoal);
}

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

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

.char-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.char-role {
  color: var(--lotus-crimson);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

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

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

.char-trait {
  background: var(--lotus-petal);
  color: var(--lotus-crimson);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.section-subheading {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 40px 0 24px;
}

/* ===== FAQ Page ===== */
.faq-list {
  max-width: 800px;
  margin: 32px auto 0;
}

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

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

.faq-question:hover {
  background: var(--bg-warm);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--lotus-red);
  transition: transform 0.3s ease;
  min-width: 24px;
  text-align: center;
}

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

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

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

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ===== System Requirements Table ===== */
.sys-reqs-table {
  width: 100%;
  max-width: 700px;
  margin: 32px auto 0;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.sys-reqs-table th,
.sys-reqs-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.93rem;
}

.sys-reqs-table th {
  background: var(--ninja-black);
  color: var(--text-inverse);
  font-weight: 600;
}

.sys-reqs-table td {
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-soft);
}

.sys-reqs-table tr:last-child td {
  border-bottom: none;
}

.sys-reqs-table .label {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-warm);
}

/* System requirements section heading */
.sys-reqs-h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 16px;
  text-align: center;
}

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

/* Table overflow wrapper */
.table-scroll {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 700px;
}

/* ===== Footer ===== */
footer {
  background: var(--ninja-black);
  padding: 20px 24px;
  text-align: center;
  border-top: 2px solid var(--lotus-red);
}

footer p {
  color: var(--ninja-ash);
  font-size: 0.85rem;
}

/* ===== Utility Classes ===== */
/* List classes (prevent inline styles) */
.content-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

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

.content-li, .content-list li, .content-list-num 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(--lotus-glow);
}

.strong-red {
  color: var(--lotus-red);
}

.strong-gold {
  color: var(--accent-gold);
}

.strong-muted {
  color: var(--ninja-ash);
}

.strong-navy {
  color: var(--ninja-black);
}

/* Table highlight */
.td-highlight {
  color: var(--lotus-crimson);
  font-weight: 700;
}

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

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

  .header-logo {
    font-size: 0.95rem;
  }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 2px;
    padding-bottom: 4px;
  }

  nav a {
    padding: 6px 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  nav a + a::before {
    display: none;
  }

  .header-cta {
    font-size: 0.8rem;
    padding: 6px 16px;
  }

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

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

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

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

  section {
    padding: 40px 0;
  }

  .container {
    padding: 0 16px;
  }

  .card-grid,
  .feature-grid,
  .char-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

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

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

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

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

  .hero-image {
    max-width: 100%;
  }

  .cta-btn {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .sys-reqs-table th,
  .sys-reqs-table td {
    padding: 10px 14px;
    font-size: 0.82rem;
  }
}
