/* ==========================================================================
   FOR MY MIMI 🎀 | Cutest Interactive Experience & Love Sanctuary
   Mobile First, Touch Screen Optimized with Haptic & Safe Insets
   ========================================================================== */

:root {
  --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #FFE4E8 50%, #FFD1DC 100%);
  --primary-pink: #FF6B8B;
  --primary-hover: #FF4D73;
  --secondary-pink: #FFAAA6;
  --accent-gold: #FFD166;
  --plum-rose: #9D174D;
  --soft-cream: #FFFDF9;
  --text-dark: #4A303D;
  --text-muted: #8C6A7B;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 182, 193, 0.55);
  --glass-shadow: 0 14px 38px rgba(255, 107, 139, 0.18);
  --card-shadow: 0 10px 30px -5px rgba(157, 23, 77, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-display: 'Fredoka', 'Quicksand', -apple-system, sans-serif;
  --font-body: 'Quicksand', -apple-system, sans-serif;
  --font-handwriting: 'Caveat', 'Pacifico', cursive;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  touch-action: manipulation;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-gradient);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  position: relative;
  line-height: 1.6;
  user-select: none;
  -webkit-user-select: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Background floating particles */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 24px;
  opacity: 0.35;
  animation: floatHeart 12s infinite linear;
}

@keyframes floatHeart {
  0% {
    transform: translateY(110vh) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.45;
  }
  85% {
    opacity: 0.45;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Audio Widget (Top Right) */
.floating-audio-widget {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 100;
  display: flex;
  gap: 8px;
  align-items: center;
}

.audio-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid var(--glass-border);
  padding: 8px 14px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--plum-rose);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 139, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.audio-btn:hover, .audio-btn:active {
  transform: translateY(-2px) scale(1.05);
  background: #fff;
  box-shadow: 0 6px 16px rgba(255, 107, 139, 0.3);
}

.audio-btn.playing .audio-icon {
  animation: spin 3s infinite linear;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Fullscreen Canvas Confetti */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
}

/* Main Container */
.main-wrapper {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 14px 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   STAGE 1: THE RUNAWAY QUESTION CARD
   ========================================================================== */
#stage-question {
  width: 100%;
  max-width: 560px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 3px solid #FFF;
  border-radius: var(--radius-xl);
  padding: 34px 22px;
  text-align: center;
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-border);
  position: relative;
  animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFE4E8, #FFD1DC);
  color: var(--plum-rose);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(157, 23, 77, 0.12);
}

.character-container {
  width: 130px;
  height: 130px;
  margin: 0 auto 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.character-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(255, 107, 139, 0.3));
  animation: gentleBounce 2.5s infinite ease-in-out;
}

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

.question-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--plum-rose);
  margin-bottom: 6px;
  line-height: 1.3;
}

.question-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-weight: 600;
}

/* Playful Dynamic Tease Quote Banner */
.tease-banner {
  min-height: 48px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tease-pill {
  display: inline-block;
  background: #FFF;
  color: var(--primary-pink);
  border: 2px dashed var(--secondary-pink);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(255, 107, 139, 0.12);
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.2s ease;
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Button Zone */
.button-arena {
  position: relative;
  min-height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-choice {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  touch-action: manipulation;
}

/* The Growing "No" Button */
#btn-no {
  background: linear-gradient(135deg, #FF6B8B, #FF85A2);
  color: #FFF;
  box-shadow: 0 6px 20px rgba(255, 107, 139, 0.4);
  position: relative;
  z-index: 10;
  animation: pulseGlow 2s infinite ease-in-out;
}

#btn-no:hover, #btn-no:active {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(255, 107, 139, 0.6);
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(255, 107, 139, 0.4);
  }
  50% {
    box-shadow: 0 8px 30px rgba(255, 107, 139, 0.75), 0 0 15px rgba(255, 209, 220, 0.8);
  }
}

/* The Runaway "Yes" Button */
#btn-yes {
  background: #FFF;
  color: var(--text-muted);
  border: 2px solid #E2D5DE;
  position: relative;
  z-index: 5;
  transition: transform 0.12s ease-out, top 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#btn-yes.running {
  position: fixed;
  z-index: 999;
}

