/* =========================================================
   Go-Go's Trunk-or-Treat 2026
   Palette: night plum, pumpkin, candy corn, slime, ghost cream
   Type: Luckiest Guy (display), Nunito (body)
   ========================================================= */

/* self-hosted fonts (Google Fonts, OFL) */
@font-face { font-family: "Luckiest Guy"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/luckiest-guy-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/nunito-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/nunito-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: italic; font-weight: 700; font-display: swap; src: url("assets/fonts/nunito-latin-700-italic.woff2") format("woff2"); }

:root {
  --night: #140B33;
  --plum: #2B1660;
  --violet: #5B2A9E;
  --pumpkin: #FF7A1A;
  --pumpkin-deep: #C94E08;
  --candy: #FFD23F;
  --slime: #8CFF5A;
  --ghost: #FFF6E8;
  --cream: #FFE9C9;
  --pink: #FF6B9D;
  --teal: #2DA0B5;
  --ink: #1E1240;

  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ghost);
  background: var(--night);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 900; }
svg { display: block; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { max-width: 760px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--candy); color: var(--night); padding: 10px 16px; border-radius: 10px; font-weight: 900;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--candy); outline-offset: 3px; }

/* ---------- type ---------- */
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: .01em;
  color: var(--candy);
  text-shadow: 0 4px 0 var(--pumpkin-deep), 0 8px 24px rgba(0,0,0,.4);
  margin-bottom: .5em;
}
.h2--dark { color: var(--violet); text-shadow: 0 4px 0 var(--pumpkin), 0 8px 20px rgba(91,42,158,.25); }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 62ch; margin-bottom: 1.5em; }
.lede--dark { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-weight: 400; letter-spacing: .03em;
  font-size: 1.25rem; line-height: 1;
  color: var(--night); background: var(--pumpkin);
  padding: 18px 30px 15px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 0 var(--pumpkin-deep), 0 14px 30px rgba(255,122,26,.35);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 9px 0 var(--pumpkin-deep), 0 20px 40px rgba(255,122,26,.45); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pumpkin-deep); }
.btn small { font-family: var(--body); font-weight: 900; font-size: .8rem; letter-spacing: 0; opacity: .85; margin-left: .25em; }
.btn--big { font-size: clamp(1.4rem, 3vw, 1.9rem); padding: 22px 38px 18px; flex-direction: column; gap: 2px; }
.btn--big small { margin: 0; }
.btn--small { font-size: 1rem; padding: 12px 20px 10px; box-shadow: 0 4px 0 var(--pumpkin-deep); }
.btn--ghost {
  background: transparent; color: var(--ghost); font-family: var(--body); font-weight: 900; font-size: 1rem;
  box-shadow: inset 0 0 0 2px rgba(255,246,232,.45); padding: 16px 26px;
}
.btn--ghost:hover, .btn--ghost:focus-visible { box-shadow: inset 0 0 0 2px var(--candy); color: var(--candy); }
.btn--outline { background: transparent; color: var(--candy); box-shadow: inset 0 0 0 3px var(--candy); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--candy); color: var(--night); box-shadow: 0 9px 0 var(--pumpkin-deep); }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--gutter);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.topbar.is-solid { background: rgba(20,11,51,.82); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.topbar__brand { display: block; flex: none; }
.topbar__brand img { height: 52px; width: auto; display: block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.topbar__brand:hover img { transform: rotate(-2deg) scale(1.04); }
@media (max-width: 480px) { .topbar__brand img { height: 42px; } }
.topbar__nav { display: none; gap: 22px; margin-left: auto; font-weight: 800; font-size: .95rem; }
.topbar__nav a { text-decoration: none; opacity: .85; position: relative; padding: 4px 0; }
.topbar__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: var(--slime); border-radius: 2px; transition: right .25s; }
.topbar__nav a:hover::after, .topbar__nav a:focus-visible::after { right: 0; }
.topbar .btn--small { margin-left: auto; }
@media (min-width: 900px) {
  .topbar__nav { display: flex; }
  .topbar .btn--small { margin-left: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 100px var(--gutter) clamp(190px, 26vw, 250px); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #0B0726 0%, #1A0E45 35%, #3A1C72 68%, #7A2E6A 90%, #B8521E 100%);
}
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stars { position: absolute; inset: 0; }
.star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff;
  animation: twinkle var(--t, 3s) ease-in-out infinite; animation-delay: var(--d, 0s);
  opacity: .8;
}
.star--big { width: 5px; height: 5px; box-shadow: 0 0 10px 2px rgba(255,255,255,.6); }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }

.moon {
  position: absolute; right: 8%; top: 10%; width: clamp(110px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF9E6, #FFE39A 55%, #F2C25B);
  box-shadow: 0 0 60px 20px rgba(255,220,140,.35), 0 0 160px 60px rgba(255,200,100,.15);
  transition: transform .4s ease-out;
}
.crater { position: absolute; border-radius: 50%; background: rgba(200,150,60,.35); box-shadow: inset 2px 2px 4px rgba(120,80,20,.3); }
.c1 { width: 18%; height: 18%; left: 22%; top: 30%; }
.c2 { width: 12%; height: 12%; left: 58%; top: 52%; }
.c3 { width: 9%; height: 9%; left: 40%; top: 68%; }

.cloud {
  position: absolute; height: 46px; width: 160px; border-radius: 999px;
  background: rgba(255,255,255,.08); filter: blur(1px);
  animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 70px; height: 70px; left: 28px; top: -32px; }
.cloud::after { width: 50px; height: 50px; left: 84px; top: -20px; }
.cloud--1 { top: 18%; left: -200px; animation-duration: 70s; }
.cloud--2 { top: 10%; left: -300px; animation-duration: 95s; animation-delay: -40s; transform: scale(1.4); }
.cloud--3 { top: 30%; left: -200px; animation-duration: 55s; animation-delay: -20s; transform: scale(.8); }
@keyframes drift { to { transform: translateX(calc(100vw + 400px)); } }

.bat { position: absolute; width: 46px; fill: #0A0620; opacity: .9; }
.bat .wing { transform-box: fill-box; animation: flap .35s ease-in-out infinite alternate; }
.bat .wing--l { transform-origin: 100% 60%; }
.bat .wing--r { transform-origin: 0% 60%; animation-direction: alternate-reverse; }
@keyframes flap { from { transform: rotate(-25deg); } to { transform: rotate(22deg); } }
.bat--1 { top: 22%; animation: fly1 26s linear infinite; }
.bat--2 { top: 14%; width: 32px; animation: fly1 34s linear infinite; animation-delay: -12s; }
.bat--3 { top: 34%; width: 60px; animation: fly2 40s linear infinite; animation-delay: -5s; }
@keyframes fly1 {
  0% { transform: translate(-80px, 0); } 25% { transform: translate(25vw, -40px); }
  50% { transform: translate(50vw, 20px); } 75% { transform: translate(75vw, -60px); }
  100% { transform: translate(calc(100vw + 80px), 0); }
}
@keyframes fly2 {
  0% { transform: translate(calc(100vw + 80px), 0) scaleX(-1); } 30% { transform: translate(65vw, 50px) scaleX(-1); }
  60% { transform: translate(35vw, -30px) scaleX(-1); } 100% { transform: translate(-100px, 30px) scaleX(-1); }
}

.ghost {
  position: absolute; left: 6%; top: 46%; width: clamp(70px, 9vw, 120px);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
  animation: bob 4s ease-in-out infinite;
  will-change: transform;
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }

.hero__content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero__kicker { margin: 0 0 .4em; }
.hero__kicker span {
  display: inline-block; font-weight: 900; font-size: clamp(.95rem, 2vw, 1.15rem);
  background: var(--slime); color: var(--night); padding: 8px 18px 7px; border-radius: 999px;
  transform: rotate(-2deg);
  animation: pop-in .6s cubic-bezier(.34,1.56,.64,1) both;
}
.hero__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3.6rem, 14vw, 9rem);
  line-height: .9; color: var(--pumpkin);
  display: flex; flex-direction: column; align-items: center; gap: .02em;
  text-shadow:
    0 .035em 0 var(--pumpkin-deep),
    0 .07em 0 #7A2E12,
    0 .09em 0 rgba(0,0,0,.3),
    0 .2em .6em rgba(0,0,0,.45);
}
.hero__title .word { display: inline-flex; }
.hero__title .word > span { display: inline-block; animation: letter-in .7s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.hero__title .word--treat > span { animation-delay: calc(var(--i) * 70ms + 650ms); }
.hero__title .word--or {
  font-family: var(--body); font-weight: 900; font-style: italic;
  font-size: .22em; color: var(--ghost); text-shadow: none; letter-spacing: .1em;
  margin: .3em 0 .25em; animation: pop-in .5s .55s cubic-bezier(.34,1.56,.64,1) both;
}
.hero__title .word--treat { color: var(--candy); text-shadow:
    0 .035em 0 #D9A400,
    0 .07em 0 #8A6600,
    0 .09em 0 rgba(0,0,0,.3),
    0 .2em .6em rgba(0,0,0,.45); }
@keyframes letter-in { from { opacity: 0; transform: translateY(-60px) rotate(-12deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4) rotate(-6deg); } to { opacity: 1; transform: scale(1) rotate(-2deg); } }

.hero__sub { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 800; margin: 1.1em 0 1.2em; animation: fade-up .8s 1.1s both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; animation: fade-up .8s 1.25s both; }
.hero__cause { margin-top: 1.2em; font-size: .95rem; opacity: .85; animation: fade-up .8s 1.4s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.countdown { display: flex; gap: 10px; justify-content: center; margin-top: 28px; animation: fade-up .8s 1.55s both; }
.countdown__tile {
  min-width: 70px; padding: 12px 10px 8px; border-radius: 16px;
  background: rgba(255,246,232,.08); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,246,232,.15);
  display: grid; justify-items: center; gap: 2px;
}
.countdown__tile b { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--candy); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__tile span { font-size: .72rem; font-weight: 800; letter-spacing: .04em; opacity: .8; }
.countdown.is-live { font-family: var(--display); font-size: 1.6rem; color: var(--slime); }
.countdown.is-live .countdown__tile { display: none; }

/* parking lot scene */
.lot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.cars { width: 100%; height: clamp(150px, 22vw, 260px); }
.cars .ground { fill: #0E0A22; }
.cars .lines rect { fill: rgba(255,210,63,.35); }
.car .body { fill: #2A1A62; }
.car .win { fill: #4B2F93; }
.car .wheel { fill: #0A0620; }
.car .hub { fill: #6B57A8; }
.car .tail { fill: #FF4B4B; opacity: .9; }
.car .lid { fill: none; stroke: #2A1A62; stroke-width: 10; stroke-linecap: round; }
.car .light { fill: var(--c, var(--pumpkin)); opacity: .95; animation: flicker 2.6s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.car .cone { fill: var(--c, var(--pumpkin)); opacity: .22; animation: breathe 3.2s ease-in-out infinite; animation-delay: var(--fd, 0s); mix-blend-mode: screen; }
.car .glow { fill: var(--c, var(--pumpkin)); opacity: .35; filter: blur(16px); animation: breathe 3.2s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.car--a { --c: #FF7A1A; --fd: 0s; }
.car--b { --c: #8CFF5A; --fd: -.9s; }
.car--c { --c: #FF6B9D; --fd: -1.7s; }
.car--d { --c: #FFD23F; --fd: -.4s; }
.car--e { --c: #9D7BFF; --fd: -2.3s; }
@keyframes flicker { 0%, 100% { opacity: .85; } 45% { opacity: .55; } 50% { opacity: .95; } 55% { opacity: .6; } }
@keyframes breathe { 0%, 100% { opacity: .2; } 50% { opacity: .38; } }
.pk .face { fill: #FFD23F; animation: flicker 1.8s ease-in-out infinite; }
.pk--2 .face { animation-delay: -.7s; }
.pk--3 .face { animation-delay: -1.3s; }
.fog {
  position: absolute; bottom: 40px; height: 120px; width: 60vw; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.14), transparent 70%);
  filter: blur(18px); animation: fogdrift 18s ease-in-out infinite alternate;
}
.fog--1 { left: -10vw; }
.fog--2 { right: -15vw; animation-delay: -9s; bottom: 70px; }
@keyframes fogdrift { from { transform: translateX(0); } to { transform: translateX(25vw); } }

/* candy game */
.candy-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.candy {
  position: absolute; bottom: -80px; width: 54px; height: 54px; pointer-events: auto; cursor: pointer;
  animation: rise var(--dur, 11s) linear forwards; left: var(--x, 50%);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.candy svg { width: 100%; height: 100%; animation: sway var(--sw, 2.4s) ease-in-out infinite alternate; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
@keyframes rise { to { transform: translateY(calc(-100svh - 160px)); } }
@keyframes sway { from { transform: translateX(-22px) rotate(-18deg); } to { transform: translateX(22px) rotate(18deg); } }
.candy.is-popped { animation-play-state: paused; pointer-events: none; }
.candy.is-popped svg { animation: popout .45s ease-out forwards; }
@keyframes popout { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.6) rotate(20deg); opacity: 1; } 100% { transform: scale(0) rotate(60deg); opacity: 0; } }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--sc, var(--candy)); animation: spark .6s ease-out forwards; pointer-events: none; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; } }

.bucket {
  position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 4;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 0; cursor: default;
  background: rgba(20,11,51,.7); backdrop-filter: blur(8px); border-radius: 999px; color: var(--candy);
  box-shadow: inset 0 0 0 1px rgba(255,246,232,.18), 0 10px 30px rgba(0,0,0,.35);
  font-family: var(--display); font-size: 1.4rem;
  animation: fade-up .8s 2s both;
}
.bucket svg { width: 38px; height: 38px; }
.bucket b { font-weight: 400; min-width: 1.2ch; text-align: center; }
.bucket.is-bump svg { animation: bump .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes bump { 50% { transform: scale(1.3) rotate(-10deg); } }
.bucket__hint { font-family: var(--body); font-weight: 800; font-size: .8rem; color: var(--ghost); max-width: 150px; line-height: 1.2; text-align: left; }

.scrollcue { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 4; width: 28px; height: 44px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255,246,232,.45); display: none; }
.scrollcue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--candy); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(18px); opacity: 0; } }
@media (min-width: 900px) { .scrollcue { display: block; } }

/* ---------- details ---------- */
.details { position: relative; background: var(--plum); padding: clamp(60px, 9vw, 110px) 0; }
.details::before { /* candy-corn scallop edge */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 28px;
  background: radial-gradient(circle at 50% 0, var(--plum) 0 14px, transparent 15px) 0 0 / 40px 28px repeat-x;
  transform: scaleY(-1); translate: 0 -27px;
}
.details .h2 { text-align: center; }
.stubs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; }
.stub {
  position: relative; background: var(--ghost); color: var(--ink); border-radius: var(--r); padding: 28px 26px 26px;
  --notch: 14px;
  mask: radial-gradient(circle at 0 103px, transparent var(--notch), #000 calc(var(--notch) + 1px)),
        radial-gradient(circle at 100% 103px, transparent var(--notch), #000 calc(var(--notch) + 1px));
  mask-composite: intersect; -webkit-mask-composite: source-in;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.stub:hover { transform: translateY(-6px) rotate(var(--tilt, -1deg)); }
.stub:nth-child(even) { --tilt: 1deg; }
.stub::after { content: ""; position: absolute; left: 20px; right: 20px; top: 102px; border-top: 2px dashed rgba(30,18,64,.2); pointer-events: none; }
.stub__icon { width: 64px; height: 64px; margin-bottom: 14px; }
.stub h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--violet); margin-bottom: .35em; }
.stub p { font-size: 1rem; line-height: 1.5; }
.stub strong { color: var(--ink); font-size: 1.1rem; }
.stub__link { display: inline-block; margin-top: 10px; font-weight: 900; color: var(--violet); text-decoration: underline; text-decoration-color: var(--pumpkin); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.details__note { text-align: center; margin-top: 28px; font-weight: 800; color: var(--candy); }

/* ---------- how it works ---------- */
.how { position: relative; padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 80px); background: var(--night); overflow: hidden; }
.how .h2, .how .lede { text-align: center; margin-inline: auto; }
.road { position: absolute; left: 0; right: 0; top: 260px; bottom: 0; pointer-events: none; display: none; }
.road__svg { width: 100%; height: 100%; }
.road__base { fill: none; stroke: #1F1448; stroke-width: 70; stroke-linecap: round; }
.road__dash { fill: none; stroke: var(--candy); stroke-width: 5; stroke-dasharray: 30 24; stroke-dashoffset: 0; opacity: .6; animation: roadmove 3s linear infinite; }
@keyframes roadmove { to { stroke-dashoffset: -108; } }
.steps { list-style: none; margin: 40px auto 0; padding: 0; display: grid; gap: 26px; position: relative; z-index: 1; counter-reset: step; }
.step {
  position: relative; background: rgba(43,22,96,.75); backdrop-filter: blur(6px);
  border-radius: var(--r); padding: 26px 26px 26px 100px; max-width: 560px;
  box-shadow: inset 0 0 0 1px rgba(255,246,232,.1);
  opacity: 0; transform: translateY(30px) rotate(-1deg);
  transition: opacity .6s ease, transform .6s cubic-bezier(.34,1.56,.64,1);
}
.step.is-in { opacity: 1; transform: none; }
.step:nth-child(even) { margin-left: auto; }
.step__num { position: absolute; left: 16px; top: 16px; width: 72px; height: 72px; display: grid; place-items: center; }
.step__num svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.step:hover .step__num svg { transform: rotate(-12deg) scale(1.1); }
.step__num b { position: relative; font-family: var(--display); font-weight: 400; font-size: 2.1rem; color: var(--night); margin-top: 14px; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--candy); margin-bottom: .3em; }
.step p { font-size: 1rem; }
@media (min-width: 900px) {
  .road { display: block; }
  .steps { gap: 40px; }
  .step { max-width: 480px; }
  .step:nth-child(1) { margin-left: 4%; }
  .step:nth-child(2) { margin-right: 4%; }
  .step:nth-child(3) { margin-left: 8%; }
  .step:nth-child(4) { margin-right: 6%; }
  .step:nth-child(5) { margin-left: 2%; }
}

/* ---------- gallery: scrapbook table + scavenger hunt ---------- */
.gallery {
  position: relative; padding: clamp(60px, 9vw, 110px) 0 clamp(70px, 10vw, 130px);
  background: var(--cream);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,122,26,.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(91,42,158,.12), transparent 40%),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,122,26,.045) 28px 56px);
  color: var(--ink); overflow: hidden;
}
.gallery::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 40px;
  background: radial-gradient(circle at 50% 100%, var(--night) 0 18px, transparent 19px) 0 0 / 52px 40px repeat-x;
}
.gallery .h2, .gallery .lede { text-align: center; margin-inline: auto; }

/* hunt chips */
.hunt { max-width: 860px; margin: 0 auto; }
.hunt__head { display: flex; align-items: baseline; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.hunt__head h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; color: var(--violet); }
.hunt__score { font-weight: 900; font-size: .95rem; color: var(--pumpkin-deep); }
.hunt__list { list-style: none; margin: 0; padding: 4px 0 10px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 900; font-size: .95rem;
  box-shadow: 0 2px 0 rgba(30,18,64,.12), 0 8px 18px rgba(30,18,64,.1);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s, color .3s;
}
.chip__icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--cream); font-size: 1rem; }
.chip__check { width: 0; overflow: hidden; transition: width .3s; font-size: 1rem; }
.chip.is-found { background: var(--slime); transform: rotate(-3deg) scale(1.04); }
.chip.is-found .chip__icon { background: #fff; }
.chip.is-found .chip__check { width: 1.1em; }
.chip.is-found .chip__label { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .7; }
.chip.is-hit { animation: chip-hit .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes chip-hit { 30% { transform: rotate(-8deg) scale(1.25); } }

/* the table */
.board-wrap { position: relative; margin: 24px auto 0; width: min(1280px, 100%); }
.board { position: relative; height: 700px; }
.btn--shuffle { position: absolute; left: 50%; bottom: -14px; translate: -50% 0; font-size: 1rem; padding: 14px 22px 11px; box-shadow: inset 0 0 0 3px var(--pumpkin); color: var(--pumpkin-deep); background: var(--cream); z-index: 30; }
.btn--shuffle:hover, .btn--shuffle:focus-visible { background: var(--pumpkin); color: var(--night); box-shadow: 0 9px 0 var(--pumpkin-deep); }

.card {
  position: absolute; left: 0; top: 0; width: var(--w, 230px); margin: 0; padding: 10px 10px 12px;
  background: #fff; color: var(--ink); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
  box-shadow: 0 2px 4px rgba(30,18,64,.12), 0 14px 30px rgba(30,18,64,.18);
  transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(var(--s, 1));
  transition: transform .55s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, opacity .4s;
  will-change: transform; opacity: 0; --s: .7;
}
.card.is-in { opacity: 1; --s: 1; }
.card.is-grabbed { cursor: grabbing; transition: box-shadow .2s; box-shadow: 0 10px 14px rgba(30,18,64,.18), 0 40px 60px rgba(30,18,64,.3); --s: 1.06; z-index: 20; }
.card.is-tilting { transition: box-shadow .3s; }
.card:focus-visible { outline: 4px solid var(--pumpkin); outline-offset: 2px; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e8e2d6; pointer-events: none; }
.card.is-tall img { aspect-ratio: 4 / 5; }
.card figcaption { font-weight: 800; font-size: .82rem; margin-top: 9px; line-height: 1.3; opacity: .8; }
.card .tape { position: absolute; left: 50%; top: -10px; width: 70px; height: 22px; translate: -50% 0; background: rgba(255,210,63,.78); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.card .stamp {
  position: absolute; right: -10px; top: -14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--slime); color: var(--night); font-size: 1.3rem; transform: scale(0) rotate(-30deg);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1); box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.card.is-found .stamp { transform: scale(1) rotate(8deg); }

/* found toast inside lightbox */
.lightbox__toast {
  position: absolute; top: 20px; left: 50%; translate: -50% 0; background: var(--slime); color: var(--night);
  font-family: var(--display); font-size: 1.3rem; padding: 12px 22px 9px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: toast-in .5s cubic-bezier(.34,1.56,.64,1) both; pointer-events: none;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-20px) scale(.6); } }

/* win overlay */
.hunt-win { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(20,11,51,.86); animation: fade .3s; }
.hunt-win[hidden] { display: none; }
.hunt-win__card { background: var(--ghost); color: var(--ink); border-radius: 28px; padding: 36px 30px 28px; max-width: 440px; text-align: center; animation: pop-in .5s cubic-bezier(.34,1.56,.64,1) both; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.hunt-win__card svg { width: 90px; margin: 0 auto 6px; }
.hunt-win__card h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--violet); margin-bottom: .3em; }
.hunt-win__card p { margin-bottom: 1.2em; }
.hunt-win__card .btn { width: 100%; flex-direction: column; gap: 2px; }
.hunt-win__close { margin-top: 14px; background: none; border: 0; font: inherit; font-weight: 900; color: var(--violet); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.confetti { position: fixed; top: -20px; width: 12px; height: 18px; z-index: 111; pointer-events: none; animation: confetti var(--t) linear forwards; left: var(--x); background: var(--c); border-radius: 3px; }
@keyframes confetti { to { transform: translateY(110vh) rotate(var(--rot)); opacity: .8; } }

/* phone + tablet: swipe strip instead of drag table */
@media (max-width: 759px) {
  .board-wrap { width: 100%; }
  .board { height: auto; display: flex; align-items: flex-start; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px var(--gutter) 40px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .board::-webkit-scrollbar { display: none; }
  .card { position: relative; flex: 0 0 min(74vw, 320px); scroll-snap-align: center; touch-action: pan-x; cursor: pointer;
    transform: rotate(var(--r)) scale(var(--s, 1)); --s: .96; }
  .card.is-in { --s: 1; }
  .card:nth-child(even) { translate: 0 14px; }
  .btn--shuffle { display: none; }
  .hunt__list { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-inline: 2px; scrollbar-width: none; }
  .hunt__list::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* ---------- impact ---------- */
.impact {
  position: relative; padding: clamp(70px, 10vw, 130px) 0;
  background: radial-gradient(ellipse at 20% 0, rgba(45,160,181,.25), transparent 50%), var(--plum);
}
.impact__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .impact__grid { grid-template-columns: 1.1fr 1fr; gap: 60px; } }
.impact__logo { display: inline-block; margin-top: 22px; transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .25s; }
.impact__logo:hover { transform: translateY(-3px); }
.impact__logo img { width: min(340px, 80vw); height: auto; }
.calc {
  background: var(--ghost); color: var(--ink); border-radius: var(--r); padding: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(1deg);
}
.calc h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--violet); margin-bottom: 14px; }
.calc__kids { display: flex; gap: 6px; height: 56px; align-items: flex-end; margin-bottom: 10px; }
.calc__kids svg { width: 44px; height: 54px; animation: pop-in .4s cubic-bezier(.34,1.56,.64,1) both; }
.calc__range { width: 100%; accent-color: var(--pumpkin); height: 36px; cursor: pointer; }
.calc__out { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 14px 0 22px; font-weight: 800; }
.calc__n { font-size: 1.2rem; }
.calc__eq { font-size: 1.4rem; opacity: .5; }
.calc__total { font-family: var(--display); font-weight: 400; font-size: 2.6rem; color: var(--pumpkin); text-shadow: 0 3px 0 var(--pumpkin-deep); line-height: 1; }
.calc__total.is-bump { animation: bump .4s cubic-bezier(.34,1.56,.64,1); }
.calc__for { flex-basis: 100%; font-size: .95rem; opacity: .8; }
.calc .btn { width: 100%; font-size: 1.1rem; }

/* ---------- partners ---------- */
.partners { padding: clamp(60px, 9vw, 110px) 0; background: var(--night); }
.partners .h2, .partners .lede { text-align: center; margin-inline: auto; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin: 30px 0 46px; }
.logos a { display: grid; place-items: center; background: #fff; border-radius: 18px; padding: 14px; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.logos a:hover { transform: translateY(-5px) rotate(-2deg); }
.logos img { width: 110px; height: 110px; object-fit: contain; }
.logos a:first-child img { width: 170px; height: 90px; }
.trunk-cta {
  display: grid; gap: 18px; align-items: center; justify-items: start;
  background: linear-gradient(135deg, var(--violet), var(--plum)); border-radius: var(--r); padding: 30px;
  box-shadow: inset 0 0 0 1px rgba(255,246,232,.12);
}
.trunk-cta h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--candy); margin-bottom: .3em; }
.trunk-cta p { opacity: .9; }
@media (min-width: 760px) { .trunk-cta { grid-template-columns: 1fr auto; justify-items: end; } }

