/* ═══════════════════════════════════════════════════════════════════════
   birthday-teen-glow-flyer-neon-surge — styles.css
   "Neon Surge" — a neon glow-poster flyer for a teen birthday party.

   Palette (deep-space violet-black + hot neon):
     space    #07030F · #0D0720 · panel #120A26 · raised #1A0F33
     neon pink #FF2E88 · neon cyan #2BE4FF · neon purple #A45CFF
     neon lime #C6FF3D · neon yellow #FFE14D
     ink #F3EFFF (near-white) · muted lavender #A99BCB

   Layout: one 100dvh shell — masthead / tabs / active panel / foot.
   Only the active panel scrolls (html.js gates this; without JS the page
   reads as a normal scrolling document).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --space-0: #07030F;
  --space-1: #0D0720;
  --panel: #120A26;
  --panel-2: #1A0F33;
  --line: rgba(169, 155, 203, 0.18);
  --line-strong: rgba(169, 155, 203, 0.34);

  --neon-pink: #FF2E88;
  --neon-pink-soft: #FF7FB8;
  --neon-cyan: #2BE4FF;
  --neon-purple: #A45CFF;
  --neon-lime: #C6FF3D;
  --neon-yellow: #FFE14D;

  --ink: #F3EFFF;
  --muted: #A99BCB;
  --error: #FF6B6B;

  /* type */
  --font-display: "Bungee", "Arial Black", sans-serif;
  --font-label: "Chakra Petch", "Arial", sans-serif;
  --font-ui: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* shape */
  --radius: 16px;
  --shadow-glow-pink: 0 0 22px rgba(255, 46, 136, 0.55), 0 0 60px rgba(255, 46, 136, 0.28);
  --shadow-glow-cyan: 0 0 22px rgba(43, 228, 255, 0.5), 0 0 60px rgba(43, 228, 255, 0.25);
  --shadow-card: 0 22px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { height: 100%; }

body {
  height: 100%;
  background:
    radial-gradient(120% 90% at 50% 0%, #150B2E 0%, var(--space-1) 48%, var(--space-0) 100%);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── the shell ─────────────────────────────────────────────────────────── */
/* JS mode: one 100dvh app with a fixed chrome and a single scrolling
   panel. Without JS this collapses to a normal scrolling document and
   every panel reads in order (progressive enhancement). */
html.js .app {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

html:not(.js) .app { height: auto; overflow: visible; display: block; }
html:not(.js) .panels { height: auto; overflow: visible; }
html:not(.js) .panel { display: block; position: static; overflow: visible; }
html:not(.js) .tabs { display: none; }

/* ── masthead ─────────────────────────────────────────────────────────── */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 3vw, 28px);
  padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(13, 7, 32, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.masthead__brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

.masthead__text { min-width: 0; line-height: 1.25; }
.masthead__top {
  display: block;
  font: 600 9.5px var(--font-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.masthead__name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 46, 136, 0.7), 0 0 26px rgba(255, 46, 136, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead__name i { font-style: normal; color: var(--neon-yellow); padding: 0 2px; }

.masthead__actions { display: flex; gap: 8px; }

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 10, 38, 0.85);
  color: var(--muted);
  font: 500 13px var(--font-ui);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.chip-btn:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 16px rgba(43, 228, 255, 0.25); }
.chip-btn:active { transform: translateY(1px); }
.chip-btn.is-done { border-color: var(--neon-lime); color: var(--neon-lime); box-shadow: 0 0 16px rgba(198, 255, 61, 0.3); }

/* ── tabs ──────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  padding: 6px clamp(10px, 2.5vw, 24px) 8px;
  background: rgba(13, 7, 32, 0.78);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font: 600 12px var(--font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tab:hover { color: var(--neon-cyan); }
.tab[aria-selected="true"] {
  color: var(--space-0);
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
  box-shadow: 0 0 20px rgba(255, 46, 136, 0.55);
}

/* ── panels ────────────────────────────────────────────────────────────── */
.panels {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

html.js .panel {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
html.js .panel.is-active { display: block; }
.panel > * { scroll-margin-top: 18px; }

/* content column for tab panels (the poster uses the full panel) */
.panel-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 28px) clamp(40px, 6vw, 64px);
}

/* ── hero poster scene ─────────────────────────────────────────────────── */
.hero-panel {
  position: relative;
  background:
    radial-gradient(80% 55% at 18% 8%, rgba(164, 92, 255, 0.22) 0%, transparent 70%),
    radial-gradient(70% 45% at 85% 22%, rgba(255, 46, 136, 0.2) 0%, transparent 70%),
    radial-gradient(90% 60% at 50% 100%, rgba(43, 228, 255, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, #0D0720 0%, #090419 60%, #07030F 100%);
}

.poster-scene {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* rotating sunburst behind the title */
.rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(120vmin, 780px);
  height: min(120vmin, 780px);
  transform: translate(-50%, -54%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 46, 136, 0.12) 0deg 6deg,
    transparent 6deg 16deg
  );
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle, #000 0%, transparent 68%);
  pointer-events: none;
  animation: rays-spin 60s linear infinite;
}
@keyframes rays-spin { to { transform: translate(-50%, -54%) rotate(360deg); } }

/* star field (inline SVG, slice-fitted to the panel) */
.stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* CRT scanlines + edge vignette for the social-story feel */
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0px,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 4px
  );
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(4, 1, 12, 0.55) 100%);
}

/* the poster sheet itself */
.poster {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(84px, 12vh, 120px) clamp(18px, 6vw, 56px) clamp(70px, 10vh, 104px);
}

.poster__greeting {
  margin: 0 0 16px;
  font: 500 13.5px var(--font-ui);
  letter-spacing: 0.03em;
  color: var(--neon-lime);
  background: rgba(18, 10, 38, 0.8);
  border: 1px solid rgba(198, 255, 61, 0.45);
  border-radius: 999px;
  padding: 7px 16px;
  box-shadow: 0 0 18px rgba(198, 255, 61, 0.25);
}
.poster__greeting b { font-weight: 700; }

.poster__kicker {
  position: relative;
  margin: 0 0 10px;
  font: 600 12px var(--font-label);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(43, 228, 255, 0.6);
}

.poster__title-wrap { position: relative; }

/* glowing ring behind the headline */
.poster__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 400px);
  height: min(70vw, 400px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 46, 136, 0.55);
  box-shadow:
    inset 0 0 44px rgba(255, 46, 136, 0.18),
    0 0 34px rgba(255, 46, 136, 0.4),
    inset 0 0 0 18px rgba(164, 92, 255, 0.06);
  pointer-events: none;
}
.poster__ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px dashed rgba(43, 228, 255, 0.4);
}

