/* ============================================
   Client: name
   Warm gradient, bokeh-style bg, love-of-my-life proposal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

body {
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --bg-primary: #0d0510;
  --accent: #d4567a;
  --accent-soft: rgba(212, 86, 122, 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;
}

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

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

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

.floating-hearts .heart:nth-child(1)  { left: 5%;  animation-duration: 12s; animation-delay: 0s;   font-size: 1.2rem; }
.floating-hearts .heart:nth-child(2)  { left: 15%; animation-duration: 14s; animation-delay: 2s;   font-size: 1.8rem; }
.floating-hearts .heart:nth-child(3)  { left: 25%; animation-duration: 11s; animation-delay: 4s;   font-size: 1rem; }
.floating-hearts .heart:nth-child(4)  { left: 35%; animation-duration: 16s; animation-delay: 1s;   font-size: 2rem; }
.floating-hearts .heart:nth-child(5)  { left: 45%; animation-duration: 13s; animation-delay: 3s;   font-size: 1.4rem; }
.floating-hearts .heart:nth-child(6)  { left: 55%; animation-duration: 15s; animation-delay: 5s;   font-size: 1.6rem; }
.floating-hearts .heart:nth-child(7)  { left: 65%; animation-duration: 12s; animation-delay: 0.5s; font-size: 1.3rem; }
.floating-hearts .heart:nth-child(8)  { left: 75%; animation-duration: 14s; animation-delay: 2.5s; font-size: 1.9rem; }
.floating-hearts .heart:nth-child(9)  { left: 85%; animation-duration: 11s; animation-delay: 3.5s; font-size: 1.1rem; }
.floating-hearts .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 layout ---- */
.main-wrap {
  position: relative;
  z-index: 1;
  min-height: 0;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  max-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  overflow: hidden;
}

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

/* Proposal screen */
.proposal-wrap .emoji-block {
  margin-bottom: 1rem;
  font-size: 4rem;
  line-height: 1;
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  text-shadow: 0 0 24px var(--accent-soft);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

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

.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.1rem;
  padding: 0.7rem 1.5rem;
  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;
  text-decoration: none;
  display: inline-block;
}

.btn-yes {
  background: linear-gradient(135deg, #d4567a 0%, #a03050 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(212, 86, 122, 0.4);
}

.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 24px rgba(212, 86, 122, 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;
  border-radius: 999px;
  width: auto;
  min-width: 0;
  white-space: nowrap;
}

.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;
}

/* Result screens – distinct font for Yes/No result pages */
.result-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  font-family: 'Libre Baskerville', Georgia, serif !important;
}

.result-wrap .result-quote,
.result-wrap .celebration-emoji,
.result-wrap .result-emoji {
  font-family: 'Libre Baskerville', Georgia, serif !important;
}

.result-wrap .btn-share {
  font-family: 'Libre Baskerville', Georgia, serif !important;
}

.result-wrap[hidden] {
  display: none !important;
}

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

.result-no .result-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

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

.result-quote {
  font-size: clamp(1.3rem, 3.8vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.01em;
  max-width: 380px;
  margin-bottom: 1.75rem;
  text-shadow: 0 0 24px var(--accent-soft);
}

.result-yes .result-quote {
  color: #ffe3f0;
}

.result-no .result-quote {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
}

.btn-share {
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-share:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.03);
}

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

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

/* Confetti (result yes) */
.confetti-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.confetti-wrap .confetti-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;
  }
}
