/* LYNQ Trunk or Treat. Mobile first. Palette from BRIEF.md, upgrades from CONTENT_PACK.md.
   The page runs a day to night arc: orange dusk in the hero, deep navy night by the footer.
   Each band's top color matches the band above it so the seams never show. */

:root {
  --pumpkin: #F07B22;
  --deep-orange: #E85D1E;
  --navy: #16294A;
  --deep-navy: #0F1D38;
  --cream: #FCF3D8;
  --lime: #A6E22E;
  --card-black: #0D0D10;
  --lynq-blue: #1C6FC9;
  --lynq-orange: #F07C22;
  --charcoal: #2B2B2B;

  /* day to night waypoints */
  --dusk-silhouette: #150e24;
  --twilight-plum: #1a1638;
  --night-1: #16294A;
  --night-2: #122142;
  --night-3: #101c36;
  --night-4: #0b1428;
  --night-deep: #070b16;

  --font-display: "Fredoka", sans-serif;
  --font-body: "Nunito", sans-serif;
  --font-spooky: "Creepster", cursive;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--night-deep);
  line-height: 1.6;
}

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

.container { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

h2 { font-size: clamp(1.85rem, 4.5vw, 3rem); margin-bottom: 0.75rem; }

section { padding: 4.5rem 0; position: relative; }

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--pumpkin);
  margin-bottom: 0.5rem;
}

.eyebrow.spooky {
  font-family: var(--font-spooky);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  color: var(--lime);
}

.section-intro {
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  opacity: 0.92;
  font-size: 1.2rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--lime);
  color: var(--night-deep);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 800;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ============ Day to night band chain ============ */

.band-story    { background: linear-gradient(180deg, var(--dusk-silhouette), var(--twilight-plum)); }
.band-why      { background: linear-gradient(180deg, var(--twilight-plum), var(--night-1)); }
.band-fun      { background: linear-gradient(180deg, var(--night-1), var(--night-2)); }
.band-costume  { background: linear-gradient(180deg, var(--night-2), var(--night-3)); }
.band-trunks   { background: linear-gradient(180deg, var(--night-3), var(--card-black)); }
.band-giving   { background: linear-gradient(180deg, var(--card-black), var(--deep-navy)); }
.band-vendors  { background: linear-gradient(180deg, var(--deep-navy), var(--night-1)); }
.band-sponsors { background: linear-gradient(180deg, var(--night-1), var(--night-3)); }
.band-reserve  {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(240, 123, 34, 0.16), transparent 62%),
    linear-gradient(180deg, var(--night-3), var(--card-black));
}
.band-partners { background: linear-gradient(180deg, var(--card-black), var(--deep-navy)); }
.band-gallery  { background: linear-gradient(180deg, var(--deep-navy), var(--night-2)); }
.band-details  { background: linear-gradient(180deg, var(--night-2), var(--deep-navy)); }
.band-faq      { background: linear-gradient(180deg, var(--deep-navy), var(--night-4)); }
.band-closing  { background: linear-gradient(180deg, var(--night-4), var(--night-deep)); }

/* ============ Fixed star overlay, fades in as night falls (opacity set by JS) ============ */

