/* ==========================================================================
   SPERIO - The Last Lantern
   Indie 2D Adventure Platformer Website Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #0e0d15;
  --bg-soft: #131120;
  --bg-raised: #191627;
  --ink: #f2eee3;
  --ink-dim: #9b95aa;
  --accent: #ffb454;
  --accent-2: #ff8f5e;
  --accent-3: #ffd9a0;
  --line: #2a2638;
  --shadow: rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(255, 180, 84, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(255, 143, 94, 0.04) 0%, transparent 45%);
}

::selection {
  background: rgba(255, 180, 84, 0.35);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2a2638;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3550;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

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

.section:nth-of-type(even) {
  background: var(--bg-soft);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: "Press Start 2P", monospace;
  font-size: clamp(16px, 2.4vw, 24px);
  color: var(--accent);
  letter-spacing: 1px;
  text-align: center;
}

.section-title::before,
.section-title::after {
  content: "";
  width: 52px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  flex-shrink: 0;
}

.section-title::after {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-sub {
  text-align: center;
  color: var(--ink-dim);
  font-size: 13.5px;
  margin: 14px 0 48px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------------- NAVBAR ---------------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(14, 13, 21, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.nav-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 18px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  color: var(--ink);
  transition: color 0.2s;
  letter-spacing: -0.5px;
}

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

.logo-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(255, 180, 84, 0.1);
}

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

.btn-nav-download {
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.btn-nav-download:hover {
  color: var(--accent);
}

.btn-nav-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffb454 0%, #ff9f3a 100%);
  color: #2a1a0f;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255, 180, 84, 0.3);
}

.btn-nav-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 180, 84, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------------- HERO SECTION ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../assets/images/sperio_hero.jpg');
  background-size: cover;
  background-position: center bottom;
  filter: brightness(0.65) saturate(1.15);
  transform: scale(1.02);
  animation: heroSubtleZoom 24s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, rgba(14, 13, 21, 0.3) 0%, rgba(14, 13, 21, 0.85) 80%, var(--bg) 100%),
              linear-gradient(180deg, rgba(14, 13, 21, 0.4) 0%, transparent 40%, var(--bg) 98%);
}

.fireflies-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.firefly {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-2);
  animation: floatFirefly 8s infinite alternate ease-in-out;
  opacity: 0.8;
}

.hero-inner {
  position: relative;
  z-index: 4;
  padding: 60px 0;
}

.hero-copy {
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 180, 84, 0.1);
  border: 1px solid rgba(255, 180, 84, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(255, 180, 84, 0.5));
}

.hero-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 30px rgba(255, 180, 84, 0.2);
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: #c4c0d0;
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
}

.hero-tagline {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #d8d4e0;
  line-height: 1.65;
  margin-bottom: 40px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  max-width: 620px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 15px 32px;
  border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ffb454 0%, #ff9f3a 100%);
  color: #2a1a0f;
  box-shadow: 0 4px 16px rgba(255, 180, 84, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 180, 84, 0.5), 0 4px 8px rgba(0, 0, 0, 0.25);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateY(2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #f2eee3;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 180, 84, 0.4);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.hero-scroll span {
  width: 20px;
  height: 32px;
  border: 2px solid var(--ink-dim);
  border-radius: 12px;
  display: block;
  position: relative;
}

.hero-scroll span::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}

/* ---------------- TICKER MARQUEE ---------------- */
.ticker {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  animation: tickerScroll 26s linear infinite;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 1px;
}

.ticker-track span {
  transition: color 0.2s;
}

.ticker-track span:hover {
  color: var(--accent);
}

.ticker-track i {
  color: var(--accent);
  font-style: normal;
  font-size: 11px;
}

/* ---------------- STORY SECTION ---------------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.chapter {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.chapter:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 180, 84, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.chapter-num {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 18px;
}

.chapter-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
}

.chapter-text {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.7;
}

/* ---------------- PLAYABLE GAME SECTION ("A QUIET PEEK") ---------------- */
.game-window-wrapper {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow), 0 0 35px rgba(255, 180, 84, 0.08);
}

.game-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #110f1c;
  border-bottom: 1px solid var(--line);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a2638;
}

.window-dots span:nth-child(1) { background: #ff5f56; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #27c93f; }

.window-title {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--ink-dim);
}

.game-canvas-container {
  position: relative;
  width: 100%;
  height: 520px;
  background: #090910;
  overflow: hidden;
}

#platformer-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Game Controls & Info Bar */
.game-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #110f1c;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}

.game-sparks-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--accent);
}

.game-instructions-badge {
  font-size: 13px;
  color: var(--ink-dim);
  display: flex;
  gap: 16px;
}

.game-btn-bar {
  display: flex;
  gap: 10px;
}

.game-btn-sm {
  padding: 7px 14px;
  font-size: 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  cursor: pointer;
  transition: all 0.2s;
}

