/* ======================================================
   🌹 FOREVER WITH YOU — LUXURY ROMANTIC SINGLE-STAGE WEB APP
   Palette: Soft Vanilla Cream, Light Blush Pink, Deep Burgundy & Rose Gold
   ====================================================== */

/* === FONTS IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400;1,600&family=Dancing+Script:wght@400;600;700&family=Nunito:wght@300;400;600;700&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400;1,600&display=swap');

/* === CSS RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === LUXURY COLOR PALETTE & DESIGN TOKENS === */
:root {
  /* Soft Cream & Light Pink Canvas Tokens */
  --bg-dark-1:       #fff7f9;
  --bg-dark-2:       #ffeaf0;
  --bg-dark-3:       #fcd6e2;
  --bg-wine:         #f8bbd0;
  --bg-ruby:         #f48fb1;

  /* Radiant Rose & Deep Burgundy Typography */
  --text-deep:       #4a0b22;
  --text-medium:     #7a123b;
  --text-rose:       #c2185b;
  --rose-50:         #4a0b22;
  --rose-100:        #7a123b;
  --rose-200:        #8c113b;
  --rose-300:        #ad1457;
  --rose-400:        #e91e63;
  --rose-500:        #d81b60;
  --rose-600:        #c2185b;
  --rose-700:        #880e4f;

  /* Champagne & Gold Luxury Accents */
  --gold-50:         #fffdf5;
  --gold-100:        #4a0b22;
  --gold-200:        #7a123b;
  --gold-300:        #d4af37;
  --gold-400:        #c59b27;
  --gold-500:        #b3871d;
  --champagne:       #5c0926;
  --champagne-glow:  rgba(212, 175, 55, 0.3);
  --gold-glow:       rgba(212, 175, 55, 0.35);

  /* Typography */
  --font-display:    'Cinzel Decorative', serif;
  --font-script:     'Dancing Script', cursive;
  --font-serif:      'Playfair Display', serif;
  --font-body:       'Nunito', sans-serif;
  --font-sans:       'Outfit', sans-serif;
  --font-hand:       'Alex Brush', cursive;

  /* Shadows & Glows */
  --glow-rose:       0 0 25px rgba(233, 30, 99, 0.35);
  --glow-gold-lg:    0 0 22px rgba(212, 175, 55, 0.4);
  --shadow-lux:      0 15px 40px rgba(186, 24, 77, 0.15);
  --transition-smooth: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === HTML & BODY BASE === */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg-dark-1);
  color: var(--rose-50);
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* === MUSIC BUTTON === */
.ambient-music-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 248, 250, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1.5px solid var(--gold-300);
  color: var(--rose-600);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 6px 25px rgba(225, 29, 83, 0.15), var(--glow-gold-lg);
  transition: all 0.3s ease;
}
.ambient-music-btn:hover {
  transform: scale(1.1) rotate(12deg);
  border-color: var(--rose-400);
  box-shadow: var(--glow-rose);
}
.ambient-music-btn.active {
  background: linear-gradient(135deg, var(--rose-600), var(--rose-700));
  color: #fff;
  border-color: #fff;
  animation: pulseTone 2s infinite ease-in-out;
}
@keyframes pulseTone {
  0%, 100% { transform: scale(1); box-shadow: var(--glow-gold-lg); }
  50% { transform: scale(1.08); box-shadow: var(--glow-rose); }
}

/* === CUSTOM ROMANTIC CURSOR === */
.cursor {
  width: 22px;
  height: 22px;
  border: 2px solid #e91e63;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
  box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #d81b60;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #d81b60;
}
.heart-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  animation: floatHeart 1.2s ease-out forwards;
  color: var(--rose-400);
  text-shadow: 0 0 10px rgba(244, 63, 110, 0.5);
}
@keyframes floatHeart {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-70px) scale(0.4); }
}

/* === SINGLE STAGE & VIEW CONTAINERS === */
.app-stage {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff8fb 0%, #ffecf2 55%, #f7cad9 100%);
  padding: 1.2rem;
}