.star-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 15%, #fff, transparent),
    radial-gradient(1px 1px at 22% 42%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 33% 8%, #fff, transparent),
    radial-gradient(1px 1px at 41% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 25%, #fff, transparent),
    radial-gradient(1px 1px at 62% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 71% 12%, #fff, transparent),
    radial-gradient(1px 1px at 79% 55%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 33%, #fff, transparent),
    radial-gradient(1px 1px at 95% 72%, #fff, transparent),
    radial-gradient(1px 1px at 15% 88%, #fff, transparent),
    radial-gradient(1px 1px at 48% 92%, #fff, transparent);
  transition: opacity 0.6s ease;
}

/* ============ Buttons ============ */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(180deg, var(--pumpkin), var(--deep-orange));
  color: #fff;
  box-shadow: 0 6px 18px rgba(232, 93, 30, 0.45);
}
.btn-primary:hover { box-shadow: 0 8px 22px rgba(232, 93, 30, 0.6); }

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--pumpkin);
}
.btn-secondary:hover { background: rgba(240, 123, 34, 0.15); }
.btn-secondary:disabled {
  border-color: rgba(252, 243, 216, 0.3);
  color: rgba(252, 243, 216, 0.55);
  cursor: not-allowed;
}
.btn-secondary:disabled:hover { background: none; transform: none; }

.btn-ghost {
  background: rgba(13, 13, 16, 0.35);
  color: var(--cream);
  border-color: rgba(252, 243, 216, 0.4);
}
.btn-ghost:hover { background: rgba(13, 13, 16, 0.55); }

.btn-big { font-size: 1.25rem; padding: 1rem 2.5rem; }

/* ============ Sticky nav ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 29, 56, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(252, 243, 216, 0.12);
}

.nav-inner {
  width: min(72rem, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.75rem;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  white-space: nowrap;
}
.nav-brand-lynq { color: var(--lynq-blue); }
.nav-brand-rest { color: var(--pumpkin); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid rgba(252, 243, 216, 0.35);
  border-radius: 8px;
  padding: 9px 8px;
  cursor: pointer;
}
.nav-toggle-bar { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; }
.nav-toggle:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }

.nav-links {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--deep-navy);
  border-bottom: 1px solid rgba(252, 243, 216, 0.12);
  padding: 0.75rem 1rem 1rem;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-links.open { display: flex; }

.nav-links a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
}
.nav-links a:hover { background: rgba(252, 243, 216, 0.1); color: var(--pumpkin); }

.nav-links .nav-cta {
  background: linear-gradient(180deg, var(--pumpkin), var(--deep-orange));
  color: #fff;
  text-align: center;
  border-radius: 999px;
  margin-top: 0.35rem;
}
.nav-links .nav-cta:hover { color: #fff; }

@media (min-width: 54rem) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.2rem;
    background: none;
    border: none;
    padding: 0;
  }
  .nav-links a { padding: 0.5rem 0.7rem; }
  .nav-links .nav-cta { margin-top: 0; padding: 0.5rem 1.15rem; margin-left: 0.35rem; }
}

/* ============ Hero: layered dusk scene ============ */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #241543 0%,
    #4b2357 26%,
    #8a3d43 48%,
    #d1642c 68%,
    #f07b22 82%,
    #ffb95e 96%,
    #ffc46b 100%
  );
  padding: 3.5rem 0 8.5rem;
  text-align: center;
}

.hero-sky { position: absolute; inset: 0; pointer-events: none; }

.moon {
  position: absolute;
  top: 3.5rem;
  right: 9%;
  width: clamp(80px, 13vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fffdf2, var(--cream) 55%, #f2e3b4);
  box-shadow:
    0 0 40px 14px rgba(252, 243, 216, 0.45),
    0 0 120px 40px rgba(252, 243, 216, 0.18);
  opacity: 0.95;
  will-change: transform;
}

.fog {
  position: absolute;
  width: 70vw;
  height: 22vh;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.5;
  will-change: transform;
}
.fog-1 {
  left: -12%;
  bottom: 18%;
  background: radial-gradient(closest-side, rgba(255, 205, 150, 0.22), transparent);
  animation: fogdrift 26s ease-in-out infinite alternate;
}
.fog-2 {
  right: -15%;
  bottom: 30%;
  background: radial-gradient(closest-side, rgba(220, 180, 255, 0.16), transparent);
  animation: fogdrift 34s ease-in-out infinite alternate-reverse;
}

@keyframes fogdrift {
  from { transform: translateX(0); }
  to { transform: translateX(9vw); }
}

.bat { position: absolute; width: 42px; fill: #1c1230; opacity: 0.9; }
.bat-1 { top: 12%; left: 6%; animation: flit 9s ease-in-out infinite; }
.bat-2 { top: 7%; left: 44%; width: 30px; animation: flit 11s ease-in-out infinite reverse; }
.bat-3 { top: 22%; right: 22%; width: 34px; animation: flit 13s ease-in-out infinite; }

@keyframes flit {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  25% { transform: translate(14px, -10px) rotate(4deg); }
  50% { transform: translate(-8px, 8px) rotate(-3deg); }
  75% { transform: translate(10px, -6px) rotate(5deg); }
}

.hero-content { position: relative; z-index: 2; width: min(58rem, 100% - 2.5rem); margin-inline: auto; }

.hero-presented {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(20, 10, 40, 0.6);
}

.hero-wordmark {
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.2em;
  color: var(--cream);
  text-shadow: 0 5px 0 rgba(21, 14, 36, 0.65);
}
.hero-trunk, .hero-treat { font-weight: 700; }
.hero-or {
  font-family: var(--font-spooky);
  font-size: 0.55em;
  color: #FFB347;
  text-shadow: 0 3px 0 rgba(21, 14, 36, 0.55), 0 0 18px rgba(255, 179, 71, 0.5);
}

.hero-annual {
  font-family: var(--font-spooky);
  font-size: clamp(1.25rem, 3.6vw, 2rem);
  color: #FFB347;
  letter-spacing: 0.1em;
  margin: 0.5rem 0 1.4rem;
  text-shadow: 0 2px 0 rgba(21, 14, 36, 0.55), 0 0 18px rgba(255, 179, 71, 0.45);
}

.free-badge {
  display: inline-block;
  background: var(--lime);
  color: var(--night-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 0 26px rgba(166, 226, 46, 0.45);
  transform: rotate(-2deg);
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 auto 1.5rem;
  max-width: 34rem;
}

.hero-detail {
  background: rgba(21, 14, 36, 0.62);
  border: 1px solid rgba(252, 243, 216, 0.2);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(4px);
}
.hero-detail dt {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--lime);
}
.hero-detail dd { font-weight: 700; }

.hero-detail-place { position: relative; transition: border-color 0.15s ease, background 0.15s ease; }
.hero-detail-place:hover { border-color: var(--lime); background: rgba(21, 14, 36, 0.8); }
.hero-detail-place:hover dd a { text-decoration: underline; }

.place-link { color: inherit; text-decoration: none; }
.place-link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.place-link:focus-visible { outline: none; }
.place-link:focus-visible::after { outline: 3px solid var(--lime); outline-offset: 3px; }

@media (min-width: 48rem) {
  .hero-details { flex-direction: row; max-width: none; justify-content: center; }
  .hero-detail { flex: 1; max-width: 20rem; }
}

.hero-support {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(21, 14, 36, 0.7);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.share-confirm { min-height: 1.5rem; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(21, 14, 36, 0.8); }

/* ============ Share menu ============ */

.share-wrap { position: relative; display: inline-block; }

.share-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 13.5rem;
  background: var(--card-black);
  border: 1px solid rgba(252, 243, 216, 0.2);
  border-radius: 14px;
  padding: 0.4rem;
  display: grid;
  gap: 2px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  text-align: left;
}
.share-menu[hidden] { display: none; }

/* near the bottom of the page the menu opens upward instead */
.share-menu-up { top: auto; bottom: calc(100% + 0.5rem); }

.share-item {
  display: block;
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.share-item:hover { background: rgba(252, 243, 216, 0.12); color: var(--pumpkin); }
.share-item:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.share-item[hidden] { display: none; }

.hero-treeline {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(90px, 12vw, 140px);
  z-index: 1;
  display: block;
}

/* ============ Countdown centerpiece ============ */

.countdown { margin-top: 2.25rem; }

.countdown-eyebrow {
  font-family: var(--font-spooky);
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  letter-spacing: 0.12em;
  color: #2b1740;
  text-shadow: 0 1px 0 rgba(255, 205, 140, 0.4);
  margin-bottom: 1rem;
}

.countdown-panel {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  background: rgba(13, 13, 16, 0.72);
  border: 1px solid rgba(166, 226, 46, 0.3);
  border-radius: 22px;
  padding: 0.85rem;
  backdrop-filter: blur(6px);
  box-shadow:
    0 10px 40px rgba(13, 13, 16, 0.5),
    0 0 30px rgba(166, 226, 46, 0.12);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.countdown-cell {
  background: rgba(13, 13, 16, 0.85);
  border: 1px solid rgba(166, 226, 46, 0.4);
  border-radius: 16px;
  padding: 0.9rem 0.25rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  animation: cdpulse 2.4s ease-in-out infinite;
}

.countdown-label { white-space: nowrap; }

@media (min-width: 48rem) {
  .countdown-panel { padding: 1.6rem 2rem; }
  .countdown-grid { gap: 1rem; }
  .countdown-cell { padding: 1.2rem 0.75rem; }
}

.countdown-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 3.4rem);
  color: var(--lime);
  text-shadow: 0 0 14px rgba(166, 226, 46, 0.85);
  animation: flicker 3.2s linear infinite;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.9;
}

.countdown-cell.tick { animation: cdpulse 2.4s ease-in-out infinite, tickpop 0.3s ease; }

@keyframes tickpop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes cdpulse {
  0%, 100% { box-shadow: 0 0 10px rgba(166, 226, 46, 0.2); }
  50% { box-shadow: 0 0 24px rgba(166, 226, 46, 0.5); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.7; }
  94% { opacity: 1; }
  97% { opacity: 0.85; }
  98% { opacity: 1; }
}

.countdown-now {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--lime);
  text-shadow: 0 0 14px rgba(166, 226, 46, 0.7);
  padding: 0.5rem 1rem;
}

/* ============ Scroll reveal (motion only when the visitor allows it) ============ */

.reveal, .reveal-stagger > * { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed { opacity: 1; transform: none; }

  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal-stagger.revealed > * { opacity: 1; transform: none; }
  .reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.08s; }
  .reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.16s; }
  .reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.24s; }
  .reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.32s; }
  .reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.4s; }
  .reveal-stagger.revealed > *:nth-child(7) { transition-delay: 0.44s; }
  .reveal-stagger.revealed > *:nth-child(8) { transition-delay: 0.48s; }
  .reveal-stagger.revealed > *:nth-child(9) { transition-delay: 0.52s; }
  .reveal-stagger.revealed > *:nth-child(10) { transition-delay: 0.56s; }
  .reveal-stagger.revealed > *:nth-child(11) { transition-delay: 0.6s; }
  .reveal-stagger.revealed > *:nth-child(12) { transition-delay: 0.64s; }
}

