/* Alejandro’s 3rd — mobile-first, dark Raimi-era Spider-Man energy */

@font-face {
  font-family: "Furious Night";
  src:
    url("/static/fonts/FuriousNight-Regular.woff2") format("woff2"),
    url("/static/fonts/FuriousNight-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #05060c;
  --panel: rgba(12, 14, 28, 0.72);
  --text: #f4f7ff;
  --muted: #a8b4d6;
  --line: rgba(255, 255, 255, 0.12);
  --glow-blue: rgba(80, 140, 255, 0.45);
  --glow-red: rgba(255, 60, 60, 0.4);
  --hero-grad: linear-gradient(
    125deg,
    #0a1838 0%,
    #1a0a28 38%,
    #2a0a14 72%,
    #0f0618 100%
  );
  --panel-grad: linear-gradient(
    160deg,
    rgba(18, 40, 90, 0.55) 0%,
    rgba(40, 12, 24, 0.65) 55%,
    rgba(8, 10, 22, 0.85) 100%
  );
  --btn-grad: linear-gradient(
    135deg,
    #1e4a9a 0%,
    #3a0a28 48%,
    #8a1520 100%
  );
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-top: env(safe-area-inset-top, 0);
  --itinerary-bubble-bottom-reserve: clamp(3.1rem, 12vw, 4.2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(80, 120, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 40%, rgba(200, 40, 40, 0.12), transparent 50%),
    linear-gradient(180deg, #04060e 0%, #070a14 40%, #030308 100%);
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
}

@keyframes hero-display-soft {
  0%,
  100% {
    transform: translateY(0);
    text-shadow:
      0 2px 0 #0a0e1a,
      0 0 28px rgba(80, 140, 255, 0.35),
      0 0 48px rgba(255, 50, 50, 0.2);
  }
  50% {
    transform: translateY(-2px);
    text-shadow:
      0 2px 0 #0a0e1a,
      0 0 38px rgba(100, 165, 255, 0.48),
      0 0 58px rgba(255, 70, 70, 0.3);
  }
}

@keyframes glow-display-soft {
  0%,
  100% {
    transform: translateY(0);
    text-shadow: 0 0 20px var(--glow-blue);
  }
  50% {
    transform: translateY(-2px);
    text-shadow: 0 0 32px rgba(110, 175, 255, 0.55);
  }
}

@keyframes after-heading-soft {
  0%,
  100% {
    transform: translateY(0);
    text-shadow: 0 0 24px var(--glow-blue), 0 0 40px var(--glow-red);
  }
  50% {
    transform: translateY(-2px);
    text-shadow:
      0 0 32px rgba(100, 170, 255, 0.55),
      0 0 52px rgba(255, 90, 90, 0.35);
  }
}

/* RSVP PNG cards: timing + phase are randomized in birthday.js so images are not in sync */
@keyframes rsvp-card-float-a {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.45),
      0 0 40px rgba(60, 100, 200, 0.08);
  }
  50% {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
      0 18px 38px rgba(0, 0, 0, 0.52),
      0 0 56px rgba(90, 145, 235, 0.28);
  }
}

@keyframes rsvp-card-float-b {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.45),
      0 0 40px rgba(60, 100, 200, 0.08);
  }
  35% {
    transform: translateY(-4px) scale(1.015);
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.48),
      0 0 48px rgba(75, 125, 220, 0.18);
  }
  65% {
    transform: translateY(-9px) scale(1.035);
    box-shadow:
      0 20px 42px rgba(0, 0, 0, 0.54),
      0 0 60px rgba(100, 160, 245, 0.32);
  }
}