.view-stage {
  width: 100%;
  max-width: 860px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 10;
  margin: 0 auto;
}

.view-intro {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.view-proposal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Ambient Background Orbs */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.65;
  z-index: 1;
  animation: orbDrift 16s ease-in-out infinite alternate;
}
.orb-1 { width: 450px; height: 450px; background: radial-gradient(circle, rgba(255, 182, 193, 0.75) 0%, transparent 70%); top: -100px; left: -100px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(255, 218, 185, 0.7) 0%, transparent 70%); bottom: -120px; right: -100px; }

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

.big-heart-bg {
  position: absolute;
  font-size: clamp(260px, 45vw, 550px);
  color: rgba(244, 63, 110, 0.06);
  user-select: none;
  pointer-events: none;
  animation: heartbeatSlow 3.2s ease-in-out infinite;
  z-index: 2;
  will-change: transform;
}
@keyframes heartbeatSlow {
  0%, 100% { transform: scale(1) translateZ(0); opacity: 0.06; }
  15% { transform: scale(1.06) translateZ(0); opacity: 0.09; }
  30% { transform: scale(1) translateZ(0); opacity: 0.06; }
  45% { transform: scale(1.04) translateZ(0); opacity: 0.08; }
}

/* Falling Rose Petals */
.petals-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}
.petal {
  position: absolute;
  top: -40px;
  border-radius: 50% 0 50% 50%;
  opacity: 0.75;
  animation: petalFall linear infinite;
  will-change: transform;
}
@keyframes petalFall {
  0% { transform: translateY(-40px) rotate(0deg) translateX(0) translateZ(0); opacity: 0.8; }
  50% { transform: translateY(50vh) rotate(180deg) translateX(30px) translateZ(0); opacity: 0.6; }
  100% { transform: translateY(105vh) rotate(360deg) translateX(-20px) translateZ(0); opacity: 0; }
}

/* Confession Intro Typography & Badges */
.tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 250, 245, 0.95);
  border: 1.5px solid var(--gold-300);
  padding: 0.35rem 1.3rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7a123b;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(225, 29, 83, 0.12);
  animation: badgeGlowPulse 3s infinite ease-in-out;
}
@keyframes badgeGlowPulse {
  0%, 100% { border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 4px 20px rgba(225, 29, 83, 0.12); }
  50% { border-color: rgba(212, 175, 55, 0.85); box-shadow: 0 0 25px rgba(212, 175, 55, 0.35); }
}

.opening-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  font-weight: 700;
  color: #4a0b22;
  line-height: 1.15;
  letter-spacing: 2px;
  text-shadow: 0 2px 15px rgba(225, 29, 83, 0.12);
  margin-bottom: 1.4rem;
}
.opening-title span {
  font-family: var(--font-script);
  font-weight: 700;
  color: #d81b60;
  display: block;
  font-size: 1.3em;
  text-shadow: 0 0 25px rgba(216, 27, 96, 0.3);
  margin-top: -0.05em;
}

.confession-text-container {
  max-width: 680px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.confession-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.12rem, 2.7vw, 1.48rem);
  line-height: 1.55;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(16px);
  animation: romanticLineFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.confession-line.line-1 { animation-delay: 0.4s; color: #4a0b22; }
.confession-line.line-2 { animation-delay: 1.4s; color: #8c113b; }
.confession-line.line-3 { animation-delay: 2.4s; color: #c2185b; font-weight: 600; text-shadow: 0 0 12px rgba(194, 24, 91, 0.25); }

@keyframes romanticLineFadeUp {
  0% { opacity: 0; transform: translateY(16px); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.welcome-sub-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 2.1vw, 1.12rem);
  color: #6a1b3d;
  max-width: 540px;
  margin-bottom: 1.8rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(16px);
  animation: romanticLineFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 3.3s;
}

.btn-start-proposal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--rose-600), var(--rose-700));
  border: 1.5px solid var(--gold-300);
  color: #ffffff;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(225, 29, 83, 0.35), var(--glow-rose);
  transition: all 0.35s ease;
  opacity: 0;
  transform: translateY(16px);
  animation: romanticLineFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards, btnHeartPulse 2.5s ease-in-out infinite 4.2s;
  animation-delay: 4.0s, 4.2s;
}
@keyframes btnHeartPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(225, 29, 83, 0.35), var(--glow-rose); }
  50% { transform: scale(1.03); box-shadow: 0 12px 38px rgba(244, 63, 110, 0.55), var(--glow-gold-lg); }
}
.btn-start-proposal:hover {
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 14px 40px rgba(244, 63, 110, 0.6), var(--glow-gold-lg) !important;
  border-color: #fff;
}

