:root {
  color-scheme: dark;
  --night: #10090e;
  --rose: #ee7897;
  --rose-light: #ffd5df;
  --cherry: #9c2948;
  --gold: #d7b575;
  --ivory: #fff7eb;
  --muted: #d9bec7;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", sans-serif;
  --script: "Caveat", cursive;
  --pointer-x: 0px;
  --pointer-y: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--night);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 108%, rgba(116, 35, 57, 0.3), transparent 49%),
    radial-gradient(ellipse at 20% 5%, rgba(88, 42, 69, 0.17), transparent 40%),
    var(--night);
  color: var(--ivory);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 2px solid #ffe4a8;
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.atmosphere,
.vignette,
.cursor-glow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.atmosphere {
  z-index: 1;
}

.vignette {
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(7, 4, 8, 0.36) 100%),
    linear-gradient(180deg, rgba(7, 4, 8, 0.12), transparent 26%, transparent 76%, rgba(7, 4, 8, 0.34));
}

.cursor-glow {
  z-index: 4;
  display: none;
  width: 22rem;
  height: 22rem;
  inset: auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 164, 184, 0.09), transparent 68%);
  transform: translate3d(calc(var(--pointer-x) - 50%), calc(var(--pointer-y) - 50%), 0);
}

.cursor-heart {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  color: #ffb0c1;
  font-size: 13px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 115, 160, 0.88);
  animation: cursor-heart-drift 850ms ease-out forwards;
}

.experience {
  position: relative;
  z-index: 3;
  min-height: 100svh;
}

.scene {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(86px, calc(env(safe-area-inset-top) + 74px)) 22px max(56px, calc(env(safe-area-inset-bottom) + 34px));
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition:
    opacity 850ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 850ms;
  scrollbar-width: none;
}

.scene::-webkit-scrollbar {
  display: none;
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scene-controls {
  position: fixed;
  z-index: 12;
  top: max(20px, env(safe-area-inset-top));
  right: max(22px, env(safe-area-inset-right));
  display: flex;
  gap: 9px;
}

.utility-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 223, 213, 0.13);
  border-radius: 99px;
  background: rgba(25, 13, 19, 0.52);
  color: rgba(255, 237, 232, 0.75);
  cursor: pointer;
  font-size: 0.65rem;
  letter-spacing: 0.045em;
  backdrop-filter: blur(14px);
  transition: background 250ms ease, border-color 250ms ease, color 250ms ease, transform 250ms ease;
}

.utility-button:hover,
.utility-button[aria-pressed="true"] {
  border-color: rgba(244, 194, 160, 0.42);
  background: rgba(74, 34, 45, 0.7);
  color: #fff3e7;
}

.utility-button:active {
  transform: scale(0.96);
}

.utility-icon {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}

