:root {
  --bg: #0e0610;
  --bg-2: #1c0508;
  --card: #300b12;
  --gold: #f0c14a;
  --gold-2: #dfb23f;
  --gold-dark: #a87820;
  --cream: #fff3e6;
  --muted: #d7c4b0;
  --line: rgba(240, 193, 74, 0.28);
  --frost: rgba(210, 230, 255, 0.22);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Nunito", system-ui, sans-serif;
  --display: "Luckiest Guy", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(40, 90, 80, 0.28) 0%, transparent 55%),
    radial-gradient(1200px 600px at 50% -10%, #3a1014 0%, var(--bg) 58%);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { margin: 0; }
h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  font-weight: 400;
}

.snow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  overflow: hidden;
}
.flake {
  position: absolute;
  top: -32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
  animation: fall linear infinite;
  opacity: 0.65;
}
@keyframes fall {
  to { transform: translateY(110vh) translateX(var(--drift, 20px)); opacity: 0.15; }
}

.nav, main, .foot { position: relative; z-index: 6; }

.nav {
  position: sticky;
  top: 0;
  background: rgba(14, 6, 16, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: 7;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gold-2);
  object-fit: cover;
  background: #3a0a10;
}
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav-link {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
}
.nav-link:hover { color: var(--gold); }

