/* ══════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════ */
:root {
  --blush-50: #fff5f9;
  --blush-100: #ffe8f3;
  --blush-200: #ffc3e0;
  --blush-400: #ff82c6;
  --blush-500: #ff57b0;
  --plum-100: #f3e4ff;
  --plum-300: #d7afff;
  --plum-500: #b57bf0;
  --plum-800: #3a1652;
  --plum-900: #220c33;
  --text-light: #fff9ff;
  --text-dark: #2b1638;
  --card-border: rgba(255, 255, 255, 0.45);
  --glow-pink: 0 14px 44px rgba(255, 110, 197, 0.22);
  --glow-hard: 0 0 22px rgba(255, 172, 231, 0.4);
}

/* ══════════════════════════════════════
   RESET + BASE
   ══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", "Quicksand", sans-serif;
  font-weight: 400;
  color: var(--text-light);
  background: linear-gradient(170deg,
      #130624 0%,
      #230c3a 14%,
      #3f1b5d 28%,
      #6a2d88 43%,
      #a04aab 58%,
      #d472c9 73%,
      #fba2e2 88%,
      #ffe1f5 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opactiy='0.15'/%3E%3C/svg%3E");
  opacity: 0.16;
  z-index: 100;
  mix-blend-mode: overlay;
}

body.overlay-open {
  overflow: hidden;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

p {
  margin: 0;
  line-height: 1.72;
  font-size: 0.88rem;
}

/* ══════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════ */
#page {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  min-height: 100vh;
  padding: 5.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════
   REVEAL ON SCROLL
   ══════════════════════════════════════ */
