@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Sora:wght@400;500;600;700&display=swap');

:root {
  --bg-1: #fff4f4;
  --bg-2: #ffe6ea;
  --text: #2b1b1f;
  --accent: #e55a73;
  --accent-strong: #d73b5f;
  --shadow: rgba(32, 12, 18, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(500px 300px at 15% 15%, rgba(255, 210, 218, 0.55), transparent 60%),
    radial-gradient(420px 260px at 85% 10%, rgba(255, 220, 230, 0.6), transparent 60%),
    radial-gradient(500px 320px at 20% 90%, rgba(255, 210, 225, 0.55), transparent 65%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
}

.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hearts.active {
  opacity: 1;
}

.heart {
  position: absolute;
  top: -10vh;
  color: rgba(210, 55, 78, 0.5);
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: blur(0.2px);
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(110vh) translateX(30px) rotate(25deg);
    opacity: 0.2;
  }
}

.card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 60px var(--shadow);
  border-radius: 28px;
  padding: 32px 28px 36px;
  width: min(560px, 90vw);
  text-align: center;
  animation: cardIn 0.7s ease both;
}

.gif {
  width: min(320px, 72vw);
  max-height: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
  border-radius: 18px;
  animation: gifIn 0.7s ease;
}

h1 {
  margin: 0 0 24px;
  font-family: 'Sora', 'Segoe UI', sans-serif;
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem);
  line-height: 1.25;
  font-weight: 500;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.buttons.hide {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  max-height: 0;
  height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  gap: 0;
}

.btn {
  font-family: 'Sora', 'Segoe UI', sans-serif;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    font-size 0.25s ease,
    padding 0.25s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn:focus-visible {
  outline: 3px solid rgba(229, 90, 115, 0.6);
  outline-offset: 2px;
}

.btn.yes {
  background: linear-gradient(135deg, #ff7b98, var(--accent-strong));
  color: #fff;
}

.btn.no {
  background: rgba(255, 255, 255, 0.75);
  color: #7a3a47;
  border: 1px solid rgba(215, 59, 95, 0.35);
}

.btn.yes-bold {
  font-weight: 800;
  letter-spacing: 0.3px;
}

.btn.yes-underline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.btn.yes-arrows {
  position: relative;
}

.btn.yes-arrows::before,
.btn.yes-arrows::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  opacity: 0.85;
}

.btn.yes-arrows::before {
  content: '>>';
  left: 14px;
}

.btn.yes-arrows::after {
  content: '<<';
  right: 14px;
}

.btn.no-strike {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(215, 59, 95, 0.7);
}

.hidden {
  display: none;
}

.card.yes-mode h1 {
  margin: 14px 0;
}

.question-animate {
  animation: questionSwap 0.45s ease;
}

.gif-swap {
  animation: gifSwap 0.6s ease;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes gifIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes gifSwap {
  0% {
    opacity: 0.4;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 22px 18px 26px;
    width: min(520px, 92vw);
  }

  .btn {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .gif {
    width: min(280px, 78vw);
    max-height: 220px;
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(1.35rem, 4.2vw + 0.9rem, 2rem);
    margin-bottom: 18px;
  }

  .buttons {
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 20px 16px 24px;
  }

  .gif {
    width: min(250px, 82vw);
    max-height: 200px;
  }

  .btn {
    padding: 11px 18px;
    font-size: 0.9rem;
  }
}
