:root {
  --bg-obsidian: #050a08;
  --bg-panel: #0a1712;
  --bg-panel-elev: #0f231b;
  --emerald: #00ff9d;
  --emerald-soft: #2de08f;
  --emerald-glow: rgba(0, 255, 157, 0.22);
  --gold: #f5c542;
  --gold-deep: #c9941e;
  --gold-grad: linear-gradient(135deg, #fff1b8 0%, #f5c542 42%, #b98316 100%);
  --text-main: #f3f7f4;
  --text-muted: #b6c8be;
  --border-emerald: rgba(0, 255, 157, 0.24);
  --border-gold: rgba(245, 197, 66, 0.42);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 18px 44px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 80% 8%, rgba(0, 255, 157, 0.14), transparent 42%),
              radial-gradient(circle at 12% 35%, rgba(245, 197, 66, 0.08), transparent 36%),
              var(--bg-obsidian);
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Hold & Attribution Strip */
.hold-strip {
  background: #040806;
  border-bottom: 1px solid var(--border-gold);
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #e6d7a8;
}
.src-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid var(--border-emerald);
  color: var(--emerald);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Sticky Cinematic Header */
.funnel-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 10, 8, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-emerald);
}
.funnel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 10px 0;
}
.brand-lockup {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-crown {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #103224, #071911);
  border: 1px solid var(--border-gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.15rem;
}
.brand-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-title {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--emerald-soft);
  text-transform: uppercase;
}

.spcb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.spcb-nav a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 35, 27, 0.7);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.spcb-nav a:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(245, 197, 66, 0.14);
}
.spcb-nav a.nav-gold {
  background: var(--gold-grad);
  color: #0b1610;
  border-color: transparent;
}

/* Typography & Buttons */
.kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.8rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); font-weight: 850; text-transform: uppercase; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 14px; color: var(--text-muted); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-emerald {
  background: var(--emerald);
  color: #05160e;
  box-shadow: 0 8px 24px var(--emerald-glow);
}
.btn-gold {
  background: var(--gold-grad);
  color: #0c1610;
}
.btn-ghost {
  background: rgba(10, 23, 18, 0.78);
  border-color: var(--border-emerald);
  color: var(--text-main);
}

/* Cinematic Hero (Muted Loop Stage) */
.cinema-hero {
  position: relative;
  padding: 48px 0 42px;
  border-bottom: 1px solid var(--border-emerald);
  overflow: hidden;
}
.cinema-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}
.loop-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-gold);
  background: #06110c;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
}
.loop-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.12) contrast(1.06);
  animation: slowKenBurns 18s ease-in-out infinite alternate;
}
@keyframes slowKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.07); }
}
.loop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 8, 0.2) 0%, rgba(5, 10, 8, 0.86) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}
.loop-pills {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(5, 10, 8, 0.82);
  border: 1px solid var(--border-gold);
  color: var(--gold);
}
.pill.emerald {
  border-color: var(--border-emerald);
  color: var(--emerald);
}

/* Section Bands */
.band {
  padding: 44px 0;
  border-bottom: 1px solid rgba(0, 255, 157, 0.14);
}
.band.alt {
  background: linear-gradient(180deg, rgba(10, 23, 18, 0.75) 0%, rgba(5, 10, 8, 0.92) 100%);
}

/* 4-Door Campaign Artwork Grid (SHOP / PLAY / CREATE / BUILD) */
.spcb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.art-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--border-emerald);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.art-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
.art-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #07140e;
}
.art-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.art-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.door-tag {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}
.art-card-body p { font-size: 0.86rem; margin: 0; }
.art-card-cta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--emerald);
}

/* 60-Second How-to-Play Interactive Chapter Console */
.tutorial-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.chapter-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-emerald);
  background: #040a07;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.chapter-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}
.chapter-caption-box {
  position: relative;
  z-index: 2;
  padding: 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 10, 7, 0.96) 35%);
}
.caption-disclaimer {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(245, 197, 66, 0.16);
  border: 1px solid var(--border-gold);
  color: #ffe7a0;
  font-size: 0.78rem;
  font-weight: 700;
}
.chapter-list {
  display: grid;
  gap: 10px;
}
.chapter-btn {
  text-align: left;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 12, 9, 0.85);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.chapter-btn[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(245, 197, 66, 0.14);
  box-shadow: 0 0 0 1px var(--gold);
}
.chapter-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--emerald);
  font-weight: 700;
}

/* Sound General & Connected Destination Cards */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-card.gold-edge { border-color: var(--border-gold); }
.artist-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.artist-emblem {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: #071710;
  padding: 4px;
}

/* Return to the Neighborhood Saved Progress Bar */
.progress-dock {
  background: linear-gradient(135deg, rgba(16, 46, 33, 0.94), rgba(7, 18, 13, 0.96));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.notice-strip {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid var(--border-emerald);
  font-size: 0.84rem;
  color: #d6efe2;
}

.loop-note { margin: 4px 0 0; font-size: 0.82rem; color: #dcebe3; }
.mt-10 { margin-top: 10px; }
.mt-18 { margin-top: 18px; }
.mb-0 { margin: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.cap-lead { margin-bottom: 6px; color: #edf5f0; }
.muted-sub { color: var(--text-muted); }
.return-heading { font-size: 1.35rem; margin-bottom: 6px; }
.return-meta { margin: 0; font-size: 0.88rem; }
.xp-highlight { color: var(--emerald); }
.gold-highlight { color: var(--gold); }

footer.funnel-footer {
  padding: 32px 0 48px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .cinema-grid, .tutorial-shell { grid-template-columns: 1fr; }
  .spcb-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .funnel-bar { flex-direction: column; align-items: flex-start; }
  .spcb-grid, .two-col { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