[data-reveal] {
  opacity: 0.15;
  transform: translateY(52px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   PANELS (glassmorphic)
   ══════════════════════════════════════ */
.panel {
  width: min(860px, 92vw);
  background: rgba(43, 20, 68, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 32px;
  padding: 3rem 2.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel:hover {
  transform: translateY(-8px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(215, 85, 185, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}

.eyebrow {
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffe8f6;
}

/* ══════════════════════════════════════
   HERO — Love Letter Card
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  padding-top: 5rem;
  padding-bottom: 3rem;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(255, 160, 220, 0.18), transparent),
    radial-gradient(circle at 20% 80%, rgba(180, 100, 255, 0.1), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 120, 200, 0.08), transparent 40%);
  animation: hero-glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes hero-glow-pulse {
  0% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

.love-letter-card {
  width: min(780px, 90vw);
  background: rgba(255, 241, 252, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 38px;
  padding: 3.8rem 3.4rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(180, 60, 160, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.love-letter-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.love-letter-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255, 180, 230, 0.3), rgba(180, 120, 255, 0.2), rgba(255, 140, 210, 0.3), rgba(180, 120, 255, 0.2));
  background-size: 300% 300%;
  animation: shimmer-border 4s ease infinite;
  z-index: -1;
  filter: blur(8px);
}

@keyframes shimmer-border {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes card-soft-glow {
  0% {
    box-shadow: 0 20px 60px rgba(180, 60, 160, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  100% {
    box-shadow: 0 28px 80px rgba(255, 120, 200, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}

.love-eyebrow {
  text-transform: lowercase;
  letter-spacing: 0.3em;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 230, 248, 0.6);
  margin-bottom: 0.5rem;
}

.love-name {
  font-family: "Great Vibes", cursive;
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 0 40px rgba(255, 150, 220, 0.45),
    0 0 80px rgba(255, 120, 200, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.15);
  margin-bottom: 0.2rem;
  animation: name-breathe 3.5s ease-in-out infinite alternate;
}

@keyframes name-breathe {
  0% {
    text-shadow: 0 0 40px rgba(255, 150, 220, 0.45), 0 0 80px rgba(255, 120, 200, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  100% {
    text-shadow: 0 0 55px rgba(255, 170, 230, 0.6), 0 0 110px rgba(255, 140, 210, 0.3), 0 2px 4px rgba(0, 0, 0, 0.15);
  }
}

.love-subtitle {
  font-family: "Pacifico", cursive;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffd4ef, #c9a0ff, #ffb8e0);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  margin-bottom: 1.6rem;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% center;
  }

  50% {
    background-position: 100% center;
  }

  100% {
    background-position: 0% center;
  }
}

/* phrase bubbles */
.love-phrases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.phrase-bubble {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow:
    0 0 8px rgba(255, 180, 230, 0.7),
    0 0 20px rgba(255, 140, 210, 0.4),
    0 0 40px rgba(200, 120, 255, 0.2);
  box-shadow:
    0 0 10px rgba(255, 170, 230, 0.15),
    inset 0 0 8px rgba(255, 200, 240, 0.08);
  animation: bubble-float 3.8s ease-in-out infinite alternate;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phrase-bubble:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-8px) scale(1.08);
  box-shadow:
    0 12px 24px rgba(255, 170, 230, 0.35),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.phrase-bubble.accent {
  background: rgba(255, 140, 210, 0.14);
  border-color: rgba(255, 170, 225, 0.4);
  text-shadow:
    0 0 10px rgba(200, 140, 255, 0.7),
    0 0 24px rgba(180, 120, 255, 0.4),
    0 0 44px rgba(150, 100, 255, 0.2);
}

@keyframes bubble-glow {
  0% {
    box-shadow: 0 0 10px rgba(255, 170, 230, 0.15), inset 0 0 8px rgba(255, 200, 240, 0.08);
  }

  100% {
    box-shadow: 0 0 18px rgba(255, 170, 230, 0.3), inset 0 0 12px rgba(255, 200, 240, 0.15);
  }
}

.phrase-bubble:nth-child(1) {
  animation-delay: 0s;
}

.phrase-bubble:nth-child(2) {
  animation-delay: 0.5s;
}

.phrase-bubble:nth-child(3) {
  animation-delay: 1s;
}

.phrase-bubble:nth-child(4) {
  animation-delay: 0.3s;
}

.phrase-bubble:nth-child(5) {
  animation-delay: 0.8s;
}

.phrase-bubble:nth-child(6) {
  animation-delay: 1.3s;
}

@keyframes bubble-float {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-5px);
  }
}

.love-body {
  max-width: 540px;
  margin: 0 auto;
  margin-top: 0.65rem;
  font-size: 0.84rem;
  line-height: 1.82;
  color: rgba(255, 240, 252, 0.85);
}

/* ══════════════════════════════════════
   SHARED BUTTONS
   ══════════════════════════════════════ */
.scroll-cta,
.answer-btn,
.next-btn,
#replay-btn,
.proposal-btn,
#audio-toggle {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.scroll-cta {
  margin-top: 2rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(230, 90, 180, 0.9), rgba(150, 60, 200, 0.9));
  box-shadow:
    0 8px 24px rgba(200, 70, 170, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-cta:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(135deg, rgba(240, 100, 190, 1), rgba(160, 70, 210, 1));
  box-shadow:
    0 14px 32px rgba(200, 70, 170, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* ══════════════════════════════════════
   QUIZ SECTIONS
   ══════════════════════════════════════ */
.quiz-step {
  min-height: 98vh;
  padding-top: 4.8rem;
  padding-bottom: 4.8rem;
}

.quiz-layout {
  width: min(1220px, 95vw);
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(520px, 660px) minmax(210px, 250px);
  gap: 1.35rem;
  align-items: stretch;
  justify-content: center;
}

.side-photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 38px rgba(106, 20, 99, 0.28);
  animation: photo-lift 7s ease-in-out infinite;
}

.side-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  animation: zoom-pan 8.5s ease-in-out infinite alternate;
}

@keyframes photo-lift {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-7px) scale(1.012);
  }
}

@keyframes zoom-pan {
  0% {
    transform: scale(1.02) translateY(0);
  }

  100% {
    transform: scale(1.12) translateY(-4px);
  }
}

.quiz-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text-light);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2.5rem 2.4rem;
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quiz-card:hover {
  transform: translateY(-4px);
}

.quiz-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: #e49cdf;
}

.quiz-card h2 {
  margin-top: 0.7rem;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.18;
}

.quiz-copy {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
}

