:root {
  --pink-50: #fff1f7;
  --pink-100: #ffd8e9;
  --pink-300: #ff8abb;
  --pink-500: #ff4f93;
  --rose-700: #9a1f52;
  --blue-100: #dff7ff;
  --blue-300: #8bddff;
  --ink: #3b1c2e;
  --muted: #755166;
  --white: #ffffff;
  --shadow: 0 30px 90px rgba(154, 31, 82, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.95) 0 7%, transparent 8%),
    radial-gradient(circle at 82% 12%, rgba(223, 247, 255, 0.9) 0 9%, transparent 10%),
    linear-gradient(135deg, #ffe1ee 0%, #fff8fb 48%, #dff7ff 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 38vmin;
  height: 38vmin;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.55;
  z-index: 0;
}

body::before {
  left: -12vmin;
  bottom: -8vmin;
  background: conic-gradient(from 120deg, #ff8abb, #ffe4ef, #8bddff, #ff8abb);
}

body::after {
  top: -10vmin;
  right: -10vmin;
  background: conic-gradient(from 40deg, #8bddff, #fff, #ff8abb, #8bddff);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.proposal-card {
  position: relative;
  width: min(1040px, 100%);
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1.14fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.visual-panel {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    linear-gradient(155deg, rgba(255, 79, 147, 0.88), rgba(255, 138, 187, 0.82)),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.85), transparent 24%);
}

.visual-panel::before,
.visual-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.visual-panel::before {
  width: 210px;
  height: 210px;
  left: -82px;
  bottom: 48px;
}

.visual-panel::after {
  width: 140px;
  height: 140px;
  right: -52px;
  top: 46px;
}

.visual-panel img {
  position: relative;
  z-index: 1;
  width: min(310px, 82%);
  filter: drop-shadow(0 28px 32px rgba(100, 0, 44, 0.24));
  animation: floaty 4s ease-in-out infinite;
}

.ribbon {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(154, 31, 82, 0.2);
}

.content-panel {
  position: relative;
  display: flex;
  min-height: 610px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 76px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--rose-700);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--pink-50);
}

h1 {
  max-width: 620px;
  margin: 0;
  font-family: "Pacifico", cursive;
  color: var(--rose-700);
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: 0.98;
  font-weight: 400;
}

.subtitle {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
}

.actions {
  position: relative;
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.button {
  min-width: 148px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:focus-visible {
  outline: 4px solid rgba(139, 221, 255, 0.9);
  outline-offset: 4px;
}

.button-yes {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink-500), #ff77b1);
  box-shadow: 0 18px 34px rgba(255, 79, 147, 0.34);
}

.button-yes:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 44px rgba(255, 79, 147, 0.42);
}

.button-no {
  color: var(--rose-700);
  background: linear-gradient(135deg, var(--blue-100), #ffffff);
  box-shadow: 0 16px 30px rgba(116, 180, 203, 0.24);
}

.button-no.is-running {
  position: fixed;
  z-index: 20;
}

.tiny-note {
  min-height: 24px;
  margin: 8px 0 0;
  color: #a45678;
  font-size: 0.9rem;
}

.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-hearts span {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
  background: rgba(255, 79, 147, 0.34);
  animation: drift 8s linear infinite;
}

.floating-hearts span::before,
.floating-hearts span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: inherit;
}

.floating-hearts span::before {
  left: -9px;
}

.floating-hearts span::after {
  top: -9px;
}

.floating-hearts span:nth-child(1) {
  left: 52%;
  bottom: -40px;
  animation-delay: 0s;
}

.floating-hearts span:nth-child(2) {
  left: 66%;
  bottom: -60px;
  animation-delay: 1.4s;
  transform: rotate(45deg) scale(0.72);
}

.floating-hearts span:nth-child(3) {
  left: 79%;
  bottom: -50px;
  animation-delay: 2.8s;
  transform: rotate(45deg) scale(1.25);
}

.floating-hearts span:nth-child(4) {
  left: 88%;
  bottom: -60px;
  animation-delay: 4.3s;
  transform: rotate(45deg) scale(0.82);
}

.floating-hearts span:nth-child(5) {
  left: 44%;
  bottom: -70px;
  animation-delay: 5.8s;
  transform: rotate(45deg) scale(1.05);
}

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(59, 28, 46, 0.42);
  backdrop-filter: blur(10px);
}

.result-modal.is-open {
  display: grid;
}

.modal-card {
  width: min(520px, 100%);
  padding: clamp(28px, 6vw, 46px);
  border-radius: 28px;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-kicker {
  margin: 0 0 10px;
  color: var(--pink-500);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.modal-card h2 {
  margin: 0;
  color: var(--rose-700);
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.08;
}

.modal-card p:not(.modal-kicker) {
  margin: 18px 0 28px;
  color: var(--muted);
  line-height: 1.7;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-16px) rotate(2deg);
  }
}

@keyframes drift {
  0% {
    opacity: 0;
    translate: 0 0;
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    translate: 18px -760px;
  }
}

@media (max-width: 760px) {
  .proposal-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .visual-panel {
    min-height: 240px;
    padding: 26px;
  }

  .visual-panel img {
    width: min(230px, 70%);
  }

  .ribbon {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 18px;
  }

  .content-panel {
    min-height: 420px;
    padding: 30px 22px 36px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .button-no.is-running {
    width: auto;
  }
}
