/* ============================================================
   90s / Y2K NOSTALGIC BURGUNDY & CREAM BIRTHDAY INVITATION
   Velvet Wine #4E0712 | Editorial Cream #F7F1E7 | Foil Blush #F3A8BC
   ============================================================ */

:root {
  --wine-dark: #3a040c;
  --wine: #4e0712;
  --wine-rich: #670f1d;
  --wine-soft: #8c2a3a;
  --cream-bg: #f7f1e7;
  --cream-panel: #efe6d8;
  --blush: #f3a8bc;
  --ink: #4e0712;
  --ink-muted: #7d4750;
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'La Belle Aurore', cursive;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-editorial);
  background: radial-gradient(circle at top, #e8ddd0 0%, #cfc0b0 100%);
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

body.locked {
  overflow: hidden;
  height: 100dvh;
}

.desktop-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.backdrop-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.25;
}

.orb-wine {
  width: 440px;
  height: 440px;
  background: var(--wine);
  top: -120px;
  left: -100px;
}

.orb-blush {
  width: 420px;
  height: 420px;
  background: var(--blush);
  bottom: -120px;
  right: -100px;
}

/* Mobile-First Shell */
.mobile-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--cream-bg);
  box-shadow: 0 20px 60px rgba(58, 4, 12, 0.25);
  overflow-x: hidden;
}

/* ============================================================
   SECTION 0: VELVET BURGUNDY ENVELOPE COVER
   ============================================================ */
.cover-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  z-index: 200;
  background: radial-gradient(circle at 50% 62%, #4a0711 0%, #37040b 55%, #230206 100%);
  color: #f7efe5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.cover-screen.opened {
  transform: translate(-50%, -105%);
  opacity: 0;
  pointer-events: none;
}

