:root {
  --bg: #060a14;
  --bg-soft: #0b1020;
  --ink: #f6f2fa;
  --muted: #b9b2c4;
  --muted-2: #8f8799;
  --purple: #9a80ff;
  --purple-soft: #b5a2ff;
  --pink: #ee9bc9;
  --pink-soft: #ffc2df;
  --warm: #ffd4c2;
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(16, 20, 37, 0.48);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.40);
  --ease: cubic-bezier(.22, .74, .23, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  min-height: 100dvh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 4px;
}

#starfield,
#celebration {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#starfield {
  z-index: 0;
  opacity: 0.72;
  transition: opacity 900ms var(--ease), filter 900ms var(--ease);
}

#celebration {
  z-index: 20;
}

body.is-celebrating #starfield {
  opacity: 1;
  filter: brightness(1.22);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.32;
}

body::before {
  width: min(72vw, 760px);
  aspect-ratio: 1;
  left: -24vw;
  top: -18vh;
  background: radial-gradient(circle, rgba(121, 91, 220, 0.32) 0%, rgba(121, 91, 220, 0) 68%);
}

body::after {
  width: min(66vw, 720px);
  aspect-ratio: 1;
  right: -28vw;
  bottom: -20vh;
  background: radial-gradient(circle, rgba(234, 132, 184, 0.24) 0%, rgba(234, 132, 184, 0) 70%);
}

.ambient {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 32vmax;
  height: 32vmax;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.08;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient-one {
  top: 10%;
  left: 56%;
  background: var(--purple);
}

.ambient-two {
  bottom: 8%;
  left: 2%;
  background: var(--pink);
  animation-delay: -8s;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, transparent 28%, rgba(0, 0, 0, 0.18) 78%),
    linear-gradient(to bottom, rgba(1, 3, 8, 0.05), rgba(1, 3, 8, 0.28));
}

.experience {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding:
    max(24px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 22px, 0);
  filter: blur(7px);
  pointer-events: none;
  transition:
    opacity 680ms var(--ease),
    transform 760ms var(--ease),
    filter 760ms var(--ease),
    visibility 0s linear 760ms;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  pointer-events: auto;
  transition-delay: 90ms, 90ms, 90ms, 0s;
}

.screen.is-leaving {
  opacity: 0;
  transform: translate3d(0, -14px, 0);
  filter: blur(5px);
}

.screen-inner {
  width: min(100%, 760px);
  text-align: center;
}

.screen-inner.narrow {
  width: min(100%, 690px);
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(226, 214, 255, 0.67);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
p {
  text-wrap: balance;
}

h1,
h2 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.35rem, 8.4vw, 5.25rem);
  max-width: 12ch;
  margin-inline: auto;
}

#story-title {
  font-size: clamp(2.15rem, 7vw, 4.65rem);
  max-width: 13ch;
  margin-inline: auto;
}

.body-copy {
  margin: 24px auto 0;
  max-width: 31rem;
  color: var(--muted);
  font-size: clamp(1.03rem, 4.6vw, 1.34rem);
  line-height: 1.62;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-width: 132px;
  font-weight: 760;
  letter-spacing: -0.015em;
  transition:
    transform 220ms var(--ease),
    background 280ms var(--ease),
    border-color 280ms var(--ease),
    box-shadow 280ms var(--ease),
    opacity 280ms var(--ease);
  user-select: none;
  touch-action: manipulation;
}

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

.button-secondary {
  min-height: 52px;
  margin-top: 34px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (hover: hover) and (pointer: fine) {
  .button-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(255, 255, 255, 0.16);
  }
}

