/* ==========================================================================
   Moonshades — Classic Offline Dungeon Crawler RPG
   Mobile-First Dark Fantasy Stylesheet (Zero Frameworks)
   ========================================================================== */

:root {
  /* Dark Fantasy Obsidian & Torchlight Palette */
  --bg-obsidian: #09090c;
  --bg-surface: #121117;
  --bg-card: #18161f;
  --bg-card-elevated: #201d28;
  --border-subtle: rgba(212, 175, 55, 0.16);
  --border-strong: rgba(212, 175, 55, 0.4);

  /* Accents */
  --gold: #d4af37;
  --gold-bright: #f0cf65;
  --amber: #e59a38;
  --ember: #8c261f;
  --ember-glow: rgba(212, 175, 55, 0.22);

  /* Typography Colors (WCAG AA+ on dark surfaces) */
  --text-primary: #efece4;
  --text-secondary: #bab2a3;
  --text-muted: #8f8779;

  /* Fonts */
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Rhythm */
  --container-max: 1140px;
  --container-narrow: 820px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 0 28px rgba(212, 175, 55, 0.18);
  --transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-obsidian);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(212, 175, 55, 0.06), transparent 60%),
    radial-gradient(circle at 15% 35%, rgba(140, 38, 31, 0.08), transparent 45%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-bright);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(1.6rem, 4.8vw, 2.45rem);
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background: var(--gold);
  color: #09090c;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.125rem;
}

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

.section {
  padding-block: 4rem;
  position: relative;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(18, 17, 23, 0.92), rgba(14, 13, 18, 0.96));
  border-block: 1px solid rgba(212, 175, 55, 0.1);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-intro {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn-gold {
  background: linear-gradient(180deg, #e5c158 0%, #c49724 100%);
  color: #0b0a0d;
  border-color: rgba(255, 236, 170, 0.5);
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  color: #0b0a0d;
  background: linear-gradient(180deg, #f0cf65 0%, #d4a62d 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.38);
}

.btn-outline {
  background: rgba(18, 17, 23, 0.72);
  color: var(--text-primary);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
}

.btn-outline:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ---------- Header & Mobile Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(9, 9, 12, 0.88);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--gold);
}

.brand-crest {
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #f7e4a6 0%, #d4af37 55%, #b2871e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: rgba(24, 22, 31, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  background: rgba(11, 10, 14, 0.98);
  border-bottom: 1px solid var(--border-strong);
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.primary-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-list a {
  display: block;
  padding: 0.6rem 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.08);
}

.nav-cta {
  width: 100%;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: 3.5rem 3rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(1.06) brightness(0.72);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 9, 12, 0.74) 0%, rgba(9, 9, 12, 0.52) 42%, rgba(9, 9, 12, 0.94) 100%),
    radial-gradient(circle at 50% 35%, rgba(229, 154, 56, 0.14), rgba(9, 9, 12, 0.72) 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(18, 17, 23, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.hero-title {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.hero-brand {
  font-size: clamp(2.45rem, 11vw, 4.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.05;
  background: linear-gradient(180deg, #fff4d1 0%, #e7c666 45%, #b8891d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.9));
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: clamp(0.98rem, 2.5vw, 1.12rem);
  color: #e4dfd4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.store-badge-link {
  display: inline-flex;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #000;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.store-badge-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.28);
}

.store-badge-link img {
  height: 48px;
  width: auto;
}

.hero-secondary-actions {
  margin-bottom: 2.25rem;
}

.hero-pillars {
  list-style: none;
  margin: 0;
  padding: 1rem 0.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  background: rgba(15, 14, 19, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.hero-pillars li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-pillars strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-bright);
}

.hero-pillars span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ---------- Official Trailer (Lazy YouTube Facade) ---------- */
.video-frame {
  max-width: 900px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.38), rgba(24, 22, 31, 0.9) 50%, rgba(229, 154, 56, 0.3));
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.yt-facade-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease, filter 300ms ease;
}

.yt-facade:hover .yt-facade-poster {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.yt-facade-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9, 9, 12, 0.22) 0%, rgba(9, 9, 12, 0.74) 100%);
}

.yt-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  cursor: pointer;
}

.yt-play-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(235, 198, 86, 0.96), rgba(188, 138, 28, 0.96));
  color: #09090c;
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.22), 0 12px 30px rgba(0, 0, 0, 0.65);
  transition: transform var(--transition), box-shadow var(--transition);
}

.yt-play-ring svg {
  margin-left: 3px;
}

.yt-facade:hover .yt-play-ring,
.yt-play-btn:focus-visible .yt-play-ring {
  transform: scale(1.08);
  box-shadow: 0 0 0 12px rgba(212, 175, 55, 0.3), 0 14px 36px rgba(212, 175, 55, 0.35);
}

.yt-play-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(9, 9, 12, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.38);
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.noscript-note {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.9rem;
}

