/* ==========================================================================
   TINY REALM: PIONEERS — STYLESHEET
   100% Handcrafted Indie Game Aesthetic · Mobile-First Responsive Architecture
   Keine KI-Templates · DSGVO-konform ohne externe CDN-Abhängigkeiten
   ========================================================================== */

/* 1. LOKALE SCHRIFTARTEN (DSGVO) */
@font-face {
  font-family: 'Albert Sans';
  src: url('/fonts/albert-sans-var.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

/* 2. DESIGN TOKENS */
:root {
  /* Farbpalette: Dunkles Holz, Schiefer, Pergament & Antikgold */
  --bg-deep: #0a0705;
  --bg-base: #110d09;
  --bg-surface: #18130d;
  --bg-card: #201912;
  --bg-card-hover: #2a2016;
  --bg-elevated: #32261a;

  /* Gold & Edelmetalle */
  --gold-dark: #8b6826;
  --gold: #d4a94a;
  --gold-bright: #ffd54f;
  --gold-light: #ffebaa;
  --gold-glow: rgba(212, 169, 74, 0.22);
  --gold-border: rgba(212, 169, 74, 0.35);

  /* Pergament & Texttöne */
  --parchment: #f6efe2;
  --parchment-dim: #d8cdb8;
  --text-muted: #9e917d;
  --text-dark: #2a1f14;

  /* Spiel-Jahreszeiten & Akzente */
  --spring-green: #5c8a3e;
  --summer-gold: #e2a22a;
  --autumn-amber: #c85a2b;
  --winter-ice: #6a9cc2;
  --royal-ruby: #8a2a24;

  /* Typografie */
  --font-serif: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --font-sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Haptische Radien & Schatten */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  
  --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 235, 170, 0.08);
  --shadow-gold: 0 0 25px rgba(212, 169, 74, 0.25);

  /* Layout */
  --container-max: 1200px;
  --container-sm: 820px;
  --header-height: 72px;
}

/* 3. RESET & BASIS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  background-color: var(--bg-deep);
  color: var(--parchment);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background: 
    radial-gradient(circle at 50% 0%, #20170f 0%, transparent 65%),
    radial-gradient(circle at 80% 40%, rgba(92, 138, 62, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(200, 90, 43, 0.06) 0%, transparent 50%),
    var(--bg-deep);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* 4. HILFSKLASSEN & CONTAINER */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-sm {
  max-width: var(--container-sm);
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-bright); }
.hidden { display: none !important; }

.section {
  padding: 70px 0;
  position: relative;
}

@media (min-width: 960px) {
  .section {
    padding: 105px 0;
  }
}

.section-header {
  margin-bottom: 40px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: rgba(212, 169, 74, 0.1);
  border: 1px solid rgba(212, 169, 74, 0.2);
  border-radius: var(--radius-sm);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--parchment);
  margin-bottom: 14px;
}