.velvet-texture {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* 3D Envelope Side & Bottom Pocket Folds */
.envelope-pocket-left,
.envelope-pocket-right,
.envelope-pocket-bottom {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.envelope-pocket-left {
  background: linear-gradient(120deg, #530915 0%, #3b050d 55%, #280207 100%);
  clip-path: polygon(0 28%, 50% 56%, 0 100%);
  opacity: 0.75;
}

.envelope-pocket-right {
  background: linear-gradient(240deg, #530915 0%, #3b050d 55%, #280207 100%);
  clip-path: polygon(100% 28%, 50% 56%, 100% 100%);
  opacity: 0.75;
}

.envelope-pocket-bottom {
  background: linear-gradient(180deg, #3f050e 0%, #4d0813 42%, #31030a 100%);
  clip-path: polygon(0 92%, 50% 52%, 100% 92%, 100% 100%, 0 100%);
  box-shadow: inset 0 24px 36px rgba(0, 0, 0, 0.55);
}

/* 3D Triangular Folded Envelope Flap — filter on PARENT so shadow is never clipped! */
.envelope-flap {
  position: absolute;
  top: 0;
  left: -4px;
  right: -4px;
  height: 55.5%;
  pointer-events: none;
  z-index: 2;
  transform-origin: top center;
  filter:
    drop-shadow(0 22px 24px rgba(0, 0, 0, 0.88))
    drop-shadow(0 8px 10px rgba(0, 0, 0, 0.72))
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.cover-screen.unsealing .envelope-flap {
  transform: rotateX(155deg);
}

.envelope-flap-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 28%, #6d101f 0%, #550916 48%, #3c040c 100%);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 54% 96%, 50% 99%, 46% 96%, 0 60%);
}

/* Subtle paper thickness highlight along the V-flap edge */
.envelope-flap-edge {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 225, 230, 0.08) 0%,
    rgba(255, 225, 230, 0.02) 55%,
    rgba(255, 210, 218, 0.14) 98%,
    rgba(255, 225, 230, 0.24) 100%
  );
}

.cover-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.cover-invited {
  margin-top: -10px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 500;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: 2px;
  color: #f8f0e6;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
}

.wax-seal-btn {
  position: relative;
  margin-top: 22px;
  width: 124px;
  height: 124px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.wax-seal-btn:hover { transform: scale(1.06); }
.wax-seal-btn:active { transform: scale(0.95); }

.seal-pulse {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 168, 188, 0.45);
  animation: sealRipple 2.2s ease-out infinite;
}

@keyframes sealRipple {
  0% { transform: scale(0.92); opacity: 0.85; }
  100% { transform: scale(1.38); opacity: 0; }
}

.wax-seal-img {
  position: relative;
  z-index: 2;
  width: 114px;
  height: 114px;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 16px rgba(0, 0, 0, 0.85))
    drop-shadow(0 4px 5px rgba(0, 0, 0, 0.7));
}

.cover-guest-box {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cover-dear {
  font-family: var(--font-script);
  font-size: 20px;
  color: var(--blush);
}

.cover-guest-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.cover-open-cta {
  margin-top: 6px;
  border: none;
  background: transparent;
  color: #f8f0e6;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(248, 240, 230, 0.45);
  transition: opacity 0.2s ease;
}

.cover-open-cta:hover { opacity: 0.8; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.main-content {
  padding-bottom: 84px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION 1: SPLIT BENTO EDITORIAL HERO
   ============================================================ */
.hero-bento {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  min-height: 490px;
  background: var(--cream-bg);
  position: relative;
}

.bento-left {
  background: var(--cream-panel);
  padding: 28px 14px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.script-tagline {
  font-family: var(--font-script);
  font-size: 25px;
  line-height: 1.05;
  color: var(--wine);
  margin-bottom: 8px;
}

.script-tagline span {
  display: inline-block;
}

.tiny-caps {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.4;
  color: var(--wine-soft);
  margin-bottom: 6px;
}

.cassette-stage {
  position: relative;
  width: 170px;
  margin: 2px auto 6px;
}

.cassette-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(78, 7, 18, 0.22));
  animation: gentleTilt 4.5s ease-in-out infinite;
}

@keyframes gentleTilt {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.cassette-label-text {
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translateX(-50%) rotate(-5deg);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--wine);
  pointer-events: none;
}

.hero-editorial-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.05;
  color: var(--wine);
  margin-bottom: 8px;
}

.hero-mini-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: var(--wine-soft);
}

.cake-accent {
  margin-top: auto;
  padding-top: 12px;
  align-self: flex-start;
  margin-left: -6px;
}

/* Right Burgundy Column */
.bento-right {
  background: var(--wine);
  color: #f8f0e6;
  padding: 16px 10px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: visible;
}

.balloon-wrap {
  width: 158px;
  margin-top: -10px;
  margin-left: -20px;
  z-index: 4;
}

.balloon-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.float-slow {
  animation: floatBalloon 3.8s ease-in-out infinite;
}

@keyframes floatBalloon {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.envelope-corner-fold {
  position: absolute;
  top: 125px;
  left: 0;
  right: 0;
  height: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transform: skewY(-12deg);
  pointer-events: none;
}

.headphones-stage {
  position: relative;
  z-index: 4;
  border: none;
  background: transparent;
  color: #f8f0e6;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px;
}

.tap-play-caption {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 16px;
  line-height: 1.15;
  color: #f8e8ec;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.headphones-img {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}

.headphones-img.playing {
  animation: headBob 1.1s ease-in-out infinite;
}

@keyframes headBob {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.05) rotate(2deg); }
}

.play-status-pill {
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(243, 168, 188, 0.22);
  border: 1px solid rgba(243, 168, 188, 0.55);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  color: #ffe8ef;
}

/* ============================================================
   SECTION 2: THE PARTY DETAILS + POLAROID ACCENT
   ============================================================ */
.details-section {
  padding: 26px 20px 26px;
  background: var(--cream-bg);
}

.polaroid-accent-wrap {
  display: grid;
  grid-template-columns: 146px 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px dashed rgba(78, 7, 18, 0.22);
}

.polaroid-card {
  position: relative;
  border: none;
  background: #ffffff;
  padding: 8px 8px 24px;
  box-shadow: 0 10px 24px rgba(78, 7, 18, 0.18);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease;
}

.polaroid-card.tilt-left {
  transform: rotate(-3.5deg);
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.03);
}

.washi-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 58px;
  height: 18px;
  background: rgba(243, 168, 188, 0.65);
  border-left: 1px dashed rgba(255, 255, 255, 0.7);
  border-right: 1px dashed rgba(255, 255, 255, 0.7);
}

