/* ============================================================
   Otaku Angel 3D SLG Theme — 死宅天使
   Warm home-life tones, angel-wing motifs, 3D-realistic feel,
   cozy family-life aesthetic on light warm background.
   ============================================================ */

:root {
  /* Warm home-life palette */
  --gold: #c8963e;
  --gold-dark: #a67a2e;
  --gold-light: #e8cc8a;
  --gold-pale: #faf3e0;
  --gold-gradient: linear-gradient(135deg, #c8963e, #b8863e, #e0b860);

  --angel-pink: #e8a8b8;
  --angel-pink-soft: #fce4ec;
  --angel-lavender: #c0b0e0;
  --angel-lavender-soft: #f3eefc;
  --angel-sky: #a0c8e0;
  --angel-sky-soft: #eef6fb;
  --angel-peach: #f0d0b8;
  --angel-peach-soft: #fef7f2;

  /* Manga-screen tones */
  --manga-screen: rgba(180, 160, 200, 0.04);

  /* Backgrounds */
  --bg: #fdfaf7;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(160deg, #fefdfb 0%, #fdf6f0 20%, #fef9f6 50%, #fcf5f8 75%, #fefdfb 100%);

  /* Text */
  --text-primary: #3d3236;
  --text-secondary: #6b5d5e;
  --text-muted: #9b8e8a;

  /* Accent */
  --accent: #d4a843;
  --accent-hover: #b8902e;
  --accent-light: #faf3e0;

  /* Pastel accents */
  --pink: #f0b8c8;
  --pink-soft: #fce4ec;
  --lavender: #c8b8e8;
  --lavender-soft: #f3eefc;
  --sky: #a8d0e8;
  --sky-soft: #eef6fb;

  /* Shadows */
  --shadow-sm: 0 1px 6px rgba(180, 140, 120, 0.07);
  --shadow-md: 0 4px 20px rgba(180, 140, 120, 0.10);
  --shadow-lg: 0 8px 36px rgba(180, 140, 120, 0.14);
  --gold-glow: 0 0 24px rgba(212, 168, 67, 0.20);
  --pink-glow: 0 0 20px rgba(240, 184, 200, 0.15);

  /* Borders */
  --border: #ede4dc;
  --border-light: #f5efe8;

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.25s ease;

  /* Layout */
  --font-main: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

/* 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-main); font-size: 16px; line-height: 1.75;
  color: var(--text-primary); background: var(--bg);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  /* Heavenly otaku-room glow — warm, cozy radial lights */
  position: relative;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(240, 184, 200, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 60%, rgba(200, 184, 232, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(212, 168, 67, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(168, 208, 232, 0.04) 0%, transparent 50%);
}
/* Subtle manga-screen overlay: halftone-like texture */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle, var(--manga-screen) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.6;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; line-height: 1.35; }
h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.35; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.35; }
p { margin-bottom: 1rem; }

/* Utility */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.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; }
.mx-auto { max-width: 860px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.text-muted { color: var(--text-muted); }

/* Header — warm heavenly-otaku glass */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(180, 140, 120, 0.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-height); max-width: var(--max-width);
  margin: 0 auto; padding: 0 1.25rem;
}
.logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.logo a { color: var(--text-primary); display: flex; align-items: center; gap: 0.6rem; }
.logo a:hover { color: var(--accent); }
.logo-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--angel-pink), var(--angel-lavender), var(--angel-sky));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* Nav */
.nav-menu { display: flex; align-items: center; gap: 0.15rem; }
.nav-menu a { display: inline-block; padding: 0.5rem 1rem; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; transition: color var(--transition), background var(--transition); }
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); background: var(--accent-light); }
.nav-cta {
  margin-left: 0.75rem; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1.5rem; border-radius: 24px;
  background: var(--gold-gradient); color: #fff !important;
  font-weight: 600; font-size: 0.92rem;
  box-shadow: var(--gold-glow);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(212, 168, 67, 0.35); opacity: 0.93; background: var(--gold-gradient) !important; color: #fff !important; }

/* Mobile toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--text-primary); transition: transform var(--transition), opacity var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Main */
main { flex: 1; }

/* ===== Angel-Wing Decorative Elements ===== */

/* Wing divider — angel wings flanking an icon */
.angel-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; margin: 2rem auto; max-width: 400px;
}
.angel-divider::before,
.angel-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--angel-pink), var(--gold-light), var(--angel-lavender), transparent);
}
.angel-divider .wing-icon { font-size: 1.5rem; opacity: 0.7; }

