@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2191, U+2193, U+2212;
}
:root {
  color-scheme: dark;
  --ink: #fff5f4;
  --muted: #d9b5c2;
  --rose: #ff92ad;
  --rose-deep: #fa668b;
  --wine: #210f1c;
  --line: rgba(255, 205, 217, 0.17);
  font-family: Manrope, "Avenir Next", sans-serif;
  background: var(--wine);
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  background: radial-gradient(
    ellipse at 50% 52%,
    #5a2639 0%,
    #301522 48%,
    #170e17 100%
  );
  isolation: isolate;
  overflow-x: clip;
}
button {
  font: inherit;
}
button,
h1 {
  -webkit-tap-highlight-color: transparent;
}
button {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #fff7e9;
  outline-offset: 5px;
}
h1:focus {
  outline: none;
}
[hidden] {
  display: none !important;
}
.atmosphere,
#floating-particles,
#confetti {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.atmosphere {
  z-index: -2;
}
.glow {
  position: absolute;
  width: 62vmax;
  height: 62vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.18;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-one {
  background: #e13b61;
  left: -25vmax;
  top: -28vmax;
}
.glow-two {
  background: #f69c9f;
  right: -36vmax;
  bottom: -30vmax;
  animation-delay: -8s;
  opacity: 0.12;
}
.halo {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 760px;
  height: 760px;
  max-width: 160vw;
  max-height: 160vw;
  transform: translate(-50%, -49%);
  border: 1px solid #ffd5db09;
  border-radius: 50%;
  box-shadow:
    0 0 0 80px #ffd5db03,
    0 0 0 160px #ffd5db02;
}
.masthead {
  max-width: 1440px;
  margin: auto;
  padding: 32px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
.stage {
  min-height: calc(100svh - 86px);
  display: grid;
  place-items: center;
  padding: 32px 24px max(40px, env(safe-area-inset-bottom));
}
.card {
  width: min(100%, 550px);
  position: relative;
  text-align: center;
  padding: 26px 44px 27px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(
    145deg,
    rgba(255, 219, 229, 0.105),
    rgba(255, 200, 223, 0.028)
  );
  box-shadow:
    0 32px 100px #08050c40,
    inset 0 1px 0 #fff2;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  animation: card-appear 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.card:before {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffbbcaaa, transparent);
}
.card-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: left;
}
.card-spark {
  font-size: 24px;
  color: var(--rose);
}
.question-seal {
  margin: 34px auto 26px;
  width: 78px;
  height: 78px;
  border: 1px solid #ffbfcc30;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #ffafc31c, #ffafc306);
  transform: rotate(-7deg);
  box-shadow: 0 7px 35px #ff85a20c;
}
.question-seal svg {
  width: 44px;
  height: 44px;
  color: #ffadbe;
  transform: rotate(7deg);
}
.scene {
  min-height: 244px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    opacity 0.21s ease,
    transform 0.21s ease;
  opacity: 1;
  transform: translateY(0);
}
.scene.is-leaving {
  opacity: 0;
  transform: translateY(-9px);
}
.scene.is-entering {
  animation: scene-in 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.eyebrow {
  margin: 0 0 17px;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 650;
  color: var(--rose);
}
h1 {
  font-size: clamp(28px, 4.3vw, 39px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin: 0;
  max-width: 450px;
  white-space: pre-line;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.subtitle {
  font-size: 17px;
  line-height: 1.7;
  margin: 20px 0 0;
  color: #edd1da;
  white-space: pre-line;
  text-wrap: balance;
}
.subtitle.emoji {
  font-size: 30px;
  line-height: 1.3;
}
.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 32px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.button {
  border: 1px solid transparent;
  border-radius: 16px;
  min-height: 54px;
  padding: 15px 26px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  max-width: 100%;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s,
    padding 0.3s,
    min-width 0.3s;
  font-feature-settings: "ss01" on;
}
.button-primary {
  color: #341422;
  background: linear-gradient(115deg, #ffa3b9, #fa789d);
  box-shadow:
    0 6px 25px #ee658930,
    inset 0 1px 0 #ffd8e280;
  min-width: 184px;
}
.button-secondary {
  color: #edd2dc;
  background: #ffffff07;
  border-color: #ffc3d026;
  min-width: 104px;
}
.button:active {
  transform: scale(0.96);
}
@media (hover: hover) {
  .button-primary:hover {
    background: linear-gradient(115deg, #ffbac9, #ff90b0);
    box-shadow: 0 8px 30px #ef719346;
    transform: translateY(-2px);
  }
  .button-secondary:hover {
    background: #ffd3df10;
    border-color: #ffd3df55;
  }
}
.button:disabled {
  cursor: default;
}
.yes {
  min-width: calc(142px + var(--growth, 0) * 10px);
  padding-block: calc(15px + var(--growth, 0) * 2px);
  font-size: calc(17px + var(--growth, 0) * 1.5px);
  max-width: 100%;
}
.no.is-small {
  font-size: 14px;
  min-width: 80px;
  padding-inline: 17px;
  min-height: 48px;
}
.hint {
  color: #efabc0;
  font-size: 13px;
  align-self: flex-start;
  margin: 17px 0 -20px 34px;
  transform: rotate(-7deg);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hint-arrow {
  display: inline-block;
  font-size: 26px;
  animation: point 1.1s ease-in-out infinite;
}
.progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 30px;
}
.progress span {
  width: 5px;
  height: 5px;
  background: #f9c2d02e;
  border-radius: 10px;
  transition:
    width 0.3s,
    background 0.3s;
}
.progress span.active {
  width: 22px;
  background: #ffb2c1;
}
.floating-particle {
  position: absolute;
  bottom: -40px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffc0d4;
  box-shadow: 0 0 12px #ffc0d480;
  opacity: 0;
  animation: float-up var(--duration) linear infinite;
  animation-delay: var(--delay);
  left: var(--left);
}
.mail-status {
  font-size: 12px;
  line-height: 1.7;
  color: #d1adbb;
  margin: 18px 0 0;
  max-width: 330px;
}
.mail-status {
  color: #f8c6d6;
}
.mail-retry {
  display: block;
  margin: 4px auto 0;
}
.notification {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scene:empty {
  display: none;
}
#flight-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}
.no.is-flying {
  position: fixed;
  pointer-events: auto;
  max-width: calc(100vw - 32px);
  min-height: 48px;
  margin: 0;
  box-shadow: 0 7px 24px #09040f60;
  background: #412532;
  border-color: #ffc3d052;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  transform: none;
}
.no.is-flying:active {
  transform: none;
}
#confetti {
  z-index: 10;
}
.confetti-piece {
  position: absolute;
  left: 50%;
  top: 48%;
  opacity: 0;
  animation: celebrate var(--duration) cubic-bezier(0.18, 0.75, 0.4, 1) both;
  animation-delay: var(--delay);
  color: var(--color);
  font-size: var(--size);
  font-family: Manrope, sans-serif;
}
.card.is-celebrating .question-seal {
  background: #ff91b02b;
  box-shadow: 0 0 65px #ff88aa20;
}
.scene[data-screen="firstYes"] h1 {
  font-size: clamp(25px, 4vw, 32px);
}
.scene[data-screen="success"] h1 {
  font-size: clamp(27px, 4.2vw, 36px);
}
.replay {
  background: none;
  border: 0;
  color: #d5afbd;
  padding: 12px;
  min-height: 44px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.noscript {
  position: fixed;
  inset: auto 12px 20px;
  z-index: 20;
  background: #301522;
  border: 1px solid var(--rose);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(11px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes drift {
  to {
    transform: translate(8vw, 6vh) scale(1.15);
  }
}
@keyframes point {
  50% {
    transform: translate(-3px, 4px);
  }
}
@keyframes float-up {
  0% {
    transform: translate(0, 0) rotate(-12deg);
    opacity: 0;
  }
  12% {
    opacity: 0.15;
  }
  80% {
    opacity: 0.1;
  }
  100% {
    transform: translate(var(--sway), -115svh) rotate(22deg);
    opacity: 0;
  }
}
@keyframes celebrate {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0) scale(0.5);
  }
  8% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--rotation)) scale(0.9);
  }
}
@media (max-width: 600px) {
  .masthead {
    padding: 25px 24px 16px;
  }
  .stage {
    min-height: calc(100svh - 65px);
    padding: 20px 18px max(25px, env(safe-area-inset-bottom));
  }
  .card {
    padding: 21px 25px 25px;
    border-radius: 27px;
  }
  .question-seal {
    margin: 29px auto 25px;
    width: 70px;
    height: 70px;
    border-radius: 22px;
  }
  .scene {
    min-height: 247px;
  }
  h1 {
    font-size: clamp(27px, 7.8vw, 35px);
    letter-spacing: -1px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .actions {
    gap: 10px;
    margin-top: 28px;
  }
  .button {
    padding-inline: 21px;
  }
  .yes {
    min-width: calc(126px + var(--growth, 0) * 7px);
  }
  .progress {
    margin-top: 25px;
  }
}
@media (max-width: 350px) {
  .card {
    padding-inline: 19px;
  }
  .stage {
    padding-inline: 12px;
  }
  .actions {
    gap: 9px;
  }
  .button-secondary {
    min-width: 84px;
    padding-inline: 15px;
  }
  .yes {
    min-width: 120px;
  }
  .masthead {
    padding-inline: 20px;
  }
}
@media (max-height: 620px) and (min-width: 550px) {
  .stage {
    padding-block: 10px;
    min-height: auto;
  }
  .masthead {
    padding-block: 15px;
  }
  .card {
    max-width: 650px;
    padding-block: 18px;
  }
  .question-seal {
    margin: 12px auto;
    width: 52px;
    height: 52px;
    border-radius: 17px;
  }
  .question-seal svg {
    width: 30px;
    height: 30px;
  }
  .scene {
    min-height: 170px;
  }
  .actions {
    margin-top: 20px;
  }
  .progress {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .floating-particle,
  .glow,
  #confetti {
    display: none;
  }
  .scene.is-leaving {
    opacity: 1;
    transform: none;
  }
}