.poster__title {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 15vw, 116px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: #FFE9F4;
  text-shadow:
    0 0 6px #fff,
    0 0 16px var(--neon-pink),
    0 0 34px var(--neon-pink),
    0 0 70px rgba(255, 46, 136, 0.85);
  text-wrap: balance;
  animation: neon-flicker 6s infinite;
}
.poster__title-num {
  color: var(--neon-yellow);
  text-shadow:
    0 0 6px #fff,
    0 0 16px var(--neon-yellow),
    0 0 34px var(--neon-yellow),
    0 0 70px rgba(255, 225, 77, 0.85);
}
@keyframes neon-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.82; }
  94% { opacity: 1; }
  96% { opacity: 0.9; }
  97% { opacity: 1; }
}

.poster__sub {
  margin: 18px 0 0;
  max-width: 26em;
  font: 500 clamp(17px, 3.2vw, 21px) var(--font-ui);
  color: var(--ink);
  line-height: 1.45;
}

/* birthday-person portrait (optional — remove .poster__photo to hide it;
   tapping it opens the lightbox with zoom) */
.poster__photo { margin: 18px 0 0; }
.poster__photo-btn {
  display: block;
  padding: 0;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: zoom-in;
  line-height: 0;
}
.poster__photo-btn:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }
.poster__photo-btn:hover img,
.poster__photo-btn:focus-visible img {
  transform: scale(1.06);
  border-color: var(--neon-pink);
  box-shadow:
    0 0 22px rgba(43, 228, 255, 0.55),
    0 0 60px rgba(255, 46, 136, 0.4),
    inset 0 0 0 4px rgba(7, 3, 15, 0.55);
}
.poster__photo img {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(43, 228, 255, 0.6);
  box-shadow:
    0 0 18px rgba(43, 228, 255, 0.45),
    0 0 46px rgba(255, 46, 136, 0.28),
    inset 0 0 0 4px rgba(7, 3, 15, 0.55);
  background: var(--panel-2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* info chips (date / time / venue) */
.poster__chips {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 10, 38, 0.78);
  color: var(--ink);
  font: 500 13.5px var(--font-ui);
  white-space: nowrap;
}
.chip svg { color: var(--neon-cyan); flex: none; }

.poster__dress {
  margin: 16px 0 0;
  font: 500 11.5px var(--font-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.poster__dress strong {
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 46, 136, 0.7);
}

.poster__hashtag {
  margin: 12px 0 0;
  font: 600 13px var(--font-label);
  letter-spacing: 0.14em;
  color: var(--neon-purple);
  text-shadow: 0 0 12px rgba(164, 92, 255, 0.7);
}

.poster__cta { margin-top: 20px; }

/* marquee strip at the bottom of the poster */
.marquee {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: rgba(255, 46, 136, 0.12);
  padding: 9px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee__track span {
  font: 600 11px var(--font-label);
  letter-spacing: 0.3em;
  color: var(--neon-pink-soft);
  white-space: nowrap;
  padding-right: 2px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── section head ──────────────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 30px; }
.section-head .kicker {
  margin: 0 0 8px;
  font: 600 11.5px var(--font-label);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(43, 228, 255, 0.5);
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.12;
  color: var(--neon-pink);
  text-shadow: 0 0 14px rgba(255, 46, 136, 0.5), 0 0 40px rgba(255, 46, 136, 0.25);
  text-wrap: balance;
}
.section-head .lede {
  margin: 12px auto 0;
  max-width: 46em;
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.6;
}
.section-head .lede strong { color: var(--neon-yellow); font-weight: 600; }

/* ── countdown tiles (self-driven; never .count-*) ────────────────────── */
.countdown-tiles { text-align: center; margin-bottom: 34px; }
.countdown-tiles__label {
  margin: 0 0 12px;
  font: 600 11px var(--font-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.tiles {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 14px);
}
.tile {
  min-width: clamp(58px, 15vw, 78px);
  padding: 13px 6px 11px;
  border-radius: 14px;
  border: 1px solid rgba(43, 228, 255, 0.4);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 20px rgba(43, 228, 255, 0.18), inset 0 0 24px rgba(43, 228, 255, 0.06);
}
.tile-num {
  display: block;
  font: 600 clamp(22px, 4.6vw, 30px) var(--font-label);
  font-variant-numeric: tabular-nums;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(43, 228, 255, 0.8);
}
.tile-cap {
  display: block;
  font: 600 9.5px var(--font-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.countdown-tiles__here {
  margin: 14px 0 0;
  font: 600 17px var(--font-ui);
  color: var(--neon-lime);
}

/* ── block titles / timeline ───────────────────────────────────────────── */
.block-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font: 600 12px var(--font-label);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--neon-purple);
}
.block-title::before,
.block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(164, 92, 255, 0.6), transparent);
}

.timeline { list-style: none; margin: 0 0 34px; padding: 0; }
.timeline-item {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 13px 4px 13px 0;
  border-bottom: 1px dashed rgba(169, 155, 203, 0.28);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item__time {
  flex: none;
  width: 82px;
  font: 600 15.5px var(--font-label);
  font-variant-numeric: tabular-nums;
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 46, 136, 0.5);
}
.timeline-item__text { font-size: 16px; color: var(--ink); }

/* ── venue ─────────────────────────────────────────────────────────────── */
.event-list { display: grid; gap: 14px; margin-bottom: 30px; }
.event-item {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.event-item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan));
}
.event-item__chip {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 46, 136, 0.16);
  border: 1px solid rgba(255, 46, 136, 0.5);
  color: var(--neon-pink-soft);
  font: 600 10.5px var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.event-item__title { margin: 10px 0 4px; font: 600 22px var(--font-ui); color: var(--ink); }