/* ---------- faq ---------- */
.faq { padding: clamp(60px, 9vw, 110px) 0; background: var(--plum); }
.faq .h2 { text-align: center; }
.acc { display: grid; gap: 10px; margin-top: 30px; }
.acc details { background: rgba(20,11,51,.55); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,246,232,.1); overflow: hidden; }
.acc summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 900; font-size: 1.08rem; position: relative;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pumpkin); color: var(--night); font-family: var(--display); font-size: 1.3rem; line-height: 1;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.acc details[open] summary::after { transform: rotate(135deg); background: var(--slime); }
.acc details p { padding: 0 22px 20px; margin: 0; opacity: .9; }

/* ---------- final ---------- */
.final { position: relative; padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 120px); text-align: center; background: linear-gradient(180deg, var(--plum), #B8521E 140%); overflow: hidden; }
.final__pumpkin { width: 90px; margin: 0 auto 10px; animation: bob 3s ease-in-out infinite; }
.final .lede { margin-inline: auto; }

/* ---------- footer ---------- */
.footer { background: #0A0620; padding: 36px 0 110px; font-size: .95rem; }
.footer__grid { display: grid; gap: 20px; }
.footer a { color: var(--candy); font-weight: 800; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer { padding-bottom: 40px; } }

/* ---------- sticky bar (mobile) ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(20,11,51,.9); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 rgba(255,246,232,.12);
  font-weight: 900; font-size: .9rem;
  transform: translateY(110%); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.stickybar.is-on { transform: none; }
@media (min-width: 760px) { .stickybar { display: none; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,6,32,.94); display: grid; place-items: center; padding: 20px; animation: fade .25s; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-height: 78vh; max-width: 100%; width: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { margin-top: 14px; font-weight: 800; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--pumpkin); color: var(--night); font-size: 2rem; line-height: 1; font-family: var(--body); font-weight: 900;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav { top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 10px; }
.lightbox__nav--next { right: 10px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .candy-layer, .scrollcue, .bucket { display: none; }
  .step { opacity: 1; transform: none; }
  .card { opacity: 1; --s: 1; }
  .confetti { display: none; }
}

@media (max-width: 640px) {
  .moon { right: -6%; top: 5%; width: 120px; }
  .ghost { top: 9%; left: 2%; width: 54px; }
  .hero__kicker span { font-size: .9rem; }
}