/* Give Up Button (Appears after dodges) */
.give-up-container {
  margin-top: 18px;
  display: none;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-give-up {
  background: #FFF0F5;
  color: var(--plum-rose);
  border: 2px dashed var(--primary-pink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(255, 107, 139, 0.15);
  touch-action: manipulation;
}

.btn-give-up:hover, .btn-give-up:active {
  background: #FFE4E8;
  transform: scale(1.05);
}

.dodge-counter {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   GIVE UP / SONG PHRASE MODAL
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(74, 48, 61, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background: #FFFDF9;
  border: 3px solid #FFF;
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: cardEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-music-icon {
  font-size: 40px;
  margin-bottom: 10px;
  display: inline-block;
}

.song-quote-box {
  background: #FFF0F5;
  border-left: 4px solid var(--primary-pink);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  margin: 14px 0 18px;
  text-align: center;
}

.song-lyrics-bengali {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--plum-rose);
  line-height: 1.6;
}

.song-audio-player {
  margin: 14px auto 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-play-song {
  background: linear-gradient(135deg, #FF6B8B, #FF85A2);
  color: #FFF;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(255, 107, 139, 0.35);
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-play-song:hover, .btn-play-song:active {
  transform: scale(1.05);
}

.btn-close-modal {
  background: #FFF;
  border: 2px solid var(--glass-border);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
  touch-action: manipulation;
}

.btn-close-modal:hover, .btn-close-modal:active {
  background: #FFE4E8;
  border-color: var(--primary-pink);
}

/* ==========================================================================
   STAGE 2: CELEBRATION & REASSURANCE
   ========================================================================== */
#stage-celebration {
  display: none;
  width: 100%;
  animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Reassurance Banner */
.celebration-hero {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 3px solid #FFF;
  border-radius: var(--radius-xl);
  padding: 34px 20px;
  text-align: center;
  box-shadow: var(--glass-shadow);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hero-sparkle {
  font-size: 38px;
  margin-bottom: 8px;
  animation: pulse 1.5s infinite alternate ease-in-out;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--plum-rose);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.reassurance-container {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.sweet-line-1 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--plum-rose);
  font-weight: 700;
  margin-bottom: 6px;
}

.sweet-line-2 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--primary-pink);
  font-weight: 700;
  margin-bottom: 18px;
}

.sweet-conversation-card {
  background: rgba(255, 240, 245, 0.9);
  border: 2px dashed #FFB6C1;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 0 auto;
  display: inline-block;
  text-align: center;
  max-width: 100%;
}

.chat-bubble {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.chat-bubble:last-child {
  margin-bottom: 0;
}

.chat-bubble.big-highlight {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--plum-rose);
  margin-top: 8px;
}

/* Sticky Navigation Tabs */
.sanctuary-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  position: sticky;
  top: max(12px, env(safe-area-inset-top));
  z-index: 50;
}

.nav-tab {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  padding: 9px 16px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--plum-rose);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 107, 139, 0.12);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  touch-action: manipulation;
}

.nav-tab:hover, .nav-tab:active {
  transform: translateY(-2px);
  background: #FFF;
}

.nav-tab.active {
  background: var(--primary-pink);
  color: #FFF;
  border-color: var(--primary-pink);
  box-shadow: 0 6px 18px rgba(255, 107, 139, 0.35);
  transform: translateY(-2px) scale(1.03);
}

/* Tab Panels */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   HUB 1: LOVE COUPONS (PEACE TREATY)
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 22px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--plum-rose);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  width: 100%;
}

.coupon-card {
  background: var(--soft-cream);
  border: 2px dashed #FFB6C1;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.coupon-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-pink);
  box-shadow: 0 14px 28px rgba(255, 107, 139, 0.18);
}

.coupon-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.coupon-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--plum-rose);
  margin-bottom: 6px;
}

.coupon-text {
  font-size: 13.5px;
  color: var(--text-dark);
  margin-bottom: 16px;
  flex-grow: 1;
}

