:root {
  --pink: #ff4d73;
  --pink-deep: #ff2d5f;
  --blush: #ffe4ec;
  --cream: #fff8f6;
  --ink: #3b2430;
  --muted: #8a6b76;
  --no: #c9b4ba;
  --shadow: 0 18px 50px rgba(255, 77, 115, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  min-height: 100svh;
}

body {
  font-family: "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: linear-gradient(165deg, #fff7f4 0%, #ffe3ea 48%, #ffd6e4 100%);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.7;
}

.orb-1 {
  width: 42vw;
  height: 42vw;
  max-width: 380px;
  max-height: 380px;
  background: #ffb6c8;
  top: -8%;
  left: -10%;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  max-width: 420px;
  max-height: 420px;
  background: #ffd0a8;
  bottom: -12%;
  right: -14%;
}

.orb-3 {
  width: 28vw;
  height: 28vw;
  max-width: 240px;
  max-height: 240px;
  background: #ffc1d8;
  top: 42%;
  left: 55%;
}

.hearts-bg,
.burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px
    max(28px, env(safe-area-inset-bottom));
}

.card {
  width: min(92vw, 560px);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 7vw, 52px) clamp(18px, 5vw, 40px);
}

.eyebrow {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 12px;
}

.question {
  font-family: "Jua", sans-serif;
  font-size: clamp(2.4rem, 11vw, 4.6rem);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
  animation: pulse 2.4s ease-in-out infinite;
}

.hint {
  min-height: 1.7em;
  margin-top: 22px;
  font-family: "Jua", sans-serif;
  font-size: clamp(1.15rem, 4.6vw, 1.45rem);
  color: var(--pink-deep);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hint.show {
  opacity: 1;
  transform: translateY(0);
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 4vw, 22px);
  margin-top: 32px;
  min-height: 76px;
}

.btn {
  font-family: "Jua", sans-serif;
  border: 0;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  border-radius: 999px;
  min-height: 64px;
  padding: 0 28px;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.28s ease, opacity 0.28s ease, width 0.28s ease,
    min-width 0.28s ease, font-size 0.28s ease, padding 0.28s ease,
    min-height 0.28s ease;
}

.yes {
  background: linear-gradient(180deg, #ff6b8a, var(--pink-deep));
  color: #fff;
  min-width: 148px;
  box-shadow: 0 10px 24px rgba(255, 45, 95, 0.35);
}

.yes:hover,
.yes:focus-visible {
  transform: translateY(-2px) scale(1.04);
}

.yes:active {
  transform: scale(0.97);
}

.yes.grow-1 {
  transform: scale(1.08);
  min-width: 168px;
}

.yes.grow-2 {
  transform: scale(1.18);
  min-width: 210px;
  font-size: 1.7rem;
}

.no {
  background: #fff;
  color: #8a7178;
  min-width: 132px;
  border: 1.5px solid #efd7dd;
  box-shadow: 0 8px 18px rgba(80, 40, 50, 0.08);
}

.no:hover,
.no:focus-visible {
  transform: translateY(-1px);
}

.no.small {
  min-width: 72px;
  min-height: 38px;
  font-size: 0.78rem;
  padding: 0 12px;
  opacity: 0.72;
  transform: scale(0.78);
}

.no.gone {
  display: none;
}

.hidden {
  display: none !important;
}

.love {
  animation: pop-in 0.55s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.big-heart {
  font-size: clamp(3.2rem, 12vw, 5rem);
  color: var(--pink);
  animation: heartbeat 1.1s ease-in-out infinite;
  line-height: 1;
  margin-bottom: 8px;
}

.love-line {
  font-family: "Jua", sans-serif;
  font-size: clamp(2.1rem, 9vw, 3.6rem);
  line-height: 1.25;
  text-wrap: balance;
}

.float-heart {
  position: absolute;
  color: var(--pink);
  opacity: 0.35;
  animation: float-up linear forwards;
  font-size: 18px;
}

.burst-heart {
  position: absolute;
  left: 50%;
  top: 55%;
  color: var(--pink);
  pointer-events: none;
  animation: burst-out 1.15s ease-out forwards;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.16);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.86) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes float-up {
  from {
    transform: translateY(20px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.45;
  }
  to {
    transform: translateY(-110vh) rotate(28deg);
    opacity: 0;
  }
}

@keyframes burst-out {
  from {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
      scale(1.1);
    opacity: 0;
  }
}

@media (max-width: 420px) {
  .card {
    width: min(94vw, 560px);
    padding: 32px 16px 28px;
  }

  .actions {
    gap: 14px;
  }

  .yes {
    min-width: 138px;
  }

  .no {
    min-width: 110px;
  }

  .no.small {
    min-width: 58px;
    min-height: 34px;
    font-size: 0.7rem;
    padding: 0 10px;
  }

  .yes.grow-2 {
    min-width: min(78vw, 240px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .question,
  .big-heart,
  .float-heart,
  .burst-heart,
  .love {
    animation: none;
  }
}