@media (prefers-reduced-motion: reduce) {
  .bat, .fog, .countdown-cell, .countdown-num, .countdown-cell.tick { animation: none; }
  .star-overlay { transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ Story strip ============ */

.story { text-align: center; }

.story-inner { max-width: 46rem; }

.story-copy { font-size: 1.15rem; margin-bottom: 2rem; }

.story-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.story-stat {
  background: rgba(252, 243, 216, 0.05);
  border: 1px solid rgba(240, 123, 34, 0.35);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  min-width: 9rem;
}
.story-stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--pumpkin);
}
.story-stat-label { font-size: 0.85rem; opacity: 0.85; }

/* ============ Why families love it ============ */

.why { text-align: center; }

.why-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
}

@media (min-width: 40rem) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  background: rgba(13, 13, 16, 0.45);
  border: 1px solid rgba(252, 243, 216, 0.12);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--pumpkin);
  box-shadow: 0 8px 28px rgba(240, 123, 34, 0.25);
}
.why-icon { font-size: 2rem; line-height: 1; display: block; margin-bottom: 0.6rem; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; color: var(--cream); }
.why-card p { font-size: 0.95rem; opacity: 0.9; }

/* ============ What to expect ============ */

.fun { text-align: center; }

.fun-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  text-align: left;
}