.question-wrap {
  width: min(100%, 760px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.question-copy {
  width: 100%;
}

.question-title {
  font-size: clamp(2.2rem, 9.3vw, 5.4rem);
  max-width: 11ch;
  margin-inline: auto;
}

.button-stage {
  position: relative;
  width: min(100%, 560px);
  height: 198px;
  margin-top: 28px;
}

.button-yes,
.button-no {
  position: absolute;
  top: 50%;
  left: 50%;
}

.button-yes {
  z-index: 2;
  min-width: 174px;
  min-height: 58px;
  padding: 0 28px;
  transform: translate(calc(-50% - 74px), -50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02)),
    linear-gradient(120deg, #ab81ff, #ed9ac8 56%, #f3b3d6);
  box-shadow:
    0 14px 46px rgba(175, 116, 255, 0.26),
    0 8px 28px rgba(238, 155, 201, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  text-shadow: 0 1px 12px rgba(72, 22, 90, 0.25);
}

.button-no {
  z-index: 3;
  min-width: 122px;
  min-height: 50px;
  padding: 0 20px;
  transform: translate(calc(-50% + 86px), -50%);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: left, top, transform;
}

.button-no.is-free {
  transform: translate(-50%, -50%);
  transition:
    left 380ms var(--ease),
    top 380ms var(--ease),
    transform 220ms var(--ease),
    background 280ms var(--ease),
    border-color 280ms var(--ease);
}

.button-no.is-catchable {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.09);
}

@media (hover: hover) and (pointer: fine) {
  .button-yes:hover {
    transform: translate(calc(-50% - 74px), calc(-50% - 2px));
    box-shadow:
      0 18px 58px rgba(175, 116, 255, 0.34),
      0 10px 34px rgba(238, 155, 201, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.48);
  }

  .button-no:not(.is-free):hover {
    transform: translate(calc(-50% + 86px), calc(-50% - 1px));
  }

  .button-no.is-free:hover {
    transform: translate(-50%, calc(-50% - 1px));
  }
}

.tiny-note {
  min-height: 20px;
  margin: -6px 0 0;
  color: var(--muted-2);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.glass-card {
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.celebration-screen::before {
  content: "";
  position: absolute;
  width: min(82vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 142, 255, 0.16), rgba(239, 157, 202, 0.08) 38%, transparent 68%);
  filter: blur(8px);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1s var(--ease), transform 1.3s var(--ease);
}

.celebration-screen.is-active::before {
  opacity: 1;
  transform: scale(1);
}

.celebration-content {
  position: relative;
  z-index: 1;
}

.yes-title {
  font-size: clamp(2.15rem, 8.4vw, 4.7rem);
  max-width: 13ch;
  margin-inline: auto;
  text-shadow: 0 0 34px rgba(227, 164, 255, 0.12);
}

.date-line,
.distance-line,
.love-line,
.screenshot-line {
  margin-left: auto;
  margin-right: auto;
}

.date-line {
  margin-top: 24px;
  color: var(--pink-soft);
  font-size: clamp(1.05rem, 4.8vw, 1.34rem);
  font-weight: 720;
  letter-spacing: 0.02em;
}

.distance-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(0.92rem, 4vw, 1.08rem);
}

.love-line {
  margin-top: 28px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 7vw, 2.8rem);
  font-style: italic;
  letter-spacing: -0.03em;
}

.screenshot-line {
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.screenshot-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.heart-orbit {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}

.heart-core {
  position: relative;
  z-index: 2;
  color: #ffc0dd;
  font-size: 2.15rem;
  filter: drop-shadow(0 0 18px rgba(244, 153, 203, 0.44));
  animation: heartPulse 2.6s ease-in-out infinite;
}

.orbit {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(214, 190, 255, 0.15);
  animation: orbitBreath 4.4s ease-in-out infinite;
}

.orbit-two {
  inset: 0;
  border-color: rgba(247, 183, 216, 0.10);
  animation-delay: -1.8s;
}

.noscript-card {
  position: fixed;
  z-index: 99;
  inset: 20px;
  margin: auto;
  width: min(calc(100% - 40px), 520px);
  height: fit-content;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0a1020;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}

@keyframes drift {
  0% { transform: translate3d(-2%, -2%, 0) scale(0.96); }
  100% { transform: translate3d(6%, 5%, 0) scale(1.06); }
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes orbitBreath {
  0%, 100% { transform: scale(0.9); opacity: 0.38; }
  50% { transform: scale(1.08); opacity: 0.88; }
}

@media (max-width: 520px) {
  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.69rem;
    letter-spacing: 0.18em;
  }

  .button-stage {
    height: 214px;
    margin-top: 26px;
  }

  .button-yes {
    min-width: 165px;
    min-height: 58px;
    transform: translate(-50%, calc(-50% - 38px));
  }

  .button-no {
    min-width: 122px;
    min-height: 50px;
    transform: translate(-50%, calc(-50% + 42px));
  }

  @media (hover: hover) and (pointer: fine) {
    .button-yes:hover {
      transform: translate(-50%, calc(-50% - 40px));
    }

    .button-no:not(.is-free):hover {
      transform: translate(-50%, calc(-50% + 40px));
    }
  }

  .glass-card {
    border-radius: 26px;
  }
}

@media (max-height: 700px) {
  .screen {
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .button-stage {
    height: 174px;
    margin-top: 20px;
  }

  .body-copy {
    margin-top: 18px;
  }

  .button-secondary {
    margin-top: 26px;
  }

  .heart-orbit {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
  }

  .love-line,
  .screenshot-line {
    margin-top: 20px;
  }
}

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

  #starfield {
    opacity: 0.58;
  }
}
