:root {
  --pink: #ff5f9f;
  --pink-light: #ff9ec3;
  --pink-dark: #e5397c;
  --violet: #8a62e8;
  --ink: #17111f;
  --ink-soft: #24172d;
  --cream: #fff9fc;
  --muted: #dfcfdf;
  --green: #75e783;
  --green-dark: #2bbf5b;
  --duck: #ffd84d;
  --water: #7467df;
  --mx: 0px;
  --my: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e94e91;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 239, 246, 0.74), transparent 22rem),
    radial-gradient(circle at 82% 14%, rgba(255, 211, 232, 0.45), transparent 19rem),
    linear-gradient(155deg, #ff9abc 0%, #f2619b 39%, #9b5fca 100%);
}

button {
  font: inherit;
}

button,
.love-card {
  -webkit-tap-highlight-color: transparent;
}

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

.background::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: linear-gradient(to bottom, #000 0 45%, transparent 80%);
}

.sky-glow {
  position: absolute;
  width: 29rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.29;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: breathe 8s ease-in-out infinite alternate;
}

.sky-glow-one {
  left: -10rem;
  top: -12rem;
  background: #fff7fb;
}

.sky-glow-two {
  right: -10rem;
  top: 11%;
  background: #7b50ff;
  animation-delay: -3s;
}

.sun {
  position: absolute;
  top: 6vh;
  right: 8vw;
  width: clamp(78px, 9vw, 125px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.74;
  background: radial-gradient(circle at 35% 35%, #fffde8, #ffd56a 58%, #ffae76 100%);
  box-shadow: 0 0 48px rgba(255, 223, 133, 0.52), 0 0 120px rgba(255, 211, 106, 0.28);
  animation: sun-pulse 5s ease-in-out infinite alternate;
}

.cloud {
  position: absolute;
  width: 150px;
  height: 48px;
  opacity: 0.35;
  filter: blur(0.2px);
  animation: cloud-drift 22s ease-in-out infinite alternate;
}

.cloud i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.cloud i:nth-child(1) { left: 0; bottom: 0; width: 115px; height: 36px; }
.cloud i:nth-child(2) { left: 34px; bottom: 8px; width: 55px; height: 55px; }
.cloud i:nth-child(3) { left: 76px; bottom: 1px; width: 70px; height: 42px; }
.cloud-one { top: 15%; left: 7%; }
.cloud-two { top: 28%; right: 13%; transform: scale(0.72); animation-delay: -9s; }

.floating-heart {
  position: absolute;
  left: var(--left);
  bottom: -4rem;
  color: rgba(255, 255, 255, var(--opacity));
  font-size: var(--size);
  animation: float-up var(--duration) linear infinite;
  animation-delay: var(--delay);
  text-shadow: 0 4px 14px rgba(83, 27, 78, 0.14);
}

.pond {
  position: absolute;
  right: -8%;
  bottom: -9vh;
  left: -8%;
  height: 42vh;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 18% 18% 0 0;
  background:
    radial-gradient(ellipse at 45% 0%, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(114, 111, 221, 0.58), rgba(84, 66, 177, 0.78));
  box-shadow: inset 0 12px 45px rgba(255, 255, 255, 0.16);
}

.pond::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: repeating-radial-gradient(ellipse at 50% 0%, transparent 0 25px, rgba(255, 255, 255, 0.35) 27px 28px, transparent 31px 46px);
  animation: water-shimmer 9s linear infinite;
}

.water-line {
  position: absolute;
  left: -12%;
  width: 124%;
  height: 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: wave 5s ease-in-out infinite alternate;
}

.water-line-one { top: 23%; }
.water-line-two { top: 51%; animation-delay: -1.7s; opacity: 0.7; }
.water-line-three { top: 74%; animation-delay: -3.1s; opacity: 0.45; }

.reeds {
  position: absolute;
  bottom: 11%;
  color: rgba(47, 99, 86, 0.62);
  font-size: 5rem;
  transform: rotate(90deg) scaleX(1.7);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.08));
}