@media (min-width: 40rem) { .fun-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .fun-grid { grid-template-columns: repeat(3, 1fr); } }

.fun-card {
  background: rgba(13, 13, 16, 0.5);
  border: 1px solid rgba(252, 243, 216, 0.12);
  border-radius: 16px;
  padding: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  row-gap: 0.15rem;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.fun-card:hover {
  transform: translateY(-4px);
  border-color: var(--pumpkin);
  box-shadow: 0 8px 28px rgba(240, 123, 34, 0.22);
}
.fun-icon { font-size: 2rem; line-height: 1; grid-row: 1 / span 2; }
.fun-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.fun-card p { grid-column: 2; font-size: 0.92rem; opacity: 0.88; }

/* ============ Costume contests: prize cards with a slime drip edge ============ */

.band-costume::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 26px;
  background-repeat: repeat-x;
  background-size: 180px 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 26'%3E%3Cpath fill='%23122142' d='M0,0 L180,0 L180,6 Q170,6 168,14 Q166,22 160,22 Q154,22 153,12 Q152,4 144,4 Q136,4 135,10 Q134,18 127,18 Q120,18 119,8 Q118,2 110,2 Q102,2 101,12 Q100,24 92,24 Q84,24 83,10 Q82,3 74,3 Q66,3 65,9 Q64,16 57,16 Q50,16 49,8 Q48,2 40,2 Q32,2 31,12 Q30,20 23,20 Q16,20 15,10 Q14,5 6,5 Q1,5 0,8 Z'/%3E%3C/svg%3E");
}

.costume { text-align: center; }
.costume .time-pill { margin-top: -0.75rem; margin-bottom: 2rem; }

.costume-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
  counter-reset: costume;
}

@media (min-width: 40rem) { .costume-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .costume-grid { grid-template-columns: repeat(5, 1fr); } }

.costume-card {
  position: relative;
  background: rgba(13, 13, 16, 0.55);
  border: 1px solid rgba(166, 226, 46, 0.25);
  border-radius: 18px;
  padding: 2rem 1.25rem 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.costume-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: 0 8px 28px rgba(166, 226, 46, 0.18);
}