.heart-counter {
  position: fixed;
  z-index: 12;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(22px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(252, 221, 226, 0.55);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heart-counter > span:first-child {
  color: #f08ca4;
  font-size: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.overline {
  margin: 0;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.intro-scene {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(87, 30, 50, 0.18), transparent 46%),
    radial-gradient(ellipse at 50% 100%, rgba(159, 57, 83, 0.13), transparent 48%);
}

.intro-glow,
.gentle-glow,
.celebration-halo {
  position: absolute;
  width: min(78vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(182, 59, 91, 0.1), rgba(114, 34, 66, 0.04) 42%, transparent 70%);
  animation: halo-breathe 7s ease-in-out infinite;
}

.intro-content {
  position: relative;
  display: flex;
  width: min(680px, 100%);
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate3d(calc(var(--pointer-x) * -0.006), calc(var(--pointer-y) * -0.006), 0);
  transition: transform 450ms ease-out;
}

.opening-heart {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  place-items: center;
  color: #ffc3d1;
  font-size: 2.4rem;
  filter: drop-shadow(0 0 15px rgba(255, 117, 153, 0.8)) drop-shadow(0 0 45px rgba(221, 71, 111, 0.45));
  animation: heart-beat 2.4s ease-in-out infinite, heart-arrive 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.opening-heart::before,
.opening-heart::after {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(249, 167, 189, 0.14);
  border-radius: 50%;
  content: "";
  animation: heart-ripple 3.2s ease-out infinite;
}

.opening-heart::after {
  animation-delay: 1.6s;
}

.intro-overline,
.recipient-name,
.intro-message,
.envelope,
.intro-signature {
  animation: fade-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.intro-overline { animation-delay: 160ms; }

.recipient-name {
  margin: 15px 0 0;
  color: #fff5eb;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.3vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.97;
  text-shadow: 0 3px 36px rgba(255, 167, 191, 0.19);
  animation-delay: 280ms;
}

.name-break {
  display: none;
}

.intro-message {
  margin: 17px 0 5px;
  color: rgba(246, 220, 224, 0.72);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-style: italic;
  animation-delay: 420ms;
}

.recipient-portrait {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 10px 0 0;
  border: 1px solid rgba(226, 190, 143, 0.72);
  border-radius: 50%;
  background: #29151d;
  box-shadow:
    0 0 0 5px rgba(235, 181, 154, 0.06),
    0 0 26px rgba(230, 120, 147, 0.28);
  animation: fade-rise 1s 520ms both;
}

.recipient-portrait::before {
  position: absolute;
  z-index: 1;
  inset: -5px;
  border: 1px solid rgba(228, 185, 143, 0.25);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.recipient-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 22%;
}

.recipient-portrait figcaption {
  position: absolute;
  top: calc(100% + 6px);
  right: -52px;
  left: -52px;
  color: rgba(248, 222, 219, 0.64);
  font-family: var(--script);
  font-size: 0.98rem;
  white-space: nowrap;
}

.envelope {
  position: relative;
  display: block;
  width: min(300px, 76vw);
  height: 186px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
  animation-delay: 600ms;
}

.envelope-shadow {
  position: absolute;
  right: 2%;
  bottom: 1px;
  left: 2%;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.54);
  filter: blur(15px);
  transition: transform 500ms ease;
}

.letter-preview {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12%;
  left: 12%;
  display: flex;
  height: 125px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(185, 140, 101, 0.5);
  border-radius: 3px 3px 1px 1px;
  background:
    linear-gradient(110deg, transparent 48%, rgba(183, 142, 104, 0.1) 49%, transparent 50%),
    linear-gradient(180deg, #f8e9d8, #e6ceb8);
  color: #6a3940;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.23);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 700ms ease;
}

.preview-flourish {
  font-family: var(--script);
  font-size: 1.55rem;
}

.preview-heart {
  color: #9e3c4d;
  font-size: 0.82rem;
}

.envelope-back,
.envelope-pocket,
.envelope-flap {
  position: absolute;
  inset: 34px 0 21px;
  border-radius: 5px;
}

.envelope-back {
  z-index: 2;
  background: linear-gradient(145deg, #8b4052, #522535 70%);
  box-shadow: inset 0 1px 1px rgba(255, 220, 203, 0.2);
}

.envelope-pocket {
  z-index: 4;
  overflow: hidden;
  background: linear-gradient(140deg, #a75868 0%, #723547 52%, #8e4659 100%);
  clip-path: polygon(0 0, 50% 62%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -1px 0 rgba(255, 220, 203, 0.12));
}

.envelope-flap {
  z-index: 5;
  background: linear-gradient(180deg, #b36978, #834252);
  clip-path: polygon(0 0, 100% 0, 50% 59%);
  transform-origin: 50% 0;
  transition: transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1), z-index 1ms 340ms;
}

.wax-seal {
  position: absolute;
  z-index: 6;
  top: 73px;
  left: 50%;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(251, 211, 176, 0.48);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #f2b1ad, #a63850 70%);
  color: #ffead9;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(31, 5, 15, 0.4), inset 0 1px 3px rgba(255, 245, 221, 0.4);
  transform: translateX(-50%);
  transition: transform 350ms ease, opacity 300ms ease;
}

.envelope-hint {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  color: rgba(250, 225, 222, 0.68);
  font-size: 0.61rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 250ms ease;
}

.envelope:hover .letter-preview,
.envelope:focus-visible .letter-preview {
  transform: translateY(-13px);
}

.envelope:hover .envelope-shadow {
  transform: scaleX(0.83);
}

.envelope:active {
  transform: translateY(3px) scale(0.985);
}

.envelope.is-opening .envelope-flap {
  z-index: 1;
  transform: rotateX(180deg);
}

.envelope.is-opening .wax-seal {
  opacity: 0;
  transform: translateX(-50%) scale(1.7) rotate(25deg);
}

.envelope.is-opening .letter-preview {
  z-index: 7;
  transform: translateY(-112px) scale(1.07);
}

.envelope.is-opening .envelope-hint {
  opacity: 0;
}

.intro-signature {
  margin: 10px 0 0;
  color: rgba(248, 222, 219, 0.56);
  font-family: var(--script);
  font-size: 1.28rem;
  animation-delay: 760ms;
}

.intro-signature span {
  padding-left: 5px;
  color: var(--gold);
}

.letter-scene {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(130, 72, 66, 0.17), transparent 61%),
    rgba(11, 7, 9, 0.2);
  perspective: 1200px;
}

.paper-card {
  position: relative;
  width: min(700px, 100%);
  padding: clamp(32px, 5.5vw, 62px) clamp(26px, 7vw, 78px) clamp(29px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(198, 155, 108, 0.5);
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 6% 3%, rgba(178, 126, 91, 0.15), transparent 33%),
    radial-gradient(ellipse at 91% 100%, rgba(183, 138, 104, 0.12), transparent 38%),
    repeating-linear-gradient(0deg, rgba(116, 75, 55, 0.018) 0, rgba(116, 75, 55, 0.018) 1px, transparent 1px, transparent 5px),
    #f6ecd9;
  color: #47312d;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.45), 0 0 80px rgba(239, 157, 151, 0.09);
  transform: rotateX(2deg);
  animation: paper-arrive 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.paper-card::before,
.paper-card::after {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(153, 104, 70, 0.56);
  border-style: solid;
  content: "";
}

.paper-card::before {
  top: 13px;
  left: 13px;
  border-width: 1px 0 0 1px;
}

.paper-card::after {
  right: 13px;
  bottom: 13px;
  border-width: 0 1px 1px 0;
}

.paper-ornament {
  position: absolute;
  top: 22px;
  right: 27px;
  color: #aa7a58;
  font-size: 0.9rem;
}

.paper-overline {
  color: #a56d54;
  font-size: 0.57rem;
}

.paper-heading {
  margin: 13px 0 7px;
  color: #713e43;
  font-family: var(--script);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 500;
}

.letter-copy {
  min-height: 150px;
  color: #4a3733;
  font-family: var(--script);
  font-size: clamp(1.27rem, 2.2vw, 1.62rem);
  line-height: 1.44;
  white-space: pre-line;
}

.letter-copy::after,
.love-letter::after {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  content: "";
  vertical-align: -0.12em;
  animation: cursor-blink 800ms steps(2, start) infinite;
}

.letter-copy.is-complete::after,
.love-letter.is-complete::after {
  display: none;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 0.92rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  transition:
    transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 300ms ease,
    background 300ms ease,
    border-color 300ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  transform: translateY(-3px);
}

.button:active {
  transform: translateY(1px) scale(0.98);
}

.button-gold {
  margin-top: 21px;
  background: linear-gradient(110deg, #873c4b, #b96d68 55%, #8e3d4d);
  color: #fff4e8;
  box-shadow: 0 9px 24px rgba(116, 47, 55, 0.23);
}

.button-gold:hover {
  box-shadow: 0 13px 34px rgba(116, 47, 55, 0.34);
}

.button-shine {
  position: absolute;
  top: -50%;
  left: -60%;
  width: 36%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(20deg);
  transition: left 700ms ease;
}

.button:hover .button-shine {
  left: 125%;
}

.paper-signature {
  margin: 18px 0 0;
  color: #9a6b55;
  font-family: var(--script);
  font-size: 1.24rem;
  text-align: right;
}

.paper-signature span {
  color: #aa4153;
}

.garden-scene {
  background:
    radial-gradient(ellipse at 50% 54%, rgba(147, 45, 69, 0.28), transparent 48%),
    radial-gradient(ellipse at 8% 100%, rgba(38, 77, 54, 0.26), transparent 36%),
    radial-gradient(ellipse at 92% 100%, rgba(38, 77, 54, 0.23), transparent 36%),
    linear-gradient(180deg, #10090f 0%, #1a0c15 58%, #140c11 100%);
}

.garden-scene::before,
.garden-scene::after {
  position: absolute;
  right: -15%;
  bottom: 0;
  left: -15%;
  height: 38%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at center top, rgba(63, 91, 54, 0.25), transparent 70%);
  content: "";
  pointer-events: none;
}

.garden-scene::after {
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 32%;
  background: radial-gradient(ellipse at center top, rgba(112, 49, 59, 0.21), transparent 70%);
}

.garden-moon {
  position: absolute;
  top: 13%;
  right: 16%;
  width: clamp(65px, 9vw, 112px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8df 0%, #f1d9bd 36%, rgba(238, 191, 171, 0.7) 69%, transparent 72%);
  filter: drop-shadow(0 0 25px rgba(255, 211, 181, 0.32)) drop-shadow(0 0 90px rgba(225, 149, 135, 0.19));
  opacity: 0.82;
}

.garden-rose {
  position: absolute;
  z-index: 1;
  bottom: 3%;
  color: #e2a0a5;
  font-size: clamp(4.2rem, 10vw, 9rem);
  filter: drop-shadow(0 0 22px rgba(226, 86, 108, 0.43));
  opacity: 0.74;
  animation: rose-sway 7s ease-in-out infinite;
}

.rose-left {
  left: clamp(12px, 7vw, 110px);
  transform: rotate(-15deg);
}

.rose-right {
  right: clamp(12px, 7vw, 110px);
  transform: rotate(17deg) scaleX(-1);
  animation-delay: -3s;
}

.garden-lights {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 14% 30%, rgba(255, 225, 171, 0.8) 45%, transparent 100%),
    radial-gradient(2px 2px at 25% 63%, rgba(255, 192, 155, 0.8) 45%, transparent 100%),
    radial-gradient(2px 2px at 81% 35%, rgba(255, 225, 171, 0.8) 45%, transparent 100%),
    radial-gradient(2px 2px at 89% 70%, rgba(255, 192, 155, 0.8) 45%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 22%, rgba(255, 244, 204, 0.9) 45%, transparent 100%);
  opacity: 0.66;
  animation: lights-twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}

.question-content {
  position: relative;
  z-index: 3;
  width: min(700px, 100%);
  padding: 10px 0 20px;
  text-align: center;
  transform: translate3d(calc(var(--pointer-x) * -0.009), calc(var(--pointer-y) * -0.009), 0);
  transition: transform 500ms ease-out;
}

.garden-overline {
  color: rgba(244, 200, 176, 0.78);
  animation: fade-rise 900ms 100ms both;
}

.garden-name {
  margin: 17px 0 4px;
  color: #ffe9e2;
  font-family: var(--script);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 0 35px rgba(255, 180, 193, 0.39);
  animation: fade-rise 1.1s 280ms both;
}

.garden-name span {
  display: inline-block;
  color: #f39ab0;
  font-family: var(--sans);
  font-size: 0.42em;
  vertical-align: 0.26em;
  animation: heart-beat 1.7s ease-in-out infinite;
}

.question-divider {
  display: flex;
  width: min(220px, 55%);
  align-items: center;
  gap: 12px;
  margin: 18px auto 23px;
  color: var(--gold);
  animation: fade-in 900ms 550ms both;
}

.question-divider i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(220, 179, 126, 0.58));
}

.question-divider i:last-child {
  transform: rotate(180deg);
}

.question-divider span {
  font-size: 0.66rem;
}

.question-title {
  margin: 0;
  color: #fff5e9;
  font-family: var(--serif);
  font-size: clamp(3.35rem, 8.6vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.043em;
  line-height: 0.86;
  text-shadow: 0 5px 55px rgba(255, 150, 177, 0.2);
  animation: question-arrive 1.35s 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.question-subtitle {
  margin: 22px auto 0;
  color: rgba(255, 230, 226, 0.68);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-style: italic;
  animation: fade-rise 1s 1s both;
}

.privacy-note {
  margin: 7px auto 0;
  color: rgba(255, 230, 226, 0.53);
  font-size: 0.58rem;
  letter-spacing: 0.035em;
  line-height: 1.5;
}

.response-consent {
  width: min(475px, 100%);
  margin: 11px auto 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 232, 224, 0.16);
  border-radius: 15px;
  background: rgba(25, 13, 19, 0.42);
  text-align: left;
  backdrop-filter: blur(9px);
  animation: fade-in 1s 1.1s both;
}

.response-consent label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(255, 243, 236, 0.82);
  cursor: pointer;
  font-size: 0.63rem;
  line-height: 1.5;
}

.response-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 1px 0 0;
  accent-color: #e78399;
  cursor: pointer;
}

.response-status {
  min-height: 1em;
  margin: 7px 0 -3px;
  color: #ffe3b5;
  font-size: 0.68rem;
}

.answer-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.answer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-top: 29px;
  animation: fade-rise 1s 1.15s both;
}

.button-yes {
  min-width: 182px;
  border-color: rgba(255, 219, 209, 0.64);
  background: linear-gradient(115deg, #c44d69, #96324e 54%, #b84861);
  color: #fff8ef;
  box-shadow: 0 8px 30px rgba(194, 56, 90, 0.34), 0 0 0 5px rgba(231, 138, 154, 0.07);
  animation: yes-glow 2.9s ease-in-out infinite;
}

.button-yes:hover {
  box-shadow: 0 12px 42px rgba(220, 71, 105, 0.5), 0 0 0 7px rgba(231, 138, 154, 0.11);
}

.yes-heart {
  font-size: 1.08rem;
  animation: heart-beat 1.3s ease-in-out infinite;
}

.button-no {
  min-width: 120px;
  border-color: rgba(255, 239, 230, 0.28);
  background: rgba(24, 14, 20, 0.48);
  color: rgba(255, 241, 236, 0.82);
  backdrop-filter: blur(9px);
}

.button-no:hover {
  border-color: rgba(255, 239, 230, 0.63);
  background: rgba(89, 49, 60, 0.55);
}

.button-no span {
  font-size: 1.1rem;
}

.garden-signature {
  position: relative;
  z-index: 3;
  margin: 31px 0 0;
  color: rgba(248, 218, 215, 0.55);
  font-family: var(--script);
  font-size: 1.16rem;
  letter-spacing: 0.035em;
}

.garden-signature span {
  color: #e9879d;
}

.garden-ground {
  position: absolute;
  right: -10%;
  bottom: 0;
  left: -10%;
  height: 36%;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 50% 5%, rgba(45, 66, 42, 0.28), transparent 69%);
  pointer-events: none;
}

.celebration-scene {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(153, 48, 77, 0.31), transparent 53%),
    radial-gradient(ellipse at 50% 110%, rgba(194, 131, 76, 0.16), transparent 45%),
    #10090e;
}

.celebration-halo {
  width: min(88vw, 900px);
  background: radial-gradient(circle, rgba(237, 91, 129, 0.17), rgba(185, 79, 104, 0.05) 45%, transparent 70%);
  animation-duration: 3s;
}

.celebration-content {
  position: relative;
  width: min(760px, 100%);
  text-align: center;
  animation: celebration-arrive 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.celebration-overline {
  color: #e9c590;
}

.celebration-heart {
  margin: 7px 0 -12px;
  color: #f7a4b7;
  font-size: clamp(3rem, 7vw, 5rem);
  filter: drop-shadow(0 0 22px rgba(251, 107, 148, 0.7));
  animation: heart-beat 1.25s ease-in-out infinite;
}

.celebration-content h1 {
  margin: 0;
  color: #fff0e8;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 10vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 0 45px rgba(255, 169, 180, 0.22);
}

.celebration-content h1 span {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.56em;
  vertical-align: 0.14em;
}

.love-letter {
  width: min(650px, 100%);
  min-height: 155px;
  margin: 17px auto 0;
  color: rgba(255, 234, 226, 0.88);
  font-family: var(--serif);
  font-size: clamp(1.13rem, 2.1vw, 1.4rem);
  line-height: 1.48;
  white-space: pre-line;
}

.story-ending {
  margin: 9px 0 0;
  color: #ffdfb6;
  font-family: var(--script);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  animation: fade-rise 900ms both;
}

.story-ending span {
  font-family: var(--sans);
  font-size: 0.7em;
}

.button-quiet {
  border-color: rgba(255, 231, 215, 0.33);
  background: rgba(255, 244, 233, 0.06);
  color: #fff1e9;
  backdrop-filter: blur(10px);
}

.button-quiet:hover {
  border-color: rgba(255, 231, 215, 0.63);
  background: rgba(255, 244, 233, 0.12);
}

.replay-button {
  margin-top: 21px;
}

.gentle-scene {
  background:
    radial-gradient(ellipse at 50% 46%, rgba(124, 49, 63, 0.22), transparent 55%),
    #10090e;
}

.gentle-glow {
  width: min(65vw, 670px);
  background: radial-gradient(circle, rgba(213, 131, 130, 0.13), rgba(140, 83, 83, 0.04) 45%, transparent 71%);
}

.gentle-content {
  position: relative;
  width: min(590px, 100%);
  text-align: center;
  animation: fade-rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.single-rose {
  margin-bottom: 15px;
  font-size: clamp(4.2rem, 10vw, 7rem);
  filter: drop-shadow(0 0 28px rgba(235, 109, 132, 0.34));
  animation: rose-bloom 1.7s cubic-bezier(0.16, 1, 0.3, 1) both, rose-sway 6s 1.7s ease-in-out infinite;
}

.gentle-content h1 {
  margin: 19px 0 13px;
  color: #fff0e8;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
}

.gentle-content h1 span {
  font-family: var(--sans);
  font-size: 0.57em;
  white-space: nowrap;
}

.gentle-message {
  max-width: 500px;
  margin: 0 auto;
  color: rgba(251, 226, 221, 0.74);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
}

.gentle-content .button {
  margin-top: 27px;
}

@keyframes fade-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heart-arrive {
  from { opacity: 0; transform: scale(0.42); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.08); }
  56% { transform: scale(1); }
}

@keyframes heart-ripple {
  0% { opacity: 0.5; transform: scale(0.78); }
  100% { opacity: 0; transform: scale(2.15); }
}

@keyframes halo-breathe {
  0%, 100% { transform: scale(0.95); opacity: 0.68; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes cursor-blink {
  to { visibility: hidden; }
}

@keyframes paper-arrive {
  from { opacity: 0; transform: translateY(42px) rotateX(12deg) scale(0.97); }
  to { opacity: 1; transform: translateY(0) rotateX(2deg) scale(1); }
}

@keyframes question-arrive {
  from { opacity: 0; filter: blur(14px); transform: translateY(22px) scale(0.96); }
  to { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes yes-glow {
  0%, 100% { box-shadow: 0 8px 30px rgba(194, 56, 90, 0.3), 0 0 0 5px rgba(231, 138, 154, 0.06); }
  50% { box-shadow: 0 10px 38px rgba(220, 71, 105, 0.45), 0 0 0 8px rgba(231, 138, 154, 0.1); }
}

@keyframes rose-sway {
  0%, 100% { rotate: -2deg; }
  50% { rotate: 3deg; }
}

@keyframes lights-twinkle {
  from { opacity: 0.42; }
  to { opacity: 0.9; }
}

@keyframes celebration-arrive {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rose-bloom {
  from { opacity: 0; transform: scale(0.55) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes cursor-heart-drift {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.45) rotate(-12deg); }
  18% { opacity: 0.9; transform: translate(-50%, -5px) scale(1) rotate(8deg); }
  100% { opacity: 0; transform: translate(-50%, -31px) scale(0.68) rotate(20deg); }
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow {
    display: block;
  }

  body,
  button {
    cursor: default;
  }

  button,
  .envelope {
    cursor: pointer;
  }
}

@media (max-width: 600px) {
  .scene {
    padding: max(77px, calc(env(safe-area-inset-top) + 67px)) 18px max(60px, calc(env(safe-area-inset-bottom) + 42px));
  }

  .scene-controls {
    top: max(13px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    gap: 6px;
  }

  .utility-button {
    min-width: 39px;
    min-height: 39px;
    padding: 8px 10px;
  }

  .utility-button > span:last-child {
    display: none;
  }

  .utility-icon {
    font-size: 1.12rem;
  }

  .heart-counter {
    bottom: max(13px, env(safe-area-inset-bottom));
    left: max(15px, env(safe-area-inset-left));
    font-size: 0.53rem;
  }

  .overline {
    font-size: 0.55rem;
    letter-spacing: 0.23em;
  }

  .intro-content {
    margin-top: 9px;
  }

  .opening-heart {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    font-size: 2rem;
  }

  .recipient-name {
    max-width: 350px;
    margin-top: 13px;
    font-size: clamp(2.5rem, 10.1vw, 3.65rem);
    line-height: 0.96;
  }

  .intro-message {
    max-width: 300px;
    margin-top: 13px;
    font-size: 1.04rem;
  }

  .recipient-portrait {
    width: 70px;
    height: 70px;
    margin-top: 7px;
  }

  .recipient-portrait figcaption {
    top: calc(100% + 3px);
    font-size: 0.88rem;
  }

  .envelope {
    width: min(278px, 80vw);
    height: 168px;
    margin-top: 11px;
  }

  .letter-preview {
    height: 112px;
  }

  .envelope-back,
  .envelope-pocket,
  .envelope-flap {
    top: 31px;
    bottom: 21px;
  }

  .wax-seal {
    top: 66px;
    width: 39px;
    height: 39px;
  }

  .intro-signature {
    margin-top: 3px;
  }

  .paper-card {
    padding: 36px 25px 31px;
  }

  .letter-copy {
    min-height: 195px;
    font-size: 1.3rem;
    line-height: 1.42;
  }

  .paper-heading {
    margin-top: 11px;
  }

  .paper-signature {
    margin-top: 13px;
  }

  .garden-moon {
    top: 15%;
    right: 8%;
    width: 60px;
  }

  .garden-rose {
    bottom: 5%;
    font-size: 4.7rem;
    opacity: 0.5;
  }

  .rose-left {
    left: -9px;
  }

  .rose-right {
    right: -9px;
  }

  .question-content {
    padding: 7px 0 4px;
  }

  .garden-name {
    margin-top: 13px;
    font-size: 3.5rem;
  }

  .question-divider {
    margin: 13px auto 18px;
  }

  .question-title {
    font-size: clamp(3.45rem, 15vw, 5.3rem);
  }

  .question-subtitle {
    max-width: 320px;
    margin-top: 18px;
    font-size: 1.04rem;
  }

  .privacy-note {
    max-width: 260px;
    margin-top: 8px;
    font-size: 0.59rem;
  }

  .response-consent {
    margin-top: 9px;
    padding: 9px 11px;
  }

  .response-consent label {
    font-size: 0.59rem;
  }

  .answer-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 23px;
  }

  .button-yes {
    min-width: min(230px, 78vw);
    min-height: 52px;
  }

  .button-no {
    min-width: min(230px, 78vw);
    min-height: 46px;
  }

  .garden-signature {
    margin-top: 21px;
  }

  .celebration-heart {
    margin: 4px 0 -7px;
  }

  .love-letter {
    min-height: 235px;
    margin-top: 11px;
    font-size: 1.18rem;
  }

  .gentle-content h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }
}

@media (max-height: 690px) and (min-width: 601px) {
  .scene {
    padding-top: 66px;
    padding-bottom: 47px;
  }

  .opening-heart {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    font-size: 1.9rem;
  }

  .recipient-name {
    font-size: clamp(2.4rem, 7vh, 3.7rem);
  }

  .intro-message {
    margin-top: 10px;
  }

  .envelope {
    width: 260px;
    height: 150px;
    margin-top: 8px;
  }

  .envelope-back,
  .envelope-pocket,
  .envelope-flap {
    top: 30px;
    bottom: 18px;
  }

  .letter-preview {
    height: 102px;
  }

  .wax-seal {
    top: 61px;
    width: 38px;
    height: 38px;
  }

  .intro-signature {
    margin-top: 0;
  }

  .question-title {
    font-size: clamp(3.2rem, 10vh, 5.3rem);
  }

  .garden-name {
    font-size: 3.5rem;
  }

  .question-divider {
    margin: 11px auto 16px;
  }

  .question-subtitle {
    margin-top: 16px;
  }

  .answer-actions {
    margin-top: 22px;
  }

  .garden-signature {
    margin-top: 18px;
  }
}

@media (max-width: 600px) and (max-height: 760px) {
  .scene {
    padding-top: max(65px, calc(env(safe-area-inset-top) + 58px));
    padding-bottom: max(50px, calc(env(safe-area-inset-bottom) + 38px));
  }

  .opening-heart {
    width: 40px;
    height: 40px;
    margin-bottom: 9px;
    font-size: 1.75rem;
  }

  .recipient-name {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .intro-message {
    margin-top: 9px;
  }

  .envelope {
    width: 245px;
    height: 144px;
    margin-top: 5px;
  }

  .envelope-back,
  .envelope-pocket,
  .envelope-flap {
    top: 28px;
    bottom: 18px;
  }

  .letter-preview {
    height: 95px;
  }

  .wax-seal {
    top: 58px;
    width: 35px;
    height: 35px;
  }

  .intro-signature {
    margin-top: -3px;
  }

  .question-title {
    font-size: clamp(3rem, 13.5vw, 4.3rem);
  }

  .question-divider {
    margin: 10px auto 14px;
  }

  .garden-name {
    font-size: 3.15rem;
  }

  .question-subtitle {
    margin-top: 14px;
  }

  .privacy-note {
    margin-top: 6px;
  }

  .answer-actions {
    gap: 9px;
    margin-top: 17px;
  }

  .button-yes {
    min-height: 48px;
  }

  .button-no {
    min-height: 42px;
  }

  .garden-signature {
    margin-top: 15px;
  }
}

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