/* === PROPOSAL CONVERSATION STAGE & SPEECH BUBBLE === */
.proposal-dialogue-stage {
  width: 100%;
  max-width: 640px;
  height: 110px;
  min-height: 110px;
  max-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
  flex-shrink: 0;
  z-index: 15;
}

.headside-speech-bubble {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  background: rgba(255, 252, 248, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--gold-300);
  border-radius: 16px;
  padding: 0.55rem 1.1rem;
  text-align: left;
  box-shadow: 0 10px 30px rgba(186, 24, 77, 0.15), 0 0 18px rgba(212, 175, 55, 0.2);
  z-index: 20;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: bubblePopIn 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.headside-speech-bubble.bubble-left { margin-right: auto; margin-left: 8%; }
.headside-speech-bubble.bubble-left .bubble-tail { left: 28%; right: auto; }
.headside-speech-bubble.bubble-right { margin-left: auto; margin-right: 8%; }
.headside-speech-bubble.bubble-right .bubble-tail { right: 28%; left: auto; }

.bubble-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2px;
}
.bubble-avatar { font-size: 1.1rem; }
.bubble-speaker-name {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c2185b;
}
.bubble-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #3b091a;
  line-height: 1.35;
}
.bubble-tail {
  position: absolute;
  bottom: -9px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--gold-300);
}

/* Dialogue Next & Custom Reply Elements */
.btn-next-dialogue {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  border: 1.5px solid var(--gold-300);
  color: #ffffff;
  padding: 0.65rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(233, 30, 99, 0.35), var(--glow-rose);
  transition: all 0.35s ease;
  animation: pulseStart 2s infinite ease-in-out;
}
@keyframes pulseStart {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(244, 63, 110, 0.3); }
  50% { transform: scale(1.04); box-shadow: 0 10px 30px rgba(244, 63, 110, 0.6), var(--glow-gold-lg); }
}
.btn-next-dialogue:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: #ffffff;
  background: linear-gradient(135deg, #f06292, #ad1457);
}

.girl-custom-reply-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
  animation: fadeInReply 0.4s ease;
}
@keyframes fadeInReply {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.reply-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  background: rgba(255, 250, 252, 0.96);
  border: 1.5px solid var(--gold-300);
  border-radius: 50px;
  padding: 0.35rem 0.4rem 0.35rem 1.1rem;
  box-shadow: 0 8px 30px rgba(225, 29, 83, 0.15), var(--glow-rose);
}
.girl-reply-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #4a0b22;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.girl-reply-input::placeholder {
  color: #a35070;
  font-style: italic;
}
.btn-send-reply {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  border: 1px solid var(--gold-300);
  color: #fff;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-send-reply:hover {
  transform: scale(1.05);
  border-color: #fff;
  box-shadow: var(--glow-rose);
}

.quick-reply-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.reply-pill {
  background: #fff0f5;
  border: 1px solid #f8bbd0;
  color: #880e4f;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.reply-pill:hover {
  background: #e91e63;
  border-color: #e91e63;
  color: #fff;
  transform: translateY(-2px);
}

