:root {
  --pink-100: #ffe6ee;
  --pink-200: #ffd1df;
  --pink-500: #ff5f8f;
  --red-500: #ff3b6a;
  --text: #3b1f2b;
  --card: #ffffffcc;
  --shadow: 0 10px 30px rgba(59, 31, 43, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(
      160deg,
      rgba(255, 230, 238, 0.85),
      rgba(255, 255, 255, 0.9) 60%
    ),
    url("assets/background-2062206_1280.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.card {
  width: min(92vw, 520px);
  background: var(--card);
  backdrop-filter: blur(6px);
  padding: 32px 28px 28px;
  border-radius: 18px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid #fff;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin: 16px 0 10px;
  flex-wrap: wrap;
  position: relative;
  overflow: visible;
}

.btn {
  --scale: 1;
  transform: scale(var(--scale));
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  padding: 12px 26px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.btn:active {
  transform: scale(calc(var(--scale) * 0.98));
}

.btn.yes {
  background: var(--red-500);
  color: #fff;
  z-index: 2;
}

.btn.no {
  background: #fff;
  color: var(--text);
  border: 1px solid #f1b5c8;
}

.btn.bounce {
  animation: pop 180ms ease;
}

@keyframes pop {
  0% {
    transform: scale(calc(var(--scale) * 1));
  }
  55% {
    transform: scale(calc(var(--scale) * 1.06));
  }
  100% {
    transform: scale(calc(var(--scale) * 1));
  }
}

.tease {
  margin: 6px 0 0;
  font-size: 0.98rem;
  color: #7a3b4f;
  min-height: 1.2em;
}

.gallery {
  margin-top: 20px;
  text-align: left;
}

.gallery h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #6a3246;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.photo-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #f1b5c8;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.success {
  display: none;
  margin-top: 10px;
}

.card.celebrate h1,
.card.celebrate .buttons,
.card.celebrate .tease,
.card.celebrate .gallery {
  display: none;
}

.card.celebrate .success {
  display: block;
}

.heart {
  width: 60px;
  height: 60px;
  position: relative;
  margin: 0 auto 10px;
  transform: rotate(45deg);
  background: var(--red-500);
  border-radius: 10px 10px 0 10px;
  animation: pulse 1.1s ease-in-out infinite;
}

.heart::before,
.heart::after {
  content: "";
  width: 60px;
  height: 60px;
  position: absolute;
  background: var(--red-500);
  border-radius: 50%;
}

.heart::before {
  top: -30px;
  left: 0;
}

.heart::after {
  left: -30px;
  top: 0;
}

@keyframes pulse {
  0% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(1.08);
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}

@media (max-width: 420px) {
  .btn {
    width: 120px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid img {
    height: 90px;
  }
}
