/* ════════════════════════════════════════════════════════════════════════
   THE PUMPKIN BASH — Halloween Party Poster (flyer)
   assets/css/styles.css

   Design: playful-spooky. Deep midnight plum background, pumpkin orange
   accents, cream ink, glowing jack-o'-lantern hero, drifting bats, spider
   web corner. One fixed 100dvh shell: header / scrollable panels / tab bar.

   ── THEME TOKENS ──  edit this block to restyle the whole poster ──
   ════════════════════════════════════════════════════════════════════════ */
:root {
  /* palette */
  --pumpkin:      #ff7a1a;   /* primary orange */
  --pumpkin-deep: #d94f04;   /* deep burnt orange */
  --pumpkin-glow: #ffb74d;   /* warm highlight */
  --ink:          #140a1c;   /* near-black plum (page background) */
  --ink-2:        #1f1028;   /* raised surface */
  --ink-3:        #2b1a3a;   /* chip / card surface */
  --cream:        #fff3e0;   /* warm paper ink */
  --cream-soft:   #f7e3c3;
  --ghost:        #c9f2ff;   /* cool accent (bats, links) */
  --candy:        #ff5c8a;
  --mint:         #7fdb8a;
  --error:        #ff6b6b;
  --line:         rgba(255, 243, 224, .16);
  --line-strong:  rgba(255, 243, 224, .30);

  /* type */
  --font-display: 'Creepster', 'Chiller', 'Snap ITC', 'Impact', fantasy;
  --font-body:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* shape + depth */
  --radius:       20px;
  --radius-sm:    12px;
  --shadow:       0 24px 60px rgba(0, 0, 0, .5);
  --glow-orange:  0 0 34px rgba(255, 122, 26, .45);

  /* motion */
  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ─────────────────────────────── base ─────────────────────────────── */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background:
    radial-gradient(1200px 700px at 50% -10%, #2b1a3a 0%, transparent 60%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--pumpkin);
  color: #170a02;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ════════════════════════════════════════════════════════════════════
   APP SHELL — one viewport; only the active panel scrolls
   ════════════════════════════════════════════════════════════════════ */
.app {
  height: 100vh; /* fallback */
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1400px 900px at 50% 0%, rgba(255, 122, 26, .08), transparent 55%),
    var(--ink);
}

/* ── header ── */
.app-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 10, 28, .85);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 6;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 900;
  font-size: .92rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.brand svg { width: 24px; height: 24px; color: var(--pumpkin); flex: none; }
.brand:hover .brand-name { color: var(--pumpkin-glow); }
.brand-date {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pumpkin-glow);
  background: rgba(255, 122, 26, .12);
  border: 1px solid rgba(255, 122, 26, .35);
  padding: 4px 10px;
  border-radius: 999px;
}
.head-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.head-menu svg { width: 15px; height: 15px; }
.head-menu:hover { background: var(--pumpkin); border-color: var(--pumpkin); color: #170a02; }
.head-menu:focus-visible { outline: 2px solid var(--pumpkin-glow); outline-offset: 2px; }

/* ── main: the scroll container for the active panel ── */
.app-main {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

.panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 243, 224, .3) transparent;
}
.panel.is-active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.panel:focus { outline: none; }

.panel-pad {
  max-width: 660px;
  margin: 0 auto;
  padding: 26px 18px calc(34px + env(safe-area-inset-bottom));
}