/* Festive string lights under the nav */
.lights {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  position: relative;
  height: 22px;
  padding: 0 10px;
  overflow: hidden;
}
.lights::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: 5px;
  height: 2px;
  background: #3a2418;
  border-radius: 2px;
}
.bulb {
  width: 10px;
  height: 14px;
  margin-top: 2px;
  border-radius: 50% 50% 40% 40%;
  position: relative;
  z-index: 1;
  animation: twinkle 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px currentColor, 0 6px 12px color-mix(in srgb, currentColor 45%, transparent);
}
.bulb.r { color: #ff4d4d; background: #ff5d5d; animation-delay: 0s; }
.bulb.g { color: #3ee08a; background: #46e896; animation-delay: 0.25s; }
.bulb.y { color: #f0c14a; background: #f6d36a; animation-delay: 0.5s; }
.bulb.b { color: #5aa8ff; background: #6cb4ff; animation-delay: 0.75s; }
.bulb.p { color: #d07aff; background: #d98cff; animation-delay: 1s; }
.bulb:nth-child(odd) { animation-duration: 2.1s; }
@keyframes twinkle {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.55; filter: brightness(0.75); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s ease, filter 0.15s ease;
  padding: 14px 28px;
  font-size: 1.05rem;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-sm { padding: 8px 18px; font-size: 0.95rem; }
.btn-gold {
  background: linear-gradient(180deg, #f6d36a 0%, var(--gold-2) 100%);
  color: #2a1204;
  box-shadow: 0 6px 18px rgba(223, 178, 63, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 243, 230, 0.7);
}
button.btn { appearance: none; }

.hero {
  width: min(1080px, calc(100% - 32px));
  margin: 18px auto 0;
  text-align: center;
}
.hero-art {
  position: relative;
  margin: 0 auto 8px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-banner {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  object-position: center center;
  background: #0a0408;
}
.hero-copy { text-align: center; }
.eyebrow {
  margin: 18px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.78rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 400;
  color: #fff;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  line-height: 0.95;
}
.ticker {
  margin: 2px 0 10px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 10vw, 6.2rem);
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-shadow: 0 5px 0 #6b3f0b;
}
.tagline {
  margin: 0 auto 22px;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--muted);
  font-weight: 700;
}
.cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 8px;
}
@media (min-width: 701px) {
  .hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 72px 24px 26px;
    background: linear-gradient(to top, rgba(8, 2, 6, 0.94) 0%, rgba(8, 2, 6, 0.72) 48%, transparent 100%);
  }
  .hero-copy .eyebrow { margin-top: 0; }
  .hero-copy .tagline { color: #f0e2d4; }
  .hero-copy .cta { margin-bottom: 0; }
}

.until {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.78rem;
  margin: 22px 0 12px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.count-box {
  background: var(--card);
  border-radius: 16px;
  min-width: 88px;
  padding: 14px 12px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  border: 1px solid var(--frost);
}
.count-num {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: #f7d48a;
  line-height: 1;
}
.count-label {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c9a394;
  font-weight: 800;
}

.ca-section, .about, .howto, .roadmap, .chart, .links {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto 56px;
}
.ca-section h2, .about h2, .howto h2, .roadmap h2, .links h2 { margin-bottom: 8px; }
.lede, .about p, .steps p {
  color: var(--muted);
  font-weight: 700;
}
.ca-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  border: 1px solid var(--frost);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.ca-box code, .steps code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: #f3e6d2;
  word-break: break-all;
  flex: 1;
  font-size: 0.92rem;
}
.about p { font-size: 1.12rem; line-height: 1.6; }

.steps { list-style: none; padding: 0; margin: 20px 0 0; }
.steps li {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--frost);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.step-n {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6d36a 0%, var(--gold-2) 100%);
  color: #2a1204;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }

.chart { width: min(1080px, calc(100% - 32px)); text-align: center; }
.chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 14px;
}
.chart-link {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.1rem;
}
.chart-frame {
  border-radius: 18px;
  overflow: hidden;
  background: #0d1117;
  min-height: 420px;
  box-shadow: var(--shadow);
}
.chart-frame iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}
.chart-note {
  color: var(--muted);
  font-weight: 700;
  margin: 14px 0 18px;
}
.chart .btn { margin-bottom: 8px; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.link-grid a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--cream);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 12px;
  font-weight: 800;
}
.link-grid a:hover { border-color: var(--gold); color: var(--gold); }

.foot {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 80px;
  color: #b89a90;
  font-size: 0.88rem;
  line-height: 1.55;
}
.foot .copy { color: #8a6d66; margin-top: 18px; }

/* Roadmap: stops along the mountain path */
.roadmap {
  width: min(920px, calc(100% - 32px));
}
.roadmap h3 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 4vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.05;
  padding-right: 72px;
}
.roadmap-trail {
  list-style: none;
  margin: 22px 0 0;
  padding: 0 0 0 42px;
  position: relative;
}
.roadmap-trail::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f6d36a 0%, #dfb23f 40%, rgba(240, 193, 74, 0.2) 100%);
  box-shadow: 0 0 10px rgba(240, 193, 74, 0.35);
}
.phase {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 28%), var(--card);
  border: 1px solid var(--frost);
  border-radius: 18px;
  padding: 20px 22px 16px;
  margin: 0 0 16px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.phase.is-done {
  border-color: rgba(240, 193, 74, 0.55);
  background: linear-gradient(180deg, rgba(255, 230, 160, 0.1) 0%, #3f1218 36%, #300b12 80%);
}
.phase-dot {
  position: absolute;
  left: -42px;
  top: 22px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card);
  color: var(--gold);
  border: 3px solid var(--gold);
  font-weight: 900;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  z-index: 1;
  box-sizing: border-box;
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px rgba(240, 193, 74, 0.45);
}
.phase.is-done .phase-dot {
  background: linear-gradient(180deg, #f6d36a 0%, var(--gold-2) 100%);
  color: #2a1204;
  border-color: #2a1204;
  font-size: 0.95rem;
}
.phase-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #2a1204;
  background: var(--gold);
  border-radius: 999px;
  padding: 4px 10px;
}
.phase-kicker {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.72rem;
}
.phase-tag {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 1.02rem;
}
.milestones {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.milestones li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}
.milestones li.done { color: var(--cream); }
.milestones .mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(240, 193, 74, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  margin-top: 1px;
  color: #2a1204;
}
.milestones li.done .mark {
  border: 0;
  background: linear-gradient(180deg, #f6d36a 0%, var(--gold-2) 100%);
}
.summit {
  margin: 8px 0 18px;
  padding: 0;
}
.summit img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--frost);
}
.summit figcaption {
  margin-top: 10px;
  color: var(--gold);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}