.reeds-left { left: 6%; }
.reeds-right { right: 7%; transform: rotate(78deg) scaleX(1.5); }

.duck-world {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.swimming-duck {
  position: absolute;
  top: var(--duck-top);
  left: 0;
  display: grid;
  width: 78px;
  height: 58px;
  place-items: center;
  transform: translateX(var(--duck-start)) scale(var(--duck-scale));
  animation: duck-swim var(--duck-duration) linear var(--duck-delay) infinite;
  will-change: transform;
  filter: drop-shadow(0 9px 9px rgba(54, 32, 93, 0.13));
}

.duck-emoji {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 2.7rem;
  transform: scaleX(var(--duck-dir));
  animation: duck-bob 1.7s ease-in-out infinite;
}

.duck-heart {
  position: absolute;
  z-index: 3;
  top: -2px;
  right: 0;
  color: #fff4f8;
  font-size: 1rem;
  opacity: 0;
  animation: duck-love 3.2s ease-in-out infinite;
}

.duck-ripple {
  position: absolute;
  z-index: 1;
  bottom: 4px;
  width: 72px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: ripple 1.7s ease-in-out infinite;
}

.duck-variant-1 .duck-emoji { animation-delay: -0.6s; }
.duck-variant-2 .duck-emoji { animation-delay: -1.1s; }

.page-shell {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(0.9rem, 4vw, 3rem);
}

.love-card {
  position: relative;
  width: min(100%, 450px);
  min-height: 590px;
  padding: clamp(1.15rem, 4vw, 1.8rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), transparent 39%),
    rgba(21, 13, 28, 0.92);
  box-shadow:
    0 35px 100px rgba(69, 18, 73, 0.42),
    0 8px 32px rgba(27, 17, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  text-align: center;
  backdrop-filter: blur(22px) saturate(1.08);
  animation: card-in 0.78s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.love-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% -20%, rgba(255, 117, 171, 0.19), transparent 50%);
  pointer-events: none;
}

.love-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -30% -15%;
  height: 46%;
  border-radius: 50%;
  background: rgba(255, 63, 139, 0.095);
  filter: blur(44px);
  pointer-events: none;
}

.top-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.eyebrow,
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow { color: #f6c2d7; }

.eyebrow span,
.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 16px var(--pink);
}

.live-pill {
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.04);
  letter-spacing: 0.08em;
}

.live-pill i {
  width: 6px;
  height: 6px;
  background: #77e885;
  box-shadow: 0 0 12px rgba(119, 232, 133, 0.7);
  animation: live-dot 1.35s ease-in-out infinite;
}

.mascot-wrap {
  position: relative;
  width: 112px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 0.65rem auto 0.05rem;
}

.mascot-duck {
  display: block;
  font-size: 4.8rem;
  filter: drop-shadow(0 13px 22px rgba(0, 0, 0, 0.16));
  animation: mascot-bob 2.1s ease-in-out infinite;
}

.orbit-heart,
.spark {
  position: absolute;
  pointer-events: none;
}

.orbit-heart {
  color: var(--pink-light);
  filter: drop-shadow(0 5px 10px rgba(255, 79, 145, 0.28));
  animation: orbit-pulse 2s ease-in-out infinite;
}

.orbit-heart-one { top: 5px; right: 1px; font-size: 1.4rem; }
.orbit-heart-two { bottom: 13px; left: -1px; font-size: 0.9rem; animation-delay: -0.9s; }

.spark {
  color: #fff3be;
  font-size: 1rem;
  animation: twinkle 1.8s ease-in-out infinite;
}

.spark-one { top: 13px; left: 8px; }
.spark-two { right: 2px; bottom: 17px; animation-delay: -0.8s; }

