:root {
  --pink-1: #ffb6d9;
  --pink-2: #ff7fb8;
  --pink-3: #ff4f9b;
  --cream: #fff4fa;
  --text: #5e1243;
  --yes: #ff2d7a;
  --yes-dark: #c01656;
  --no: #ffffff;
  --shadow: 0 16px 40px rgba(149, 9, 79, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Baloo 2", cursive;
  color: var(--text);
  background: radial-gradient(circle at 20% 15%, #ffd0e8 0, #ff92c3 35%, #ff5ca6 70%, #ea2a83 100%);
  overflow: hidden;
}

.bg-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 15% 20%, #ffffff80 0 8px, transparent 8px),
    radial-gradient(circle at 75% 30%, #ffffff80 0 7px, transparent 7px),
    radial-gradient(circle at 40% 78%, #ffffffa6 0 10px, transparent 10px),
    radial-gradient(circle at 80% 80%, #ffffff90 0 6px, transparent 6px);
  animation: drift 10s ease-in-out infinite alternate;
}

.card {
  width: min(92vw, 680px);
  background: linear-gradient(170deg, #fff9fd 0%, #ffe5f3 100%);
  border: 4px solid #ffffff99;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3.8vw, 2.2rem);
  text-align: center;
  position: relative;
}

h1 {
  margin: 0;
  font-family: "Pacifico", cursive;
  font-size: clamp(1.85rem, 6vw, 3rem);
  line-height: 1.2;
  color: #9a1b61;
}

.choice-zone {
  position: relative;
  margin: 1.4rem auto 0;
  width: min(90vw, 520px);
  height: 210px;
  border-radius: 18px;
  background: repeating-linear-gradient(
    -45deg,
    #ffc8e2,
    #ffc8e2 12px,
    #ffd8ec 12px,
    #ffd8ec 24px
  );
  border: 2px dashed #f06cae;
  overflow: hidden;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yes {
  position: absolute;
  left: 25%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: linear-gradient(180deg, #ff4f9b, #e51f72);
  box-shadow: 0 10px 22px rgba(255, 46, 124, 0.4);
}

.yes:hover,
.yes:focus-visible {
  transform: translate(-50%, -50%) scale(1.05);
}

.no {
  position: absolute;
  left: 75%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #9b225f;
  background: var(--no);
  box-shadow: 0 8px 18px rgba(130, 34, 88, 0.2);
}

.no.fleeing {
  transition: left 0.14s cubic-bezier(.18,.88,.26,1.1), top 0.14s cubic-bezier(.18,.88,.26,1.1), transform 0.15s;
}

.no.exploding {
  pointer-events: none;
  animation: no-explode 520ms ease-in forwards;
}

.yes.hype {
  animation: yes-grow 0.8s ease-in-out infinite alternate, yes-blink 0.45s steps(2, end) infinite;
}

.yes.ultimate {
  left: 50%;
  top: 50%;
  z-index: 5;
  animation: yes-ultimate-grow 0.55s ease-in-out infinite alternate, yes-blink 0.35s steps(2, end) infinite;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(84, 9, 46, 0.55);
  backdrop-filter: blur(4px);
  z-index: 20;
}

.overlay[hidden] {
  display: none;
}

.overlay-card {
  width: min(92vw, 520px);
  background: linear-gradient(160deg, #fff6fc 0%, #ffdcee 100%);
  border: 3px solid #fff8;
  border-radius: 24px;
  box-shadow: 0 20px 44px rgba(107, 10, 56, 0.35);
  padding: 1.4rem 1.4rem 1.2rem;
  text-align: center;
  animation: pop-in 420ms cubic-bezier(.16,.93,.27,1.2);
}

.overlay-card h2 {
  margin: 0;
  font-family: "Pacifico", cursive;
  color: #b51763;
  font-size: clamp(2rem, 7vw, 3rem);
}

.overlay-card p {
  margin: 0.7rem 0 0;
  font-size: clamp(1rem, 2.7vw, 1.2rem);
  color: #7c154e;
}

.final-photo-frame {
  margin: 1rem auto 0;
  width: min(88vw, 320px);
  background: linear-gradient(145deg, #fff 0%, #ffe9f5 100%);
  border: 3px solid #ffffff;
  border-radius: 18px;
  padding: 0.45rem;
  box-shadow: 0 10px 26px rgba(116, 16, 65, 0.28);
}

.final-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 30;
}

.confetti {
  position: absolute;
  top: -14px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}

@keyframes drift {
  from { transform: translateY(-4px) translateX(0); }
  to { transform: translateY(4px) translateX(8px); }
}

@keyframes yes-grow {
  from { transform: translate(-50%, -50%) scale(1); }
  to { transform: translate(-50%, -50%) scale(1.35); }
}

@keyframes yes-blink {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4) saturate(1.4); }
}

@keyframes yes-ultimate-grow {
  from { transform: translate(-50%, -50%) scale(1.32); }
  to { transform: translate(-50%, -50%) scale(1.66); }
}

@keyframes no-explode {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  55% { transform: translate(-50%, -50%) scale(1.4) rotate(20deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.08) rotate(130deg); opacity: 0; }
}

@keyframes pop-in {
  from { transform: scale(0.75); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes confetti-fall {
  from { transform: translateY(0) rotate(0deg); opacity: 1; }
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.95; }
}

@media (max-width: 600px) {
  .choice-zone {
    height: 240px;
  }

  .btn {
    padding: 0.9rem 1.2rem;
  }
}
