/* ============================================
   Client: name
   Dark aesthetic, floating hearts, center CTA
   ============================================ */

/* Override globals for this client */
body {
  --font-display: 'Playfair Display', 'Georgia', serif;
  --bg-primary: #0d0510;
  --accent: #ff6b9d;
  --accent-soft: rgba(255, 107, 157, 0.25);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1a0a18 0%, #0d0510 50%, #050208 100%);
  background-attachment: fixed;
  overscroll-behavior: none;
}


/* Import a nice font (optional - can use system fonts) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* ---- Floating love images (hearts) in background ---- */
.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart {
  position: absolute;
  bottom: -10%;
  font-size: 1.5rem;
  opacity: 0.35;
  animation: floatUp linear infinite;
}

.heart span {
  display: inline-block;
  filter: drop-shadow(0 0 6px var(--accent-soft));
}

/* Stagger delays and durations for natural feel */
.heart:nth-child(1) { left: 5%;  animation-duration: 12s; animation-delay: 0s;   font-size: 1.2rem; }
.heart:nth-child(2) { left: 15%; animation-duration: 14s; animation-delay: 2s;   font-size: 1.8rem; }
.heart:nth-child(3) { left: 25%; animation-duration: 11s; animation-delay: 4s;   font-size: 1rem; }
.heart:nth-child(4) { left: 35%; animation-duration: 16s; animation-delay: 1s;   font-size: 2rem; }
.heart:nth-child(5) { left: 45%; animation-duration: 13s; animation-delay: 3s;   font-size: 1.4rem; }
.heart:nth-child(6) { left: 55%; animation-duration: 15s; animation-delay: 5s;   font-size: 1.6rem; }
.heart:nth-child(7) { left: 65%; animation-duration: 12s; animation-delay: 0.5s; font-size: 1.3rem; }
.heart:nth-child(8) { left: 75%; animation-duration: 14s; animation-delay: 2.5s; font-size: 1.9rem; }
.heart:nth-child(9) { left: 85%; animation-duration: 11s; animation-delay: 3.5s; font-size: 1.1rem; }
.heart:nth-child(10){ left: 92%; animation-duration: 13s; animation-delay: 1.5s; font-size: 1.5rem; }

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.35;
  }
  15% {
    opacity: 0.5;
  }
  85% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-110vh) rotate(15deg);
    opacity: 0;
  }
}

/* ---- Main content (center) ---- */
.main-wrap {
  position: relative;
  z-index: 1;
  min-height: 0;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  overflow: hidden;
}

.content-box {
  max-width: 420px;
}

/* Emoji above question */
.emoji-block {
  margin-bottom: 1.25rem;
  font-size: 4.5rem;
  line-height: 1;
  animation: gentleBounce 2.5s ease-in-out infinite;
}

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

/* Main question text */
.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  text-shadow: 0 0 30px var(--accent-soft), 0 2px 20px rgba(0,0,0,0.4);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.question-text em {
  font-style: italic;
  color: var(--accent);
}

/* Buttons container */
.buttons-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: 52px;
}

.btn {
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  isolation: isolate;
}

.btn-yes {
  background: linear-gradient(135deg, #ff6b9d 0%, #c2185b 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
  -webkit-tap-highlight-color: transparent;
}

.btn-yes::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 0;
}

.btn-yes:active::after {
  opacity: 1;
}

.btn-yes:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(255, 107, 157, 0.5);
}

.btn-no {
  background: rgba(255,255,255,0.12);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.2);
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  border-radius: 999px;
}

.btn-no:hover,
.btn-no:active,
.btn-no:focus,
.btn-no:focus-visible {
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
  background: rgba(255,255,255,0.12);
}

.btn-no::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* No button is moved by JS; this is fallback position */
.btn-no {
  transition: transform 0.15s ease-out;
}

/* ---- Success state (after Yes) ---- */
.success-wrap {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

.success-wrap.is-visible {
  display: flex;
  animation: fadeIn 0.6s ease forwards;
}

.initial-wrap.is-hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.celebration-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: popIn 0.5s ease forwards;
}

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

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  max-width: 380px;
  text-shadow: 0 0 20px var(--accent-soft);
}

/* Confetti / celebration container (filled by JS) */
.confetti-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.confetti-wrap .piece {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}