h1,
h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 380px;
  margin-inline: auto;
  color: #ff86b4;
  font-size: clamp(2.05rem, 7vw, 2.8rem);
  line-height: 1.03;
  text-shadow: 0 7px 30px rgba(255, 79, 145, 0.2);
}

.question-text {
  position: relative;
  z-index: 2;
  max-width: 340px;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: clamp(0.91rem, 2.7vw, 1.01rem);
  line-height: 1.55;
}

.button-arena {
  position: relative;
  z-index: 3;
  height: 190px;
  margin-top: 0.95rem;
  isolation: isolate;
}

.answer-button {
  border: 0;
  border-radius: 19px;
  cursor: pointer;
  user-select: none;
}

.no-button {
  position: absolute;
  z-index: 4;
  top: 7px;
  left: calc(77% - 49px);
  min-width: 98px;
  max-width: 145px;
  padding: 0.76rem 1.08rem;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ff6da4, #f2387f);
  box-shadow: 0 10px 24px rgba(244, 56, 127, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition:
    left 0.16s cubic-bezier(0.2, 0.9, 0.3, 1),
    top 0.16s cubic-bezier(0.2, 0.9, 0.3, 1),
    transform 0.15s ease,
    filter 0.15s ease;
  touch-action: none;
  will-change: left, top, transform;
}

.no-button:hover { filter: brightness(1.07); }

.yes-button {
  position: absolute;
  z-index: 2;
  right: 10%;
  bottom: 6px;
  left: 10%;
  width: auto;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  overflow: hidden;
  color: #0c3017;
  background: linear-gradient(145deg, #96f68d, #44db6d);
  box-shadow:
    0 20px 38px rgba(35, 189, 85, 0.27),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(var(--yes-lift, 0)) scale(var(--yes-scale, 1));
  transform-origin: center bottom;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.yes-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 35%;
  height: 210%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  transform: rotate(18deg);
  animation: button-shine 3.4s ease-in-out infinite;
}

.yes-button span,
.yes-button small { position: relative; z-index: 1; }

.yes-button span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
}

.yes-button small {
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  opacity: 0.64;
  text-transform: uppercase;
}

.yes-button:hover,
.yes-button:focus-visible {
  --yes-lift: -4px;
  filter: saturate(1.08) brightness(1.03);
  box-shadow: 0 24px 45px rgba(35, 189, 85, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.yes-button:active { --yes-lift: 1px; }

.answer-button:focus-visible,
.replay-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.hint-wrap {
  position: relative;
  z-index: 2;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.12rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.hint-icon {
  font-size: 0.94rem;
  animation: hint-duck 1.6s ease-in-out infinite;
}

.hint {
  min-height: 1.4em;
  margin: 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.75rem;
}

.mini-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.mini-footer span:first-child,
.mini-footer span:last-child {
  color: rgba(255, 127, 177, 0.55);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.is-leaving {
  animation: card-out 0.42s ease both;
}

.success-card {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-card[hidden] { display: none; }

.celebration-ducks {
  position: relative;
  z-index: 2;
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.55rem;
}

.celebration-ducks span {
  display: block;
  font-size: 3.7rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
  animation: success-pop 0.56s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.celebration-ducks span:nth-child(1) { transform: rotate(-12deg) scale(0.83); animation-delay: 0.08s; }
.celebration-ducks span:nth-child(2) { color: var(--pink); font-size: 3rem; animation-delay: 0.18s; }
.celebration-ducks span:nth-child(3) { transform: scaleX(-1) rotate(-12deg) scale(0.83); animation-delay: 0.28s; }

.success-kicker {
  position: relative;
  z-index: 2;
  margin: 0 0 0.45rem;
  color: #ffbed7;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.success-card h2 {
  max-width: 370px;
  color: #ff86b4;
  font-size: clamp(2.5rem, 10vw, 3.45rem);
  line-height: 0.98;
}

.success-card > p:not(.success-kicker) {
  position: relative;
  z-index: 2;
  max-width: 390px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.promise,
.duck-approved {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  text-align: left;
}

.promise {
  margin-top: 1.35rem;
  padding: 1rem 1.05rem;
  background: linear-gradient(135deg, rgba(255, 95, 159, 0.11), rgba(255, 255, 255, 0.045));
}

.promise-icon {
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 2.65rem;
  line-height: 1;
}

.promise > div:nth-child(2),
.duck-approved > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.promise strong,
.duck-approved strong { font-size: 0.93rem; }

.promise small,
.duck-approved small {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.49);
  font-size: 0.75rem;
}

.promise-heart {
  color: var(--pink);
  font-size: 1.35rem;
  animation: heartbeat 1.6s ease-in-out infinite;
}

.duck-approved {
  margin-top: 0.7rem;
  padding: 0.76rem 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.duck-approved > span { font-size: 1.7rem; }

.replay-button {
  position: relative;
  z-index: 2;
  margin-top: 1.15rem;
  padding: 0.73rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #f3ccdc;
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.replay-button:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

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

.confetti-piece {
  position: absolute;
  top: -3rem;
  left: var(--left);
  color: var(--color);
  font-size: var(--size);
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.08));
  animation: confetti-fall var(--duration) cubic-bezier(0.18, 0.76, 0.38, 1) var(--delay) forwards;
}

.burst-particle {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  color: #fff;
  font-size: 1rem;
  transform: translate(-50%, -50%);
  animation: burst 0.8s ease-out forwards;
}

.cursor-trail {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
}

.cursor-trail span {
  position: absolute;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.9rem;
  transform: translate(-50%, -50%);
  animation: trail-pop 0.65s ease-out forwards;
}

.is-celebrating .swimming-duck {
  animation-duration: calc(var(--duck-duration) * 0.66);
}

.is-celebrating .duck-heart {
  color: #fff;
  opacity: 1;
  animation-duration: 1s;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(28px) scale(0.965); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes card-out {
  to { opacity: 0; transform: translateY(-18px) scale(0.955); filter: blur(5px); }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  56% { transform: scale(1); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0); }
  50% { opacity: 1; transform: scale(1.18) rotate(40deg); }
}

@keyframes orbit-pulse {
  0%, 100% { opacity: 0.45; transform: translateY(1px) scale(0.88) rotate(-8deg); }
  50% { opacity: 1; transform: translateY(-7px) scale(1.13) rotate(6deg); }
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes hint-duck {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-2px); }
}

@keyframes live-dot {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes button-shine {
  0%, 68% { transform: translateX(-220%) rotate(18deg); opacity: 0; }
  75% { opacity: 1; }
  100% { transform: translateX(520%) rotate(18deg); opacity: 0; }
}

@keyframes breathe {
  to { transform: translate(calc(var(--mx) + 30px), calc(var(--my) + 15px)) scale(1.14); }
}

@keyframes sun-pulse {
  to { transform: scale(1.055); opacity: 0.9; }
}

@keyframes cloud-drift {
  to { transform: translateX(60px) translateY(8px); }
}

@keyframes water-shimmer {
  to { transform: translateX(70px) scaleX(1.04); }
}

@keyframes wave {
  to { transform: translateX(34px) scaleY(1.3); opacity: 0.42; }
}

@keyframes float-up {
  0% { transform: translate3d(0, 0, 0) rotate(-8deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate3d(var(--drift), -115vh, 0) rotate(18deg); opacity: 0; }
}

@keyframes duck-swim {
  from { transform: translateX(var(--duck-start)) scale(var(--duck-scale)); }
  to { transform: translateX(var(--duck-end)) scale(var(--duck-scale)); }
}

@keyframes duck-bob {
  0%, 100% { transform: scaleX(var(--duck-dir)) translateY(0) rotate(-2deg); }
  50% { transform: scaleX(var(--duck-dir)) translateY(-4px) rotate(2deg); }
}

@keyframes duck-love {
  0%, 52%, 100% { opacity: 0; transform: translateY(4px) scale(0.6); }
  64% { opacity: 0.92; transform: translateY(-4px) scale(1); }
  82% { opacity: 0; transform: translateY(-18px) scale(1.2); }
}

@keyframes ripple {
  0%, 100% { opacity: 0.15; transform: scaleX(0.72); }
  50% { opacity: 0.5; transform: scaleX(1.1); }
}

@keyframes success-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.2); }
  to { opacity: 1; }
}

@keyframes confetti-fall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate3d(var(--drift), 110vh, 0) rotate(var(--rotation)); opacity: 0; }
}

@keyframes burst {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6) rotate(0); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(1.2) rotate(var(--burst-rot)); }
}

@keyframes trail-pop {
  0% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.7); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 18px)) scale(1.15); }
}