.polaroid-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.polaroid-cap {
  margin-top: 7px;
  font-family: var(--font-script);
  font-size: 15px;
  line-height: 1;
  color: var(--wine);
}

.polaroid-side-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}

.side-quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 16px;
  line-height: 1.38;
  color: var(--wine);
}

.details-head {
  text-align: center;
  margin-bottom: 24px;
}

.script-sub {
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--wine-soft);
  margin-bottom: -4px;
}

.editorial-h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--wine);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.detail-col {
  text-align: left;
}

.detail-num {
  display: block;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 13px;
  color: var(--wine-soft);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(78, 7, 18, 0.35);
  margin-bottom: 8px;
}

.detail-title {
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.8px;
  color: var(--wine);
  margin-bottom: 6px;
}

.detail-body {
  font-family: var(--font-editorial);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.detail-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editorial-link,
.editorial-link-btn {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
  color: var(--wine);
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
}

.palette-dots {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.p-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(78, 7, 18, 0.25);
}

.p-dot.wine { background: #4e0712; }
.p-dot.blush { background: #f3a8bc; }
.p-dot.cream { background: #f2e6d8; }
.p-dot.noir { background: #1c1718; }

/* ============================================================
   SECTION 3: 35MM FILMSTRIP, RETRO CAMERA & INTERACTIVE GALLERY
   ============================================================ */
.gallery-section {
  padding: 20px 18px 34px;
  background: var(--cream-bg);
}

.gallery-head {
  text-align: center;
  margin-bottom: 18px;
}

.filmstrip-wrap {
  background: #3d0610;
  border-top: 2px solid #2a0309;
  border-bottom: 2px solid #2a0309;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 10px 22px rgba(78, 7, 18, 0.22);
}

.film-perfs {
  height: 9px;
  background-image: repeating-linear-gradient(
    90deg,
    #f7f1e7 0px,
    #f7f1e7 11px,
    transparent 11px,
    transparent 19px
  );
  margin: 0 2px;
}

.film-perfs.top { margin-bottom: 7px; }
.film-perfs.bottom { margin-top: 7px; }

.film-frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.film-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border: none;
  border-radius: 3px;
  overflow: hidden;
  background: #1a0408;
  cursor: pointer;
  padding: 0;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.film-frame:hover img {
  transform: scale(1.06);
}

.film-tag {
  position: absolute;
  bottom: 4px;
  right: 5px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  color: #f8f0e6;
  background: rgba(78, 7, 18, 0.82);
  padding: 1px 5px;
  border-radius: 3px;
}

.camera-collage-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 10px;
}

.camera-sticker-btn {
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: inline-block;
}

.retro-cam-img {
  width: 100%;
  max-width: 185px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 16px rgba(78, 7, 18, 0.22));
  transition: transform 0.25s ease;
}

.camera-sticker-btn:hover .retro-cam-img { transform: rotate(-2deg) scale(1.02); }

/* Nostalgic childhood photo inside camera back LCD screen */
.cam-lcd-frame {
  position: absolute;
  bottom: 19%;
  left: 16%;
  width: 48%;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  border: 2px solid #2b040a;
  overflow: hidden;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cam-lcd-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cam-rec-dot {
  position: absolute;
  top: 2px;
  left: 4px;
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 700;
  color: #ffdfe6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* Gallery Category Filters */
.gallery-filters {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.gal-filter {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.2px solid rgba(78, 7, 18, 0.35);
  background: #fffaf3;
  color: var(--wine);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gal-filter.is-active {
  background: var(--wine);
  color: #f8f0e6;
  border-color: var(--wine);
}

/* Interactive Polaroid Scrapbook Grid */
.polaroid-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pol-grid-card {
  border: none;
  background: #ffffff;
  padding: 8px 8px 18px;
  box-shadow: 0 8px 20px rgba(78, 7, 18, 0.14);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pol-grid-card.tilt-l { transform: rotate(-1.8deg); }
.pol-grid-card.tilt-r { transform: rotate(1.8deg); }
.pol-grid-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 14px 26px rgba(78, 7, 18, 0.22);
}

.pol-grid-card.is-hidden {
  display: none;
}

.pol-grid-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.pol-grid-cap {
  margin-top: 8px;
  font-family: var(--font-script);
  font-size: 16px;
  line-height: 1.1;
  color: var(--wine);
}

.then-now-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.then-now-pill {
  padding: 3px 10px;
  border: 1px solid var(--wine);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--wine);
  background: #fdebf0;
}

.then-now-note {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-muted);
}

/* ============================================================
   SECTION 4: RETRO Y2K birthday.exe COUNTDOWN WINDOW
   ============================================================ */
.retro-window-section {
  padding: 18px 18px 26px;
  background: var(--cream-bg);
}

.retro-window {
  border: 2px solid var(--wine);
  background: #efe8dd;
  box-shadow: 4px 4px 0 rgba(78, 7, 18, 0.28);
}

.retro-titlebar {
  background: var(--wine);
  color: #f7efe5;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.retro-win-btns {
  display: flex;
  gap: 4px;
}

.retro-win-btns span {
  width: 16px;
  height: 16px;
  background: #efe8dd;
  color: var(--wine);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b0208;
}

.retro-body {
  padding: 16px 14px 14px;
  text-align: center;
}

.retro-loading-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--wine);
  margin-bottom: 10px;
}

.retro-timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.rt-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}

.rt-num {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  color: var(--wine-dark);
}

.rt-lbl {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--wine-soft);
}

.rt-sep {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--wine);
}