.event-item__when { margin: 0; font: 600 13px var(--font-label); color: var(--neon-cyan); }
.event-item__addr { margin: 6px 0 0; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.event-item__note { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); font-style: italic; }
.event-item__actions { margin-top: 12px; }

/* ── notes ─────────────────────────────────────────────────────────────── */
.notes {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px dashed rgba(43, 228, 255, 0.5);
  background: rgba(43, 228, 255, 0.06);
}
.note { margin: 0; font-size: 15.5px; color: var(--ink); line-height: 1.55; }
.note strong { color: var(--neon-cyan); font-weight: 600; }

/* ── gallery (photo wall panel — optional) ────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 620px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gallery-item {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(43, 228, 255, 0.28), var(--shadow-card);
}

.gallery-item__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.gallery-item__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.gallery-item__btn:hover .gallery-item__img,
.gallery-item__btn:focus-visible .gallery-item__img {
  transform: scale(1.045);
}
.gallery-item__cap {
  padding: 9px 12px 11px;
  border-top: 1px solid var(--line);
  font: 600 10.5px var(--font-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* photo-hero banner at the top of the gallery (optional — delete
   .gallery-hero to hide it; taps open the lightbox like a tile) */
.gallery-hero {
  margin: 0 0 26px;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  background: var(--panel-2);
}
.gallery-hero__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.gallery-hero__btn:hover .gallery-hero__img,
.gallery-hero__btn:focus-visible .gallery-hero__img {
  transform: scale(1.03);
}
.gallery-hero__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 34px 18px 12px;
  background: linear-gradient(180deg, transparent, rgba(7, 3, 15, 0.82));
  font: 600 11px var(--font-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-lime);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

