:root {
  --bg-deep: #1a0b14;
  --bg-wine: #3b1027;
  --bg-rose: #b32654;
  --cream: #fff2f6;
  --rose: #ff7aa2;
  --hot: #ff3d7f;
  --shadow: rgba(12, 3, 8, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--cream);
  background: radial-gradient(circle at top, #ff95b6 0%, #7f1538 45%, #1a0b14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.scene {
  position: relative;
  width: min(920px, 100%);
}

.card {
  position: relative;
  padding: 48px clamp(28px, 6vw, 64px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 45px var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  margin: 0 0 12px;
  color: rgba(255, 242, 246, 0.75);
}


h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 16px;
}

.subtext {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 242, 246, 0.85);
}

.actions {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  position: relative;
  min-height: 72px;
}

.no-slot {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 52px;
  width: min(100%, var(--no-width, 100%));
  height: var(--no-height, auto);
  position: relative;
}

.btn {
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  min-height: 52px;
}

.btn:disabled {
  cursor: default;
  opacity: 0.7;
}

.btn-yes {
  background: linear-gradient(135deg, #ffd1df, #ff5b9b);
  color: #3b0f1f;
  box-shadow: 0 10px 20px rgba(255, 64, 130, 0.4);
}

.btn-no {
  background: rgba(255, 255, 255, 0.12);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  z-index: 1;
  width: min(100%, var(--no-width, 100%));
  height: var(--no-height, auto);
}

.btn-no.is-floating {
  position: fixed;
  margin: 0;
  width: var(--no-width, auto);
  height: var(--no-height, auto);
  z-index: 999;
}

.btn-no.is-floating:hover {
  transform: none;
}

.btn-no.is-dodging {
  transition: transform 0.08s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.heart-cluster {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.heart {
  position: absolute;
  width: 90px;
  height: 90px;
  background: var(--hot);
  transform: rotate(-45deg);
  border-radius: 20px 20px 10px 10px;
  opacity: 0.25;
}

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

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

.heart::after {
  left: 45px;
  top: 0;
}

.heart-1 {
  top: -10px;
  left: -20px;
}

.heart-2 {
  top: 20px;
  right: 30px;
  background: var(--rose);
  opacity: 0.2;
  transform: rotate(-20deg) scale(0.8);
}

.heart-3 {
  bottom: -30px;
  left: 40%;
  background: #ff3d7f;
  opacity: 0.15;
  transform: rotate(-35deg) scale(1.1);
}

.heart-4 {
  bottom: 20px;
  right: -30px;
  background: #ff9cbc;
  opacity: 0.25;
  transform: rotate(-15deg) scale(0.7);
}

.heart-5 {
  top: 50%;
  left: -40px;
  background: #ff7aa2;
  opacity: 0.18;
  transform: rotate(-35deg) scale(0.6);
}

.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-hearts span {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #ffb3cc;
  transform: rotate(-45deg);
  animation: float 8s ease-in-out infinite;
  opacity: 0.7;
}

.floating-hearts span::before,
.floating-hearts span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: inherit;
  border-radius: 50%;
}

.floating-hearts span::before {
  top: -9px;
  left: 0;
}

.floating-hearts span::after {
  left: 9px;
  top: 0;
}

.floating-hearts span:nth-child(1) {
  top: 12%;
  left: 10%;
  animation-delay: 0s;
}

.floating-hearts span:nth-child(2) {
  top: 20%;
  right: 12%;
  animation-delay: 1s;
}

.floating-hearts span:nth-child(3) {
  top: 70%;
  left: 15%;
  animation-delay: 2s;
}

.floating-hearts span:nth-child(4) {
  top: 75%;
  right: 20%;
  animation-delay: 3s;
}

.floating-hearts span:nth-child(5) {
  top: 40%;
  right: 45%;
  animation-delay: 4s;
}

.floating-hearts span:nth-child(6) {
  top: 55%;
  left: 55%;
  animation-delay: 5s;
}

.floating-hearts span:nth-child(7) {
  top: 85%;
  left: 45%;
  animation-delay: 6s;
}

.floating-hearts span:nth-child(8) {
  top: 30%;
  left: 70%;
  animation-delay: 7s;
}

.celebration {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(13, 3, 9, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.celebration-card {
  padding: 32px 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  text-align: center;
  backdrop-filter: blur(8px);
  color: var(--cream);
  position: relative;
  z-index: 2;
}

.celebration-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  margin: 0 0 8px;
  opacity: 0.8;
}

.celebration-text {
  margin: 8px 0 0;
  opacity: 0.9;
}

.celebration::before,
.celebration::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 160, 190, 0.9), rgba(255, 63, 127, 0.3));
  filter: blur(10px);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
}

.celebration::before {
  top: 15%;
  left: 18%;
}

.celebration::after {
  bottom: 18%;
  right: 15%;
}

.celebrate .celebration {
  opacity: 1;
  pointer-events: auto;
}

.celebrate .celebration-card {
  animation: pop 0.6s ease both;
}

.celebrate .celebration::before,
.celebrate .celebration::after {
  animation: glow 0.9s ease forwards;
}

.celebrate .floating-hearts span {
  animation: float 3s ease-in-out infinite;
}

.celebrate .scene::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px);
  background-size: 28px 28px;
  animation: confetti 1.5s ease-out forwards;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-45deg) scale(1);
  }
  50% {
    transform: translateY(-14px) rotate(-45deg) scale(1.1);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes glow {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 0.9;
    transform: scale(1);
  }
}

@keyframes confetti {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .card {
    padding: 40px 24px;
    overflow: visible;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .btn-no {
    position: relative;
  }

  .no-slot {
    width: auto !important;
    height: auto !important;
  }
}