.costume-medal {
  position: absolute;
  top: -0.9rem;
  left: 1rem;
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.costume-number {
  position: absolute;
  top: -0.8rem;
  right: 1rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--pumpkin);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.costume-card h3 { font-size: 1.05rem; color: var(--cream); }
.costume-cat {
  font-family: var(--font-spooky);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--lime);
  margin: 0.15rem 0 0.4rem;
}
.costume-card p:last-child { font-size: 0.92rem; opacity: 0.9; }

/* ============ Best Trunk: stage spotlight ============ */

.trunks {
  text-align: center;
  background-image: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(252, 243, 216, 0.09), transparent 70%);
  background-repeat: no-repeat;
}

.trunks-inner { max-width: 46rem; }

.trophy-spot {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(252, 243, 216, 0.16), transparent 70%);
}
.trophy { font-size: 3.5rem; filter: drop-shadow(0 0 18px rgba(245, 198, 79, 0.55)); }

.trunks-copy { font-size: 1.1rem; margin-bottom: 1.5rem; }

.trunks-setup, .time-pill {
  display: inline-block;
  background: rgba(240, 123, 34, 0.14);
  border: 1px solid rgba(240, 123, 34, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.trunks-vote .todo-placeholder { max-width: 26rem; margin: 0.75rem auto 0; }

/* ============ Giving back ============ */

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

@media (min-width: 54rem) {
  .giving-inner { flex-direction: row; text-align: left; align-items: center; }
  .giving-copy { flex: 1; }
}

.giving-logo { flex-shrink: 0; width: 13rem; height: 13rem; border-radius: 50%; padding: 1.5rem; }

.giving-copy p { margin-bottom: 0.9rem; }
.giving-copy p:last-child { margin-bottom: 0; }

.giving-donate { margin-top: 1.4rem; }

.giving-proceeds {
  background: rgba(166, 226, 46, 0.1);
  border-left: 4px solid var(--lime);
  border-radius: 0 10px 10px 0;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

/* ============ Tier cards (vendors and sponsors) ============ */

.vendors, .sponsors { text-align: center; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
  text-align: left;
}

@media (min-width: 48rem) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  /* Sponsors: DOM order is Platinum, Silver, Gold (the mobile stack).
     On desktop, slot Platinum into the center column. */
  .sponsor-grid .tier-card:nth-child(1) { order: 2; }
  .sponsor-grid .tier-card:nth-child(2) { order: 1; }
  .sponsor-grid .tier-card:nth-child(3) { order: 3; }
}

.tier-card {
  background: var(--card-black);
  border: 1px solid rgba(252, 243, 216, 0.14);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(240, 123, 34, 0.18); }

.tier-featured {
  border: 2px solid var(--pumpkin);
  box-shadow: 0 0 28px rgba(240, 123, 34, 0.3);
}

.tier-flag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pumpkin);
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  white-space: nowrap;
}

.tier-name {
  font-family: var(--font-spooky);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--lime);
}
.tier-silver { color: #C9CDD6; }
.tier-gold { color: #F5C64F; }
.tier-platinum { color: var(--lime); }

.tier-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--cream);
  margin: 0.25rem 0 0.75rem;
}

.tier-list { list-style: none; margin-bottom: 1.5rem; flex-grow: 1; }
.tier-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.tier-list li::before {
  content: "🎃";
  position: absolute;
  left: 0;
  font-size: 0.85rem;
  top: 0.2rem;
}

.card-note { margin-top: 1.5rem; font-style: italic; opacity: 0.85; }

/* ============ Reserve ============ */

.reserve { text-align: center; }
.reserve-inner { max-width: 42rem; }
.reserve .section-intro { margin-inline: auto; }
.reserve-help { margin-top: 1.5rem; }
.reserve-help a, .faq-item a, .footer a { color: var(--pumpkin); font-weight: 700; }
.reserve-help a:hover, .faq-item a:hover, .footer a:hover { color: var(--lime); }

/* ============ Partners row ============ */

.partners { text-align: center; }

.partners-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.partner-card { display: flex; flex-direction: column; align-items: center; }

.partner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  border-radius: 16px;
}
.partner-link:hover .partner-name { color: var(--pumpkin); }
.partner-link:hover .logo-chip { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5); }
.partner-link:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.partners-row .logo-chip-lg { width: min(16rem, 86vw); height: 8.5rem; padding: 1rem 1.25rem; }

.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 12px;
  padding: 0.4rem 0.7rem;
  width: 7.5rem;
  height: 3.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.logo-chip img { max-height: 100%; object-fit: contain; }
