:root {
  --bg-1: #1c0b2b;
  --bg-2: #70409b;
  --bg-3: #c7a4e6;
  --card: rgba(255, 255, 255, 0.14);
  --card-strong: rgba(255, 255, 255, 0.22);
  --text: #fffafc;
  --muted: #ffe4ee;
  --pink: #ff5ea8;
  --pink-dark: #ff3d93;
  --rose: #ffb5d9;
  --lavender: #d8b4ff;
  --shadow: 0 24px 60px rgba(64, 18, 44, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  color: var(--text);
  min-height: 100vh;
}

button {
  font: inherit;
}

.love-landing {
  overflow: hidden;
}

.question-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.love-card {
  position: relative;
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  text-align: center;
}

.entry-card {
  width: min(560px, 100%);
  padding: 3rem 2rem 2.5rem;
}

.entry-heart {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--rose);
  font-size: 3.6rem;
  line-height: 1;
  animation: pulse 1.5s infinite ease-in-out;
}

.entry-card h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.password-form {
  display: grid;
  gap: 0.8rem;
  max-width: 360px;
  margin: 2rem auto 0;
}

.password-input {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  font: inherit;
  text-align: center;
}

.password-input::placeholder {
  color: rgba(255, 250, 252, 0.72);
}

.password-input:focus-visible {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 181, 217, 0.2);
}

.password-form .btn {
  width: 100%;
}

.password-error {
  margin: 0.3rem 0 0;
  color: #ffd1df;
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tiny-tag {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose);
}

.love-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.subtitle {
  margin: 1rem auto 0;
  max-width: 480px;
  color: var(--muted);
  font-size: 1.05rem;
}

.button-row {
  position: relative;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
  min-height: 80px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 1rem 1.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, scale 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#noButton {
  width: max-content;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: visible;
}

.btn-yes:hover,
.btn-yes:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

.btn-yes {
  background: linear-gradient(135deg, #c28bea, #8d4cc2);
  color: white;
  box-shadow: 0 12px 28px rgba(141, 76, 194, 0.4);
}

.btn-no {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.04);
}

.button-row::before {
  content: "";
  position: absolute;
  inset: 10px 20px 6px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  pointer-events: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  pointer-events: none;
  z-index: 0;
}

.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-hearts span {
  position: absolute;
  top: -12%;
  font-size: clamp(1.2rem, 2vw, 2rem);
  opacity: 0.7;
  animation: drift 10s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.floating-hearts span:nth-child(1) { left: 8%; animation-delay: 0s; }
.floating-hearts span:nth-child(2) { left: 18%; animation-delay: 1.2s; }
.floating-hearts span:nth-child(3) { left: 29%; animation-delay: 2.5s; }
.floating-hearts span:nth-child(4) { left: 41%; animation-delay: 0.7s; }
.floating-hearts span:nth-child(5) { left: 54%; animation-delay: 2.1s; }
.floating-hearts span:nth-child(6) { left: 67%; animation-delay: 1.5s; }
.floating-hearts span:nth-child(7) { left: 76%; animation-delay: 2.9s; }
.floating-hearts span:nth-child(8) { left: 86%; animation-delay: 3.4s; }
.floating-hearts span:nth-child(9) { left: 12%; animation-delay: 4.1s; }
.floating-hearts span:nth-child(10) { left: 31%; animation-delay: 5.2s; }
.floating-hearts span:nth-child(11) { left: 59%; animation-delay: 4.6s; }
.floating-hearts span:nth-child(12) { left: 90%; animation-delay: 6.1s; }
.floating-hearts span:nth-child(13) { left: 4%; animation-delay: 7.2s; }
.floating-hearts span:nth-child(14) { left: 23%; animation-delay: 8.1s; }
.floating-hearts span:nth-child(15) { left: 36%; animation-delay: 7.7s; }
.floating-hearts span:nth-child(16) { left: 48%; animation-delay: 8.8s; }
.floating-hearts span:nth-child(17) { left: 62%; animation-delay: 7.5s; }
.floating-hearts span:nth-child(18) { left: 72%; animation-delay: 9.2s; }
.floating-hearts span:nth-child(19) { left: 82%; animation-delay: 8.5s; }
.floating-hearts span:nth-child(20) { left: 96%; animation-delay: 9.8s; }

@keyframes drift {
  0% {
    transform: translateY(0) scale(0.75) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(115vh) scale(1.2) rotate(22deg);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.question-screen {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .love-card {
    padding: 2rem 1.25rem;
  }

  .button-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  #noButton {
    width: max-content;
  }
}