.display {
  font-family: "Furious Night", "Bangers", "Anton", Impact, system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-wrap {
  position: relative;
  z-index: 5;
  max-width: 34rem;
  margin: 0 auto;
  padding: calc(1.25rem + var(--safe-top)) 1.15rem calc(2.5rem + var(--safe-bottom));
  text-align: center;
}

/* ---- Comic bursts: inset layer so bursts sit in margin gutters, not over body copy ---- */
.comic-surface {
  position: absolute;
  top: clamp(0.55rem, 3.2vw, 1.15rem);
  left: clamp(0.55rem, 3.2vw, 1.15rem);
  right: clamp(0.55rem, 3.2vw, 1.15rem);
  bottom: clamp(0.55rem, 3.2vw, 1.15rem);
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  border-radius: inherit;
}

/* Jagged starburst speech bubble; tail bottom-right; yellow fill + red stroke from JS */
.comic-speech {
  position: absolute;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  min-height: 3.25rem;
  max-width: min(12rem, calc(100% - 0.5rem));
  padding: 0.35rem 0.75rem 0.55rem 0.85rem;
  filter: drop-shadow(2px 4px 0 rgba(139, 0, 0, 0.45));
  box-sizing: border-box;
}

.comic-speech--decor {
  transform-origin: center center;
  min-width: 4.5rem;
  min-height: 2.75rem;
  max-width: min(9rem, calc(100% - 1rem));
}

.comic-speech--decor .comic-speech-label {
  font-size: clamp(0.92rem, 3.4vw, 1.22rem);
}

/* Grey halftone oval behind the burst (classic comic newsprint) */
.comic-speech::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 155%;
  height: 175%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.42;
  background-image: radial-gradient(circle, rgba(55, 55, 65, 0.42) 1px, transparent 1.35px);
  background-size: 4px 4px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 48%, #000 28%, transparent 72%);
  mask-image: radial-gradient(ellipse 72% 68% at 50% 48%, #000 28%, transparent 72%);
}

.comic-speech--decor::before {
  width: 125%;
  height: 140%;
  opacity: 0.3;
}

.comic-speech-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.comic-speech-label {
  position: relative;
  z-index: 2;
  font-family: "Bangers", "Anton", Impact, system-ui, sans-serif;
  font-size: clamp(1.05rem, 4vw, 1.45rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #b71c1c;
  text-align: center;
  line-height: 1;
  padding: 0.15rem 0.25rem 0;
  text-shadow:
    0 1px 0 #fff8e1,
    0 -1px 0 rgba(0, 0, 0, 0.08),
    1px 1px 0 rgba(0, 0, 0, 0.12);
}

.comic-speech--flash {
  position: relative;
  left: auto;
  top: auto;
  max-width: none;
  min-width: 12rem;
  min-height: 7rem;
  padding: 0.85rem 1.35rem 1.15rem 1.5rem;
  filter: drop-shadow(4px 8px 0 rgba(139, 0, 0, 0.5));
}

.comic-speech--flash .comic-speech-label {
  font-size: clamp(2.25rem, 11vw, 3.75rem);
  letter-spacing: 0.09em;
  text-shadow:
    0 2px 0 #fff8e1,
    0 -1px 0 rgba(0, 0, 0, 0.06),
    2px 2px 0 rgba(0, 0, 0, 0.14);
}

.comic-flash-root {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comic-flash {
  animation: comic-flash-pop 1.1s ease-out forwards;
}

@keyframes comic-flash-pop {
  0% {
    opacity: 0;
    transform: scale(0.4) rotate(-6deg);
  }
  18% {
    opacity: 1;
    transform: scale(1.06) rotate(2deg);
  }
  72% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.98) rotate(0deg);
  }
}

/* ---- After-party featured strip ---- */
.after-strip {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.1rem;
  border-radius: 1rem;
  border: none;
  background: transparent;
  box-shadow: none;
}

.after-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--panel-grad);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(60, 100, 255, 0.08);
  z-index: 0;
}

.after-strip > *:not(.comic-surface) {
  position: relative;
  z-index: 2;
}

.after-strip h2.display {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1.05;
  text-shadow: 0 0 24px var(--glow-blue), 0 0 40px var(--glow-red);
  animation: after-heading-soft 4.8s ease-in-out infinite;
}

.after-countdown {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.75rem 0 1rem;
  color: #e8edff;
}

.upload-zone {
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
}