.roadmap-note {
  margin: 8px 2px 0;
  color: #b89a90;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}
section[id] { scroll-margin-top: 118px; }

@media (min-width: 860px) {
  .roadmap-trail {
    padding: 0;
  }
  .roadmap-trail::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .phase {
    width: calc(50% - 36px);
  }
  .phase:nth-child(odd) { margin-right: auto; }
  .phase:nth-child(even) { margin-left: auto; }
  .phase:nth-child(odd) .phase-dot { left: auto; right: -50px; }
  .phase:nth-child(even) .phase-dot { left: -50px; }
}

@media (max-width: 700px) {
  .nav-link:first-child { display: none; }
  .brand span { display: none; }
  .nav-row { padding: 10px 14px 2px; }
  .nav nav { gap: 14px; }
  .hero-banner {
    aspect-ratio: 3 / 1;
    object-fit: contain;
  }
  .eyebrow { margin-top: 16px; }
  .cta .btn { width: 100%; }
  .count-box { min-width: 70px; padding: 12px 8px 8px; }
  .chart-frame iframe { height: 380px; }
  .roadmap-trail { padding-left: 34px; }
  .phase { padding: 18px 14px 14px; }
  .phase-dot { left: -34px; width: 24px; height: 24px; top: 18px; }
  .roadmap-trail::before { left: 10px; }
  .roadmap h3 { padding-right: 0; font-size: 1.55rem; }
  .phase-status { position: static; display: inline-block; margin-bottom: 8px; }
  .bulb:nth-child(n+13) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .flake, .bulb { animation: none; }
  html { scroll-behavior: auto; }
}

/* Hero CTAs sit under Jay's banner (the art already has $GRINCH + tagline) */
.hero-cta { margin: 18px 0 0; }
.hero-art { margin-bottom: 0; }

.vibe-pic {
  margin: 18px 0 8px;
  padding: 0;
}
.vibe-pic img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--frost);
}

