* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,.28)),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1800&q=85")
    center/cover fixed;
  overflow: hidden;
  color: #332b35;
}

.card {
  width: min(680px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 34px 28px 30px;
  border-radius: 28px;
  background: rgba(255, 248, 250, .93);
  box-shadow: 0 18px 60px rgba(45, 20, 35, .25);
  text-align: center;
  backdrop-filter: blur(7px);
  animation: appear .7s ease;
}

.emoji { font-size: 42px; margin-bottom: 6px; }
h1 { margin: 0 0 22px; font-size: clamp(28px, 6vw, 42px); }
p { font-size: 17px; line-height: 1.65; margin: 0 auto 17px; }

.buttons {
  position: relative;
  min-height: 112px;
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

#yes {
  background: #e84d7b;
  color: white;
  box-shadow: 0 8px 20px rgba(232,77,123,.3);
}
#yes:hover { transform: scale(1.05); }

#no {
  background: #eee9ed;
  color: #443b43;
  position: relative;
}

.reaction {
  min-height: 34px;
  font-weight: 700;
  color: #c33f68;
  font-size: 16px;
}

.heart {
  position: fixed;
  bottom: -30px;
  animation: floatUp linear forwards;
  pointer-events: none;
  z-index: 5;
}

.success {
  animation: pop .55s ease;
}

@keyframes appear { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.9); } 70% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes floatUp {
  to { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

@media (max-width: 520px) {
  .card { padding: 27px 20px; }
  p { font-size: 16px; }
  .buttons { min-height: 130px; }
  button { width: 100%; }
}
