@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Quicksand:wght@500;600&display=swap");

:root {
  --pink-1: #ffe6ee;
  --pink-2: #fcd2df;
  --pink-3: #f6b3c8;
  --red-1: #e63946;
  --red-2: #b71c2b;
  --red-3: #7c0d1a;
  --text: #5a1420;
  --shadow: rgba(91, 17, 30, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fff6f9 0%, var(--pink-1) 55%, var(--pink-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page {
  width: 100%;
  max-width: 520px;
  position: relative;
}

.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  box-shadow: 0 24px 60px var(--shadow);
  padding: 32px 26px 36px;
  text-align: center;
  backdrop-filter: blur(6px);
}

h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin: 0 0 20px;
}

.teddy {
  width: min(70vw, 260px);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(107, 24, 41, 0.18);
  margin: 0 auto 24px;
  display: block;
}

.choices {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.heart-btn {
  min-width: 110px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--red-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 22px rgba(161, 25, 44, 0.3);
  font-size: 0.95rem;
}

.heart-btn.yes {
  background: var(--red-1);
}

.heart-btn.no {
  background: var(--red-2);
}


.heart-btn:focus-visible {
  outline: 3px solid rgba(255, 145, 178, 0.9);
  outline-offset: 6px;
}

.hint {
  margin: 20px 0 0;
  font-size: 0.95rem;
  color: rgba(90, 20, 32, 0.75);
}

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

.heart {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--red-1);
  transform: rotate(-45deg);
  border-radius: 6px;
  opacity: 0.85;
  animation: floatUp 2.6s ease forwards;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: inherit;
  border-radius: 50%;
  top: -50%;
  left: 0;
}

.heart::after {
  left: 50%;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(-45deg) scale(0.8);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-220px) rotate(-45deg) scale(1.3);
    opacity: 0;
  }
}

@keyframes wobble {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}

.wobble {
  animation: wobble 0.4s ease;
}

@media (max-width: 480px) {
  .card {
    padding: 26px 18px 32px;
  }

  .heart-btn {
    min-width: 96px;
  }
}