/* Roadmap overlaid on the scenery mountain */
.roadmap {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 56px;
}
.climb-map {
  position: relative;
  margin: 22px 0 18px;
}
.climb-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--frost);
}
.climb-stops {
  list-style: none;
  margin: 0;
  padding: 0;
}
.stop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
}
.stop-pin, a.stop-pin {
  text-decoration: none;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  color: var(--cream);
  white-space: nowrap;
}
.stop-num {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card);
  color: var(--gold);
  border: 3px solid var(--gold);
  font-weight: 900;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(14, 6, 16, 0.65), 0 0 14px rgba(240, 193, 74, 0.55);
  box-sizing: border-box;
}
.stop.is-done .stop-num {
  background: linear-gradient(180deg, #f6d36a 0%, var(--gold-2) 100%);
  color: #2a1204;
  border-color: #2a1204;
  font-size: 0.95rem;
}
.stop-label {
  background: rgba(14, 6, 16, 0.86);
  border: 1px solid rgba(240, 193, 74, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px #000;
}
.stop-card {
  position: absolute;
  top: 20px;
  width: 260px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 28%), rgba(28, 6, 10, 0.94);
  border: 1px solid var(--frost);
  border-radius: 16px;
  padding: 14px 14px 10px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: var(--cream);
  text-align: left;
}
.stop-left .stop-card { right: 20px; left: auto; }
.stop-right .stop-card { left: 20px; right: auto; }
.stop-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  margin: 0;
  padding-right: 52px;
}
.stop-card .phase-kicker {
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.68rem;
}
.stop-card .phase-tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}
.stop-card .phase-status {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #2a1204;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 8px;
}
.stop-card .milestones {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.stop-card .milestones li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.35;
}
.stop-card .milestones li.done { color: var(--cream); }
.stop-card .milestones .mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(240, 193, 74, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 900;
  margin-top: 1px;
  color: #2a1204;
}
.stop-card .milestones li.done .mark {
  border: 0;
  background: linear-gradient(180deg, #f6d36a 0%, var(--gold-2) 100%);
}

/* Desktop: cards stay open on the mountain. Mobile: tap a pin to expand. */
@media (min-width: 801px) {
  .stop-pin { cursor: pointer; }
  .stop-label { display: none; }
}
@media (max-width: 800px) {
  .stop-card {
    display: none;
    width: min(250px, 70vw);
    z-index: 3;
  }
  .stop.is-open { z-index: 4; }
  .stop.is-open .stop-card { display: block; }
  .stop-label { font-size: 0.7rem; padding: 3px 8px; }
  /* Keep phase 4's card from clipping off the top */
  .stop-right:last-child .stop-card { top: 18px; }
}

.roadmap-note {
  margin: 8px 2px 0;
  color: #b89a90;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

@media (min-width: 801px) {
  .tap-hint { display: none; }
  .climb-stops .stop:first-child .stop-card {
    top: auto;
    bottom: 18px;
  }
}
@media (max-width: 800px) {
  .stop.is-open .stop-card,
  .stop-left.is-open .stop-card,
  .stop-right.is-open .stop-card {
    display: block;
    position: fixed;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 16px;
    width: auto;
    max-height: 45vh;
    overflow: auto;
    z-index: 20;
  }
  .stop-card h3 { padding-right: 0; }
}

/* Meme contest panel — text + countdown only */
.contest {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto 56px;
}
.contest-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 28%), var(--card);
  border: 1px solid var(--frost);
  border-radius: 22px;
  padding: 28px 26px 26px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  text-align: center;
}
.contest-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.78rem;
}
.contest-card h2 { margin-bottom: 8px; }
.contest-prize {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-shadow: 0 3px 0 #6b3f0b;
}
.contest-how {
  margin: 0 0 8px;
  color: var(--cream);
  font-weight: 800;
}
.contest-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto 16px;
  max-width: 34rem;
  text-align: left;
}
.contest-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(14, 6, 16, 0.45);
  border: 1px solid var(--frost);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}
.contest-steps li::before {
  content: counter(step);
  counter-increment: step;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6d36a 0%, var(--gold-2) 100%);
  color: #2a1204;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
.contest-steps { counter-reset: step; }
.contest-win {
  margin: 0 auto 18px;
  max-width: 36rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}
.contest-card .until { margin-top: 4px; }
.contest-card .countdown { margin-bottom: 8px; }
.contest-closed {
  margin: 8px 0 16px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--gold);
  font-weight: 400;
  line-height: 1.25;
}
.contest-cta { margin-top: 16px; }
@media (max-width: 700px) {
  .contest-card { padding: 22px 16px 18px; }
  .contest-cta .btn { width: 100%; }
  .contest-card .countdown { gap: 8px; }
  .contest-card .count-box { min-width: 62px; padding: 10px 4px 8px; }
}


/* Full-height elegant side art: garland, holly, gold bells. No thief. */
:root { --rail: 88px; }
.page {
  position: relative;
  min-height: 100%;
}
.page-inner {
  position: relative;
  z-index: 1;
  margin-left: var(--rail);
  margin-right: var(--rail);
}
.rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--rail);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: #0c0709;
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}
.rail-left { left: 0; background-image: url("../assets/garland-left.svg"); }
.rail-right { right: 0; background-image: url("../assets/garland-right.svg"); }
@media (max-width: 1100px) { :root { --rail: 64px; } }
@media (max-width: 700px) {
  :root { --rail: 18px; }
}