@media (max-width: 620px) {
  body { overflow-y: auto; }

  .sun { top: 4vh; right: -3vw; }
  .cloud-one { top: 10%; left: -15%; transform: scale(0.7); }
  .cloud-two { display: none; }
  .pond { height: 37vh; bottom: -8vh; }

  .page-shell {
    min-height: 100svh;
    align-items: center;
    padding: 0.7rem;
  }

  .love-card {
    width: min(100%, 380px);
    min-height: min(590px, calc(100svh - 1.4rem));
    padding: 1.05rem;
    border-radius: 25px;
  }

  .live-pill { display: none; }
  .top-row { justify-content: center; }
  .mascot-wrap { width: 95px; height: 82px; margin-top: 0.55rem; }
  .mascot-duck { font-size: 4.2rem; }
  h1 { font-size: clamp(2rem, 10vw, 2.55rem); }
  .button-arena { height: 181px; margin-top: 0.72rem; }
  .yes-button { min-height: 78px; right: 9%; left: 9%; }
  .no-button { min-width: 88px; font-size: 0.82rem; }
  .mini-footer { margin-top: 0.75rem; }

  .success-card {
    min-height: min(575px, calc(100svh - 1.4rem));
  }

  .celebration-ducks { height: 92px; }
  .celebration-ducks span { font-size: 3.2rem; }
  .success-card h2 { font-size: clamp(2.35rem, 12vw, 3rem); }
}

