/* ==========================================================================
   Veronica · 18 Ani — Whimsical Watercolor Invitation Stylesheet
   ========================================================================== */

:root {
  --cream: #fffdf5;
  --butter: #fcf4d6;
  --butter-deep: #f8e8b8;
  --pink-soft: #fae0e8;
  --pink-petal: #f4bfd0;
  --pink-rose: #e39ab0;
  --pink-deep: #c96d88;
  --burgundy: #7a2136;
  --burgundy-dark: #5e1527;
  --ink-warm: #5c3a43;
  --gold-soft: #e6c26e;
  --lavender: #e4d2f5;
  --sky: #cfe7f7;
  --card-bg: #fffaf7;

  --font-script: 'Great Vibes', 'Snell Roundhand', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-soft: 0 12px 32px rgba(145, 76, 98, 0.14);
  --shadow-card: 0 18px 42px rgba(122, 33, 54, 0.14), 0 4px 12px rgba(122, 33, 54, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-sans);
  color: var(--ink-warm);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.5;
}

body.is-locked {
  overflow: hidden;
  height: 100svh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--burgundy);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

/* Sparkle & Confetti Canvas */
.sparkle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

/* ==========================================================================
   FLOATING QUICK CONTROLS
   ========================================================================== */
.floating-controls {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom));
  right: max(14px, env(safe-area-inset-right));
  z-index: 60;
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (min-width: 600px) {
  .floating-controls {
    bottom: auto;
    top: max(14px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
  }
}

.floating-controls[hidden] {
  display: none;
}

.ctrl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  border: 1.5px solid rgba(201, 109, 136, 0.45);
  border-radius: 999px;
  background: rgba(255, 250, 247, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(122, 33, 54, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ctrl-pill:hover {
  background: #fff;
  transform: translateY(-1px);
}

.ctrl-pill:active {
  transform: scale(0.96);
}

.ctrl-pill--icon {
  padding: 6px 12px;
}

.ctrl-pill.is-playing .ctrl-icon {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-paused) .ctrl-pill.is-playing .ctrl-icon {
    animation: noteBounce 1.2s ease-in-out infinite;
  }
}

/* ==========================================================================
   INTRO GATE ("Ai primit o invitație!" — inspired by IMG_4055)
   ========================================================================== */
.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background-color: #fffaf0;
  background-image: repeating-linear-gradient(
    to bottom,
    #fae0ea 0px,
    #fae0ea 22px,
    #fffaf0 22px,
    #fffaf0 44px,
    #fdf3cf 44px,
    #fdf3cf 66px,
    #fffaf0 66px,
    #fffaf0 88px
  );
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.intro-gate.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mini-star {
  position: absolute;
  font-size: clamp(14px, 3vw, 22px);
  opacity: 0.72;
}

.s1 { top: 8%; left: 14%; color: #e9c66a; }
.s2 { top: 14%; right: 16%; color: #d9a7ec; }
.s3 { top: 26%; left: 8%; color: #f2a2bc; }
.s4 { top: 20%; right: 8%; color: #e9c66a; }
.s5 { top: 68%; left: 10%; color: #a7d5f0; }
.s6 { top: 75%; right: 12%; color: #e9c66a; }
.s7 { bottom: 12%; left: 24%; color: #d9a7ec; }
.s8 { bottom: 16%; right: 22%; color: #f2a2bc; }
.s9 { top: 48%; left: 5%; color: #e9c66a; }
.s10 { top: 52%; right: 6%; color: #a7d5f0; }

.intro-wand {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  left: -8px;
  width: clamp(92px, 24vw, 150px);
  transform: rotate(20deg);
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(154, 75, 93, 0.16));
}

.intro-card-wrap {
  position: relative;
  width: min(92vw, 410px);
  padding-top: 46px;
}

.intro-bow {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(92px, 24vw, 118px);
  z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(122, 33, 54, 0.14));
}

.intro-butterfly {
  position: absolute;
  top: 16px;
  right: -12px;
  width: clamp(72px, 19vw, 96px);
  z-index: 3;
  filter: drop-shadow(0 6px 10px rgba(122, 33, 54, 0.14));
}

.intro-gifts {
  position: absolute;
  bottom: -44px;
  left: -12px;
  width: clamp(78px, 21vw, 102px);
  z-index: 3;
  filter: drop-shadow(0 8px 14px rgba(122, 33, 54, 0.16));
}

.intro-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 252, 247, 0.96);
  border-radius: 34px;
  padding: 58px 26px 52px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(244, 191, 208, 0.7);
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 26px;
  border: 2px dashed rgba(217, 134, 159, 0.65);
  pointer-events: none;
}

.intro-kicker {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.intro-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 8vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--burgundy);
}

.intro-sub {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--ink-warm);
}

.open-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 13px 30px;
  border: 2px solid #d7829c;
  border-radius: 999px;
  background: linear-gradient(180deg, #fce5ec 0%, #f5bfd0 100%);
  color: var(--burgundy-dark);
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(201, 109, 136, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.open-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 26px rgba(201, 109, 136, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.open-btn:active {
  transform: scale(0.97);
}

.intro-hint {
  margin: 14px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9e6a77;
}

/* ==========================================================================
   THEATRICAL CURTAIN REVEAL OVERLAY
   ========================================================================== */
.curtain-stage {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  display: flex;
  overflow: hidden;
}

.curtain-stage.is-done {
  display: none;
}

.curtain-drape {
  position: relative;
  width: 52%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #e8a8b9 0px,
    #f5cbd7 18px,
    #df98ac 36px,
    #f2bfd0 56px,
    #e3a0b3 74px
  );
  box-shadow: inset -18px 0 36px rgba(122, 33, 54, 0.22);
  transition: transform 1.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.curtain-drape--right {
  margin-left: -4%;
  box-shadow: inset 18px 0 36px rgba(122, 33, 54, 0.22);
}

.curtain-drape-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  opacity: 0.52;
  mix-blend-mode: multiply;
}

.curtain-drape-img--mirrored {
  transform: scaleX(-1);
}

.curtain-stage.is-opening .curtain-drape--left {
  transform: translateX(-108%) skewX(-3deg);
}

.curtain-stage.is-opening .curtain-drape--right {
  transform: translateX(108%) skewX(3deg);
}

/* ==========================================================================
   INVITATION SHELL (centered storybook column on desktop, full-bleed mobile)
   ========================================================================== */
.invitation-shell {
  max-width: 540px;
  margin-inline: auto;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(145, 76, 98, 0.14);
  position: relative;
  overflow-x: clip;
}

@media (min-width: 600px) {
  body {
    background-color: #f9eaf0;
    background-image: radial-gradient(rgba(232, 168, 185, 0.32) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    padding-block: 24px;
  }

  .invitation-shell {
    border-radius: 32px;
    border: 3px solid rgba(244, 191, 208, 0.75);
  }
}

/* ==========================================================================
   HERO SECTION (Vertical pastel buttercream stripes — inspired by IMG_4054)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100svh;
  padding: 20px 20px 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    90deg,
    var(--butter) 0px,
    var(--butter) 26px,
    var(--cream) 26px,
    var(--cream) 52px
  );
  overflow: hidden;
}

.bunting-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 78px;
  z-index: 2;
  pointer-events: none;
}

.stage-curtain {
  position: absolute;
  top: -8px;
  width: clamp(148px, 39vw, 212px);
  height: auto;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(122, 33, 54, 0.14));
}

.stage-curtain--left {
  left: -20px;
}

.stage-curtain--right {
  right: -20px;
  transform: scaleX(-1);
}

.chandelier-wrap {
  position: relative;
  z-index: 5;
  margin-top: -12px;
  width: clamp(146px, 38vw, 198px);
  transform-origin: top center;
}

.chandelier-glow {
  position: absolute;
  inset: 20% 10% 18%;
  background: radial-gradient(circle, rgba(255, 224, 145, 0.48) 0%, rgba(255, 224, 145, 0) 70%);
  pointer-events: none;
}

.chandelier-img {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 8px 14px rgba(145, 76, 98, 0.16));
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.gold-star {
  position: absolute;
  color: var(--gold-soft);
  text-shadow: 0 0 10px rgba(240, 200, 102, 0.6);
}

.gs-1 { top: 22%; left: 22%; font-size: 22px; }
.gs-2 { top: 32%; right: 20%; font-size: 16px; }
.gs-3 { top: 53%; left: 16%; font-size: 18px; }
.gs-4 { top: 48%; right: 15%; font-size: 24px; }
.gs-5 { bottom: 26%; left: 28%; font-size: 15px; }

.hero-bf {
  position: absolute;
  filter: drop-shadow(0 6px 10px rgba(122, 33, 54, 0.14));
}

.hero-bf--right {
  top: 23%;
  right: 8%;
  width: clamp(68px, 19vw, 94px);
}

.hero-bf--left {
  bottom: 24%;
  left: 4%;
  width: clamp(62px, 17vw, 84px);
  transform: scaleX(-1) rotate(-10deg);
}

.hero-bf--bottom {
  bottom: 3%;
  right: 2%;
  width: clamp(64px, 18vw, 88px);
}

/* Centerpiece Hero Typography */
.hero-center {
  position: relative;
  z-index: 6;
  text-align: center;
  margin-top: 4px;
  padding-inline: 10px;
}

.hero-eyebrow {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 0.03em;
}

.hero-name {
  margin: 2px 0 4px;
  font-family: var(--font-script);
  font-size: clamp(4.1rem, 16vw, 5.8rem);
  font-weight: 400;
  line-height: 1.04;
  background: linear-gradient(135deg, #681326 0%, #9b2a47 50%, #6e1529 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 6px rgba(122, 33, 54, 0.16));
  padding-inline: 8px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px auto 8px;
  color: #d49b6a;
  width: 180px;
}

.hero-divider span {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #d995a8, transparent);
}

.hero-subtitle {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 5vw, 1.72rem);
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.02em;
}

.hero-date-pill {
  display: inline-block;
  margin: 0;
  padding: 5px 18px;
  border-radius: 999px;
  background: rgba(250, 224, 232, 0.78);
  border: 1.5px solid rgba(201, 109, 136, 0.45);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--burgundy-dark);
}

/* Bottom Hero Row: Cake + Vinyl */
.hero-stage-bottom {
  position: relative;
  z-index: 6;
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 3vw, 24px);
}

.cake-stage {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: clamp(168px, 46vw, 226px);
  transition: transform 0.25s ease;
}

.cake-stage:hover {
  transform: scale(1.03);
}

.cake-stage:active {
  transform: scale(0.97);
}

.cake-img {
  width: 100%;
  filter: drop-shadow(0 12px 18px rgba(145, 76, 98, 0.2));
}

.candle-glow {
  position: absolute;
  top: 1%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 118, 0.85) 0%, rgba(255, 194, 92, 0) 72%);
  pointer-events: none;
}

.candle-glow--1 { left: 36%; }
.candle-glow--8 { left: 52%; }

.cake-tooltip {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--burgundy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 14px rgba(122, 33, 54, 0.25);
}

.cake-tooltip.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* Interactive Vinyl Widget */
.vinyl-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.vinyl-btn {
  position: relative;
  background: none;
  border: none;
  padding: 16px 6px 4px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.vinyl-crown {
  position: absolute;
  top: -2px;
  right: 8px;
  transform: rotate(16deg);
  z-index: 3;
  filter: drop-shadow(0 3px 5px rgba(122, 33, 54, 0.2));
}

.vinyl-disc {
  position: relative;
  width: clamp(92px, 24vw, 114px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #3a3438 0%, #1c181b 42%, #2c262a 60%, #141113 100%);
  box-shadow: 0 10px 22px rgba(45, 24, 32, 0.34), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.vinyl-grooves {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.08) 4px,
    transparent 5px
  );
}

.vinyl-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 35deg,
    transparent 0deg,
    rgba(255, 232, 240, 0.22) 28deg,
    transparent 62deg,
    transparent 185deg,
    rgba(255, 232, 240, 0.16) 215deg,
    transparent 245deg
  );
}

.vinyl-label {
  position: relative;
  z-index: 2;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fce5ec, #e49bb2);
  border: 2px solid #fff6f8;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.vinyl-play-icon {
  color: var(--burgundy-dark);
  font-size: 0.95rem;
  line-height: 1;
  margin-left: 2px;
}

.vinyl-btn.is-playing .vinyl-play-icon {
  margin-left: 0;
}

.vinyl-notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vinyl-btn.is-playing .vinyl-notes {
  opacity: 1;
}

.vinyl-notes span {
  position: absolute;
  color: var(--burgundy);
  font-weight: 700;
  font-size: 1rem;
}

.vinyl-notes span:nth-child(1) { top: 4px; left: 4px; }
.vinyl-notes span:nth-child(2) { top: -8px; left: 32%; color: var(--pink-deep); }
.vinyl-notes span:nth-child(3) { top: 14px; right: -4px; }

.vinyl-arc-label {
  margin-top: -6px;
  overflow: visible;
  pointer-events: none;
}

/* Scroll Cue */
.scroll-cue {
  position: relative;
  z-index: 6;
  margin-top: 10px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--burgundy);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.88;
}

.scroll-arrow {
  font-size: 1.15rem;
}

/* Scalloped Lace Divider */
.scallop-divider {
  height: 24px;
  background-color: #fdf6dc;
  background-image: radial-gradient(circle at 16px -4px, var(--cream) 16px, rgba(244, 191, 208, 0.45) 16.5px, rgba(244, 191, 208, 0.45) 18.5px, transparent 19px);
  background-size: 32px 24px;
}

/* ==========================================================================
   DETAILS SECTION (Buttercream + Pastel Pink Polka Dots — IMG_4052 / 4053)
   ========================================================================== */
.details-section {
  position: relative;
  padding: 28px 20px 56px;
  background-color: #fdf6dc;
  background-image:
    radial-gradient(circle at 22px 22px, rgba(244, 191, 208, 0.48) 12px, transparent 13px),
    radial-gradient(circle at 66px 66px, rgba(244, 191, 208, 0.42) 12px, transparent 13px);
  background-size: 88px 88px;
}

/* Countdown Card */
.countdown-card {
  max-width: 420px;
  margin: 0 auto 28px;
  padding: 16px 14px 18px;
  border-radius: 26px;
  background: rgba(255, 252, 247, 0.9);
  border: 2px dashed rgba(217, 134, 159, 0.58);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.countdown-label {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--burgundy);
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cd-box {
  min-width: 62px;
  padding: 8px 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff5f8 0%, #fae0e8 100%);
  border: 1.5px solid rgba(227, 154, 176, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--burgundy);
  font-variant-numeric: tabular-nums;
}

.cd-unit {
  margin-top: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #965365;
}

.cd-sep {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pink-deep);
}

/* Fairy-Tale Castle + Date + Time Composition */
.castle-stage {
  position: relative;
  max-width: 460px;
  margin: 10px auto 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  padding-top: 12px;
}

.stage-bf-top {
  position: absolute;
  top: -24px;
  right: -6px;
  width: clamp(72px, 20vw, 100px);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(122, 33, 54, 0.14));
}

.stage-wand-left {
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: clamp(68px, 19vw, 96px);
  z-index: 3;
  pointer-events: none;
  transform: rotate(-16deg);
  filter: drop-shadow(0 6px 10px rgba(122, 33, 54, 0.14));
}

.date-cluster {
  position: relative;
  z-index: 2;
  align-self: start;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 252, 247, 0.85);
  padding: 10px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(227, 154, 176, 0.5);
  box-shadow: 0 8px 18px rgba(145, 76, 98, 0.1);
}

.date-day-num {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 11vw, 3.6rem);
  line-height: 0.9;
  color: var(--burgundy);
}

