:root {
  color-scheme: dark;
  --bg-top: #220312;
  --bg-bottom: #08030d;
  --ink: #fff7fb;
  --muted: rgba(255, 234, 242, 0.72);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.14);
  --accent: #ff5b9c;
  --accent-hot: #ff2f71;
  --accent-gold: #ffd38b;
  --meter: 0%;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 117, 165, 0.24), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(255, 205, 112, 0.2), transparent 20%),
    radial-gradient(circle at 50% 78%, rgba(255, 76, 120, 0.18), transparent 26%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

button {
  font: inherit;
}

.backdrop,
.page {
  position: relative;
  min-height: 100vh;
}

.backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop__halo {
  position: absolute;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.5;
  animation: drift 12s ease-in-out infinite alternate;
}

.backdrop__halo--left {
  top: -8rem;
  left: -8rem;
  background: rgba(255, 70, 124, 0.36);
}

.backdrop__halo--right {
  right: -8rem;
  bottom: -10rem;
  background: rgba(255, 208, 139, 0.22);
  animation-duration: 16s;
}

.backdrop__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: 0.14;
}

.sparkle-field {
  position: absolute;
  inset: 0;
}

.page {
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 1;
}

.hero {
  position: relative;
  width: min(100%, 920px);
  padding: clamp(28px, 5vw, 52px);
  text-align: center;
  border: 1px solid var(--glass-border);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(17, 8, 19, 0.56);
  backdrop-filter: blur(22px);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero__eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 219, 228, 0.82);
}

.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.5rem, 10vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.hero__lead,
.hero__hint {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--muted);
}

.hero__lead {
  margin-top: 18px;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  line-height: 1.7;
}

.hero__hint {
  margin-top: 24px;
  font-size: 0.95rem;
}

.love-meter {
  width: min(100%, 460px);
  margin: 24px auto 0;
  padding: 16px 18px;
  text-align: left;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.love-meter__label,
.counter-card__label {
  display: block;
  color: rgba(255, 232, 239, 0.66);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.love-meter__track {
  position: relative;
  margin-top: 12px;
  width: 100%;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.love-meter__fill {
  width: var(--meter);
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #ff5d98, #ff80a8 40%, #ffd38b 100%);
  box-shadow:
    0 0 20px rgba(255, 103, 151, 0.58),
    0 0 28px rgba(255, 211, 139, 0.34);
  transition: width 320ms ease;
}

.love-meter__value {
  margin-top: 10px;
  text-align: right;
  font-weight: 800;
  color: rgba(255, 246, 250, 0.9);
}

.heart-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-height: 430px;
  margin-top: 20px;
  padding-top: 20px;
}

.heart-button {
  position: relative;
  width: clamp(210px, 36vw, 290px);
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateZ(0);
  -webkit-tap-highlight-color: transparent;
}

.heart-button:active {
  transform: scale(0.985);
}

.heart-button__core {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.52), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(255, 72, 128, 0.58), rgba(255, 34, 90, 0.14) 62%, transparent 72%);
  box-shadow:
    0 0 48px rgba(255, 52, 110, 0.45),
    0 0 110px rgba(255, 99, 153, 0.28);
  animation: breathing 2.8s ease-in-out infinite;
}

.heart-button__heart {
  position: relative;
  width: 46%;
  aspect-ratio: 1;
  transform: rotate(-45deg);
  background:
    linear-gradient(160deg, #ffd4e7 0%, #ff6ca9 26%, #ff2f71 74%, #d90d50 100%);
  border-radius: 18% 0 12% 0;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.28),
    inset 0 2px 12px rgba(255, 255, 255, 0.28);
}

.heart-button__heart::before,
.heart-button__heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.heart-button__heart::before {
  top: -50%;
  left: 0;
}

.heart-button__heart::after {
  top: 0;
  left: 50%;
}

.heart-button__ring {
  position: absolute;
  inset: 3%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.heart-button__ring--one {
  animation: spin 18s linear infinite;
}

.heart-button__ring--two {
  inset: 0;
  border-style: dashed;
  border-color: rgba(255, 198, 216, 0.24);
  animation: spinReverse 24s linear infinite;
}

.heart-button__ring--three {
  inset: 8%;
  border-color: rgba(255, 211, 139, 0.18);
  animation: pulseRing 2.4s ease-in-out infinite;
}

.heart-button.is-bursting .heart-button__core {
  animation: none;
  transform: scale(1.05);
}

.heart-button.is-bursting .heart-button__heart {
  animation: heartPop 620ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.message-cloud,
.counter-card {
  width: min(100%, 360px);
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.message-cloud {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 240, 245, 0.92);
}

.counter-card__value {
  display: block;
  margin-top: 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.float-love,
.float-heart,
.shockwave {
  position: absolute;
  pointer-events: none;
}

.float-love {
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 100, 156, 0.45);
  animation: floatLove 1.8s ease-out forwards;
}

.float-heart {
  width: 18px;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #ffd4e7, #ff2f71);
  transform: rotate(-45deg);
  animation: floatHeart 1.9s ease-out forwards;
}

.float-heart::before,
.float-heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.float-heart::before {
  top: -50%;
  left: 0;
}

.float-heart::after {
  top: 0;
  left: 50%;
}

.shockwave {
  left: 50%;
  top: 46%;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  border: 2px solid rgba(255, 214, 227, 0.7);
  transform: translate(-50%, -50%) scale(0.5);
  animation: shockwave 850ms ease-out forwards;
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 245, 222, 0.96), rgba(255, 178, 208, 0.8) 48%, transparent 72%);
  box-shadow: 0 0 16px rgba(255, 189, 212, 0.56);
  animation: sparkleMove 1.35s ease-out forwards;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(20px, 20px, 0) scale(1.12);
  }
}

@keyframes breathing {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.65;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes heartPop {
  0% {
    transform: rotate(-45deg) scale(1);
  }
  35% {
    transform: rotate(-45deg) scale(1.22);
  }
  100% {
    transform: rotate(-45deg) scale(1);
  }
}

@keyframes floatLove {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.18);
  }
}

@keyframes floatHeart {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-45deg) scale(0.4);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) rotate(-45deg) scale(1.2);
  }
}

@keyframes sparkleMove {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.2);
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) scale(1.1);
  }
}

@keyframes shockwave {
  0% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.6);
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 24px 18px 28px;
    border-radius: 28px;
  }

  .heart-stage {
    min-height: 380px;
  }

  .message-cloud,
  .counter-card,
  .love-meter {
    width: 100%;
  }
}
