@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Quicksand:wght@400;600;700&display=swap');

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0, #f48fb1);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  font-family: 'Quicksand', sans-serif;
  overflow: hidden;
  position: relative;
}

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

/* ==================== FLOATING HEARTS ==================== */

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

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

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* ==================== CARD ==================== */

.card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 40px 50px 45px;
  text-align: center;
  box-shadow:
    0 20px 60px rgba(233, 30, 99, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  z-index: 1;
  position: relative;
  max-width: 480px;
  width: 90%;
  transition: transform 0.3s ease, opacity 0.5s ease;
}

.card:hover {
  transform: translateY(-2px);
}

.card.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* ==================== CUTE BEAR ==================== */

.bear {
  position: relative;
  width: 120px;
  height: 110px;
  margin: 0 auto 20px;
}

.bear-face {
  width: 100px;
  height: 90px;
  background: #c48b6c;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.bear-ear {
  width: 36px;
  height: 36px;
  background: #c48b6c;
  border-radius: 50%;
  position: absolute;
  top: 0;
  z-index: 1;
}

.bear-ear::after {
  content: '';
  width: 22px;
  height: 22px;
  background: #e8a987;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bear-ear-left { left: 12px; }
.bear-ear-right { right: 12px; }

.bear-eye {
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 28px;
  z-index: 3;
}

.bear-eye-left { left: 22px; }
.bear-eye-right { right: 22px; }

.bear-pupil {
  width: 10px;
  height: 10px;
  background: #2c1810;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.bear-pupil::after {
  content: '';
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 1px;
  right: 1px;
}

.bear-nose {
  width: 16px;
  height: 12px;
  background: #2c1810;
  border-radius: 50%;
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.bear-mouth {
  width: 20px;
  height: 10px;
  border-bottom: 3px solid #2c1810;
  border-radius: 0 0 50% 50%;
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  transition: all 0.3s ease;
}

.bear-mouth.sad {
  border-bottom: none;
  border-top: 3px solid #2c1810;
  border-radius: 50% 50% 0 0;
  top: 55px;
}

.bear-blush {
  width: 18px;
  height: 12px;
  background: rgba(255, 130, 130, 0.5);
  border-radius: 50%;
  position: absolute;
  top: 48px;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.bear-blush-left { left: 10px; }
.bear-blush-right { right: 10px; }

.bear-heart {
  position: absolute;
  top: -10px;
  right: -15px;
  font-size: 24px;
  color: #e91e63;
  z-index: 4;
  animation: heartBeat 1.2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  30% { transform: scale(1); }
  45% { transform: scale(1.2); }
  60% { transform: scale(1); }
}

/* ==================== TYPOGRAPHY ==================== */

.question {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: #c2185b;
  margin-bottom: 8px;
  transition: all 0.4s ease;
  line-height: 1.3;
}

.subtitle {
  font-size: 0.95rem;
  color: #e91e63;
  opacity: 0.7;
  margin-bottom: 30px;
  transition: all 0.4s ease;
  font-style: italic;
}

/* ==================== BUTTONS ==================== */

.buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  min-height: 80px;
}

.btn {
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-yes {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  font-size: 1.2rem;
  padding: 14px 40px;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
}

.btn-yes:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(233, 30, 99, 0.5);
}

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

.btn-no {
  background: white;
  color: #999;
  font-size: 1rem;
  padding: 12px 32px;
  border: 2px solid #e0e0e0;
  position: relative;
}

.btn-no:hover {
  border-color: #ccc;
  color: #777;
}

.btn-no.runaway {
  position: fixed;
  z-index: 100;
  transition: all 0.2s ease;
  animation: shake 0.4s ease infinite;
}

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.btn-no.runaway:hover {
  transform: rotate(15deg) scale(0.9);
}

/* ==================== FINALE SCREEN ==================== */

.finale {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0, #f48fb1, #ec407a);
  background-size: 400% 400%;
  animation: gradientShift 6s ease infinite;
}

.finale.show {
  opacity: 1;
  pointer-events: all;
}

.finale-content {
  text-align: center;
  padding: 40px;
  max-width: 520px;
  width: 90%;
  transform: scale(0.5);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.finale.show .finale-content {
  transform: scale(1);
}

.finale-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.confetti-heart {
  position: absolute;
  animation: confettiFall linear forwards;
}

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

.finale-title {
  font-family: 'Caveat', cursive;
  font-size: 3rem;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.finale-text {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease 0.5s both;
}

.finale-emoji {
  font-size: 5rem;
  margin: 20px 0;
  animation: fadeInUp 0.6s ease 0.7s both, heartBeat 1.2s ease-in-out 1.3s infinite;
}

.finale-promise {
  font-size: 1.1rem;
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
  animation: fadeInUp 0.6s ease 0.9s both;
}

.finale-list {
  list-style: none;
  text-align: left;
  display: inline-block;
  animation: fadeInUp 0.6s ease 1.1s both;
}

.finale-list li {
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 0;
  font-size: 1rem;
}

.finale-list li::before {
  content: '\2764\00a0';
  color: white;
}

.finale-signature {
  margin-top: 30px;
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  color: white;
  animation: fadeInUp 0.6s ease 1.3s both;
}

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

/* ==================== RESPONSIVE ==================== */

@media (max-width: 500px) {
  .card {
    padding: 30px 25px 35px;
    border-radius: 24px;
  }

  .question {
    font-size: 1.7rem;
  }

  .finale-title {
    font-size: 2.2rem;
  }

  .finale-emoji {
    font-size: 3.5rem;
  }
}