.date-month-year {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  color: var(--burgundy-dark);
  line-height: 1.15;
}

.date-month {
  font-size: 1.08rem;
  font-weight: 700;
}

.date-year {
  font-size: 0.95rem;
  font-weight: 600;
}

.date-weekday {
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
}

.castle-wrap {
  position: relative;
  z-index: 1;
  margin-inline: -16px;
}

.castle-img {
  width: 100%;
  max-width: 270px;
  margin-inline: auto;
  filter: drop-shadow(0 14px 20px rgba(145, 76, 98, 0.2));
}

.time-cluster {
  position: relative;
  z-index: 2;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 252, 247, 0.88);
  padding: 10px 12px;
  border-radius: 20px;
  border: 1.5px solid rgba(227, 154, 176, 0.5);
  box-shadow: 0 8px 18px rgba(145, 76, 98, 0.1);
}

.time-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink-deep);
}

.time-value {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 6vw, 2.05rem);
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.1;
}

.time-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink-warm);
}

/* Venue Block */
.venue-block {
  text-align: center;
  margin: 12px auto 34px;
  max-width: 440px;
}

.venue-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--burgundy);
}

.pin-icon {
  flex-shrink: 0;
}

.venue-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7.6vw, 2.55rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--burgundy);
}

.venue-address {
  margin: 6px 0 18px;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink-warm);
}

