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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 50%, #fbc2eb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Floating hearts */
.hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 20px;
  animation: floatUp linear infinite;
  opacity: 0.6;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* Screens */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  padding: 20px;
}

.screen.hidden {
  display: none;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 380px;
  width: 100%;
  animation: fadeInUp 0.8s ease;
  position: relative;
  overflow: visible;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heart-icon {
  font-size: 64px;
  margin-bottom: 10px;
  animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
}

h1 {
  font-size: 32px;
  color: #e74c6f;
  margin-bottom: 12px;
  font-weight: 700;
}

.question {
  font-size: 20px;
  color: #555;
  margin-bottom: 35px;
  line-height: 1.5;
}

/* Buttons */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.btn {
  padding: 16px 50px;
  border: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 260px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-yes {
  background: linear-gradient(135deg, #e74c6f, #f06292);
  color: white;
  box-shadow: 0 6px 25px rgba(231, 76, 111, 0.4);
}

.btn-yes:active {
  transform: scale(0.95);
}

.btn-no {
  background: linear-gradient(135deg, #aaa, #bbb);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
  transition: none;
}

/* Growing yes button */
.btn-yes.growing {
  animation: growPulse 0.3s ease forwards;
}

@keyframes growPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Success screen */
.success-card {
  animation: fadeInUp 0.6s ease;
}

.love-text {
  font-size: 18px;
  color: #e74c6f;
  margin-bottom: 25px;
  font-weight: 500;
}

.photo-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 8px 30px rgba(231, 76, 111, 0.3);
  border: 4px solid #f8bbd0;
}

.photo-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 350px;
}

.footer-text {
  font-size: 16px;
  color: #999;
  margin-top: 10px;
  font-style: italic;
}

/* Emoji explosion */
.emoji-particle {
  position: fixed;
  font-size: 28px;
  pointer-events: none;
  z-index: 100;
  animation: emojiExplode 1.5s ease-out forwards;
}

@keyframes emojiExplode {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(360deg);
  }
}

/* Confetti */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  top: -10px;
  z-index: 50;
  animation: confettiFall linear forwards;
}

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