.option-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.answer-btn {
  width: 100%;
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.answer-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 24px rgba(223, 81, 178, 0.25);
  border-color: rgba(255, 170, 230, 0.4);
}

.quiz-card.answered .answer-btn {
  opacity: 0.75;
}

.quiz-card.answered .answer-btn.selected {
  opacity: 1;
  background: linear-gradient(135deg, rgba(220, 80, 170, 0.8), rgba(150, 50, 190, 0.8));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(225, 88, 168, 0.4);
}

.result-message {
  min-height: 3.5rem;
  margin-top: 1.2rem;
  color: #ffb4e8;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.5;
}

.next-btn {
  margin-top: 0.5rem;
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  padding: 0.8rem 1.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 106, 185, 0.95), rgba(198, 125, 242, 0.95));
  box-shadow:
    0 12px 28px rgba(190, 57, 167, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.next-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px rgba(190, 57, 167, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.next-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ══════════════════════════════════════
   PROPOSAL
   ══════════════════════════════════════ */
.proposal {
  min-height: 100vh;
  background: radial-gradient(circle at center, rgba(255, 201, 236, 0.28), rgba(149, 63, 155, 0.12), transparent 70%);
}

.proposal-card {
  text-align: center;
  width: min(980px, 94vw);
  animation: card-soft-glow 5s ease-in-out infinite alternate;
}

.proposal-card h2 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  margin-top: 0.35rem;
}

.proposal-copy {
  margin-top: 0.8rem;
  color: rgba(255, 240, 251, 0.9);
  font-size: clamp(0.8rem, 1.1vw, 0.9rem);
}

#proposal-playground {
  margin: 1.45rem auto 0.9rem;
  width: min(680px, 92vw);
  height: 230px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(255, 221, 245, 0.1), rgba(199, 134, 238, 0.08));
  position: relative;
  overflow: hidden;
}

.proposal-btn {
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: #301040;
  box-shadow: 0 10px 24px rgba(94, 13, 90, 0.3);
}

#yes-btn {
  --yes-scale: 1;
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) scale(var(--yes-scale));
  background: linear-gradient(135deg, rgba(255, 120, 200, 0.95), rgba(180, 80, 230, 0.95));
  color: #fff;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 3;
}

#no-btn {
  position: absolute;
  left: 74%;
  top: 54%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffeef8, #efc9ff);
  z-index: 4;
}

#no-taunt {
  min-height: 1.5rem;
  font-weight: 700;
  font-size: 0.78rem;
  color: #ffe6f7;
}

/* ══════════════════════════════════════
   CELEBRATION OVERLAY
   ══════════════════════════════════════ */
#celebration-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(23, 12, 40, 0.88), rgba(59, 16, 74, 0.88)),
    radial-gradient(circle at center, rgba(255, 170, 226, 0.32), transparent 60%);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 150;
}

#celebration-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.overlay-card {
  position: relative;
  width: min(820px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(30, 10, 45, 0.65);
  color: #fff;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem 2.5rem;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  text-align: center;
}

#close-overlay-btn {
  position: sticky;
  top: 0;
  float: right;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1rem -1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 5;
}

#close-overlay-btn:hover {
  background: rgba(140, 31, 126, 0.22);
  transform: scale(1.08);
}

#close-overlay-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.overlay-card h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: #ffb4e8;
  text-shadow: 0 0 20px rgba(255, 120, 200, 0.4);
}

.overlay-card p {
  margin-top: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.7;
}

.overlay-photo-wrap {
  margin: 1.1rem auto 0;
  width: min(320px, 65vw);
}

.overlay-photo-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.overlay-photo-wrap figcaption {
  margin-top: 0.8rem;
  color: #e49cdf;
  font-weight: 500;
  font-size: 0.85rem;
  font-style: italic;
}

.closing-note {
  margin-top: 0.8rem;
}