/* Compact phase 4 card — sized to its content, never full-page */
.finale-card {
  width: 280px;
  padding: 12px 12px 10px;
}
.finale-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
  color: #2a1204;
  background: linear-gradient(180deg, #f6d36a 0%, #e23b3b 130%);
  border-radius: 999px;
  padding: 3px 8px;
}
.finale-card h3 { padding-right: 72px; font-size: 1.2rem; }
.heist-inline,
.epilogue-tight {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.4;
}
.epilogue-tight { color: var(--cream); }
@media (max-width: 800px) {
  .finale-card { width: auto; }
  .finale-card h3 { padding-right: 0; }
  /* do not stretch the sheet to the viewport */
  .stop.is-open .finale-card {
    max-height: none;
    height: auto;
  }
}

/* Mute toggle — does not start or block playback; session only */
.music-toggle {
  position: fixed;
  right: max(14px, calc(var(--rail) + 10px));
  top: 92px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(240, 193, 74, 0.55);
  background: rgba(20, 6, 10, 0.88);
  color: var(--gold);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.music-toggle svg { width: 22px; height: 22px; display: block; }
.music-toggle .icon-off { display: none; }
.music-toggle.is-muted .icon-on { display: none; }
.music-toggle.is-muted .icon-off { display: block; }
.music-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }


/* Descriptive heist plan under the map: four equal compact cards, never a full-page finale */
.heist-chapters {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.chapter {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 28%), rgba(28, 6, 10, 0.94);
  border: 1px solid var(--frost);
  border-radius: 16px;
  padding: 16px 16px 12px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: var(--cream);
  text-align: left;
  scroll-margin-top: 88px;
}
.chapter-finale {
  background: linear-gradient(180deg, rgba(240, 193, 74, 0.12) 0%, transparent 36%), rgba(28, 6, 10, 0.96);
  border-color: rgba(240, 193, 74, 0.45);
}
.chapter:target {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.chapter-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.chapter-top .phase-kicker { margin: 0; flex: 1; }
.chapter-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.78rem;
  color: var(--gold);
  border: 2px solid var(--gold);
  background: rgba(14, 6, 16, 0.85);
}
.chapter.is-done .chapter-num {
  background: linear-gradient(180deg, #f6d36a 0%, var(--gold-2) 100%);
  color: #2a1204;
  border-color: #2a1204;
}
.chapter-status {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #2a1204;
  background: #c4b8a8;
  border-radius: 999px;
  padding: 3px 8px;
}
.chapter.is-done .chapter-status { background: var(--gold); }
.chapter-status.is-next { background: #3d8f4a; color: #f4fff4; }
.chapter-status.is-finale {
  background: linear-gradient(180deg, #f6d36a 0%, #e23b3b 130%);
  color: #2a1204;
}
.chapter h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  margin: 4px 0 0;
}
.chapter-target {
  margin: 4px 0 0;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chapter-body {
  margin: 8px 0 0;
  color: var(--cream);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.45;
}
.chapter .milestones {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.chapter .milestones li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.35;
}
.chapter .milestones li.done { color: var(--cream); }
.chapter .milestones .mark {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(240, 193, 74, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 900;
  margin-top: 1px;
  color: #2a1204;
}
.chapter .milestones li.done .mark {
  border: 0;
  background: linear-gradient(180deg, #f6d36a 0%, var(--gold-2) 100%);
}
@media (max-width: 800px) {
  .heist-chapters { grid-template-columns: 1fr; }
  /* On-map cards stay short hooks; hide them on mobile so they never become tall sheets.
     Pins jump to the descriptive cards under the map. */
  .climb-map .stop-card { display: none !important; }
  .stop-pin { cursor: pointer; }
}

/* Short on-map hooks only — do not let the finale card grow */
.finale-card { width: 260px; padding: 12px 12px 10px; }
.finale-card h3 { padding-right: 72px; font-size: 1.2rem; }