@media (max-height: 700px) and (orientation: landscape) {
  body { overflow-y: auto; }
  .page-shell { padding: 0.55rem; }
  .love-card { min-height: auto; width: min(94vw, 720px); padding: 1rem 1.4rem; }
  .top-row { justify-content: center; }
  .live-pill { display: none; }
  .mascot-wrap { display: none; }
  h1 { font-size: 2.3rem; }
  .question-text { margin-top: 0.5rem; }
  .button-arena { height: 160px; margin-top: 0.45rem; }
  .hint-wrap { margin-top: 0; }
  .mini-footer { display: none; }
  .success-card { min-height: auto; }
  .celebration-ducks { height: 70px; margin: 0; }
  .celebration-ducks span { font-size: 2.5rem; }
  .success-card h2 { font-size: 2.5rem; }
  .success-card > p:not(.success-kicker) { margin-top: 0.55rem; }
  .promise { margin-top: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* v3 mobile interaction hardening */
.no-button {
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

@media (pointer: coarse), (hover: none) {
  .button-arena {
    min-height: 190px;
  }

  .no-button {
    min-height: 46px;
    padding: 0.8rem 1.15rem;
  }

  .yes-button {
    min-height: 82px;
  }
}

@media (max-width: 430px) {
  .page-shell {
    padding: 0.45rem;
  }

  .love-card {
    width: calc(100vw - 0.9rem);
    min-height: min(610px, calc(100svh - 0.9rem));
    padding: 0.95rem;
  }

  .button-arena {
    height: 194px;
    min-height: 194px;
  }

  .yes-button {
    left: 7%;
    right: 7%;
  }
}