.venue-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.soft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.soft-btn--primary {
  background: linear-gradient(180deg, #fae0e8 0%, #f1b9ca 100%);
  color: var(--burgundy-dark);
  border: 1.5px solid #d5849c;
  box-shadow: 0 6px 16px rgba(201, 109, 136, 0.26);
}

.soft-btn--secondary {
  background: rgba(255, 252, 247, 0.94);
  color: var(--burgundy);
  border: 1.5px solid #d898ab;
  box-shadow: 0 6px 14px rgba(145, 76, 98, 0.1);
}

.soft-btn:hover {
  transform: translateY(-2px);
}

.soft-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   DRESS CODE BLOCK ("Dress code: No Black" — inspired by IMG_4053)
   ========================================================================== */
.dresscode-block {
  max-width: 440px;
  margin: 0 auto 44px;
  padding: 22px 20px;
  border-radius: 28px;
  background: rgba(255, 252, 247, 0.9);
  border: 2px solid rgba(244, 191, 208, 0.72);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.dresscode-kicker {
  margin: 0 0 2px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--pink-deep);
}

.dresscode-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 6vw, 2.05rem);
  font-weight: 700;
  color: var(--burgundy);
}

.dresscode-title span {
  display: inline-block;
  padding: 0 10px 2px;
  border-radius: 12px;
  background: #fae0e8;
  color: var(--burgundy-dark);
}

