body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: linear-gradient(135deg, #ff6b9d, #fec1cc, #ffd1dc);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  overflow: hidden;
  position: relative;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.bg-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  overflow: hidden;
}

.bg-heart {
  position: absolute;
  font-size: 40px;
  animation: bgFloat 15s linear infinite;
}

@keyframes bgFloat {
  from {
    transform: translateY(110vh) rotate(0deg);
  }
  to {
    transform: translateY(-10vh) rotate(360deg);
  }
}

.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px 35px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(225, 29, 72, 0.3);
  width: min(92%, 450px);
  position: relative;
  animation: cardEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px solid rgba(255, 255, 255, 0.6);
}
@media (max-width: 540px) {
  .card {
    width: min(92%, 300px);
  }
}

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

h1 {
  margin: 0 0 15px;
  font-size: 32px;
  color: #e11d48;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(225, 29, 72, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

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

p {
  margin: 0 0 30px;
  font-size: 20px;
  color: #444;
  line-height: 1.6;
}

.btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  margin-bottom: 10px;
}

button {
  border: none;
  padding: 15px 30px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  white-space: nowrap;
}

#yesBtn {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  animation: yesBtnGlow 2s ease-in-out infinite;
}

@keyframes yesBtnGlow {
  0%,
  100% {
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 5px 25px rgba(34, 197, 94, 0.7);
  }
}

#yesBtn:hover {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}

#yesBtn:active {
  transform: scale(0.95);
}

#noBtn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  position: relative;
  transition: all 0.15s ease;
}

#noBtn:hover {
  transform: scale(1.05);
}

.hidden {
  display: none;
}

.celebrate {
  font-size: 24px;
  color: #111;
  line-height: 1.8;
  animation: celebrateEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 600;
}
.celebrate video {
  margin-top: 20px;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes celebrateEntry {
  from {
    transform: scale(0.5) rotate(-10deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1000;
}

.heart {
  position: absolute;
  font-size: 25px;
  animation: float 4s ease-out forwards;
  filter: drop-shadow(2px 2px 4px rgba(225, 29, 72, 0.3));
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(-10vh) rotate(20deg) scale(1);
  }
  100% {
    transform: translateY(-120vh) rotate(360deg) scale(0.8);
    opacity: 0;
  }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #f0f;
  position: absolute;
  animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@media (max-width: 500px) {
  h1 {
    font-size: 26px;
  }
  p {
    font-size: 18px;
  }
  button {
    font-size: 18px;
    padding: 12px 25px;
  }
  .celebrate {
    font-size: 20px;
  }
}