.btn-redeem {
  align-self: flex-start;
  background: linear-gradient(135deg, #FF6B8B, #FF85A2);
  color: #FFF;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(255, 107, 139, 0.25);
  touch-action: manipulation;
}

.btn-redeem:hover, .btn-redeem:active {
  transform: scale(1.05);
  background: var(--primary-hover);
}

.coupon-card.redeemed .btn-redeem {
  background: #9CA3AF;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Rubber Stamp Effect */
.stamp-badge {
  display: none;
  position: absolute;
  top: 18px;
  right: 12px;
  border: 3px solid #E11D48;
  color: #E11D48;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: rotate(-12deg);
  opacity: 0.88;
  animation: stampSlam 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.coupon-card.redeemed .stamp-badge {
  display: block;
}

@keyframes stampSlam {
  0% { transform: scale(3) rotate(-25deg); opacity: 0; }
  100% { transform: scale(1) rotate(-12deg); opacity: 0.88; }
}

/* --------------------------------------------------------------------------
   HUB 2: WAX-SEALED APOLOGY LETTER
   -------------------------------------------------------------------------- */
.letter-zone {
  display: flex;
  justify-content: center;
  padding: 10px 0 28px;
}

.envelope-wrapper {
  width: 100%;
  max-width: 580px;
  perspective: 1000px;
}

.envelope-card {
  background: #FFF7F0;
  border: 2px solid #EAD8C7;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(157, 23, 77, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.envelope-closed {
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  background: linear-gradient(135deg, #FFF5EA 0%, #FFE9D6 100%);
  touch-action: manipulation;
}

.wax-seal {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  background: radial-gradient(circle at 30% 30%, #E11D48, #9F1239);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD166;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(159, 18, 57, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  position: relative;
  transition: transform 0.25s ease;
}

.envelope-closed:hover .wax-seal, .envelope-closed:active .wax-seal {
  transform: scale(1.1) rotate(5deg);
}

.seal-prompt {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--plum-rose);
  margin-bottom: 4px;
}

.seal-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* Opened Letter Paper */
.letter-paper {
  display: none;
  background: #FFFDF9;
  padding: 34px 26px;
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--primary-pink);
  position: relative;
  animation: unfoldLetter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes unfoldLetter {
  0% { opacity: 0; transform: translateY(-20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.letter-header {
  font-family: var(--font-handwriting);
  font-size: 30px;
  color: var(--plum-rose);
  font-weight: 700;
  margin-bottom: 16px;
}

.letter-body {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 22px;
}

.letter-body p {
  margin-bottom: 12px;
}

.letter-signature {
  font-family: var(--font-handwriting);
  font-size: 26px;
  color: var(--primary-pink);
  text-align: right;
  font-weight: 700;
  line-height: 1.3;
}

.btn-fold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--secondary-pink);
  color: var(--plum-rose);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-fold:hover, .btn-fold:active {
  background: #FFE4E8;
}

/* --------------------------------------------------------------------------
   HUB 3: 3D POLAROID MEMORY WALL (REAL PHOTOS)
   -------------------------------------------------------------------------- */
.polaroids-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 8px;
}

.polaroid-card {
  width: 250px;
  background: #FFF;
  padding: 12px 12px 20px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  transform-origin: center;
  touch-action: manipulation;
}

.polaroid-card:nth-child(even) { transform: rotate(2deg); }
.polaroid-card:nth-child(odd) { transform: rotate(-2deg); }

.polaroid-card:hover, .polaroid-card:active {
  transform: translateY(-8px) rotate(0deg) scale(1.04);
  box-shadow: 0 18px 36px rgba(157, 23, 77, 0.2);
  z-index: 15;
}

.washi-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 65px;
  height: 20px;
  background: rgba(255, 182, 193, 0.75);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-left: 2px dashed rgba(255, 255, 255, 0.6);
  border-right: 2px dashed rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.polaroid-photo {
  width: 100%;
  height: 260px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.polaroid-card:hover .polaroid-photo img, .polaroid-card:active .polaroid-photo img {
  transform: scale(1.06);
}

.polaroid-caption {
  font-family: var(--font-handwriting);
  font-size: 20px;
  color: var(--plum-rose);
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}

.polaroid-subtitle {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   HUB 4: COMPLIMENT & MOOD BOOSTER GENERATOR
   -------------------------------------------------------------------------- */
.compliment-box {
  max-width: 520px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 3px solid #FFF;
  border-radius: var(--radius-xl);
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--glass-shadow);
}

.compliment-card-display {
  min-height: 120px;
  background: #FFF;
  border: 2px dashed var(--secondary-pink);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 6px rgba(255, 107, 139, 0.06);
}

.compliment-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--plum-rose);
  line-height: 1.5;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-generate {
  background: linear-gradient(135deg, #FF6B8B, #FF85A2);
  color: #FFF;
  border: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 107, 139, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-generate:hover, .btn-generate:active {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 22px rgba(255, 107, 139, 0.5);
}

/* --------------------------------------------------------------------------
   HUB 5: VIRTUAL HUG & HAPPINESS METER
   -------------------------------------------------------------------------- */
.meter-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 3px solid #FFF;
  border-radius: var(--radius-xl);
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--glass-shadow);
}

.hug-button-container {
  margin: 18px auto 24px;
}

.btn-hug {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF4D73, #FF85A2);
  border: 4px solid #FFF;
  color: #FFF;
  font-size: 44px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 77, 115, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  touch-action: manipulation;
}

.btn-hug:hover {
  transform: scale(1.08);
}

.btn-hug:active {
  transform: scale(0.92);
}

.progress-track {
  width: 100%;
  height: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--glass-border);
  border-radius: 50px;
  overflow: hidden;
  padding: 3px;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FFAAA6, #FF6B8B, #FFD166);
  border-radius: 50px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(255, 107, 139, 0.5);
}

.meter-stats {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--plum-rose);
}

.overload-msg {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #E11D48;
  display: none;
  animation: popIn 0.3s ease;
}

/* ==========================================================================
   GRAND BOUQUET REVEAL CEREMONY STYLES
   ========================================================================== */
.bouquet-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 230, 240, 0.95), rgba(74, 48, 61, 0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bouquet-card {
  background: rgba(255, 253, 249, 0.98);
  border: 4px solid #FFF;
  border-radius: var(--radius-xl);
  padding: 24px 18px 20px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 70px rgba(157, 23, 77, 0.35), 0 0 50px rgba(255, 182, 193, 0.6);
  position: relative;
  overflow: hidden;
  animation: bouquetBurstOut 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bouquetBurstOut {
  0% {
    opacity: 0;
    transform: scale(0.05) rotate(-28deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.2) rotate(6deg);
  }
  75% {
    transform: scale(0.92) rotate(-3deg);
  }
  90% {
    transform: scale(1.05) rotate(1.5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.bouquet-img-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bouquet-sparkle-aura {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.6) 0%, rgba(255, 107, 139, 0.35) 45%, transparent 75%);
  border-radius: 50%;
  animation: pulseAura 2.5s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulseAura {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.25); opacity: 1; }
}

.bouquet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(225, 29, 72, 0.4));
  animation: bouquetFloat 3.5s infinite ease-in-out;
}

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

.bouquet-note-card {
  background: #FFF0F5;
  border: 2px dashed #FFB6C1;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.bouquet-note-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--plum-rose);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.bouquet-note-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--plum-rose);
  margin-bottom: 6px;
}

.bouquet-note-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 8px;
}

.bouquet-signature {
  font-family: var(--font-handwriting);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-pink);
  text-align: right;
}

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