.section-desc {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  color: var(--parchment-dim);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

/* 5. NAVIGATION / KOPFZEILE */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(14, 10, 7, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 169, 74, 0.18);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-crest {
  filter: drop-shadow(0 2px 6px rgba(212, 169, 74, 0.4));
  transition: transform 0.3s ease;
}

.brand:hover .brand-crest {
  transform: rotate(-6deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
}

.nav-links {
  display: none;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  
  .nav-link {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--parchment-dim);
    transition: color 0.2s ease;
    padding: 6px 0;
    position: relative;
  }

  .nav-link:hover {
    color: var(--gold-bright);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
  }

  .nav-link:hover::after {
    width: 100%;
  }
}

/* 6. BUTTONS (Haptisches Mittelalter-Gefühl) */
.btn-royal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(180deg, #d4a94a 0%, #a67c2e 100%);
  color: #1a1208;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  border: 1px solid #ffd54f;
  border-radius: var(--radius-md);
  box-shadow: 
    0 4px 18px rgba(212, 169, 74, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.22s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-royal:hover {
  background: linear-gradient(180deg, #ffd54f 0%, #b88d35 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 26px rgba(212, 169, 74, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-royal:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(212, 169, 74, 0.3);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

/* 7. HERO SECTION */
.hero-section {
  padding: 42px 0 60px 0;
  text-align: center;
  position: relative;
}

@media (min-width: 960px) {
  .hero-section {
    padding: 60px 0 90px 0;
  }
}

.hero-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

@media (min-width: 640px) {
  .hero-badge-wrap {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 169, 74, 0.1);
  border: 1px solid rgba(212, 169, 74, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 500;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #5c8a3e;
  border-radius: 50%;
  box-shadow: 0 0 8px #5c8a3e;
}

.platform-tag {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--parchment-dim);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  color: var(--parchment);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-lead {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  color: var(--parchment-dim);
  max-width: 740px;
  margin: 0 auto 38px auto;
  line-height: 1.6;
}

/* 8. DER TRAILER-RAHMEN (Edles Relief) */
.trailer-frame-container {
  max-width: 1040px;
  margin: 0 auto 36px auto;
  position: relative;
  background: #140e09;
  border: 2px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(212, 169, 74, 0.12),
    inset 0 0 0 1px rgba(255, 235, 170, 0.12);
  padding: 8px;
}

.frame-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--gold-bright);
  border-style: solid;
  pointer-events: none;
  z-index: 10;
}

.top-left { top: -3px; left: -3px; border-width: 3px 0 0 3px; }
.top-right { top: -3px; right: -3px; border-width: 3px 3px 0 0; }
.bottom-left { bottom: -3px; left: -3px; border-width: 0 0 3px 3px; }
.bottom-right { bottom: -3px; right: -3px; border-width: 0 3px 3px 0; }

.video-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 7, 4, 0.92) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 5;
}

.video-info {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.video-tag {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  font-weight: 700;
}

.video-caption {
  font-size: 0.82rem;
  color: var(--parchment-dim);
  display: none;
}

@media (min-width: 640px) {
  .video-caption { display: block; }
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-video-ctrl {
  background: rgba(32, 24, 16, 0.85);
  border: 1px solid rgba(212, 169, 74, 0.4);
  color: var(--parchment);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-video-ctrl:hover {
  background: var(--gold);
  color: #140e09;
  border-color: #ffd54f;
}

/* 9. STATS / FEATURE PILLS */
.feature-pills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .feature-pills-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.feature-pill {
  background: rgba(32, 25, 18, 0.7);
  border: 1px solid rgba(212, 169, 74, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-pill:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(38, 29, 20, 0.85);
}

.pill-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.1;
}

.pill-text {
  font-size: 0.84rem;
  color: var(--parchment-dim);
  text-align: center;
}

/* 10. JAHRESZEITEN INTERAKTIV */
.seasons-section {
  background: linear-gradient(180deg, transparent 0%, rgba(22, 16, 11, 0.8) 50%, transparent 100%);
}

.seasons-interactive {
  max-width: 1040px;
  margin: 0 auto;
}

.seasons-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .seasons-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

.season-tab {
  background: var(--bg-card);
  border: 1px solid rgba(212, 169, 74, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.22s ease;
  text-align: center;
}

.season-tab:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
}

.season-tab.active {
  background: linear-gradient(180deg, #2e2216 0%, #20170f 100%);
  border-color: var(--gold-bright);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 235, 170, 0.3);
}

.tab-icon { font-size: 1.5rem; }
.tab-label {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--parchment);
}
.tab-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.season-stage {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.season-image-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.season-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.6s ease;
}

.season-stage-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 7, 4, 0.94) 75%);
}

.season-badge {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--gold-bright);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}

.season-display-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: var(--parchment);
  margin-bottom: 8px;
}

.season-display-desc {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  color: var(--parchment-dim);
  max-width: 720px;
  line-height: 1.55;
}

.season-mechanics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 22px;
  background: var(--bg-card);
  border-top: 1px solid rgba(212, 169, 74, 0.16);
}

@media (min-width: 768px) {
  .season-mechanics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mechanic-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mechanic-icon {
  font-size: 1.4rem;
  line-height: 1;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.mechanic-info strong {
  display: block;
  font-size: 0.94rem;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.mechanic-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 11. AUSBAU-INSPEKTOR */
.inspector-box {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .inspector-box {
    padding: 36px;
  }
}

.inspector-selector-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-border) transparent;
}

.building-pick {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid rgba(212, 169, 74, 0.2);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.building-pick:hover {
  border-color: var(--gold);
}

.building-pick.active {
  background: var(--gold);
  color: #140e09;
  font-weight: 700;
  border-color: #ffd54f;
}

.level-switch-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(212, 169, 74, 0.16);
}

@media (min-width: 640px) {
  .level-switch-wrap {
    flex-direction: row;
  }
}

.level-switch-label {
  font-size: 0.92rem;
  color: var(--parchment-dim);
}

.level-buttons {
  display: flex;
  gap: 6px;
  width: 100%;
}

@media (min-width: 640px) {
  .level-buttons {
    width: auto;
  }
}

.lvl-btn {
  flex: 1;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 169, 74, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lvl-btn:hover {
  border-color: var(--gold);
}

.lvl-btn.active {
  background: linear-gradient(180deg, #d4a94a 0%, #9e7527 100%);
  color: #120c06;
  font-weight: 700;
  border-color: #ffd54f;
}

.inspector-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .inspector-stage {
    grid-template-columns: 340px 1fr;
  }
}

.inspector-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(212, 169, 74, 0.15) 0%, transparent 70%), #140e09;
  border: 1px solid rgba(212, 169, 74, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 280px;
}

.inspector-building-art {
  max-width: 240px;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.75));
  transition: transform 0.3s ease;
}

.badge-gold {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  font-weight: 700;
  margin-bottom: 6px;
}

.inspector-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--parchment);
  margin-bottom: 10px;
}