/* ── tab bar — built by main.js from the panels that exist ── */
.app-tabs {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(20, 10, 28, .92);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 6;
  /* Six tabs can exceed narrow screens: scroll sideways instead of
     clipping. "safe center" keeps the row centered when it fits and
     left-aligned (scrollable) when it doesn't. */
  justify-content: safe center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.app-tabs::-webkit-scrollbar { display: none; }
/* When the tab bar overflows, gentle fades at both edges hint that more
   sections are reachable by swiping. main.js toggles .is-scrollable. */
.app-tabs.is-scrollable::before,
.app-tabs.is-scrollable::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 34px;
  z-index: 2;
  pointer-events: none;
}
.app-tabs.is-scrollable::before {
  left: 0;
  background: linear-gradient(90deg, rgba(20, 10, 28, .95), transparent);
}
.app-tabs.is-scrollable::after {
  right: 0;
  background: linear-gradient(270deg, rgba(20, 10, 28, .95), transparent);
}
.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 243, 224, .62);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: background .2s, color .2s, transform .12s;
}
.tab svg { width: 16px; height: 16px; flex: none; }
.tab:hover { color: var(--cream); background: rgba(255, 243, 224, .06); }
.tab:active { transform: scale(.96); }
.tab.is-active {
  color: #170a02;
  background: linear-gradient(180deg, var(--pumpkin-glow), var(--pumpkin));
  box-shadow: 0 6px 18px rgba(255, 122, 26, .35);
}
.tab:focus-visible { outline: 2px solid var(--pumpkin-glow); outline-offset: 2px; }
.tab[hidden] { display: none; }

/* ════════════════════════════════════════════════════════════════════
   PANEL 1 · THE POSTER
   ════════════════════════════════════════════════════════════════════ */
.panel-poster {
  background:
    radial-gradient(900px 420px at 50% -60px, rgba(255, 122, 26, .16), transparent 65%),
    radial-gradient(700px 500px at 110% 110%, rgba(201, 242, 255, .05), transparent 60%),
    var(--ink);
}
/* Optional full-bleed backdrop photo behind the poster artwork. Fixed so it
   stays put as a "wall" while the poster scrolls; a dark scrim (only shown
   when a photo is present) keeps the artwork readable. Delete the
   <img class="poster-photo"> to return to the clean plum background. */
.poster-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.poster-photo.is-broken { display: none; }
.panel-poster:has(.poster-photo:not(.is-broken))::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(rgba(20, 10, 28, .34), rgba(20, 10, 28, .52) 55%, rgba(20, 10, 28, .88));
}

.poster {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 22px auto 30px;
  padding: 34px 26px 26px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 243, 224, .014) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, #231230 0%, #190c22 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
/* washi tape "pins" — straddle the paper edge, above the artwork */
.poster-tape {
  position: absolute;
  z-index: 3;
  top: -13px;
  width: 110px;
  height: 26px;
  background: linear-gradient(180deg, rgba(255, 183, 77, .85), rgba(255, 122, 26, .75));
  opacity: .8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.poster-tape--left { left: 18px; transform: rotate(-6deg); }
.poster-tape--right { right: 18px; transform: rotate(5deg); }

.poster-kicker {
  margin: 0 0 6px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ghost);
  opacity: .9;
}

.poster-title {
  margin: 0 0 10px;
  font-size: clamp(2.6rem, 12vw, 4.4rem);
  line-height: .95;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--pumpkin);
  text-shadow:
    0 3px 0 #7a2a05,
    0 6px 0 rgba(20, 10, 28, .9),
    0 14px 30px rgba(0, 0, 0, .6);
  -webkit-text-stroke: 1px rgba(255, 243, 224, .25);
}

.poster-sub {
  margin: 0 auto 22px;
  max-width: 34em;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cream-soft);
}

/* hero pumpkin */
.pumpkin-hero {
  width: min(300px, 72vw);
  height: auto;
  display: block;
  margin: 0 auto 4px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(255, 140, 30, .4));
  animation: pumpkin-flicker 4.5s ease-in-out infinite;
}

.poster-boo {
  margin: -6px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 16vw, 6rem);
  line-height: 1;
  color: var(--pumpkin-glow);
  transform: rotate(-4deg);
  text-shadow:
    0 4px 0 var(--pumpkin-deep),
    0 10px 24px rgba(0, 0, 0, .55);
  opacity: .95;
  pointer-events: none;
}

/* info chips */
.poster-chips {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 16px;
  background: rgba(255, 122, 26, .10);
  border: 1px solid rgba(255, 122, 26, .45);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  color: var(--cream);
}
.chip svg { width: 17px; height: 17px; color: var(--pumpkin-glow); flex: none; }