.video-direct-link {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Core Features ---------- */
.feature-showcases {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(160deg, var(--bg-card) 0%, #131118 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.125rem;
  box-shadow: var(--shadow-card);
}

.feature-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: #000;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 450ms ease;
}

.feature-row:hover .feature-media img {
  transform: scale(1.03);
}

.feature-body {
  padding: 0.25rem 0.25rem 0.5rem;
}

.feature-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.feature-bullets {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-bullets li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.94rem;
  color: var(--text-primary);
}

.feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.55);
}

/* Pillars Mini-Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

.pillar-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, #141219 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: border-color var(--transition), transform var(--transition);
}

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

.pillar-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.pillar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.pillar-card p {
  font-size: 0.93rem;
}

/* ---------- Screenshot Carousel (_text images, zero duplicated caption) ---------- */
.carousel {
  max-width: 960px;
  margin-inline: auto;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: #050507;
  box-shadow: var(--shadow-card), var(--shadow-gold);
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(9, 9, 12, 0.72);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background-color var(--transition), transform var(--transition), border-color var(--transition);
}

.carousel-arrow:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-bright);
  transform: translateY(-50%) scale(1.06);
}

.carousel-prev {
  left: 0.75rem;
}

.carousel-next {
  right: 0.75rem;
}

.carousel-controls {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: width var(--transition), background-color var(--transition);
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--gold);
}

.carousel-counter {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---------- Lore / Story Panel ---------- */
.lore-panel {
  text-align: center;
  padding: 2.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(140, 38, 31, 0.22), transparent 70%),
    linear-gradient(180deg, var(--bg-card) 0%, #111015 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.lore-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  max-width: 260px;
  margin: 1rem auto 1.75rem;
  color: var(--gold);
}

.lore-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.lore-copy {
  text-align: left;
  max-width: 66ch;
  margin-inline: auto;
  font-size: 1.03rem;
}

.lore-copy p {
  color: #d6d0c4;
}

/* ---------- Press & Player Reviews ---------- */
.press-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}

.press-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition), background-color var(--transition);
}

.press-card:hover {
  border-color: var(--gold);
  background: var(--bg-card-elevated);
  transform: translateY(-2px);
}

.press-outlet {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.press-quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, #131218 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.review-stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}

.review-card blockquote {
  margin: 0 0 1.25rem;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-style: italic;
}

.review-author {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  padding-top: 0.85rem;
}

.review-author strong {
  font-size: 0.95rem;
  color: var(--gold-bright);
}

.review-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- FAQ Section ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem 1.25rem;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 50%;
  transition: transform var(--transition), background-color var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
  background: rgba(212, 175, 55, 0.15);
}

.faq-item p {
  padding-bottom: 1.15rem;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

/* ---------- Indie Dev & Community ---------- */
.dev-card {
  text-align: center;
  padding: 2rem 1.35rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, #121117 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.dev-card > p {
  max-width: 64ch;
  margin-inline: auto;
}

.social-links {
  margin: 1.75rem 0 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(11, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  transition: border-color var(--transition), color var(--transition), transform var(--transition), background-color var(--transition);
}

.social-links a:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  transform: translateY(-2px);
}

.final-cta {
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}

.final-cta h3 {
  color: var(--gold-bright);
  margin-bottom: 0.45rem;
}

.final-cta p {
  margin-bottom: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.5rem 6rem;
  background: #060608;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-title {
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

/* ---------- Mobile Sticky Download Bar ---------- */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 10, 15, 0.96);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(110%);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-sticky-bar.is-visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  max-width: 560px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.sticky-bar-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.sticky-bar-info strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--gold-bright);
  white-space: nowrap;
}

.sticky-bar-info span {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.sticky-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.sticky-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.78rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(24, 22, 31, 0.95);
  color: var(--text-primary);
}

.sticky-store-btn.is-primary {
  background: linear-gradient(180deg, #e5c158 0%, #c49724 100%);
  color: #09090c;
  border-color: rgba(255, 236, 170, 0.65);
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-First Progressive Enhancement)
   ========================================================================== */

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }

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

  .hero-pillars {
    grid-template-columns: repeat(4, 1fr);
    padding: 1.1rem 1.25rem;
  }

  .lore-panel,
  .dev-card {
    padding: 3rem 2.5rem;
  }
}

@media (min-width: 768px) {
  .section {
    padding-block: 5.25rem;
  }

  .site-footer {
    padding-block: 2.75rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .mobile-sticky-bar {
    display: none !important;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }

  .nav-list a {
    padding: 0.45rem 0.7rem;
    font-size: 0.92rem;
  }

  .nav-cta {
    width: auto;
  }

  .feature-row {
    grid-template-columns: 1.08fr 1fr;
    gap: 2.25rem;
    padding: 1.6rem;
  }

  .feature-row-reverse .feature-media {
    order: 2;
  }

  .feature-row-reverse .feature-body {
    order: 1;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pillars-grid,
  .press-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