.upload-zone input[type="file"] {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.upload-status {
  min-height: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Full-screen busy state while party media uploads & server normalizes (FFmpeg, etc.) */
.party-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.party-upload-overlay[hidden] {
  display: none !important;
}

.party-upload-overlay-card {
  max-width: 22rem;
  padding: 1.5rem 1.35rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--panel-grad);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 16px 48px rgba(0, 0, 0, 0.55);
}

.party-upload-spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #7ae8ff;
  border-radius: 50%;
  animation: party-upload-spin 0.85s linear infinite;
}

@keyframes party-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.party-upload-overlay-msg {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: #e8edff;
  text-shadow: 0 0 12px rgba(100, 200, 255, 0.25);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 1rem;
}

.media-grid a {
  display: block;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  background: #111;
}

.media-grid img,
.media-grid video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: 1.15rem;
  overflow: visible;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.15rem;
  background: var(--hero-grad);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 80, 200, 0.15),
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(200, 40, 60, 0.12);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.15rem;
  background-image: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 11px,
    rgba(255, 255, 255, 0.02) 11px,
    rgba(255, 255, 255, 0.02) 12px
  );
  pointer-events: none;
  opacity: 0.5;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8c8ff;
  margin-bottom: 0.5rem;
}

.hero h1.display {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 9vw, 2.85rem);
  line-height: 0.98;
  text-shadow:
    0 2px 0 #0a0e1a,
    0 0 28px rgba(80, 140, 255, 0.35),
    0 0 48px rgba(255, 50, 50, 0.2);
  animation: hero-display-soft 4.8s ease-in-out infinite;
}

.hero-sub {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: #dbe4ff;
  font-weight: 600;
}

.hero-details {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 1rem;
}

.hero-details li {
  margin-bottom: 0.45rem;
  padding-left: 0;
  color: #e6ecff;
}

.hero-details li::before {
  content: "◆";
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.65rem;
  color: #ff4b4b;
  text-shadow: 0 0 8px rgba(100, 160, 255, 0.8);
  vertical-align: 0.05em;
}

.hero-address-box {
  margin: 0 auto 1.25rem;
  max-width: 20rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-address-line {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #e8edff;
  letter-spacing: 0.02em;
}

.hero-address-line + .hero-address-line {
  margin-top: 0.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn-comic {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 0.9rem 1.15rem;
  border-radius: 0.55rem;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  min-width: 44px;
  background: var(--btn-grad);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 4px 0 rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 40, 120, 0.35),
    0 0 24px rgba(255, 60, 60, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.btn-comic:active {
  transform: translateY(2px);
  filter: brightness(1.05);
}

.btn-comic.secondary {
  background: linear-gradient(135deg, #142a52 0%, #301018 100%);
}

/* ---- Countdown ---- */
.countdown-panel {
  position: relative;
  margin: 1.35rem 0 1.5rem;
  padding: 1.35rem 1.15rem;
  border-radius: 1rem;
  border: none;
  background: transparent;
  text-align: center;
}

.countdown-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--panel-grad);
  z-index: 0;
}

.countdown-panel > *:not(.comic-surface) {
  position: relative;
  z-index: 2;
}

.countdown-panel .display {
  font-size: clamp(1.65rem, 7vw, 2.4rem);
  margin: 0 0 0.35rem;
  line-height: 1.05;
  text-shadow: 0 0 20px var(--glow-blue);
  animation: glow-display-soft 4.8s ease-in-out infinite;
}

.countdown-panel .sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.countdown-precision {
  margin: 0.75rem 0 0;
  font-size: clamp(1rem, 4.2vw, 1.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #e0e8ff;
  text-shadow: 0 0 12px rgba(100, 160, 255, 0.35);
}

.countdown-precision:empty {
  display: none;
}

/* ---- Sections ---- */
section.panel {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 1.25rem 1.1rem;
  border-radius: 1rem;
  border: none;
  background: transparent;
  box-shadow: none;
}

/* Itinerary copy runs near the lower edge; reserve room for bottom-corner comic bubbles. */
section.panel[aria-labelledby="itinerary-heading"] {
  padding-bottom: calc(1.25rem + var(--itinerary-bubble-bottom-reserve));
}

section.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(10, 12, 24, 0.65);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 0;
}

section.panel > *:not(.comic-surface) {
  position: relative;
  z-index: 2;
}

section.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8d6ff;
}

section.panel h3.gifts-likes-heading {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c8d6ff;
}

.gifts-likes-badges {
  justify-content: flex-start;
}

section.panel p {
  margin: 0 0 0.75rem;
  color: #dfe6f7;
}

section.panel p:last-child {
  margin-bottom: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.like-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem 0.3rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(30, 70, 160, 0.35), rgba(120, 20, 40, 0.35));
}