/* Empty-value guards: the engine swaps only the inner .*-text span and
   removes it entirely when the host leaves a chip value blank. Hide the
   whole chip then, so the cover never shows a lone icon in an empty pill. */
.chip.event-date:not(:has(.event-date-text)),
.chip.event-time:not(:has(.event-time-text)),
.chip.event-venue:not(:has(.event-venue-text)) {
  display: none;
}

/* what's on */
.poster-features {
  margin: 24px 0 0;
  padding: 20px 18px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 243, 224, .03);
}
.poster-features-title {
  margin: 0 0 12px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ghost);
}
.poster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.poster-list li {
  position: relative;
  padding-left: 26px;
  text-align: left;
  font-size: .98rem;
  font-weight: 700;
  color: var(--cream-soft);
}
.poster-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pumpkin);
  font-size: .85rem;
}
.poster-prize {
  margin: 16px 0 0;
  font-size: .9rem;
  font-weight: 900;
  color: var(--pumpkin-glow);
  letter-spacing: .04em;
}

/* teaser link to the photo gallery */
.poster-see-photos {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: center;
  font-size: .9rem;
  font-weight: 800;
}
.poster-see-photos a {
  color: var(--ghost);
  text-decoration: none;
  border-bottom: 2px dashed rgba(201, 242, 255, .4);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.poster-see-photos a:hover {
  color: var(--cream);
  border-bottom-color: var(--ghost);
}
.poster-see-photos a:focus-visible {
  outline: 2px solid var(--pumpkin-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* CTA */
.poster-cta { margin-top: 26px; }
.poster-rsvp-by {
  margin: 0 0 14px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--cream-soft);
}
.poster-rsvp-by strong { color: var(--pumpkin-glow); }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:active { transform: translateY(2px) scale(.99); }
.btn--primary {
  background: linear-gradient(180deg, var(--pumpkin-glow), var(--pumpkin));
  color: #170a02;
  box-shadow: 0 8px 22px rgba(255, 122, 26, .4);
}
.btn--primary:hover { box-shadow: 0 10px 30px rgba(255, 122, 26, .55); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--pumpkin); color: var(--pumpkin-glow); }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* fine print */
.poster-foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  font-weight: 600;
  color: rgba(255, 243, 224, .55);
}
.poster-foot p { margin: 0 0 4px; }
.poster-foot-note { color: var(--ghost); opacity: .85; }

/* ambient decoration */
.deco-web {
  position: fixed;
  right: -26px;
  top: -26px;
  width: 150px;
  height: 150px;
  opacity: .7;
  pointer-events: none;
  z-index: 3;
}
.deco-bats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.bat {
  position: absolute;
  width: 44px;
  height: 28px;
  opacity: .8;
  animation: bat-drift linear infinite;
}
.bat--one { top: 12%; left: -60px; animation-duration: 22s; animation-delay: 0s; }
.bat--two { top: 30%; left: -60px; width: 30px; height: 19px; animation-duration: 27s; animation-delay: 6s; }
.bat--three { top: 20%; left: -60px; width: 22px; height: 14px; animation-duration: 32s; animation-delay: 13s; }

/* ════════════════════════════════════════════════════════════════════
   PANEL 2 · PHOTOS — the gallery (placeholders until the host swaps them)
   ════════════════════════════════════════════════════════════════════ */
.panel-photos {
  background:
    radial-gradient(900px 420px at 50% -60px, rgba(255, 122, 26, .12), transparent 65%),
    var(--ink);
}

.moments-head { text-align: center; margin-bottom: 6px; }
.moments-title {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--cream);
}
.moments-description {
  margin: 0 auto;
  max-width: 34em;
  font-size: .95rem;
  color: var(--cream-soft);
}

.moments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}
@media (min-width: 560px) {
  .moments-grid { grid-template-columns: repeat(3, 1fr); }
}

