@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --pink-bg: #FCE4EC;
  --pink: #ff6f9f;
  --pink-deep: #ec5b8b;
  --text: #624052;
  --white: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  background: radial-gradient(circle at top left, #fff4f8, transparent 40%), var(--pink-bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  overflow: hidden;
  animation: pageEnter .55s cubic-bezier(.2,.75,.25,1) both;
}
body.page-exit { animation: pageExit .28s ease-in forwards; pointer-events: none; }
.card {
  width: min(100%, 650px);
  padding: clamp(24px, 5vw, 48px);
  text-align: center;
  background: rgba(255,255,255,.9);
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(199, 91, 133, .16);
  position: relative;
  animation: cardPop .7s cubic-bezier(.16,1,.3,1) both;
}
.sparkle { color: #f5a1bf; letter-spacing: 8px; margin-bottom: 8px; animation: twinkle 2.2s ease-in-out infinite; }
.emoji { font-size: clamp(42px, 7vw, 64px); margin-bottom: 12px; }
.float { display: inline-block; animation: floaty 2.8s ease-in-out infinite; }
h1 { margin: 8px 0 14px; font-size: clamp(28px, 5vw, 42px); line-height: 1.2; color: #70465b; }
h2 { margin: 0 0 16px; font-size: clamp(23px, 4vw, 32px); color: var(--pink-deep); }
.pink { color: var(--pink-deep); }
.subtitle, .message { font-size: clamp(16px, 2.8vw, 19px); line-height: 1.6; margin: 10px auto 22px; }
.step { color: #d56c94; font-weight: 900; letter-spacing: 2px; font-size: 12px; }
.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;
  margin: 7px;
  background: var(--pink);
  color: white;
  font: inherit;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 7px 0 #e85f91;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:hover { background: var(--pink-deep); transform: translateY(-3px) scale(1.025); }
.btn:active { transform: translateY(2px) scale(.98); box-shadow: 0 3px 0 #e85f91; }
.btn:disabled { opacity: .7; cursor: wait; }
.btn.chosen { animation: chosen .3s ease; }
.btn.secondary { background: #f6b7cd; box-shadow: 0 7px 0 #e89ab7; color: #713e55; }
.options { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 18px; }
.gif_container { display: flex; justify-content: center; align-items: center; margin: 12px 0; }
.gif_container img { width: min(100%, 270px); max-height: 240px; object-fit: contain; border-radius: 16px; }
.buttons { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.tiny-note { font-size: 12px; opacity: .75; margin: 24px 0 0; }
.hearts {
    position: fixed;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #e98bad;
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
}
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageExit { to { opacity: 0; transform: translateY(-10px) scale(.985); } }
@keyframes cardPop { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes twinkle { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes chosen { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media (max-width: 480px) {
  .card { border-radius: 22px; padding: 26px 18px; }
  .btn { padding: 12px 16px; font-size: 14px; }
  .gif_container img { max-height: 190px; }
}



.final-stage {
  position: relative;
  width: min(92vw, 980px);
  height: min(86vh, 770px);
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.final-card {
  position: relative;
  z-index: 1;
}
.final-buttons {
  position: relative;
  min-height: 76px;
  align-items: center;
  overflow: visible;
}
#noButton {
  z-index: 5;
}
@media (max-width: 600px) {
  .final-stage {
    width: 96vw;
    height: 88vh;
    min-height: 580px;
  }
}