.logo-chip { transition: transform 0.15s ease, box-shadow 0.15s ease; }

.logo-chip-lg { width: 11rem; height: 6rem; padding: 0.75rem 1rem; border-radius: 16px; }

.partner-name { font-family: var(--font-display); font-weight: 600; }

/* ============ Gallery placeholder ============ */

.gallery { text-align: center; }
.gallery .section-intro { margin-inline: auto; }

.gallery-carousel { position: relative; }

.gallery-track {
  list-style: none;
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 14px; }

.gallery-track li {
  flex: 0 0 78%;
  scroll-snap-align: start;
}

@media (min-width: 48rem) {
  .gallery-track { gap: 0.9rem; }
  .gallery-track li { flex-basis: calc((100% - 1.8rem) / 3); }
}

@media (min-width: 64rem) {
  .gallery-track li { flex-basis: calc((100% - 2.7rem) / 4); }
}

.gallery-track a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(252, 243, 216, 0.14);
  background: var(--card-black);
}
.gallery-track a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.gallery-track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.gallery-track a:hover img { transform: scale(1.04); }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, var(--pumpkin), var(--deep-orange));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.gallery-arrow svg { width: 1.3rem; height: 1.3rem; }
.gallery-arrow-prev { left: -0.4rem; }
.gallery-arrow-next { right: -0.4rem; }
.gallery-arrow:hover { transform: translateY(-50%) scale(1.08); }
.gallery-arrow:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.gallery-arrow:disabled { opacity: 0.35; cursor: default; }
.gallery-arrow:disabled:hover { transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .gallery-track { scroll-behavior: auto; }
  .gallery-track img { transition: none; }
  .gallery-track a:hover img { transform: none; }
}

/* ============ Event details ============ */

.details { text-align: center; }

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  text-align: left;
  margin-top: 1rem;
}

@media (min-width: 40rem) { .details-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .details-grid { grid-template-columns: repeat(4, 1fr); } }

.detail-item {
  background: rgba(13, 13, 16, 0.5);
  border: 1px solid rgba(252, 243, 216, 0.12);
  border-radius: 16px;
  padding: 1.2rem 1.1rem;
}
.detail-item dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--pumpkin);
  margin-bottom: 0.3rem;
}
.detail-item dd { font-size: 0.95rem; opacity: 0.92; }

/* ============ FAQ ============ */

.faq-inner { max-width: 44rem; }
.faq .eyebrow, .faq h2 { text-align: center; }
.faq h2 { margin-bottom: 1.5rem; }

.faq-item {
  background: rgba(13, 13, 16, 0.5);
  border: 1px solid rgba(252, 243, 216, 0.12);
  border-radius: 12px;
  margin-bottom: 0.6rem;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  list-style-position: outside;
}
.faq-item summary:hover { color: var(--pumpkin); }
.faq-item summary:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; border-radius: 12px; }
.faq-item p { padding: 0 1.1rem 1rem; }

.todo-placeholder {
  background: rgba(166, 226, 46, 0.12);
  border: 1px dashed var(--lime);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  color: var(--lime);
}
.faq-item .todo-placeholder { margin: 0 1.1rem 1rem; }

/* ============ Closing: deepest night, moon high ============ */

.closing {
  text-align: center;
  background-image: radial-gradient(circle at 82% 18%, rgba(252, 243, 216, 0.14), transparent 18%);
  background-repeat: no-repeat;
  padding-bottom: 5.5rem;
}

.closing-inner { max-width: 42rem; }
.closing-copy { font-size: 1.12rem; margin-bottom: 1.75rem; }

/* ============ Footer ============ */

.footer {
  background: var(--night-deep);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(252, 243, 216, 0.1);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 48rem) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pumpkin);
  margin-bottom: 0.4rem;
}

.footer-credit {
  text-align: center;
  opacity: 0.75;
  font-size: 0.9rem;
  padding: 0 1.25rem;
}

.footer-signoff {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pumpkin);
  margin-top: 0.5rem;
  padding: 0 1.25rem 0.5rem;
}

/* ============ Sticky mobile call to action ============ */

.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(15, 29, 56, 0.94);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(252, 243, 216, 0.15);
  text-align: center;
}
.mobile-cta .btn { display: block; width: 100%; }

@media (max-width: 53.99rem) {
  body { padding-bottom: 4.5rem; }
}

@media (min-width: 54rem) {
  .mobile-cta { display: none; }
  body { padding-bottom: 0; }
}