/* ── official flyer / banner (optional — delete .banner-flyer to hide; it
     opens in the lightbox with zoom like a gallery photo) ────────────── */
.banner-flyer {
  margin: 0 0 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.banner-flyer:hover, .banner-flyer:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 24px rgba(43, 228, 255, 0.28), var(--shadow-card);
}
.banner-flyer__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  aspect-ratio: 8 / 3;
  overflow: hidden;
  position: relative;
}
.banner-flyer__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.banner-flyer__btn:hover .banner-flyer__img,
.banner-flyer__btn:focus-visible .banner-flyer__img {
  transform: scale(1.03);
}
.banner-flyer__cap {
  padding: 9px 14px 11px;
  border-top: 1px solid var(--line);
  font: 600 10.5px var(--font-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ── film feature (optional recap video — .film-card, delete to hide) ── */
.film-card { text-align: center; }
.film-frame {
  position: relative;
  width: 100%;
  margin: 22px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.film-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.film-open img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.film-open:hover img,
.film-open:focus-visible img { transform: scale(1.03); }
.film-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(58px, 13vmin, 76px);
  height: clamp(58px, 13vmin, 76px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--space-0);
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 22px rgba(255, 46, 136, 0.6), 0 0 60px rgba(164, 92, 255, 0.35);
  animation: film-pulse 2.6s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.film-play svg { width: 26px; height: 26px; margin-left: 3px; }
.film-open:hover .film-play { transform: translate(-50%, -50%) scale(1.08); }
.film-open:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; }
.film-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(7, 3, 15, 0.66);
  color: var(--neon-cyan);
  font: 600 10px var(--font-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.film-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  text-align: center;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
}
.film-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font: 600 11px var(--font-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.film-external:hover { color: var(--neon-lime); border-color: var(--neon-cyan); }
.film-external[hidden] { display: none; }
@keyframes film-pulse {
  0%, 100% { box-shadow: 0 0 22px rgba(255, 46, 136, 0.6), 0 0 60px rgba(164, 92, 255, 0.35), 0 0 0 0 rgba(255, 46, 136, 0.4); }
  50% { box-shadow: 0 0 22px rgba(255, 46, 136, 0.6), 0 0 60px rgba(164, 92, 255, 0.35), 0 0 0 16px rgba(255, 46, 136, 0); }
}

/* ── lightbox (photo full-size viewer with zoom; built by main.js) ───── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 44px);
  background: rgba(4, 1, 12, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: auto;
  overscroll-behavior: contain;
  animation: lightbox-in 0.25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightbox-in { from { opacity: 0; } }

.lightbox__frame {
  display: grid;
  justify-items: center;
  max-width: 1080px;
  overflow: hidden;
  touch-action: pan-x pan-y;
}
.lightbox__frame.is-zoomed { touch-action: none; cursor: grab; }
.lightbox__frame.is-zoomed.dragging { cursor: grabbing; }
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 44px rgba(255, 46, 136, 0.3), 0 24px 80px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease;
  will-change: transform;
}
.lightbox__cap {
  margin: 14px 0 0;
  text-align: center;
  font: 600 13px var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(43, 228, 255, 0.5);
}
.lightbox__count {
  display: block;
  margin-top: 6px;
  font: 500 12px var(--font-ui);
  letter-spacing: 0.22em;
  color: var(--muted);
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(18, 10, 38, 0.88);
  color: var(--ink);
  font-size: 19px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.lightbox__btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(43, 228, 255, 0.3);
}
.lightbox__close {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  z-index: 2;
}
.lightbox__btn--prev { position: fixed; left: 12px; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__btn--next { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__btn--zoom {
  position: fixed;
  top: calc(68px + env(safe-area-inset-top));
  right: 14px;
  z-index: 2;
}
.lightbox__btn--zoom svg { width: 20px; height: 20px; }


/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 14px var(--font-ui);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s, filter 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }
.btn--primary {
  background: linear-gradient(90deg, var(--neon-pink) 0%, var(--neon-purple) 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 46, 136, 0.45), 0 0 18px rgba(164, 92, 255, 0.35);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 16px rgba(43, 228, 255, 0.25); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* loading node (driven by the platform script) */
.loading { display: none; text-align: center; color: var(--muted); font-size: 13px; padding: 10px 0 0; }

/* ── RSVP deadline countdown (platform-driven .count-*) ────────────────── */
.rsvp-countdown {
  margin: -6px 0 22px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 46, 136, 0.55);
  background: rgba(255, 46, 136, 0.08);
  text-align: center;
  font-size: 13.5px;
}
.rsvp-countdown__label { margin: 0 0 4px; font: 600 10.5px var(--font-label); letter-spacing: 0.26em; text-transform: uppercase; color: var(--neon-pink); }
.rsvp-countdown__nums { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--muted); }
.rsvp-countdown__nums span { color: var(--neon-yellow); font-size: 17px; }

/* ── forms (RSVP + injected guestbook) ─────────────────────────────────── */
.rsvp-form { display: grid; gap: 16px; }

.form-group { display: grid; gap: 6px; }
.form-group label {
  font: 600 12px var(--font-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neon-cyan);
}
.form-group label small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--ink);
  font: 400 15.5px var(--font-ui);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { resize: vertical; min-height: 76px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #6F6492; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232BE4FF' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(43, 228, 255, 0.2), 0 0 18px rgba(43, 228, 255, 0.2);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-hint { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.form-hint:first-child { margin: 0; }

.error { min-height: 16px; font: 500 12.5px var(--font-ui); color: var(--error); }
.error:empty { display: none; }

.rsvp-extras {
  display: grid;
  gap: 16px;
  padding: 16px 16px 2px;
  border-radius: 14px;
  border: 1px dashed rgba(164, 92, 255, 0.5);
  background: rgba(164, 92, 255, 0.07);
  transition: opacity 0.3s, filter 0.3s;
}

/* decline state: dim party-size + snack fields (visual only — fields stay
   enabled and submission is never intercepted; the platform owns the form) */
form.is-declining .rsvp-extras { opacity: 0.4; filter: grayscale(0.6); }

.declined-note {
  display: none;
  margin: -4px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #FF9B9B;
  font: 500 15px var(--font-ui);
  text-align: center;
}
form.is-declining .declined-note { display: block; }

/* thank-you / closed states injected by the platform scripts */
.thank-you-message { text-align: center; padding: 26px 12px; }
.thank-you-message h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 30px; color: var(--neon-lime); text-shadow: 0 0 14px rgba(198, 255, 61, 0.5); }
.thank-you-message p { margin: 4px 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ── guestbook (Style A: platform injects form + list into .guestbook-body) ── */
.guestbook-section #guestbookForm input,
.guestbook-section #guestbookForm textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--ink);
  font: 400 15px var(--font-ui);
}
.guestbook-section #guestbookForm input:focus,
.guestbook-section #guestbookForm textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(43, 228, 255, 0.2);
}
.guestbook-section #guestbookForm textarea { resize: vertical; min-height: 84px; }
.guestbook-section #guestbookForm button[type="submit"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px auto 0;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, var(--neon-pink) 0%, var(--neon-purple) 100%) !important;
  color: #fff !important;
  font: 600 14px var(--font-ui);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 46, 136, 0.4);
}
.guestbook-section #guestbookForm button[type="submit"]:hover { filter: brightness(1.08); }