/* === HERO CHARACTER FRAME === */
.proposal-hero-frame {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 250px;
  margin: 0 auto 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proposal-hero-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 143, 177, 0.45) 0%, rgba(255, 205, 210, 0.35) 50%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  transition: all 0.6s ease;
}
.proposal-hero-frame.proposal-active .proposal-hero-glow {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(244, 143, 177, 0.65) 0%, rgba(255, 205, 210, 0.45) 45%, transparent 70%);
  filter: blur(40px);
  animation: proposalGlowPulse 2.5s ease-in-out infinite alternate;
}
@keyframes proposalGlowPulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.12); opacity: 1; }
}

.character-ground-aura {
  position: absolute;
  bottom: 0;
  width: 320px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(186, 24, 77, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.proposal-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.proposal-hero-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(186, 24, 77, 0.25)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.3));
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  will-change: opacity, transform, filter;
  animation: heroFloat 4s ease-in-out infinite alternate;
}
.proposal-hero-img.img-switching {
  opacity: 0 !important;
  transform: scale(0.9) translateY(12px) !important;
  filter: blur(8px) !important;
}
.proposal-hero-img.img-proposal-enter {
  animation: proposalPopIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}
@keyframes proposalPopIn {
  0% { opacity: 0; transform: scale(0.85) translateY(15px); filter: blur(10px); }
  50% { filter: blur(0px) drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: drop-shadow(0 14px 32px rgba(186, 24, 77, 0.3)) drop-shadow(0 0 25px rgba(233, 30, 99, 0.35)); }
}
@keyframes heroFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.proposal-badge-wrap {
  margin-top: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  width: 100%;
}

.proposal-sparkle-badge {
  position: relative;
  background: rgba(255, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--gold-300);
  padding: 0.35rem 1.2rem;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #7a123b;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(225, 29, 83, 0.15), var(--glow-gold-lg);
  z-index: 5;
  transition: all 0.4s ease;
}

/* === DYNAMIC PROPOSAL ACTIONS & CHOICE BUTTONS === */
.proposal-dynamic-action {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phase-action-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.no-break {
  white-space: nowrap;
  display: inline-block;
}

.finale-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #380214;
  margin-bottom: 0.35rem;
  line-height: 1.3;
  letter-spacing: 1.5px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 3px 18px rgba(194, 24, 91, 0.18);
}
.finale-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  color: #720b2f;
  font-weight: 600;
  margin-bottom: 0.7rem;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.proposal-action-zone {
  position: relative;
  width: 100%;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}
