/* ============================================
   寻找夏日的宝物 - Summer Treasure Hunt
   Theme: Secret-map browns + firefly-glow golds
   Adventure-compass motifs on light nostalgic bg
   ============================================ */

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

/* --- CSS Variables (Treasure Map Theme) --- */
:root {
  --font-serif: 'Noto Serif SC', 'SimSun', 'STSong', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* Treasure-map palette */
  --bg: #faf6ee;
  --bg-warm: #f5efe0;
  --bg-card: #fffcf5;
  --bg-alt: #f0e8d5;

  /* Browns */
  --brown-dark: #3d2b1f;
  --brown-mid: #6b4c3b;
  --brown-soft: #a0846c;
  --brown-light: #c4a882;

  /* Firefly golds */
  --gold: #d4a030;
  --gold-bright: #e8b840;
  --gold-glow: #f5d060;
  --gold-pale: #fdf0c8;

  /* Accents */
  --compass-blue: #4a7c82;
  --leaf-green: #5a7c4a;
  --warm-amber: #c07830;

  /* Text */
  --text: #2c1f14;
  --text-soft: #5c4636;
  --text-muted: #8a7560;
  --text-light: #b8a58c;

  /* Borders */
  --border: #d4c4a8;
  --border-light: #e8dcc8;

  /* Dark header */
  --header-bg: #2a1a0e;
  --header-text: #f5efe0;
  --header-accent: #d4a030;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.08);
  --shadow-md: 0 4px 16px rgba(61, 43, 31, 0.10);
  --shadow-lg: 0 8px 32px rgba(61, 43, 31, 0.12);
  --shadow-gold: 0 2px 12px rgba(212, 160, 48, 0.25);

  /* Card accent border */
  --card-accent: var(--gold);

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

  /* Sizes */
  --header-height: 64px;
  --max-width: 1100px;
}

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

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;
}

/* Vintage paper texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 160, 48, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 160, 48, 0.02) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(74, 124, 130, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--brown-mid);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--gold);
}
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

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

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

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

.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);
}

/* Compass logo mark */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--header-text);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
}
.header-logo::before {
  content: '✦';
  color: var(--header-accent);
  font-size: 1.4rem;
  animation: firefly-pulse 3s ease-in-out infinite;
}
.header-logo:hover {
  color: var(--gold-bright);
}

@keyframes firefly-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  color: var(--header-text);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
}

/* Header CTA button */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--header-bg) !important;
  padding: 8px 22px !important;
  border-radius: var(--radius-md);
  font-weight: 700 !important;
  font-size: 0.95rem;
  transition: background 0.2s, box-shadow 0.2s !important;
  margin-left: 8px;
  letter-spacing: 0.03em;
}
.header-cta:hover {
  background: var(--gold-bright) !important;
  box-shadow: var(--shadow-gold);
  color: var(--header-bg) !important;
}
.header-cta::after {
  content: '→';
  font-size: 1.1rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--header-text);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: var(--brown-dark);
  overflow: hidden;
  padding: 0;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212, 160, 48, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(212, 160, 48, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, rgba(42, 26, 14, 0.4) 0%, rgba(42, 26, 14, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 90%;
  max-width: 700px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.3;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Compass divider */
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--gold-glow);
  font-size: 0.9rem;
}

.hero-divider::before,
.hero-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
}

/* --- Sub-page hero (reduced) --- */
.hero-subpage {
  padding: 40px 24px 48px !important;
  background: var(--brown-dark);
  text-align: center;
  position: relative;
}

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

/* --- Main Content --- */
.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* --- Content Section (sub-page h2 heading) --- */
.content-section h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 16px;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.section-desc {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--card-accent);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle, rgba(212, 160, 48, 0.06) 0%, transparent 70%);
  border-radius: 0 0 0 60px;
}

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

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

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

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

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

.info-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  text-align: center;
}

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

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