/* Segmented Progress Bar */
.retro-progress-track {
  height: 18px;
  border: 1.5px solid var(--wine);
  background: #f9f5ee;
  padding: 2px;
  margin-bottom: 14px;
}

.retro-progress-blocks {
  height: 100%;
  display: flex;
  gap: 3px;
}

.prog-seg {
  flex: 1;
  background: var(--wine);
  opacity: 0.16;
  transition: opacity 0.25s ease;
}

.prog-seg.filled {
  opacity: 0.92;
}

.retro-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.retro-era-text {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  color: var(--wine);
}

.retro-bevel-btn {
  padding: 7px 12px;
  background: #f7f1e7;
  color: var(--wine);
  border: 1.5px solid var(--wine);
  box-shadow: 2px 2px 0 var(--wine);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.retro-bevel-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--wine);
}

.calendar-save-wrap {
  margin-top: 14px;
  text-align: center;
}

.btn-wine-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--wine);
  color: var(--wine);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
}

/* ============================================================
   SECTION 5: WAVY SCALLOP BURGUNDY RSVP + PINK PHONE
   ============================================================ */
.rsvp-section {
  position: relative;
  padding: 28px 16px 24px;
  background: var(--cream-bg);
}

.rsvp-phone-stage {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  margin-bottom: -58px;
  padding-right: 4px;
}

.pink-phone-img {
  width: 145px;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(78, 7, 18, 0.25));
}

.phone-ring {
  animation: phoneWiggle 4.5s ease-in-out infinite;
}

@keyframes phoneWiggle {
  0%, 84%, 100% { transform: rotate(0deg); }
  88% { transform: rotate(-5deg); }
  92% { transform: rotate(5deg); }
  96% { transform: rotate(-3deg); }
}

.scallop-card {
  position: relative;
  z-index: 4;
}

.wave-edge {
  display: block;
  width: 100%;
  height: 20px;
}

.scallop-inner {
  background: var(--wine);
  color: #f8f0e6;
  padding: 26px 22px 24px;
}

.rsvp-editorial-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.05;
  text-align: center;
  color: #f8f0e6;
}