.game-btn-sm:hover {
  background: var(--accent);
  color: #201505;
  border-color: var(--accent);
}

/* ---------------- WORLDS SECTION ---------------- */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.world-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.world-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 180, 84, 0.4);
}

.world-media {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.world-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.world-card:hover .world-media img {
  transform: scale(1.06);
}

.world-media-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(14, 13, 21, 0.75);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: "Press Start 2P", monospace;
  font-size: 8.5px;
  color: var(--accent);
}

.world-body {
  padding: 24px;
}

.world-subtitle {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-weight: 700;
}

.world-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.world-desc {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.65;
}

/* ---------------- COMPANIONS SECTION ---------------- */
.companions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.companion-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.companion-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 180, 84, 0.4);
}

.companion-portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #110f1c;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.pixel-art {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
}

.companion-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.companion-role {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: var(--accent);
  margin-bottom: 12px;
}

.companion-bio {
  font-size: 13.5px;
  color: var(--ink-dim);
  margin-bottom: 16px;
  line-height: 1.55;
}

.companion-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
}

.companion-tags span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-dim);
}

/* ---------------- DOWNLOAD SECTION ---------------- */
.download-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 15px 40px var(--shadow);
}

.download-top {
  display: flex;
  align-items: center;
  gap: 20px;
}

.download-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 180, 84, 0.1);
  border: 1px solid var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
}

.download-name {
  font-size: 20px;
  font-weight: 800;
}

.download-note {
  font-size: 13.5px;
  color: var(--ink-dim);
}

.download-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dl-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-dim);
}

/* ---------------- GALLERY SECTION ---------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  height: 220px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 13, 21, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-btn {
  position: absolute;
  color: var(--ink);
  font-size: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  transition: background 0.2s;
}

.lightbox-btn:hover {
  background: var(--accent);
  color: #000;
}

.lightbox-btn.close { top: 30px; right: 30px; }
.lightbox-btn.prev { left: 30px; }
.lightbox-btn.next { right: 30px; }

/* ---------------- WHY SPERIO / FEATURES ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: linear-gradient(135deg, rgba(25, 22, 39, 0.6) 0%, rgba(19, 17, 32, 0.4) 100%);
  border: 1px solid rgba(255, 180, 84, 0.12);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 180, 84, 0.35);
  background: linear-gradient(135deg, rgba(255, 180, 84, 0.08) 0%, rgba(255, 143, 94, 0.04) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 180, 84, 0.2);
}

.feature-icon {
  font-size: 42px;
  margin-bottom: 18px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(255, 180, 84, 0.4));
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 6px 16px rgba(255, 180, 84, 0.6));
}

.feature-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

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

/* ---------------- ROADMAP ---------------- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 650px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.timeline-marker {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.timeline-item.done .timeline-marker {
  background: var(--accent);
  color: #201505;
}

.timeline-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex: 1;
}

.timeline-phase {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--ink-dim);
}

/* ---------------- FAQ ---------------- */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.faq-toggle {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

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

/* ---------------- FOOTER ---------------- */
.footer {
  background: #09080e;
  border-top: 1px solid var(--line);
  padding: 50px 0;
  text-align: center;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.footer-logo {
  font-family: "Press Start 2P", monospace;
  font-size: 18px;
}

.footer-tag {
  color: var(--ink-dim);
  font-size: 13.5px;
}

.footer-note {
  color: #635f73;
  font-size: 12.5px;
}

/* ---------------- EASTER EGG TOAST ---------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-raised);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  z-index: 150;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease;
}

.toast[hidden] {
  display: none !important;
}

/* ---------------- BETA GATE MODAL ---------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(14, 13, 21, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate[hidden] {
  display: none !important;
}

.gate-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.gate-kicker {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gate-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.gate-copy {
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.gate-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-dim);
}

.gate-input {
  background: #110f1c;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.gate-input:focus {
  border-color: var(--accent);
}

.gate-error {
  color: #ff5f56;
  font-size: 12px;
}

.gate-submit {
  width: 100%;
  margin-top: 8px;
}

/* Animations */
@keyframes flickerLantern {
  0% { filter: drop-shadow(0 0 8px rgba(255, 180, 84, 0.4)); opacity: 0.9; }
  50% { filter: drop-shadow(0 0 16px rgba(255, 180, 84, 0.75)); opacity: 1; }
  100% { filter: drop-shadow(0 0 10px rgba(255, 180, 84, 0.5)); opacity: 0.95; }
}

@keyframes heroSubtleZoom {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.06); }
}

@keyframes floatFirefly {
  0% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(25px, -35px); opacity: 0.9; }
  100% { transform: translate(-20px, -60px); opacity: 0.3; }
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .game-canvas-container {
    height: 420px;
  }
}