.moment-card {
  margin: 0;
  background: rgba(255, 243, 224, .04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.moment-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 26, .6);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 122, 26, .18);
}
/* The clickable photo button (opens the built-in lightbox) */
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}
.moment-card:hover .gallery-open img { transform: scale(1.05); }
.moment-card:focus-within { outline: 2px solid var(--pumpkin-glow); outline-offset: -2px; }
.moment-caption {
  padding: 9px 10px 10px;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .02em;
  color: var(--cream-soft);
}

.moments-cta { margin-top: 26px; text-align: center; }
.moments-cta .btn { justify-content: center; }
.moments-hint {
  margin: 14px 0 0;
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255, 243, 224, .6);
}

/* Friendly fallback when a photo file is missing/broken (main.js adds
   .is-broken) — no broken-image icon, just a clear "add your photo" state. */
.moment-card.is-broken .gallery-open { display: none; }
.moment-card.is-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 132px;
}
.moment-card.is-broken .moment-caption { padding: 0; color: var(--pumpkin-glow); }
.moment-card.is-broken .moment-caption::after {
  content: " — add your photo";
  color: rgba(255, 243, 224, .55);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
   PANEL 3 · VIDEO — optional embed ("The Recap")
   ════════════════════════════════════════════════════════════════════ */
.panel-film {
  background:
    radial-gradient(900px 420px at 50% -60px, rgba(255, 122, 26, .12), transparent 65%),
    var(--ink);
}

.film-figure { margin: 0; }
.film-embed {
  position: relative;
  width: 100%;
  /* Cap by height so a tall phone screen never inflates the video; the
     16/9 ratio is preserved (width caps first on phones). */
  max-width: calc(56vh * 16 / 9);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  /* warm fallback while the embed loads — nothing ever looks broken */
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 122, 26, .22), transparent 60%),
    linear-gradient(165deg, #2b1a3a 0%, #1f1028 62%, #140a1c 100%);
}
.film-embed iframe,
.film-embed video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.film-cap {
  margin: 12px 0 0;
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 243, 224, .55);
}
.film-open { margin: 18px 0 0; text-align: center; }
.film-open a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.film-open a:hover { background: var(--pumpkin); border-color: var(--pumpkin); color: #170a02; }
.film-open a:focus-visible { outline: 2px solid var(--pumpkin-glow); outline-offset: 2px; }

/* ════════════════════════════════════════════════════════════════════
   PANEL 4 · FLYER — optional official flyer/banner showcase
   ════════════════════════════════════════════════════════════════════ */
.panel-flyer {
  background:
    radial-gradient(900px 420px at 50% -60px, rgba(201, 242, 255, .07), transparent 60%),
    var(--ink);
}

/* Own frame + caption; centered and capped in width so a flyer reads like
   a flyer. The photo button reuses .gallery-open (4:3) — overridden to a
   portrait 4:5 crop here. */
.flyer-figure {
  margin: 26px auto 0;
  max-width: 380px;
  background: linear-gradient(180deg, #231230, #190c22);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.flyer-figure .gallery-open { aspect-ratio: 4 / 5; }
.flyer-figure:focus-within { outline: 2px solid var(--pumpkin-glow); outline-offset: 2px; }
.flyer-figure:hover .gallery-open img { transform: scale(1.04); }
.flyer-cap {
  padding: 12px;
  font-size: .8rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .02em;
  color: var(--cream-soft);
}
.flyer-figure.is-broken .gallery-open { display: none; }
.flyer-figure.is-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.flyer-figure.is-broken .flyer-cap { padding: 0; color: var(--pumpkin-glow); }
.flyer-figure.is-broken .flyer-cap::after {
  content: " — add your flyer";
  color: rgba(255, 243, 224, .55);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
   PANEL 5 · FREE PAGE — optional host-defined page
   Repeatable .free-block cards: a free title, free text and an OPTIONAL
   photo each. The image slot (`.free-figure`) disappears entirely when
   the host leaves it empty, so a block renders as title + text alone.
   ════════════════════════════════════════════════════════════════════ */
.panel-free {
  background:
    radial-gradient(900px 420px at 50% -60px, rgba(201, 242, 255, .07), transparent 60%),
    var(--ink);
}

.free-blocks {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}
.free-block {
  background: linear-gradient(180deg, #231230, #190c22);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}
.free-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--pumpkin-glow);
}
.free-content {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--cream-soft);
}
.free-content p { margin: 0 0 10px; }
.free-content p:last-child { margin-bottom: 0; }

/* The optional photo slot — same card + lightbox pattern as the flyer.
   The whole figure is dropped when the host leaves the photo empty. */
.free-figure {
  margin: 16px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(255, 243, 224, .04);
}
.free-figure .gallery-open { aspect-ratio: 4 / 3; }
.free-figure:focus-within { outline: 2px solid var(--pumpkin-glow); outline-offset: 2px; }
.free-figure:hover .gallery-open img { transform: scale(1.04); }
.free-cap {
  padding: 9px 10px 10px;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .04em;
  color: rgba(255, 243, 224, .6);
}
.free-figure.is-broken .gallery-open { display: none; }
.free-figure.is-broken {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.free-figure.is-broken .free-cap { padding: 0; color: var(--pumpkin-glow); }
.free-figure.is-broken .free-cap::after {
  content: " — add your photo";
  color: rgba(255, 243, 224, .55);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
   BACKDROP PHOTO CHIP + FOOTER BRAND (poster panel)
   ════════════════════════════════════════════════════════════════════ */
.poster-photo-open {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px auto 0;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(20, 10, 28, .55);
  backdrop-filter: blur(3px);
  color: var(--cream);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.poster-photo-open svg { width: 15px; height: 15px; flex: none; color: var(--pumpkin-glow); }
.poster-photo-open:hover { background: var(--pumpkin); border-color: var(--pumpkin); color: #170a02; }
.poster-photo-open:hover svg { color: #170a02; }
.poster-photo-open:focus-visible { outline: 2px solid var(--pumpkin-glow); outline-offset: 2px; }

/* Footer brand placeholder — the platform swaps the text/logo. */
.footer-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 243, 224, .55);
  text-align: center;
}
.footer-brand-mark { color: var(--pumpkin-glow); font-size: .9rem; }

/* Full-width powered-by brand strip — reads at the end of the
   invitation. main.js tucks it into the last surviving panel, so it
   never vanishes. The platform swaps the Kundangi token at render
   (platform text, not a host-editable morph). The
   100vw negative-margin trick breaks it out of .panel-pad's max-width
   so the strip always spans edge to edge. */
.powered-by {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 26px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: rgba(20, 10, 28, .6);
  text-align: center;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 243, 224, .55);
}
.powered-by .link-footer { color: var(--pumpkin-glow); }

/* Mobile prev/next section arrows — the tab bar scrolls sideways on
   narrow screens; these icon buttons give an explicit previous/next
   control with the same wrap-around as the arrow keys. main.js shows
   them only while 2+ panels exist; the CSS shows them on phones only. */
.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55; /* below the lightbox (z 100) */
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(31, 16, 40, .9);
  color: var(--cream);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.nav-arrow:hover { transform: translateY(-50%) scale(1.06); background: var(--pumpkin); color: #170a02; }
.nav-arrow:focus-visible { outline: 2px solid var(--pumpkin-glow); outline-offset: 2px; }
.nav-arrow--prev { left: calc(10px + env(safe-area-inset-left)); }
.nav-arrow--next { right: calc(10px + env(safe-area-inset-right)); }
@media (max-width: 640px) {
  .nav-arrow:not([hidden]) { display: flex; }
}

/* ════════════════════════════════════════════════════════════════════
   LIGHTBOX — full-screen photo viewer (built by main.js)
   ════════════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  background: rgba(10, 5, 16, .95);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(92vw, 880px);
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 90px -30px rgba(0, 0, 0, .85);
  cursor: zoom-in;
  transition: transform .25s var(--ease);
}
/* Zoom state: the photo scales 2× and the viewer becomes a scrollable
   pane so guests can pan around — click the photo (or the zoom button)
   to toggle, click the dark backdrop to close. */
.lightbox.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.lightbox.is-zoomed img {
  max-width: none;
  max-height: none;
  transform: scale(2);
  transform-origin: 0 0;
  align-self: flex-start;
  cursor: zoom-out;
}
.lightbox-cap,
.lightbox-hint,
.lightbox-original { align-self: center; }
.lightbox-cap {
  margin: 14px 0 0;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pumpkin-glow);
  text-align: center;
}
.lightbox-hint {
  margin: 8px 0 0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 243, 224, .55);
  text-align: center;
}
.lightbox-original {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.lightbox-original:hover { background: var(--pumpkin); color: #170a02; }
.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-zoom {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(31, 16, 40, .8);
  color: var(--cream);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover, .lightbox-zoom:hover {
  background: var(--pumpkin);
  color: #170a02;
}
.lightbox-close:focus-visible, .lightbox-prev:focus-visible,
.lightbox-next:focus-visible, .lightbox-zoom:focus-visible {
  outline: 2px solid var(--pumpkin-glow);
  outline-offset: 2px;
}
.lightbox-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-zoom { bottom: calc(14px + env(safe-area-inset-bottom)); right: 14px; }
.lightbox-zoom svg { width: 19px; height: 19px; }
.lightbox-prev.is-hidden, .lightbox-next.is-hidden { display: none; }
@media (max-width: 560px) {
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ════════════════════════════════════════════════════════════════════
   MENU OVERLAY — full-screen section list (built by main.js)
   ════════════════════════════════════════════════════════════════════ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 122, 26, .14), transparent 55%),
    var(--ink);
}
.menu-overlay.is-open { display: flex; }
.menu-overlay-inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.menu-overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.menu-overlay-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--pumpkin);
}
.menu-overlay-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  font-size: 15px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.menu-overlay-close:hover { background: var(--pumpkin); color: #170a02; }
.menu-overlay-close:focus-visible { outline: 2px solid var(--pumpkin-glow); outline-offset: 2px; }
.menu-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 243, 224, .05);
  color: var(--cream);
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: left;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.menu-item svg { width: 20px; height: 20px; flex: none; color: var(--pumpkin-glow); }
.menu-item:hover { background: rgba(255, 243, 224, .1); border-color: var(--pumpkin); }
.menu-item:focus-visible { outline: 2px solid var(--pumpkin-glow); outline-offset: 2px; }
.menu-overlay-foot {
  margin: auto 0 0;
  padding-top: 28px;
  text-align: center;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 243, 224, .5);
}

/* ════════════════════════════════════════════════════════════════════
   SHARED PANEL CHROME (RSVP + guestbook)
   ════════════════════════════════════════════════════════════════════ */
.panel-eyebrow {
  margin: 0 0 6px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--pumpkin-glow);
}
.panel-eyebrow::before { content: '✦ '; }

.rsvp-wrap,
.guestbook-section {
  background: linear-gradient(180deg, #231230, #190c22);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 22px 30px;
  box-shadow: var(--shadow);
}

/* The platform removes every .rsvp-wrap / .guestbook-section element when
   the feature is toggled off, so the gate class also sits on the .panel
   itself — the whole section disappears with the toggle (no empty panel,
   no dead tab). As a full-viewport panel the card chrome (border/radius/
   shadow/padding) is dropped: the gradient fills the panel and .panel-pad
   supplies the spacing. The inner wrapper keeps the card look. */
.panel.rsvp-wrap,
.panel.guestbook-section {
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.rsvp-head { text-align: center; margin-bottom: 22px; }
.rsvp-title,
.guestbook-title {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--cream);
}
.rsvp-description,
.guestbook-description {
  margin: 0 auto;
  max-width: 34em;
  font-size: .95rem;
  color: var(--cream-soft);
}
.guest-greeting {
  margin: 12px 0 0;
  font-weight: 800;
  color: var(--pumpkin-glow);
}

/* countdown (shown only when the host sets an RSVP deadline) */
.countdown {
  margin-top: 20px;
  padding: 14px 10px 12px;
  border: 1px dashed rgba(255, 122, 26, .5);
  border-radius: var(--radius-sm);
  background: rgba(255, 122, 26, .08);
}
.countdown-label {
  margin: 0 0 10px;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ghost);
}
.countdown-grid { display: flex; justify-content: center; gap: 8px; }
.countdown-cell {
  min-width: 58px;
  padding: 8px 6px 6px;
  background: rgba(20, 10, 28, .6);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.countdown-cell span {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--pumpkin-glow);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.countdown-cell small {
  display: block;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 243, 224, .6);
  margin-top: 2px;
}

/* ─────────────────────────────── forms ─────────────────────────────── */
.form-group { margin: 0 0 16px; text-align: left; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--cream);
}
.label-hint { font-weight: 700; opacity: .65; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--cream);
  background: rgba(20, 10, 28, .55);
  border: 1.5px solid rgba(255, 243, 224, .22);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder { color: rgba(255, 243, 224, .35); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pumpkin);
  background: rgba(20, 10, 28, .8);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .22);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pumpkin-glow) 50%),
                    linear-gradient(135deg, var(--pumpkin-glow) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
select:invalid { color: rgba(255, 243, 224, .5); }

.error {
  display: block;
  margin-top: 5px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--error);
  min-height: 1em;
}
.field-hint {
  margin: 5px 0 0;
  font-size: .76rem;
  color: rgba(255, 243, 224, .5);
}