.rsvp-deadline {
  text-align: center;
  font-family: var(--font-editorial);
  font-size: 16px;
  color: #f0d7dc;
  margin-top: 4px;
  margin-bottom: 20px;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.r-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.r-field label {
  font-family: var(--font-editorial);
  font-size: 15px;
  color: #f8e5ea;
}

.r-field input,
.r-field textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 4px;
  border: 1px solid rgba(248, 229, 234, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: var(--font-editorial);
  font-size: 15px;
  outline: none;
}

.r-field input::placeholder,
.r-field textarea::placeholder {
  color: rgba(248, 229, 234, 0.45);
}

.r-field input:focus,
.r-field textarea:focus {
  border-color: var(--blush);
  background: rgba(255, 255, 255, 0.1);
}

.attend-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attend-opt {
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: 4px;
  border: 1px solid rgba(248, 229, 234, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f2dce2;
  font-family: var(--font-editorial);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.attend-opt.is-selected {
  background: rgba(243, 168, 188, 0.26);
  border-color: var(--blush);
  color: #ffffff;
  font-weight: 700;
}

.btn-rsvp-white {
  margin-top: 4px;
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: none;
  background: #ffffff;
  color: var(--wine);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-rsvp-ghost {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(248, 229, 234, 0.35);
  background: transparent;
  color: #f8e5ea;
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
}

.rsvp-footnote {
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  font-style: italic;
  color: rgba(248, 229, 234, 0.72);
}

/* Wishes Wall */
.wishes-section {
  margin-top: 24px;
}

.wishes-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(78, 7, 18, 0.2);
}

.script-wishes {
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--wine);
}

.wishes-counter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--wine-soft);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fffaf3;
  border: 1px solid rgba(78, 7, 18, 0.16);
}

.wish-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.wish-author {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--wine);
}

.wish-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f9e3e9;
  color: var(--wine);
}

.wish-msg {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.wish-time {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #9e757c;
}

/* ============================================================
   FOOTER
   ============================================================ */
.editorial-footer {
  padding: 22px 20px 30px;
  text-align: center;
  background: var(--cream-panel);
  border-top: 1px solid rgba(78, 7, 18, 0.14);
}

.footer-script {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--wine);
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--wine-soft);
  margin-bottom: 14px;
}

.btn-share-guest {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   FLOATING CONTROLS & STICKY BOTTOM NAV
   ============================================================ */
.floating-controls {
  position: fixed;
  right: max(12px, calc(50% - 203px));
  bottom: 76px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.floating-controls.visible {
  opacity: 1;
  pointer-events: auto;
}

.fab-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 168, 188, 0.7);
  background: rgba(78, 7, 18, 0.9);
  color: #f8f0e6;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(58, 4, 12, 0.35);
}

.fab-btn.playing {
  border-color: #ffffff;
  background: #670f1d;
}

.bottom-nav {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 406px;
  z-index: 130;
  padding: 6px;
  border-radius: 18px;
  background: rgba(78, 7, 18, 0.94);
  border: 1.5px solid rgba(243, 168, 188, 0.4);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 26px rgba(58, 4, 12, 0.38);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.bottom-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(248, 229, 234, 0.72);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
}

.nav-ic { font-size: 15px; }

.nav-item.active {
  background: #f7f1e7;
  color: var(--wine);
}

/* ============================================================
   MODALS & TOAST
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(45, 4, 10, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 370px;
  padding: 22px 18px 20px;
  border-radius: 18px;
  background: var(--cream-bg);
  border: 2px solid var(--wine);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(78, 7, 18, 0.12);
  color: var(--wine);
  font-size: 20px;
  cursor: pointer;
}

.modal-card img {
  width: 100%;
  max-height: 54dvh;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 6px;
}

.lb-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--wine-soft);
  margin-bottom: 4px;
}

.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: rgba(78, 7, 18, 0.85);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.lb-nav.prev { left: 8px; }
.lb-nav.next { right: 8px; }

.lb-date {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--wine-soft);
}

.modal-card p {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--wine);
}

.share-card h4 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--wine);
}

.share-desc {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--ink-muted) !important;
  margin-bottom: 12px;
}

.share-card input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1.5px solid var(--wine);
  background: #ffffff;
  font-family: var(--font-editorial);
  font-size: 15px;
  color: var(--wine);
}

.share-preview {
  margin: 10px 0 12px;
  padding: 9px;
  border-radius: 6px;
  background: var(--cream-panel);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--wine);
  word-break: break-all;
}

.btn-wine-solid {
  width: 100%;
  padding: 11px;
  border-radius: 6px;
  border: none;
  background: var(--wine);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -22px);
  z-index: 400;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--wine);
  color: #f8f0e6;
  border: 1px solid var(--blush);
  font-family: var(--font-mono);
  font-size: 11.5px;
  box-shadow: 0 8px 20px rgba(58, 4, 12, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