.like-badge--text-only {
  padding: 0.35rem 0.65rem;
}

.like-badge__img {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.like-badge__label {
  min-width: 0;
  text-align: left;
}

/* ---- Favorite image lightbox (Bootstrap-style modal, site-themed) ---- */
.like-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  box-sizing: border-box;
}

.like-lightbox[hidden] {
  display: none !important;
}

.like-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(5, 6, 12, 0.86);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.like-lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(52rem, 100%);
  max-height: min(92vh, 100%);
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(
    165deg,
    rgba(18, 28, 52, 0.98) 0%,
    rgba(12, 14, 28, 0.99) 100%
  );
  box-shadow:
    0 1rem 2.5rem rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(80, 140, 255, 0.08);
}

.like-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.65rem 0.65rem 0.65rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.like-lightbox__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8d6ff;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.like-lightbox__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.06);
  color: #dfe6f7;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.like-lightbox__close:hover {
  background: rgba(220, 53, 69, 0.35);
  color: #fff;
}

.like-lightbox__close:focus-visible {
  outline: 2px solid rgba(100, 160, 255, 0.85);
  outline-offset: 2px;
}

.like-lightbox__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1;
  padding: 0.75rem 1rem 1rem;
  background: rgba(0, 0, 0, 0.15);
}

.like-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, calc(100vh - 9rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.25rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.35);
}

.list-plain {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
  color: #dfe6f7;
  text-align: center;
}

.list-plain li {
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--muted);
}

/* ---- RSVP ---- */
#rsvp {
  padding-bottom: 1.5rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.rsvp-form label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #c5d2f5;
  text-align: center;
}

.rsvp-form input {
  width: 100%;
  padding: 0.85rem 0.95rem;
  font-size: 1.05rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  text-align: center;
}

.rsvp-form input:focus {
  outline: 2px solid rgba(100, 160, 255, 0.6);
  outline-offset: 2px;
}

.rsvp-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.rsvp-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.5rem;
  align-items: start;
}

@media (min-width: 28rem) {
  .rsvp-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 0.55rem;
  }
}

.rsvp-cards img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(60, 100, 200, 0.08);
  animation-name: rsvp-card-float-a;
  animation-duration: 5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-delay: 0s;
  /* animation-duration, animation-delay, animation-name overridden per image in JS */
}

@media (prefers-reduced-motion: reduce) {
  .hero h1.display,
  .countdown-panel .display,
  .after-strip h2.display {
    animation: none;
  }

  .rsvp-cards img {
    animation: none !important;
  }
}

.rsvp-status {
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: #a8ffb8;
}

.rsvp-status.error {
  color: #ff9b9b;
}

/* ---- Footer ---- */
footer.site-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

footer.site-footer a {
  color: #9ec0ff;
}

/* ---- Language selector (matches theme.css behavior; styled for dark party page) ---- */
.language-selector {
  position: fixed;
  bottom: calc(1rem + var(--safe-bottom));
  right: 1rem;
  z-index: 60;
  max-width: min(16rem, calc(100vw - 2rem));
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 14, 28, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.language-selector-label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
}

.language-selector select {
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
}

.language-selector select:focus-visible {
  outline: 2px solid var(--glow-blue);
  outline-offset: 2px;
}

@media (min-width: 420px) {
  .hero-actions {
    flex-wrap: nowrap;
  }
}