/* --- Screenshot Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.gallery-grid a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.gallery-grid a:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.gallery-grid a::after {
  content: '🔍';
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 1rem;
  background: rgba(0,0,0,0.5);
  color: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-grid a:hover::after {
  opacity: 1;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* --- Player Reviews --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

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

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

.review-text {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.review-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- CTA Banner (index only) --- */
.cta-banner {
  background: linear-gradient(135deg, var(--brown-dark) 0%, #4a2f1a 100%);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin: 56px 0 0;
  position: relative;
  overflow: hidden;
}

/* Compass rose decoration */
.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(212, 160, 48, 0.15);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(212, 160, 48, 0.2);
  border-radius: 50%;
}

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

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--header-bg);
  padding: 14px 40px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  z-index: 1;
}

.cta-btn:hover {
  background: var(--gold-bright);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  color: var(--header-bg);
}

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

/* --- Story Page --- */
.story-block {
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

.story-block h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 8px;
}

.story-block p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Chapter title */
.chapter-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-mid);
  margin: 24px 0 8px;
  padding-left: 16px;
  border-left: 3px solid var(--gold-pale);
}

/* Route descriptions */
.route-desc {
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 16px 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.route-heading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin: 20px 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px dotted var(--border-light);
}

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

.char-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 3px solid var(--gold);
}

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

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

.char-card-body {
  padding: 18px;
}

.char-card-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 4px;
}

.char-card-role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

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

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

.char-tag {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-warm);
  color: var(--brown-soft);
  border: 1px solid var(--border-light);
  font-weight: 500;
}

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

.section-subheading::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* --- Guide Page --- */
.guide-step {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--card-accent);
  position: relative;
}

.guide-step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-pale);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

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

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

.guide-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.8;
  margin: 16px 0 24px;
}

.tip-box {
  background: linear-gradient(135deg, var(--gold-pale) 0%, #fef8e8 100%);
  border: 1px solid rgba(212, 160, 48, 0.3);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
}

.tip-box strong {
  color: var(--brown-mid);
  font-family: var(--font-serif);
}

/* --- FAQ Page --- */
.faq-list {
  margin: 40px 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 {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
}

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

.faq-question::after {
  content: '▾';
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

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

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

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

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

/* --- System Requirements --- */
.sys-reqs {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin: 28px 0;
}

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

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

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sys-reqs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sys-reqs th,
.sys-reqs td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.sys-reqs th {
  background: var(--bg-warm);
  color: var(--brown-mid);
  font-weight: 700;
  white-space: nowrap;
}

.sys-reqs td {
  color: var(--text-soft);
}

.td-highlight {
  color: var(--brown-mid) !important;
  font-weight: 700;
}

/* --- Lists --- */
.content-list {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-soft);
  margin: 12px 0;
}

.content-list-num {
  list-style: decimal;
  padding-left: 24px;
  color: var(--text-soft);
  margin: 12px 0;
}

.content-li-sm {
  margin-bottom: 4px;
  color: var(--text-soft);
}

.content-li {
  margin-bottom: 5px;
  color: var(--text-soft);
}

.content-li-md {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.content-li-lg {
  margin-bottom: 10px;
  color: var(--text-soft);
}

/* --- Colored strong tags --- */
.strong-gold {
  color: var(--gold);
}

.strong-amber {
  color: var(--warm-amber);
}

.strong-navy {
  color: var(--compass-blue);
}

.strong-green {
  color: var(--leaf-green);
}

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

.strong-red {
  color: #c04040;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: 28px 24px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-warm);
}

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

/* --- Lightbox --- */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(42, 26, 14, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

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

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
#lightbox-close:hover {
  opacity: 1;
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(255,255,255,0.2);
}
#lightbox-prev { left: 24px; }
#lightbox-next { right: 24px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.3s;
    z-index: 99;
    border-bottom: 2px solid var(--header-accent);
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding: 12px 16px;
  }

  .header-cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 0;
  }
  .hero-image {
    height: 280px;
  }
  .hero-tagline {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-subpage {
    padding: 28px 16px 36px !important;
  }

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

  .site-main {
    padding: 32px 16px 60px;
  }

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

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

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

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

@media (max-width: 480px) {
  .hero-image {
    height: 220px;
  }
  .hero-tagline {
    font-size: 1.4rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid img {
    height: 180px;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .feature-card {
    padding: 20px 18px;
  }
}