/* guest party fields — dimmed/tucked when declining */
.guest-fields {
  padding: 14px 14px 2px;
  border: 1px dashed rgba(255, 122, 26, .4);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  transition: opacity .25s;
}
.guest-fields.is-hidden-fields { display: none; }
.decline-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  color: var(--cream-soft);
  text-align: center;
}
.decline-note[hidden] { display: none; }

.form-submit { text-align: center; margin-top: 4px; }
.form-submit .btn { width: 100%; justify-content: center; }

/* platform states */
#rsvp-form .loading {
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--pumpkin-glow);
}
#rsvp-form .loading::before,
.loading-guestbook::before {
  content: '';
  display: inline-block;
  width: .95em;
  height: .95em;
  margin-right: .55em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -0.18em;
  animation: spin .8s linear infinite;
}

.thank-you-message {
  text-align: center;
  padding: 30px 12px 14px;
}
.thank-you-message h3, .thank-you-message h4 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.thank-you-message p {
  margin: 6px 0;
  color: var(--cream-soft);
  font-size: .95rem;
}
.thank-you-message small { color: rgba(255, 243, 224, .55); }

/* ════════════════════════════════════════════════════════════════════
   PLATFORM-INJECTED GUESTBOOK MARKUP
   (the platform replaces .guestbook-body with #guestbookForm,
   #comments-container and #load-more — we only style it)
   ════════════════════════════════════════════════════════════════════ */