/* Wing frame — two angel wings flanking content */
.wing-frame {
  position: relative; padding: 1rem 0;
}
.wing-frame::before {
  content: '🪽'; position: absolute; left: -0.5rem; top: 0;
  font-size: 2.5rem; opacity: 0.12; pointer-events: none;
  transform: scaleX(-1);
}
.wing-frame::after {
  content: '🪽'; position: absolute; right: -0.5rem; top: 0;
  font-size: 2.5rem; opacity: 0.12; pointer-events: none;
}

/* Celestial divider — pastel rainbow */
.celestial-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 0.8rem; margin: 2rem auto; max-width: 400px;
}
.celestial-divider::before,
.celestial-divider::after {
  content: ''; flex: 1; height: 2px; border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--angel-pink), var(--gold-light), var(--angel-lavender), var(--angel-sky), transparent);
}
.celestial-divider .divider-icon { font-size: 1.4rem; opacity: 0.7; }

/* ===== Hero — celestial otaku room ===== */
.hero {
  background: var(--bg-hero);
  padding: 5rem 0 3.5rem; text-align: center;
  position: relative; overflow: hidden;
}
/* Celestial pastel orbs */
.hero::before {
  content: ''; position: absolute;
  top: 5%; left: 8%; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(240, 184, 200, 0.08), transparent 65%);
  border-radius: 50%; pointer-events: none; animation: orbFloat 8s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute;
  bottom: 0; right: 5%; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(200, 184, 232, 0.07), transparent 65%);
  border-radius: 50%; pointer-events: none; animation: orbFloat 10s ease-in-out infinite reverse;
}
/* Third orb — gold */
.hero .hero-orb {
  position: absolute; top: 50%; left: 60%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.06), transparent 70%);
  border-radius: 50%; pointer-events: none; animation: orbFloat 9s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(16px, -12px) scale(1.06); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }

/* Angel-wing window motif around the title */
.hero-title-wrap {
  display: inline-block; position: relative; padding: 0 3rem;
}
.hero-title-wrap::before,
.hero-title-wrap::after {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.2rem; opacity: 0.25; pointer-events: none;
  animation: wingFlutter 3s ease-in-out infinite;
}
.hero-title-wrap::before { content: '🪽'; left: -0.5rem; transform: translateY(-50%) scaleX(-1); animation-delay: 0s; }
.hero-title-wrap::after { content: '🪽'; right: -0.5rem; animation-delay: 0.3s; }
@keyframes wingFlutter {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-54%) scale(1.12); }
}