.buttons-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  position: relative;
  width: 100%;
}
.btn-finale-yes {
  --yes-scale: 0.75;
  background: linear-gradient(135deg, #d81b60, #880e4f);
  border: 2px solid #ffd54f;
  color: #ffffff;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(216, 27, 96, 0.45), 0 0 20px rgba(255, 213, 79, 0.4);
  transform: scale(var(--yes-scale, 1));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: pulseYes 2s infinite ease-in-out;
  z-index: 10;
  will-change: transform;
}
@keyframes pulseYes {
  0%, 100% { transform: scale(var(--yes-scale, 1)); box-shadow: 0 8px 30px rgba(216, 27, 96, 0.45); }
  50% { transform: scale(calc(var(--yes-scale, 1) * 1.05)); box-shadow: 0 12px 45px rgba(216, 27, 96, 0.7), var(--glow-gold-lg); }
}
.btn-finale-yes small {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fffde7;
  letter-spacing: 0.3px;
}

.btn-finale-no {
  background: #ffffff;
  border: 1.5px solid #d4af37;
  color: #880e4f;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(186, 24, 77, 0.16);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  z-index: 5;
  will-change: transform;
}
.btn-finale-no:hover {
  background: #fff0f5;
  border-color: #e91e63;
  color: #4a0b22;
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.dodge-tooltip {
  position: absolute;
  bottom: -42px;
  background: #ffffff;
  border: 1.5px solid #d4af37;
  color: #720b2f;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  border-radius: 30px;
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  box-shadow: 0 8px 25px rgba(186, 24, 77, 0.2), var(--glow-rose);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 15;
  white-space: nowrap;
}
.dodge-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: tooltipPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes tooltipPop {
  0% { opacity: 0; transform: translateY(10px) scale(0.85); }
  60% { transform: translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hug-celebration-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: #4a0b22;
}

/* === CELEBRATION PARTICLES & CONFETTI === */
.proposal-particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.proposal-particle {
  position: absolute;
  color: var(--rose-400);
  font-size: 1.15rem;
  opacity: 0;
  animation: proposalParticleFloat linear infinite;
  text-shadow: 0 0 10px rgba(244, 63, 110, 0.6);
}
@keyframes proposalParticleFloat {
  0%   { transform: translateY(0) scale(0.35) rotate(0deg); opacity: 0; }
  25%  { opacity: 0.85; transform: translateY(-45px) scale(1.15) rotate(55deg); }
  70%  { opacity: 0.65; transform: translateY(-110px) scale(0.9) rotate(115deg); }
  100% { transform: translateY(-170px) scale(0.2) rotate(180deg); opacity: 0; }
}

.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
  animation: confettiFall linear infinite;
  border-radius: 2px;
}
@keyframes confettiFall {
  0%   { opacity: 1; transform: translateY(-20px) rotate(0deg) translateX(0); }
  100% { opacity: 0; transform: translateY(105vh) rotate(720deg) translateX(var(--cx)); }
}

.celebration-burst-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9990;
  animation: floatCelebrationParticle 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 0 12px rgba(244, 63, 110, 0.8));
  user-select: none;
}
@keyframes floatCelebrationParticle {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.3) rotate(0deg); }
  50% { opacity: 1; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.3) rotate(180deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx) * 1.35), calc(-50% + var(--ty) - 90px)) scale(0.2) rotate(360deg); }
}

.celebration-ring {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 3px solid var(--gold-300);
  box-shadow: 0 0 50px var(--rose-400), inset 0 0 40px var(--gold-400);
  pointer-events: none;
  z-index: 9980;
  animation: celebrationRingExpand 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes celebrationRingExpand {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
  60% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.8); }
}

/* === REVEAL UTILITIES & RESPONSIVENESS === */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  .opening-title { font-size: clamp(2rem, 8.5vw, 3rem); }
  .proposal-dialogue-stage { min-height: 90px; margin-top: 0.4rem; margin-bottom: 1.1rem; }
  .proposal-hero-frame { height: 210px; margin: 0 auto 0.3rem; }
  .proposal-hero-img { max-height: 200px; }
  .headside-speech-bubble {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 auto !important;
    width: 92% !important;
    max-width: 320px !important;
    padding: 0.5rem 0.9rem !important;
    text-align: center !important;
  }
  .headside-speech-bubble .bubble-header { justify-content: center !important; }
  .headside-speech-bubble.bubble-left .bubble-tail { left: 32% !important; right: auto !important; transform: none !important; bottom: -8px !important; }
  .headside-speech-bubble.bubble-right .bubble-tail { left: 68% !important; right: auto !important; transform: none !important; bottom: -8px !important; }
  .bubble-text { font-size: 0.88rem !important; line-height: 1.3 !important; }
  .finale-title { font-size: clamp(1.15rem, 4.5vw, 1.45rem) !important; margin-bottom: 0.15rem; }
  .finale-sub { font-size: 0.82rem !important; margin-bottom: 0.4rem; }
  .buttons-wrap { gap: 0.8rem; }
  .btn-finale-yes { padding: 0.65rem 1.6rem; font-size: 1.1rem; }
  .btn-finale-no { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
}

@media (max-height: 720px) {
  .proposal-hero-frame { height: 190px; margin: 0 auto 0.2rem; }
  .proposal-hero-img { max-height: 180px; }
  .opening-title { font-size: 2.2rem; margin-bottom: 0.4rem; }
}
