*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffe4ec 0%, #ffd6e7 30%, #ffb3c6 60%, #ff85a1 100%);
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Floating petals */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.petal {
  position: absolute;
  top: -40px;
  font-size: 1.4rem;
  animation: fall linear infinite;
  opacity: 0.7;
}
@keyframes fall {
  0%   { transform: translateY(-40px) rotate(0deg); opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Card */
.card {
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 32px;
  padding: 56px 52px 48px;
  max-width: 480px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 24px 64px rgba(255,100,130,0.22), 0 4px 16px rgba(255,100,130,0.12);
  animation: floatCard 4s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Bear */
.bear-wrap { margin-bottom: 18px; }
.bear {
  font-size: 5rem;
  display: inline-block;
  animation: heartbeat 1.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(255,100,130,0.3));
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14%       { transform: scale(1.18); }
  28%       { transform: scale(1); }
  42%       { transform: scale(1.12); }
  56%       { transform: scale(1); }
}

/* Question */
.question {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 2.8rem);
  color: #8b1a3a;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.question em {
  font-style: italic;
  font-weight: 400;
  color: #c0395a;
}
.subtext {
  font-size: 0.95rem;
  color: #b06070;
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}

/* Buttons */
.btn-area {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  min-height: 60px;
}
.btn {
  padding: 14px 38px;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.02em;
}
.btn.yes {
  background: linear-gradient(135deg, #ff6b8a, #e8365d);
  color: #fff;
  box-shadow: 0 6px 24px rgba(232,54,93,0.38);
}
.btn.yes:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(232,54,93,0.5);
}
.btn.yes:active { transform: scale(0.97); }

.btn.no {
  background: rgba(255,255,255,0.6);
  color: #c0395a;
  border: 1.5px solid rgba(192,57,90,0.3);
  position: absolute;
}

/* Celebration overlay */
.celebration {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,182,200,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.5s ease;
}
.celebration.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.cel-card {
  background: rgba(255,255,255,0.75);
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 32px;
  padding: 56px 52px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(255,100,130,0.28);
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 420px;
  width: 88vw;
}
@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.big-emoji { font-size: 5rem; margin-bottom: 16px; animation: spin 1s ease; }
@keyframes spin { from { transform: rotate(-20deg) scale(0.5); } to { transform: rotate(0deg) scale(1); } }

.cel-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: #8b1a3a;
  margin-bottom: 12px;
}
.cel-card p {
  font-size: 1.05rem;
  color: #b06070;
  line-height: 1.7;
  margin-bottom: 20px;
}
.hearts-row { font-size: 1.6rem; letter-spacing: 6px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Confetti pieces */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
  z-index: 99;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
