/* ═══════════════════════════════════════════════════════
   幸福家里蹲的养成方法 — Cozy Hikikomori Theme
   Kotatsu orange + blanket grays + console accents
   Warm indoor comfort on a light warm background
   ═══════════════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
  --accent: #e8734a;
  --accent-hover: #d4653a;
  --accent-light: #fdf0e8;
  --accent-glow: rgba(232, 115, 74, 0.12);

  --bg: #faf6f0;
  --bg-alt: #f5efe5;
  --bg-card: #ffffff;

  --text: #3a3028;
  --text-muted: #8a7e72;
  --text-light: #b0a598;

  --header-bg: #2d2418;
  --header-text: #f0e6d8;
  --header-border: #e8734a;

  --card-border: #e8e0d8;
  --card-shadow: 0 2px 12px rgba(58, 48, 40, 0.06);
  --card-hover-shadow: 0 6px 24px rgba(58, 48, 40, 0.10);

  --blanket-gray: #c4bbb0;
  --blanket-light: #e8e3da;

  --console-green: #5c8a6b;
  --console-blue: #4a6fa5;

  --footer-bg: #2d2418;
  --footer-text: #a09080;

  --font-heading: "Noto Serif SC", "STSong", "SimSun", "KaiTi", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --nav-h: 64px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* warm room glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232, 115, 74, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(92, 138, 107, 0.04), transparent);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ── 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;
}

/* ── Hero Title (visual, not H1) ── */
.hero-title-main {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-title-main .accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hero Subpage (reduced padding for sub-pages) ── */
.hero-subpage {
  padding: 40px 0 48px;
}

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

/* ── Table Scroll ── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Content Lists ── */
.content-list {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.content-list-num {
  list-style: decimal;
  padding-left: 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.content-li {
  margin-bottom: 5px;
}

.content-li-sm {
  margin-bottom: 4px;
}

.content-li-md {
  margin-bottom: 8px;
}

.content-li-lg {
  margin-bottom: 10px;
}

/* ── Colored Strong ── */
.strong-pink {
  color: #e8734a;
}

.strong-red {
  color: #d4483a;
}

.strong-gold {
  color: #c4943a;
}

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

/* ── Section Subheading ── */
.section-subheading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 40px 0 24px;
}

/* ── Guide Intro ── */
.guide-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ── Route Description ── */
.route-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Route Heading ── */
.route-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── Chapter Title ── */
.chapter-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* ── System Reqs H3 ── */
.sys-reqs-h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
}

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

/* ── TD Highlight ── */
.td-highlight {
  color: var(--accent);
  font-weight: 700;
}

/* ── Utility ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.accent-text {
  color: var(--accent);
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.pb-0 {
  padding-bottom: 0;
}

/* ── Header ── */
.site-header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

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

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

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

/* ── Nav ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--header-text);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

/* Nav CTA button */
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 8px 18px !important;
  border-radius: var(--radius-md) !important;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--header-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ── */
.hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 30% 50%, var(--accent-glow), transparent),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(92, 138, 107, 0.06), transparent);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-text h1 .accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232, 115, 74, 0.3);
}

.hero-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 115, 74, 0.4);
}

/* Hero visual (kotatsu room illustration placeholder) */
.hero-visual {
  flex: 0 0 320px;
  height: 280px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fdf0e8, #f5efe5);
  border: 2px solid var(--blanket-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--blanket-gray), transparent);
  opacity: 0.3;
}

/* ── Page Hero (sub-pages) ── */
.page-hero {
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 40% 50% at 50% 50%, var(--accent-glow), transparent);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-hero .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 1rem;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--accent-light);
  color: var(--accent);
}

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

.tag-gray {
  background: #f0ebe2;
  color: #7a7068;
}

.tag-green {
  background: #edf5ef;
  color: var(--console-green);
}

.tag-blue {
  background: #edf2f8;
  color: var(--console-blue);
}

/* ── Sections ── */
.section {
  padding: 56px 0;
}

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

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

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

/* ── Accent Line Divider ── */
.accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blanket-gray));
  border-radius: 2px;
  margin: 0 auto 32px;
}

/* ── Info Cards ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s;
}

.info-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.info-card .label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.info-card .value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Feature Cards ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--card-hover-shadow);
  border-left-color: var(--console-green);
}

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

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

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Story Blocks ── */
.story-block {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
}

.story-block h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.story-chapter {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.story-block p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Guide Steps ── */
.guide-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.guide-step .step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(232, 115, 74, 0.3);
}

.guide-step .step-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.guide-step .step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Tip Box ── */
.tip-box {
  background: #fdf8f3;
  border: 1px solid var(--blanket-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
}

.tip-box .tip-label {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.tip-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Character Cards ── */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

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

.char-card:hover {
  box-shadow: var(--card-hover-shadow);
}

.char-header {
  background: var(--header-bg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.char-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.char-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--header-text);
}

.char-header .char-role {
  font-size: 0.8rem;
  color: var(--accent);
}

.char-body {
  padding: 16px;
}

.char-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

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

/* ── Card Grid (generic) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--header-bg), #3d3128);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 40px 0;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, var(--accent-glow), transparent),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(92, 138, 107, 0.08), transparent);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0e6d8;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  color: #b0a598;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(232, 115, 74, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 115, 74, 0.4);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent);
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ── Stats Row ── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
}

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

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Info Table ── */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--card-border);
  text-align: left;
}

.info-table th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  width: 140px;
}

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

/* ── Download Card ── */
.download-card {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(232, 115, 74, 0.12);
}

.download-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-card .version {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ── FAQ Accordion ── */
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}

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

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

.faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.3s;
}

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

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

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

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

/* ── Breadcrumbs ── */
.breadcrumbs {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

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

.breadcrumbs .sep {
  margin: 0 8px;
  color: var(--text-light);
}

/* ── Blockquote ── */
blockquote {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text);
  font-style: italic;
}

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

/* ── Gallery / Screenshots ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gallery img {
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 36, 24, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

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

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

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

/* ── Console Divider (video-game accent) ── */
.console-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
}

.console-divider::before,
.console-divider::after {
  content: "";
  height: 2px;
  flex: 1;
  max-width: 80px;
  background: var(--blanket-gray);
}

.console-divider span {
  color: var(--console-green);
  font-size: 1.2rem;
  font-family: monospace;
}

/* ── Footer ── */
.site-footer {
  background: var(--footer-bg);
  padding: 24px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

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

/* ── Ending Cards ── */
.ending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

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

.ending-card:hover {
  box-shadow: var(--card-hover-shadow);
}

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

.ending-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blanket-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 16px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.timeline-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

/* ── Review Card ── */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
}

.review-card .review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-stars {
  color: #e8b84a;
  font-size: 1.1rem;
}

.review-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .hero-visual {
    flex: 0 0 200px;
    width: 100%;
    height: 200px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-title-main {
    font-size: 1.8rem;
  }

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

  .hero-tags {
    justify-content: center;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }

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

  .stats-row {
    gap: 20px;
  }

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

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

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

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

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

  .hero {
    padding: 40px 0;
  }

  .section {
    padding: 36px 0;
  }

  .guide-step {
    flex-direction: column;
    gap: 12px;
  }
}