.hearts-palette {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.heart-swatch {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.heart-swatch:hover {
  transform: scale(1.2) translateY(-3px);
}

.heart-swatch:active {
  transform: scale(0.92);
}

.no-black-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(250, 224, 232, 0.65);
  border: 1.5px solid rgba(201, 109, 136, 0.45);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--burgundy-dark);
}

.dresscode-note {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.14rem;
  color: var(--ink-warm);
}

/* ==========================================================================
   CONFIRMATION SCRAPBOOK CARD (instead of RSVP — inspired by IMG_4053)
   ========================================================================== */
.confirm-section {
  position: relative;
  max-width: 450px;
  margin: 26px auto 28px;
  padding-top: 20px;
}

.confirm-gifts {
  position: absolute;
  top: -34px;
  right: -14px;
  width: clamp(90px, 24vw, 120px);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(122, 33, 54, 0.16));
}

.confirm-balloons {
  position: absolute;
  bottom: -24px;
  left: -24px;
  width: clamp(86px, 23vw, 118px);
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(122, 33, 54, 0.16));
}

.confirm-bf {
  position: absolute;
  top: -26px;
  left: 6px;
  width: clamp(58px, 16vw, 76px);
  z-index: 4;
  pointer-events: none;
  transform: scaleX(-1) rotate(-12deg);
}