#guestbookForm .form-group label { color: var(--cream); }
#guestbookForm .form-control {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  color: var(--cream);
  background: rgba(20, 10, 28, .55);
  border: 1.5px solid rgba(255, 243, 224, .22);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
#guestbookForm .form-control:focus {
  outline: none;
  border-color: var(--pumpkin);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .22);
}
#guestbookForm .error {
  display: block;
  margin-top: 5px;
  font-size: .78rem;
  font-weight: 800;
  color: var(--error);
  min-height: 1em;
}
.guestbook-chapta { margin: 14px 0; display: flex; justify-content: center; }
#guestbookForm button[type="submit"],
.guestbook-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, var(--pumpkin-glow), var(--pumpkin));
  color: #170a02;
  font: inherit;
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 122, 26, .35);
}
#guestbookForm button[type="submit"]:hover { box-shadow: 0 10px 30px rgba(255, 122, 26, .5); }
.loading-guestbook {
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 800;
  color: var(--pumpkin-glow);
}

/* message list (injected entries) */
#comments-container.guestbook-wrap {
  margin-top: 26px;
  border-top: 1px dashed var(--line-strong);
}
.guestbook-entry {
  padding: 16px 4px 14px;
  border-bottom: 1px dashed var(--line);
  text-align: left;
}
.guestbook-entry:last-child { border-bottom: 0; }
.guestbook-entry h5 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--pumpkin-glow);
}
.guestbook-entry p {
  margin: 0 0 5px;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--cream-soft);
}
.guestbook-entry small {
  font-size: .74rem;
  color: rgba(255, 243, 224, .5);
}
.more-guestbook-wrap { text-align: center; margin-top: 20px; }
#load-more {
  padding: 11px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}