.inspector-desc {
  font-size: 0.98rem;
  color: var(--parchment-dim);
  margin-bottom: 22px;
  line-height: 1.6;
}

.inspector-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stat-cell {
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 169, 74, 0.12);
}

.stat-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-val {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
}

.inspector-chain-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.chain-arrow { color: var(--gold); }
.chain-step.highlight {
  color: var(--gold-bright);
  font-weight: 700;
}

/* 12. PILLARS (SPIELTIEFE) */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid rgba(212, 169, 74, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.pillar-media {
  aspect-ratio: 16 / 9;
  background: #000;
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.pillar-content h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--parchment);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar-content p {
  font-size: 0.94rem;
  color: var(--parchment-dim);
  line-height: 1.6;
}

/* 13. SCREENSHOT-GALERIE */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 169, 74, 0.2);
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--gold-bright);
}

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

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 7, 4, 0.92) 80%);
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease;
}

.gallery-item figcaption strong {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--gold-light);
}

.gallery-item figcaption span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* 14. INDIE-MANIFEST */
.manifest-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 860px) {
  .manifest-card {
    grid-template-columns: 1fr 1.3fr;
    padding: 44px;
  }
}

.developer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 12px;
}

.manifest-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--parchment);
  line-height: 1.25;
  margin-bottom: 24px;
}

.manifest-art-wrap {
  border: 1px solid rgba(212, 169, 74, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #140e09;
}

.manifest-art {
  width: 100%;
  height: auto;
}

.manifest-art-caption {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 12px;
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid rgba(212, 169, 74, 0.1);
}

.manifest-block {
  margin-bottom: 24px;
}

.manifest-block h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.manifest-block p {
  font-size: 0.98rem;
  color: var(--parchment-dim);
  line-height: 1.65;
}

.manifest-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.manifest-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(92, 138, 62, 0.25);
  color: #7bc453;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.manifest-list strong {
  display: block;
  font-size: 0.96rem;
  color: var(--parchment);
  margin-bottom: 2px;
}

.manifest-list p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.developer-signature {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 169, 74, 0.15);
}

.sig-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.sig-role {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* 15. FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid rgba(212, 169, 74, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--gold);
}

.faq-item[open] {
  border-color: var(--gold-border);
  background: var(--bg-card);
}

.faq-question {
  padding: 18px 22px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--parchment);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-toggle::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-toggle::after {
  content: '−';
  color: var(--gold-bright);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  font-size: 0.95rem;
  color: var(--parchment-dim);
  line-height: 1.6;
}

/* 16. TESTFLIGHT CTA FORM */
.scroll-parchment-card {
  background: linear-gradient(180deg, #241a12 0%, #1a120b 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
  text-align: center;
  position: relative;
}

@media (min-width: 640px) {
  .scroll-parchment-card {
    padding: 48px 36px;
  }
}

.parchment-seal {
  font-size: 2.2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 10px rgba(212, 169, 74, 0.5));
}

.parchment-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.parchment-desc {
  font-size: 1rem;
  color: var(--parchment-dim);
  max-width: 540px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 600px) {
  .form-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.84rem;
  color: var(--gold-light);
  font-weight: 500;
}

.form-input, .form-select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(14, 10, 7, 0.85);
  border: 1px solid rgba(212, 169, 74, 0.35);
  border-radius: var(--radius-sm);
  color: var(--parchment);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 12px rgba(212, 169, 74, 0.4);
  background: #140e09;
}

.form-privacy-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
}

.beta-success {
  background: rgba(92, 138, 62, 0.15);
  border: 1px solid #5c8a3e;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 10px;
}

.success-seal {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.beta-success h3 {
  font-family: var(--font-serif);
  color: var(--gold-bright);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.beta-success p {
  color: var(--parchment);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 17. FOOTER */
.site-footer {
  background: #080503;
  border-top: 1px solid rgba(212, 169, 74, 0.18);
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.footer-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.footer-meta-pill {
  font-size: 0.78rem;
  color: #7bc453;
  background: rgba(92, 138, 62, 0.12);
  border: 1px solid rgba(92, 138, 62, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  color: var(--parchment);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a, .legal-btn {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.footer-links a:hover, .legal-btn:hover {
  color: var(--gold-bright);
}

.footer-contact {
  color: var(--gold-light) !important;
}

.footer-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* 18. MODALS & LIGHTBOX */
.modal-backdrop, .lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 4, 2, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px 28px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95);
}

.modal-close-btn, .lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 169, 74, 0.3);
  color: var(--parchment);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover, .lightbox-close:hover {
  background: var(--gold);
  color: #120c06;
}

.modal-heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.modal-subheading {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin: 18px 0 8px 0;
}

.modal-address, .modal-lead {
  color: var(--parchment-dim);
  line-height: 1.6;
}

/* Lightbox */
.lightbox-image {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: var(--radius-md);
  border: 2px solid var(--gold);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.95);
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  background: rgba(14, 10, 7, 0.92);
  border: 1px solid var(--gold-border);
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  color: var(--gold-light);
}