.scrapbook-card {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  transform: rotate(-0.8deg);
  transition: transform 0.35s ease;
}

.scrapbook-card:focus-within,
.scrapbook-card:hover {
  transform: rotate(0deg);
}

.pushpin {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9eb8 0%, #cc3d68 58%, #8e1e40 100%);
  box-shadow: 0 5px 10px rgba(122, 33, 54, 0.36), inset 0 2px 3px rgba(255, 255, 255, 0.65);
  z-index: 5;
}

.scrapbook-inner {
  border: 2.5px solid var(--pink-petal);
  border-radius: 10px;
  padding: 26px 18px 24px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff7f9 100%);
}

.confirm-heading {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7.2vw, 2.45rem);
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1.08;
}

.welcome-note {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(252, 244, 214, 0.72);
  border: 1.5px dashed rgba(217, 134, 159, 0.55);
  text-align: center;
}

.welcome-note p {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.14rem;
  color: var(--burgundy-dark);
}

.welcome-note footer {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pink-deep);
}

.deadline-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 0 22px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fae0e8;
  color: var(--burgundy-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

/* Accessible Form Styling (per Modern Web Guidance forms best practices) */
.confirm-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.choice-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--burgundy);
  padding: 0;
}

.req-mark {
  color: #c43d63;
}