#load-more:hover { border-color: var(--pumpkin); color: var(--pumpkin-glow); }

/* ─────────────────────── feature-off fallbacks ─────────────────────── */
.feature-fallback {
  margin-top: 22px;
  text-align: center;
  padding: 30px 22px;
  background: linear-gradient(180deg, #231230, #190c22);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.feature-fallback[hidden] { display: none; }
.feature-fallback .fallback-icon { margin: 0 0 8px; font-size: 2rem; }
.feature-fallback h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--cream);
}
.feature-fallback p:not(.fallback-icon) {
  margin: 0 auto;
  max-width: 30em;
  font-size: .92rem;
  color: var(--cream-soft);
}

/* ════════════════════════════════════════════════════════════════════
   MOTION & ACCESSIBILITY
   ════════════════════════════════════════════════════════════════════ */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes bat-drift {
  0%   { transform: translateX(0) translateY(0) scale(.9); }
  25%  { transform: translateX(34vw) translateY(-26px) scale(1.05); }
  50%  { transform: translateX(68vw) translateY(10px) scale(.95); }
  75%  { transform: translateX(102vw) translateY(-14px) scale(1); }
  100% { transform: translateX(140vw) translateY(6px) scale(.9); }
}

@keyframes pumpkin-flicker {
  0%, 100% { opacity: 1; }
  92%      { opacity: 1; }
  93%      { opacity: .82; }
  94%      { opacity: 1; }
  97%      { opacity: .9; }
  98%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    scroll-behavior: auto !important;
  }
  .panel { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .poster-boo { animation: boo-wobble 5s ease-in-out infinite; }
}