#replay-btn {
  margin-top: 1.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(230, 90, 180, 0.9), rgba(150, 60, 200, 0.9));
  box-shadow:
    0 8px 24px rgba(200, 70, 170, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#replay-btn:hover {
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(135deg, rgba(240, 100, 190, 1), rgba(160, 70, 210, 1));
  box-shadow:
    0 14px 32px rgba(200, 70, 170, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* ══════════════════════════════════════
   AUDIO TOGGLE
   ══════════════════════════════════════ */
#audio-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  font-size: 0.68rem;
  color: #fff5fb;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, rgba(75, 34, 112, 0.85), rgba(141, 51, 127, 0.8));
  box-shadow: 0 8px 22px rgba(45, 15, 59, 0.4);
  letter-spacing: 0.02em;
}

#audio-toggle.playing {
  background: linear-gradient(135deg, rgba(255, 120, 190, 0.9), rgba(178, 108, 236, 0.9));
  animation: audio-pulse 1.35s ease-in-out infinite;
}

.audio-glyph {
  width: 1.1rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

@keyframes audio-pulse {

  0%,
  100% {
    box-shadow: 0 8px 22px rgba(45, 15, 59, 0.4);
  }

  50% {
    box-shadow: 0 10px 28px rgba(255, 148, 219, 0.4);
  }
}

/* ══════════════════════════════════════
   AMBIENT — SUBTLE HEARTS
   ══════════════════════════════════════ */
#floating-hearts,
#petal-layer,
#sparkle-layer,
#arrow-lane,
#confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 85;
}

#confetti-layer {
  z-index: 160;
}

#sparkle-layer {
  z-index: 86;
}

.heart {
  position: fixed;
  left: 0;
  top: 0;
  color: rgba(255, 206, 235, 0.14);
  text-shadow: 0 0 3px rgba(255, 198, 232, 0.08);
  animation: heart-flight var(--duration) linear forwards;
}

@keyframes heart-flight {
  0% {
    transform: translate3d(var(--start-x), var(--start-y), 0) scale(0.18) rotate(0deg);
    opacity: 0;
  }

  12% {
    opacity: 0.28;
  }

  100% {
    transform: translate3d(var(--end-x), var(--end-y), 0) scale(0.5) rotate(90deg);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   AMBIENT — FALLING ROSE PETALS
   ══════════════════════════════════════ */
.petal {
  position: fixed;
  top: -20px;
  width: 12px;
  height: 14px;
  border-radius: 50% 0 50% 50%;
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 180, 210, 0.7), rgba(255, 120, 170, 0.45));
  box-shadow: 0 0 4px rgba(255, 150, 200, 0.15);
  animation: petal-fall var(--petal-dur) ease-in forwards;
}

@keyframes petal-fall {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.7);
    opacity: 0;
  }

  8% {
    opacity: 0.5;
  }

  100% {
    transform: translate(var(--petal-drift), var(--petal-drop)) rotate(var(--petal-spin)) scale(0.4);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   AMBIENT — SPARKLES
   ══════════════════════════════════════ */
.sparkle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 6px 1px rgba(255, 220, 245, 0.5), 0 0 12px 2px rgba(255, 180, 230, 0.25);
  animation: sparkle-twinkle var(--sparkle-dur) ease-in-out forwards;
}

@keyframes sparkle-twinkle {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  30% {
    transform: scale(1.2);
    opacity: 0.9;
  }

  70% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   AMBIENT — CUPID ARROWS
   ══════════════════════════════════════ */
.cupid-arrow {
  position: fixed;
  left: -22vw;
  color: rgba(255, 232, 247, 0.3);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 0 3px rgba(255, 203, 234, 0.15);
  animation: arrow-flight var(--duration) linear forwards;
}

@keyframes arrow-flight {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }

  10% {
    opacity: 0.45;
  }

  100% {
    transform: translateX(var(--travel)) translateY(var(--drift));
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   AMBIENT — CONFETTI
   ══════════════════════════════════════ */
.confetti-piece {
  position: fixed;
  width: 7px;
  height: 11px;
  border-radius: 2px;
  animation: confetti-fall var(--confetti-duration) ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--spin));
    opacity: 0;
  }
}

/* side-flying confetti */
.confetti-side {
  position: fixed;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  animation: confetti-side-fly var(--side-duration) ease-out forwards;
}

