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

:root {
  color-scheme: light;
  --ink: #2a1f2c;
  --muted: #6e5d6e;
  --rose: #ff6b6b;
  --coral: #ff8c69;
  --peach: #ffe3d4;
  --cream: #fff7ee;
  --mint: #aef0d5;
  --shadow: 0 30px 80px rgba(42, 31, 44, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 140, 105, 0.35), transparent 45%),
    radial-gradient(circle at 15% 25%, rgba(174, 240, 213, 0.45), transparent 50%),
    linear-gradient(135deg, #fff2e9, #ffe7f3 55%, #fff8e1);
  padding: 32px 16px 48px;
}

.wrap {
  width: min(720px, 100%);
}

.card {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: calc(var(--radius) - 10px);
  border: 1px dashed rgba(255, 107, 107, 0.35);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 14px;
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.play-area {
  position: relative;
  border-radius: 20px;
  border: 2px solid rgba(255, 107, 107, 0.25);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 240, 230, 0.6));
  padding: 28px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  touch-action: none;
}

.btn {
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 107, 107, 0.45);
  outline-offset: 4px;
}

.btn.yes {
  background: linear-gradient(135deg, var(--rose), var(--coral));
  color: white;
  box-shadow: 0 16px 30px rgba(255, 107, 107, 0.35);
}

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

.btn.no {
  position: relative;
  background: white;
  color: var(--ink);
  border: 2px solid rgba(42, 31, 44, 0.2);
  box-shadow: 0 12px 24px rgba(42, 31, 44, 0.12);
  transition: transform 0.16s ease;
  touch-action: none;
}

.no-wrap {
  display: inline-block;
  transition: transform 0.16s ease;
  will-change: transform;
}

.btn.no.wiggle {
  animation: wiggle 0.2s ease;
}

@keyframes wiggle {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(4deg); }
  100% { transform: rotate(-4deg); }
}

.celebrate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: clamp(22px, 4vw, 40px);
}

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

.celebrate-content {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
}

.celebrate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px;
  width: min(360px, 60vw);
  max-height: 58vh;
}

.celebrate-tile {
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(42, 31, 44, 0.18);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.celebrate-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.celebrate-text {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0 0 8px;
}


.burst {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.3), transparent 60%);
  animation: pop 1.1s ease forwards;
  opacity: 0;
}

.celebrate.active .burst {
  opacity: 1;
}

@keyframes pop {
  0% { transform: scale(0.4); }
  70% { transform: scale(1.05); }
  100% { transform: scale(0.95); }
}

@media (max-width: 600px) {
  .play-area {
    min-height: 200px;
  }

  .btn {
    width: min(220px, 80vw);
  }

  .btn.no {
    left: auto;
    top: auto;
  }

  .celebrate-grid {
    width: min(300px, 85vw);
    gap: 8px;
  }
}

body.celebrating .play-area,
body.celebrating .eyebrow,
body.celebrating h1,
body.celebrating .sub {
  opacity: 0.08;
  filter: blur(2px);
}

body.celebrating .play-area {
  pointer-events: none;
}