@keyframes boo-wobble {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(-2deg) translateY(-3px); }
}

/* ════════════════════════════════════════════════════════════════════
   NO-JS FALLBACK — without JavaScript every panel shows, stacked
   ════════════════════════════════════════════════════════════════════ */
html.no-js .app { height: auto; }
html.no-js .app-main { position: static; }
html.no-js .panel {
  position: static;
  visibility: visible;
  opacity: 1;
  transform: none;
  height: auto;
  overflow: visible;
  transition: none;
}
html.no-js .app-tabs { display: none; }
html.no-js .deco-bats { display: none; }
html.no-js .head-menu { display: none; }
html.no-js .poster-photo, html.no-js .poster-photo-open { display: none; }

/* ════════════════════════════════════════════════════════════════════
   PRINT — every panel printable, stacked
   ════════════════════════════════════════════════════════════════════ */
@media print {
  body { background: #fff; }
  .app { height: auto; display: block; overflow: visible; }
  .app-header, .app-tabs, .deco-bats, .deco-web, .poster-tape,
  .menu-overlay, .lightbox, .film-embed, .poster-photo, .poster-photo-open { display: none !important; }
  .app-main { position: static; }
  .panel {
    position: static;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    height: auto;
    overflow: visible;
    margin-bottom: 26px;
    page-break-after: always;
  }
  .panel:last-child { page-break-after: auto; }
  .poster, .rsvp-wrap, .guestbook-section, .feature-fallback, .free-block {
    box-shadow: none;
    border: 1px solid #999;
  }
  .poster-title { -webkit-text-stroke: 0; }
  a { color: inherit; }
}

/* small screens: tighten spacing */
@media (max-width: 380px) {
  .poster { padding: 26px 16px 20px; }
  .chip { font-size: .84rem; padding: 8px 12px; }
}