.hero-content h1 {
  font-size: 2.8rem; margin-bottom: 0.3rem; font-weight: 800;
  background: linear-gradient(135deg, #c9a050 0%, #d4a843 30%, #e0b8a0 55%, #d4a843 70%, #c8b0d8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content .subtitle {
  font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 1.5rem; font-weight: 500;
}
.hero-content .hero-desc {
  font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem;
}
.hero-image { margin: 2rem auto 0; max-width: 700px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; border-radius: var(--radius-lg); }

/* Hero visual — CSS-only gradient placeholder */
.hero-visual {
  margin: 2rem auto 0; max-width: 700px; height: 380px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg,
    var(--angel-pink-soft) 0%,
    var(--angel-sky-soft) 25%,
    var(--angel-lavender-soft) 50%,
    var(--angel-peach-soft) 75%,
    var(--gold-pale) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.hero-visual::before {
  content: '👼'; font-size: 5rem; opacity: 0.4;
  position: relative; z-index: 1;
}
/* Angel-wing silhouettes on visual */
.hero-visual::after {
  content: '🪽'; position: absolute; top: 20%; left: 15%;
  font-size: 8rem; opacity: 0.08; pointer-events: none;
  transform: scaleX(-1);
}

.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Tag bar */
.tag-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 1.5rem 0 0; }
.tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 1rem; border-radius: 20px;
  font-size: 0.82rem; font-weight: 500;
  border: 1px solid;
}
.tag-gold { background: var(--gold-pale); color: var(--gold-dark); border-color: rgba(212, 168, 67, 0.2); }
.tag-pink { background: var(--pink-soft); color: #c4828c; border-color: rgba(240, 184, 200, 0.25); }
.tag-lavender { background: var(--lavender-soft); color: #9b82c4; border-color: rgba(200, 184, 232, 0.25); }
.tag-sky { background: var(--sky-soft); color: #6a9ab8; border-color: rgba(168, 208, 232, 0.25); }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, #fdf8f3 50%, var(--bg) 100%); }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  position: relative; display: inline-block; font-size: 1.8rem;
  padding-bottom: 0.75rem; color: var(--text-primary);
}
/* Pastel rainbow underline */
.section-header h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--angel-pink), var(--gold-light), var(--angel-lavender), var(--angel-sky));
}
.section-header p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Cards ===== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--angel-pink-soft), var(--angel-lavender-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem; color: var(--accent);
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* Feature cards with pastel left accent */
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-left: 4px solid var(--angel-pink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.75rem; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-left-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-left-color: var(--gold);
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.75; }

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

/* Info grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.5rem; }
.info-card dt { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.info-card dd { font-size: 1rem; color: var(--text-primary); font-weight: 500; }

/* ===== Screenshots ===== */
.screenshots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.screenshot-item { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.screenshot-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.screenshot-item img { width: 100%; display: block; }
.screenshot-caption { padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--text-muted); background: var(--bg-card); border-top: 1px solid var(--border); }

/* Gallery placeholder */
.gallery-placeholder {
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); cursor: pointer;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,
    var(--angel-pink-soft) 0%,
    var(--angel-lavender-soft) 33%,
    var(--angel-sky-soft) 66%,
    var(--gold-pale) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-placeholder:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(160deg,
    var(--angel-pink-soft) 0%,
    var(--gold-pale) 30%,
    var(--angel-lavender-soft) 60%,
    var(--angel-sky-soft) 100%);
  padding: 4rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -60px; right: 8%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(240, 184, 200, 0.08), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cta-section::after {
  content: ''; position: absolute; bottom: -40px; left: 10%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(200, 184, 232, 0.07), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.cta-section h2 { font-size: 1.8rem; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-section p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; position: relative; z-index: 1; max-width: 600px; margin-left: auto; margin-right: auto; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 2.5rem; border-radius: 28px;
  background: var(--gold-gradient); color: #fff;
  font-weight: 600; font-size: 1.05rem;
  box-shadow: var(--gold-glow); border: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  cursor: pointer; position: relative; z-index: 1;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(212, 168, 67, 0.35); opacity: 0.93; color: #fff; }

/* ===== Page Hero (subpages) ===== */
.page-hero {
  background: linear-gradient(160deg,
    var(--angel-pink-soft) 0%,
    #fefdfb 25%,
    var(--angel-lavender-soft) 55%,
    var(--angel-sky-soft) 100%);
  padding: 3rem 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -20%; right: -8%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(240, 184, 200, 0.06), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -15%; left: -5%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(200, 184, 232, 0.05), transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; font-weight: 700; position: relative; z-index: 1; }
.page-hero p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* ===== Content Section (subpages) ===== */
.content-section { padding: 3rem 0; }
.content-section .container { max-width: 860px; }
.content-section h2 {
  font-size: 1.6rem; color: var(--accent); margin-top: 2.5rem; margin-bottom: 0.75rem;
  padding-left: 1rem; border-left: 3px solid var(--angel-pink);
}
.content-section h2:first-child { margin-top: 0; }
.content-section h3 { font-size: 1.2rem; margin-top: 1.75rem; }
.content-section h4 { font-size: 1.05rem; margin-top: 1.25rem; color: var(--text-primary); }
.content-section p { color: var(--text-secondary); line-height: 1.85; }
.content-section ul, .content-section ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.85; }
.content-section ul li, .content-section ol li { position: relative; padding-left: 1.2rem; margin-bottom: 0.5rem; }
.content-section ul li::before {
  content: '☆'; position: absolute; left: 0; top: -0.05em;
  color: var(--angel-pink); font-size: 0.7rem;
}
.content-section ol { counter-reset: item; }
.content-section ol li::before {
  content: counter(item) "."; counter-increment: item;
  position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 600;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--accent-light), var(--angel-pink-soft));
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.highlight-box h4 { color: var(--accent); margin-bottom: 0.5rem; font-size: 1rem; }
.highlight-box p { margin-bottom: 0; font-size: 0.95rem; }

/* Tip box */
.tip-box {
  background: var(--angel-sky-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--angel-sky); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.tip-box h4 { color: #6a9ab8; margin-bottom: 0.4rem; font-size: 1rem; }
.tip-box p { margin-bottom: 0; font-size: 0.92rem; color: var(--text-secondary); }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.content-section table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.content-section table th, .content-section table td { padding: 0.75rem 1rem; border: 1px solid var(--border); text-align: left; }
.content-section table th { background: var(--accent-light); color: var(--text-primary); font-weight: 600; }
.content-section table td { color: var(--text-secondary); }
.content-section table tr:nth-child(even) td { background: #fefdfa; }

/* ===== FAQ Accordion ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 0.75rem; overflow: hidden; background: var(--bg-card); transition: box-shadow var(--transition); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--angel-pink); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 1.25rem; background: none; border: none;
  cursor: pointer; font-family: var(--font-main); font-size: 1rem;
  font-weight: 600; color: var(--text-primary); text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; width: 24px; height: 24px;
  transition: transform 0.3s ease; color: var(--angel-pink);
  font-size: 1.2rem; line-height: 24px; text-align: center;
}
.faq-item.open .faq-icon { 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: 600px; }
.faq-answer-inner { padding: 0 1.25rem 1.25rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }

/* ===== Guide Steps ===== */
.guide-steps { max-width: 800px; margin: 0 auto; }
.guide-step {
  display: flex; gap: 1.25rem; margin-bottom: 2rem; padding: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.guide-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-number {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--angel-pink), var(--gold-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; box-shadow: var(--pink-glow);
}
.step-content h3 { font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--accent); }
.step-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; }

/* ===== Character Cards ===== */
.character-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.character-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 2rem; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.character-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.char-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--angel-pink-soft), var(--angel-lavender-soft), var(--angel-sky-soft));
  margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  border: 3px solid var(--angel-pink);
  box-shadow: 0 0 20px rgba(240, 184, 200, 0.15);
}
.character-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.character-role { font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 0.75rem; }
.character-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ===== Story Blocks ===== */
.story-block { margin-bottom: 2rem; }
.story-block h3 {
  color: var(--accent); font-size: 1.2rem; margin-bottom: 0.5rem;
  padding-bottom: 0.4rem; border-bottom: 1px dashed var(--border);
}
.story-block p { color: var(--text-secondary); line-height: 1.85; }