@keyframes confetti-side-fly {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    transform: translate(var(--sx), var(--sy)) rotate(var(--spin));
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   HEART EMOJI BURST
   ══════════════════════════════════════ */
.heart-emoji-burst {
  position: fixed;
  pointer-events: none;
  z-index: 145;
  animation: heart-burst var(--heart-duration) ease-out forwards;
}

@keyframes heart-burst {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(0.3);
    opacity: 0;
  }

  15% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1.1);
  }

  100% {
    transform: translate(var(--dx), var(--dy)) rotate(var(--spin)) scale(0.6);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   HERO PHOTO
   ══════════════════════════════════════ */
.hero-photo-wrap {
  margin: 1.5rem auto 0;
  width: min(260px, 55vw);
}

.hero-photo-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  border: 2px solid rgba(255, 200, 240, 0.35);
  box-shadow:
    0 16px 40px rgba(180, 60, 160, 0.22),
    0 0 30px rgba(255, 150, 220, 0.12);
  animation: photo-lift 7s ease-in-out infinite;
}

/* ══════════════════════════════════════
   CELEBRATION SUBTITLE
   ══════════════════════════════════════ */
.celebration-subtitle {
  font-family: "Pacifico", cursive;
  font-size: 1.15rem;
  color: #8c1f7e;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════
   ANGRY EMOJI POP (No button dodge)
   ══════════════════════════════════════ */
.angry-emoji-pop {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  animation: angry-fly 1.2s ease-out forwards;
}

@keyframes angry-fly {
  0% {
    transform: translate(0, 0) scale(0.3) rotate(0deg);
    opacity: 0;
  }

  15% {
    opacity: 1;
    transform: translate(0, 0) scale(1.2) rotate(0deg);
  }

  100% {
    transform: translate(var(--fly-x), var(--fly-y)) scale(0.5) rotate(20deg);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   AMBIENT — FLOATING WORDS
   ══════════════════════════════════════ */
#word-pop-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 88;
}

.word-pop {
  position: fixed;
  left: 0;
  top: 0;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-family: "Pacifico", cursive;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: rgba(255, 231, 248, 0.08);
  color: rgba(255, 248, 255, 0.7);
  border: 1px solid rgba(255, 200, 240, 0.15);
  backdrop-filter: blur(2px);
  text-shadow:
    0 0 6px rgba(255, 180, 230, 0.5),
    0 0 14px rgba(200, 140, 255, 0.3);
  animation: word-drift var(--duration) ease-out forwards;
}

@keyframes word-drift {
  0% {
    transform: translate3d(var(--start-x), var(--start-y), 0) scale(0.85);
    opacity: 0;
  }

  14% {
    opacity: 0.48;
  }

  100% {
    transform: translate3d(var(--end-x), var(--end-y), 0) scale(1);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   SCROLL ARROW
   ══════════════════════════════════════ */
.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 240, 250, 0.5);
  font-family: "Quicksand", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  animation: arrow-bob 2.5s ease-in-out infinite;
}

.scroll-arrow:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
}

@keyframes arrow-bob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ══════════════════════════════════════
   FOCUS
   ══════════════════════════════════════ */
.scroll-cta:focus-visible,
.answer-btn:focus-visible,
.next-btn:focus-visible,
#audio-toggle:focus-visible,
.proposal-btn:focus-visible,
#replay-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1060px) {
  .section {
    padding: 4.8rem 1.2rem;
  }

  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .side-photo {
    max-width: 280px;
    justify-self: center;
  }
}

@media (max-width: 700px) {
  #audio-toggle {
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.42rem 0.68rem;
    font-size: 0.64rem;
  }

  #proposal-playground {
    height: 190px;
  }

  .proposal-btn {
    font-size: 0.85rem;
    padding: 0.7rem 1.3rem;
  }

  .love-letter-card {
    padding: 2rem 1.4rem;
  }

  .love-name {
    font-size: clamp(3.2rem, 15vw, 6rem);
  }

  .love-phrases {
    gap: 0.35rem;
  }

  .phrase-bubble {
    font-size: 0.58rem;
    padding: 0.25rem 0.6rem;
  }
}