.opt-tag {
  font-weight: 500;
  color: #9e6a77;
  font-size: 0.86rem;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font-size: max(1rem, 1em); /* Prevents iOS auto-zoom */
  color: var(--burgundy-dark);
  background: #fff;
  border: 1.5px solid #d9a0b1;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.text-input::placeholder {
  color: #b48c97;
}

.text-input:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(201, 109, 136, 0.2);
}

.text-input:user-invalid,
.text-input[aria-invalid="true"] {
  border-color: #c42847;
  background: #fff5f7;
}

.text-area {
  min-height: 76px;
  resize: vertical;
}

.choice-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-card-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #dfb0be;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.radio-card-label:hover {
  background: #fff5f8;
}

.radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c97c93;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease;
}

.radio-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--burgundy);
  transform: scale(0);
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radio-card input:checked + .radio-card-label {
  background: linear-gradient(180deg, #fff3f7 0%, #fce0e9 100%);
  border-color: var(--burgundy);
  box-shadow: 0 4px 12px rgba(122, 33, 54, 0.12);
}

.radio-card input:checked + .radio-card-label .radio-dot {
  border-color: var(--burgundy);
}

.radio-card input:checked + .radio-card-label .radio-dot::after {
  transform: scale(1);
}

.radio-card input:focus-visible + .radio-card-label {
  outline: 3px solid var(--burgundy);
  outline-offset: 2px;
}

.radio-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.radio-copy strong {
  color: var(--burgundy-dark);
  font-size: 0.98rem;
}

.radio-copy small {
  color: #8c5c69;
  font-size: 0.82rem;
}

/* Companion Radio Pills */
.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #dfb0be;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--burgundy-dark);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.radio-pill input:checked + .radio-pill-label {
  background: #fae0e8;
  border-color: var(--burgundy);
  box-shadow: 0 4px 10px rgba(122, 33, 54, 0.12);
}

.radio-pill input:focus-visible + .radio-pill-label {
  outline: 3px solid var(--burgundy);
  outline-offset: 2px;
}

.collapsible-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.collapsible-section[hidden] {
  display: none;
}

.field-error {
  min-height: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #b82040;
}

.field-error:empty {
  display: none;
}

/* Primary WhatsApp Submit Button */
.whatsapp-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 13px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #982d4a 0%, #7a2136 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(122, 33, 54, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.whatsapp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(122, 33, 54, 0.36);
  filter: brightness(1.06);
}

.whatsapp-submit-btn:active {
  transform: scale(0.98);
}

.form-footnote {
  margin: -8px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #936470;
}

/* Post-submit Result Box */
.form-result {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: #fdf6dc;
  border: 1.5px solid #e6c26e;
  text-align: center;
}

.form-result[hidden] {
  display: none;
}

.result-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--burgundy);
}

.result-preview {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  color: var(--ink-warm);
  text-align: left;
  white-space: pre-line;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.copy-feedback {
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--burgundy);
}

/* Footer */
.invite-footer {
  margin-top: 44px;
  text-align: center;
  color: var(--burgundy);
}

.footer-monogram {
  margin: 0;
  font-family: var(--font-script);
  font-size: 2.3rem;
  line-height: 1.1;
}

.footer-sub {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}