.btn-pluck-rose {
  background: #FFF;
  border: 2px solid var(--secondary-pink);
  color: var(--plum-rose);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-pluck-rose:hover, .btn-pluck-rose:active {
  background: #FFE4E8;
  transform: translateY(-2px);
}

.btn-accept-bouquet {
  background: linear-gradient(135deg, #FF6B8B, #FF4D73);
  color: #FFF;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 77, 115, 0.4);
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.btn-accept-bouquet:hover, .btn-accept-bouquet:active {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 25px rgba(255, 77, 115, 0.6);
}

/* Docked Bouquet in Stage 2 Hero */
.hero-bouquet-dock {
  width: 95px;
  height: 95px;
  margin: 0 auto 6px;
}

.docked-bouquet-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(255, 107, 139, 0.3));
  animation: gentleBounce 3s infinite ease-in-out;
}

/* Footer note */
.page-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .main-wrapper { padding: 14px 10px 60px; }
  .question-title { font-size: 22px; }
  .question-subtitle { font-size: 14px; }
  .hero-title { font-size: 28px; }
  .sweet-line-1 { font-size: 17px; }
  .sweet-line-2 { font-size: 15px; }
  .chat-bubble { font-size: 14px; }
  .chat-bubble.big-highlight { font-size: 17px; }
  .btn-choice { font-size: 15px; padding: 12px 20px; }
  .polaroid-card { width: 100%; max-width: 280px; }
  .floating-audio-widget { top: 8px; right: 8px; }
  .audio-btn { font-size: 11px; padding: 5px 9px; }
  .nav-tab { font-size: 11.5px; padding: 7px 12px; }
  .bouquet-img-wrapper { width: 270px; height: 270px; }
}