/* injected message list — neutralise the engine's inline scroll box */
.guestbook-section #comments-container {
  margin-top: 28px !important;
  border-top: 1px solid var(--line) !important;
  max-height: none !important;
  overflow: visible !important;
}
.guestbook-section .guestbook-entry {
  padding: 14px 16px;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  word-break: break-word;
}
.guestbook-section .guestbook-entry h5 { margin: 0 0 4px; font: 600 15px var(--font-ui); color: var(--neon-pink-soft); }
.guestbook-section .guestbook-entry p { margin: 0 0 4px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.guestbook-section .guestbook-entry small { color: var(--muted); font-size: 12px; }

.guestbook-section .more-guestbook-wrap { text-align: center; margin-top: 18px; }
.guestbook-section #load-more {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 600 14px var(--font-ui);
  cursor: pointer;
}
.guestbook-section #load-more:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); }

/* ── full-width powered-by brand line (between panels and foot) ───────
     Static platform HTML: the platform swaps the literal brand token
     inside .link-footer for the platform name at render. Never bound to
     a morph — hosts do not edit it. */
.powered-by {
  width: 100%;
  text-align: center;
  padding: 6px 14px;
  border-top: 1px solid var(--line);
  background: rgba(13, 7, 32, 0.9);
  font: 600 9px var(--font-label);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.powered-by .link-footer { color: var(--neon-cyan); }

/* ── foot ─────────────────────────────────────────────────────────────── */
.foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px clamp(14px, 3vw, 28px);
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  background: rgba(13, 7, 32, 0.9);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.foot::-webkit-scrollbar { display: none; }
.foot__item { display: inline-flex; align-items: center; gap: 10px; }
.foot__dot { opacity: 0.5; }

/* brand placeholder — replace the name in index.html (see README) */
.footer-brand {
  margin: 0 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.footer-brand-heart { color: var(--neon-pink); text-shadow: 0 0 10px rgba(255, 46, 136, 0.7); }
.footer-brand-name { color: var(--neon-cyan); font-weight: 600; }

/* ── focus visibility (global) ────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* ── reveal-on-scroll (JS adds .is-visible; reduced-motion skips it) ──── */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ── optional Free Page — repeatable host-written blocks ──────────────
     Each .free-block is one row of the Free Page group: a free title,
     free text and an OPTIONAL photo. The engine clones the blocks from
     the host's entries and removes .free-media when a row has no image,
     so a block always reads cleanly as title + text. Tapping the photo
     opens it in the lightbox with zoom, like every other photo slot. */
.free-blocks {
  display: grid;
  gap: 20px;
}
.free-block {
  padding: clamp(24px, 5vw, 36px);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-align: center;
}
.free-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.15;
  color: var(--neon-pink);
  text-shadow: 0 0 14px rgba(255, 46, 136, 0.5), 0 0 40px rgba(255, 46, 136, 0.25);
  text-wrap: balance;
}
.free-media {
  margin: 18px auto 0;
  max-width: 560px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  box-shadow: var(--shadow-card);
}
.free-media__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}
.free-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.free-media__btn:hover .free-img,
.free-media__btn:focus-visible .free-img {
  transform: scale(1.03);
}
.free-media__cap {
  padding: 9px 12px 11px;
  border-top: 1px solid var(--line);
  font: 600 10.5px var(--font-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.free-content {
  margin: 16px auto 0;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-line;              /* host line breaks are kept */
}

/* ── small screens: reclaim vertical space ────────────────────────────── */
@media (max-height: 640px) {
  .masthead { padding-top: 6px; padding-bottom: 6px; }
  .masthead__top { display: none; }
  .foot, .powered-by { display: none; }
  .poster { padding-top: 56px; padding-bottom: 52px; }
}
@media (max-width: 520px) {
  .chip-btn { padding: 8px 10px; }
  .chip-btn__label { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .poster__chips { gap: 6px; }
  .chip { font-size: 12.5px; padding: 7px 11px; }
  .marquee__track span { font-size: 10px; }
}
@media (max-width: 620px) {
  /* On phones, let the tabs wrap into rows instead of hiding behind a
     horizontal scroll — every section stays visible and easy to tap. */
  .tabs { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
}
@media (max-width: 380px) {
  .marquee { display: none; }
}

/* ── reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
html.no-motion *, html.no-motion *::before, html.no-motion *::after {
  animation: none !important;
  transition: none !important;
}
html.no-motion [data-reveal] { opacity: 1; transform: none; }

/* ── print: flatten to readable pages ─────────────────────────────────── */
@media print {
  html.js .app { height: auto; display: block; overflow: visible; }
  html.js .panel { display: block !important; overflow: visible !important; position: static; }
  .masthead__actions, .tabs, .foot, .no-print { display: none !important; }
  .lightbox { display: none !important; }
  body { background: #0D0720; }
  .panel-inner { max-width: none; padding: 12px; }
  .hero-panel { background: #0D0720; }
  .rays, .scanlines, .vignette, .marquee { display: none !important; }
  .poster { padding: 20px; page-break-inside: avoid; }
  .countdown-tiles, .timeline-item, .event-item, .notes, .gallery-hero, .gallery-item, .banner-flyer, .film-frame, .free-block { page-break-inside: avoid; }
  .film-play, .film-hint { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