/* ==========================================================================
   ANIMATIONS — Strictly GPU-composited & gated behind prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-paused) .intro-bow {
    animation: gentleTilt 4.2s ease-in-out infinite;
  }

  body:not(.motion-paused) .intro-butterfly {
    animation: flutterFloat 3.6s ease-in-out infinite;
  }

  body:not(.motion-paused) .intro-wand {
    animation: wandBob 4.6s ease-in-out infinite;
  }

  body:not(.motion-paused) .mini-star {
    animation: twinkle 3.2s ease-in-out infinite;
  }
  body:not(.motion-paused) .mini-star:nth-child(even) {
    animation-delay: 1.4s;
  }

  body:not(.motion-paused) .chandelier-wrap {
    animation: pendulum 6s ease-in-out infinite;
  }

  body:not(.motion-paused) .gold-star {
    animation: twinkle 2.8s ease-in-out infinite;
  }
  body:not(.motion-paused) .gs-2 { animation-delay: 0.7s; }
  body:not(.motion-paused) .gs-3 { animation-delay: 1.3s; }
  body:not(.motion-paused) .gs-4 { animation-delay: 1.9s; }
  body:not(.motion-paused) .gs-5 { animation-delay: 0.4s; }

  body:not(.motion-paused) .hero-bf--right {
    animation: flutterRight 4.4s ease-in-out infinite;
  }

  body:not(.motion-paused) .hero-bf--left {
    animation: flutterLeft 5s ease-in-out infinite;
  }

  body:not(.motion-paused) .hero-bf--bottom {
    animation: flutterFloat 4.8s ease-in-out infinite;
  }

  body:not(.motion-paused) .candle-glow {
    animation: flameFlicker 1.9s ease-in-out infinite alternate;
  }
  body:not(.motion-paused) .candle-glow--8 {
    animation-delay: 0.45s;
  }

  body:not(.motion-paused) .vinyl-btn.is-playing .vinyl-disc {
    animation: vinylSpin 3.6s linear infinite;
  }

  body:not(.motion-paused) .vinyl-btn.is-playing .vinyl-notes span {
    animation: noteFloat 2.2s ease-out infinite;
  }
  body:not(.motion-paused) .vinyl-btn.is-playing .vinyl-notes span:nth-child(2) {
    animation-delay: 0.65s;
  }
  body:not(.motion-paused) .vinyl-btn.is-playing .vinyl-notes span:nth-child(3) {
    animation-delay: 1.3s;
  }

  body:not(.motion-paused) .scroll-arrow {
    animation: arrowBob 1.8s ease-in-out infinite;
  }

  body:not(.motion-paused) .castle-img {
    animation: castleFloat 5.4s ease-in-out infinite;
  }

  body:not(.motion-paused) .stage-bf-top {
    animation: flutterFloat 4.2s ease-in-out infinite;
  }

  body:not(.motion-paused) .stage-wand-left {
    animation: wandBob 4.8s ease-in-out infinite;
  }

  body:not(.motion-paused) .confirm-balloons {
    animation: balloonFloat 4.8s ease-in-out infinite;
  }

  /* Calligraphy writing-reveal when curtains open */
  body.is-revealed .hero-name {
    animation: scriptReveal 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
  }

  body.is-revealed .hero-eyebrow,
  body.is-revealed .hero-subtitle,
  body.is-revealed .hero-date-pill {
    animation: softRise 0.9s ease-out 0.5s both;
  }

  /* Scroll-Driven Entry Animations (Progressive Enhancement per Modern Web Guidance) */
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal-item {
      animation: scrollFadeRise auto ease-out both;
      animation-timeline: view();
      animation-range: entry 4% entry 34%;
    }
  }
}

/* Fallback reveal class controlled by IntersectionObserver on browsers without scroll-driven animations */
.reveal-item.js-reveal-pending {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

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

/* Keyframes */
@keyframes gentleTilt {
  0%, 100% { transform: translateX(-50%) rotate(-2deg); }
  50% { transform: translateX(-50%) rotate(2.5deg); }
}

@keyframes flutterFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg) scale(1); }
  50% { transform: translate3d(4px, -9px, 0) rotate(4deg) scale(1.04); }
}

@keyframes flutterRight {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(2deg); }
  50% { transform: translate3d(-6px, -10px, 0) rotate(-6deg); }
}

@keyframes flutterLeft {
  0%, 100% { transform: scaleX(-1) translate3d(0, 0, 0) rotate(-10deg); }
  50% { transform: scaleX(-1) translate3d(-5px, -9px, 0) rotate(-3deg); }
}

@keyframes wandBob {
  0%, 100% { transform: rotate(18deg) translateY(0); }
  50% { transform: rotate(23deg) translateY(-6px); }
}

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

@keyframes twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.16); }
}

@keyframes flameFlicker {
  0% { opacity: 0.65; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.14); }
  100% { opacity: 0.78; transform: scale(1.02); }
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes noteFloat {
  0% { opacity: 0; transform: translateY(6px) scale(0.8); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-22px) scale(1.15); }
}

@keyframes noteBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes arrowBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes castleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

@keyframes scriptReveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollFadeRise {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Reduced motion adjustments */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .curtain-drape {
    transition-duration: 0.35s;
  }
}

@media (max-width: 380px) {
  .cd-box {
    min-width: 54px;
    padding: 6px 4px;
  }
  .castle-stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .date-cluster,
  .time-cluster {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin-top: 0;
  }
  .castle-wrap {
    margin-inline: 0;
  }
}