/* ===== Download Card ===== */
.download-card {
  background: var(--bg-card); border: 2px solid var(--gold-light);
  border-radius: var(--radius-lg); padding: 2rem; text-align: center;
  box-shadow: var(--shadow-md); max-width: 500px; margin: 0 auto;
}
.download-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.download-card .version { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.download-card .btn-primary { font-size: 1.1rem; padding: 1rem 3rem; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 0.75rem 0; font-size: 0.85rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 0.4rem; color: var(--accent); }

/* ===== Lightbox ===== */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(61, 50, 54, 0.93); justify-content: center; align-items: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-md); box-shadow: 0 8px 40px rgba(0,0,0,0.35); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255,255,255,0.12); border: none;
  color: #fff; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ===== Quote block ===== */
blockquote {
  border-left: 3px solid var(--angel-pink); padding: 0.75rem 1.25rem;
  margin: 1.5rem 0; background: var(--angel-pink-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-secondary);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 2rem 0; text-align: center; margin-top: auto;
}
.site-footer .footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.site-footer .copyright { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ===== Stats Row ===== */
.stats-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; padding: 1.5rem 0; }
.stat-item { text-align: center; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ===== Review card ===== */
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.review-card .review-stars { color: var(--accent); font-size: 1.2rem; margin-bottom: 0.5rem; }
.review-card .review-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.75; }
.review-card .review-author { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }

/* ===== Rating badge ===== */
.rating-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold-pale); border-radius: 24px;
  padding: 0.4rem 1.2rem; font-weight: 600;
  color: var(--gold-dark); font-size: 0.95rem;
  border: 1px solid rgba(212, 168, 67, 0.2);
}

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 2rem; margin: 2rem 0; }
.timeline::before { content: ''; position: absolute; left: 0.35rem; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--angel-pink), var(--border), var(--angel-lavender)); }
.timeline-item { position: relative; margin-bottom: 2rem; padding-bottom: 0.5rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.65rem; top: 0.4rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--angel-pink);
}
.timeline-item h3 { font-size: 1.1rem; color: var(--accent); margin-bottom: 0.3rem; }
.timeline-item p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ===== Info box ===== */
.info-box {
  background: var(--lavender-soft); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.info-box h4 { color: #9b82c4; margin-bottom: 0.5rem; font-size: 1rem; }
.info-box p { margin-bottom: 0; font-size: 0.95rem; color: var(--text-secondary); }

/* ===== Ending cards ===== */
.ending-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.ending-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.ending-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ending-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.ending-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ===== Blockquote ===== */
.content-section blockquote {
  border-left: 3px solid var(--angel-lavender);
  padding: 0.75rem 1.25rem; margin: 1.5rem 0;
  background: var(--lavender-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; } h2 { font-size: 1.4rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-title-wrap { padding: 0 2rem; }
  .hero-title-wrap::before, .hero-title-wrap::after { font-size: 1.5rem; }
  .menu-toggle { display: flex; }
  .nav-menu {
    position: fixed; top: var(--header-height); left: 0; right: 0;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem 0; gap: 0.25rem;
    transform: translateY(-120%); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; }
  .nav-menu a { width: 100%; text-align: center; padding: 0.75rem 1rem; }
  .nav-cta { margin-left: 0; margin-top: 0.5rem; width: calc(100% - 2rem); text-align: center; justify-content: center; }
  .features-grid, .screenshots-grid, .character-grid, .ending-grid { grid-template-columns: 1fr; }
  .guide-step { flex-direction: column; gap: 0.75rem; }
  .section, .cta-section { padding: 2.5rem 0; }
  .stats-row { gap: 1.5rem; }
  .stat-value { font-size: 1.4rem; }
  .wing-frame::before, .wing-frame::after { display: none; }
  .hero-visual { height: 240px; }
  .hero-visual::after { font-size: 5rem; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .download-card { padding: 1.5rem; }
  .hero-visual { height: 200px; }
}
