:root {
  --night: #231018;
  --night-soft: #5c3044;
  --wine: #a94567;
  --wine-soft: #ea96a8;
  --pearl: #fff1e8;
  --paper: #fff7f1;
  --gold: #e6bf82;
  --sage: #9bb08e;
  --rose: #f5a6b7;
  --peach: #f4c7ae;
  --blush: #f7d8d5;
  --ink: #372233;
  --text: #fff5ef;
  --muted: #f1d7ca;
  --shadow: 0 28px 70px rgba(64, 22, 38, 0.24);
  --container: min(1120px, calc(100vw - 2rem));
  --radius-xl: 32px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background: #190b12;
}

button {
  font: inherit;
}

.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;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.4) 0.7px, transparent 0.7px);
  background-size: 14px 14px;
  mix-blend-mode: soft-light;
}

.music-toggle {
  position: fixed;
  top: 1rem;
  left: calc(100vw - 4.8rem);
  z-index: 60;
  width: 3.8rem;
  height: 3.8rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.music-toggle:focus-visible {
  outline: none;
}

.music-toggle.is-dragging {
  cursor: grabbing;
}

.music-toggle__shell {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 247, 241, 0.96), rgba(245, 166, 183, 0.92) 45%, rgba(124, 43, 74, 0.94) 100%);
  border: 1px solid rgba(255, 248, 244, 0.4);
  box-shadow:
    0 18px 32px rgba(58, 17, 35, 0.24),
    inset 0 1px 0 rgba(255, 250, 246, 0.52);
  backdrop-filter: blur(20px);
  transition: transform 180ms ease, box-shadow 220ms ease, opacity 220ms ease, filter 220ms ease;
  overflow: visible;
}

.music-toggle__shell::before,
.music-toggle__shell::after {
  content: "";
  position: absolute;
  inset: 0.38rem;
  border-radius: 50%;
}

.music-toggle__shell::before {
  background: radial-gradient(circle at 30% 30%, rgba(255, 252, 249, 0.44), transparent 58%);
  opacity: 0.95;
}

.music-toggle__shell::after {
  inset: -0.2rem;
  border: 1px solid rgba(255, 239, 231, 0.2);
  opacity: 0.7;
}

.music-toggle__petal {
  position: absolute;
  width: 0.95rem;
  height: 1.3rem;
  border-radius: 999px 999px 0.9rem 0.9rem;
  background: linear-gradient(180deg, rgba(255, 241, 236, 0.95), rgba(245, 166, 183, 0.72) 52%, rgba(192, 78, 118, 0.8) 100%);
  box-shadow: 0 5px 14px rgba(122, 40, 70, 0.18);
  transform-origin: center bottom;
  z-index: 0;
}

.music-toggle__petal--a {
  top: -0.2rem;
  left: 50%;
  margin-left: -0.475rem;
}

.music-toggle__petal--b {
  right: -0.05rem;
  top: 50%;
  margin-top: -0.65rem;
  transform: rotate(90deg);
}

.music-toggle__petal--c {
  bottom: -0.2rem;
  left: 50%;
  margin-left: -0.475rem;
  transform: rotate(180deg);
}

.music-toggle__petal--d {
  left: -0.05rem;
  top: 50%;
  margin-top: -0.65rem;
  transform: rotate(-90deg);
}

.music-toggle__icon {
  position: relative;
  z-index: 1;
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
  color: #fff9f4;
  filter: drop-shadow(0 3px 8px rgba(67, 19, 39, 0.28));
}

.music-toggle__status {
  position: absolute;
  right: 0.4rem;
  bottom: 0.42rem;
  z-index: 2;
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  background: rgba(75, 31, 49, 0.42);
  border: 1px solid rgba(255, 245, 239, 0.36);
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.music-toggle:hover .music-toggle__shell,
.music-toggle:focus-visible .music-toggle__shell {
  transform: scale(1.04);
}

.music-toggle:focus-visible .music-toggle__shell {
  box-shadow:
    0 20px 34px rgba(58, 17, 35, 0.28),
    0 0 0 4px rgba(255, 237, 228, 0.18),
    inset 0 1px 0 rgba(255, 250, 246, 0.52);
}

.music-toggle.is-enabled .music-toggle__status {
  background: #ffd08d;
  box-shadow:
    0 0 0 4px rgba(255, 224, 195, 0.16),
    0 0 14px rgba(255, 210, 141, 0.54);
}

.music-toggle.is-playing .music-toggle__shell {
  animation: music-bloom 2.8s ease-in-out infinite;
}

.music-toggle.is-pending .music-toggle__shell {
  animation: music-await 2.5s ease-in-out infinite;
}

.music-toggle:not(.is-enabled) .music-toggle__shell {
  opacity: 0.78;
  filter: saturate(0.8);
}

.music-toggle:not(.is-enabled) .music-toggle__icon {
  color: rgba(255, 247, 241, 0.7);
}

.music-toggle:not(.is-enabled) .music-toggle__status {
  background: rgba(92, 42, 59, 0.38);
  box-shadow: none;
}

.music-toggle.is-dragging .music-toggle__shell {
  transform: scale(1.08);
}

.scene {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 700ms ease, transform 700ms ease;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.scene.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 10;
}

.scene.is-leaving {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
}

.scene__aurora {
  position: absolute;
  inset: -12%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.8;
}

.scene__content {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: auto;
}

.scene--intro {
  background:
    radial-gradient(circle at top, rgba(255, 186, 204, 0.24), transparent 34%),
    linear-gradient(160deg, #1b0b13 0%, #5d283b 44%, #9b5c68 100%);
}

.scene--intro .scene__aurora {
  background:
    radial-gradient(circle at 78% 28%, rgba(255, 197, 214, 0.3), transparent 34%),
    radial-gradient(circle at 30% 72%, rgba(244, 199, 174, 0.2), transparent 32%);
}

.scene--envelope {
  background:
    radial-gradient(circle at top, rgba(255, 231, 215, 0.14), transparent 34%),
    linear-gradient(160deg, #40202e 0%, #875064 48%, #d49a95 100%);
}

.scene--envelope .scene__aurora {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 236, 219, 0.24), transparent 32%),
    radial-gradient(circle at 75% 70%, rgba(245, 166, 183, 0.26), transparent 38%);
}

.scene--letter {
  background:
    radial-gradient(circle at top, rgba(244, 199, 174, 0.12), transparent 34%),
    linear-gradient(165deg, #2c1320 0%, #6d3850 48%, #d9a28e 100%);
}

.scene--letter .scene__aurora {
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 166, 183, 0.24), transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(255, 229, 206, 0.18), transparent 28%);
}

.scene--garden {
  background:
    radial-gradient(circle at top, rgba(255, 190, 205, 0.16), transparent 30%),
    linear-gradient(180deg, #2a0f1b 0%, #653049 34%, #8b4d5d 62%, #21111a 100%);
}

.scene--garden .scene__aurora {
  background:
    radial-gradient(circle at 30% 22%, rgba(244, 199, 174, 0.18), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(245, 166, 183, 0.22), transparent 28%);
  opacity: 0.95;
}

.scene-kicker {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gold);
}

.scene h1,
.scene h2,
.scene-kicker,
.letter-card__signature,
.garden-overlay__dedication {
  font-family: "Cormorant Garamond", serif;
}

.scene h1,
.scene h2 {
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.scene h1 {
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.scene h2 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.scene-text {
  margin: 1.2rem 0 0;
  max-width: 35rem;
  line-height: 1.8;
  color: var(--muted);
  font-size: 1rem;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px);
}

.action-button--primary {
  background: linear-gradient(135deg, var(--wine) 0%, var(--wine-soft) 55%, var(--gold) 100%);
  color: #fff7f2;
  box-shadow: 0 18px 36px rgba(139, 51, 82, 0.24);
}

.action-button--soft {
  background: rgba(255, 246, 240, 0.12);
  color: var(--text);
  border-color: rgba(255, 238, 228, 0.26);
  backdrop-filter: blur(14px);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 0.88fr);
  gap: 2rem;
  align-items: center;
}

.intro-copy {
  max-width: 38rem;
}

#introButton {
  margin-top: 1.75rem;
}

.rose-stage {
  position: relative;
  min-height: 38rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 246, 240, 0.08), rgba(255, 246, 240, 0.03)),
    rgba(76, 29, 48, 0.42);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rose-stage__glow {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 183, 0.32), rgba(244, 199, 174, 0.2), transparent 72%);
  filter: blur(12px);
}

#roseDrawing {
  width: min(25rem, 78vw);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.rose-path {
  fill: transparent;
  stroke: #ffe1da;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 500ms ease, stroke 500ms ease;
}

.rose-stage__caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  width: min(30rem, calc(100% - 2rem));
  margin: 0;
  padding: 1rem 1.2rem;
  transform: translateX(-50%);
  border-radius: 999px;
  text-align: center;
  color: #fff4ed;
  background: rgba(92, 35, 54, 0.42);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 243, 236, 0.14);
}

.envelope-layout {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1.4rem;
}

.envelope-layout .scene-text {
  margin-inline: auto;
}

.envelope-button {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.envelope-shell {
  position: relative;
  width: min(24rem, 84vw);
  aspect-ratio: 1.3 / 0.86;
}

.envelope-shell__back,
.envelope-shell__paper,
.envelope-shell__front,
.envelope-shell__flap,
.envelope-shell__seal {
  position: absolute;
}

.envelope-shell__back {
  inset: 0;
  border-radius: 1.7rem;
  background: linear-gradient(180deg, #fff7ef, #f5dfd4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
}

.envelope-shell__paper {
  inset: 10% 9% auto;
  height: 64%;
  border-radius: 1.2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 238, 0.96)),
    repeating-linear-gradient(
      180deg,
      transparent,
      transparent 1.1rem,
      rgba(139, 51, 82, 0.08) 1.1rem,
      rgba(139, 51, 82, 0.08) 1.18rem
    );
  transform: translateY(20%);
  transition: transform 380ms ease;
}

.envelope-shell__front {
  inset: auto 0 0;
  height: 70%;
  border-radius: 0 0 1.7rem 1.7rem;
  background: linear-gradient(180deg, #f3d7ca, #e7b8a8);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}

.envelope-shell__flap {
  inset: 0 0 auto;
  height: 62%;
  border-radius: 1.7rem 1.7rem 0 0;
  background: linear-gradient(180deg, #fde9df, #f2c6b8);
  clip-path: polygon(0 0, 50% 88%, 100% 0);
  transform-origin: top center;
  transition: transform 520ms ease;
}

.envelope-shell__seal {
  top: 42%;
  left: 50%;
  width: 4.4rem;
  height: 4.4rem;
  margin-left: -2.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde5ea, #cc627f 68%, #8f3854 100%);
  box-shadow: 0 14px 26px rgba(125, 37, 65, 0.3);
  z-index: 2;
}

.envelope-shell__seal::before {
  content: "T";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff3eb;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.envelope-button__hint {
  color: #fff0e7;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.envelope-button.is-open .envelope-shell__flap {
  transform: rotateX(180deg);
}

.envelope-button.is-open .envelope-shell__paper {
  transform: translateY(-5%);
}

.letter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.58fr);
  gap: 1.2rem;
  align-items: start;
}

.letter-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.98), rgba(255, 239, 231, 0.98));
  color: var(--ink);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.22);
  min-height: 33rem;
}

.letter-card::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: calc(var(--radius-xl) - 0.6rem);
  border: 1px solid rgba(169, 69, 103, 0.14);
  pointer-events: none;
}

.letter-card__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wine);
}

.letter-card h2 {
  margin-top: 0.8rem;
  color: #4a2940;
}

.letter-card__body {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
}

.letter-card__body p,
.letter-card__signature {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.letter-card__body p.is-visible,
.letter-card__signature.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.letter-card__body p {
  margin: 0;
  line-height: 1.85;
  color: #5f4254;
}

.letter-card__signature {
  margin: 1.6rem 0 0;
  font-size: 2rem;
  color: var(--wine);
}

.thought-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(92, 35, 54, 0.42);
  border: 1px solid rgba(255, 243, 236, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.thought-card__label {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.thought-card__text {
  margin: 1rem 0 1.5rem;
  min-height: 7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.08;
  color: #fff4ed;
}

.thought-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.garden-atmosphere,
.garden-floor,
.garden-touch-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.garden-atmosphere {
  z-index: 0;
  overflow: hidden;
}

.garden-atmosphere::before,
.garden-atmosphere::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.42;
}

.garden-atmosphere::before {
  top: 14%;
  left: 8%;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(246, 208, 200, 0.32), rgba(244, 199, 174, 0.12), transparent 70%);
}

.garden-atmosphere::after {
  right: 4%;
  bottom: 18%;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(245, 166, 183, 0.26), rgba(169, 69, 103, 0.08), transparent 72%);
}

.garden-atmosphere__spark {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 240, 0.95), rgba(245, 166, 183, 0.34), transparent 72%);
  box-shadow: 0 0 18px rgba(255, 238, 228, 0.35);
  opacity: 0.72;
  animation: garden-drift 8s ease-in-out infinite;
}

.garden-atmosphere__spark--1 {
  top: 18%;
  left: 18%;
  animation-delay: 0s;
}

.garden-atmosphere__spark--2 {
  top: 27%;
  right: 20%;
  width: 0.55rem;
  height: 0.55rem;
  animation-delay: 1.2s;
}

.garden-atmosphere__spark--3 {
  top: 54%;
  left: 12%;
  width: 0.48rem;
  height: 0.48rem;
  animation-delay: 2.1s;
}

.garden-atmosphere__spark--4 {
  top: 48%;
  right: 16%;
  width: 0.9rem;
  height: 0.9rem;
  animation-delay: 3.4s;
}

.garden-atmosphere__spark--5 {
  top: 68%;
  left: 50%;
  width: 0.58rem;
  height: 0.58rem;
  animation-delay: 4.2s;
}

.garden-floor {
  inset: auto 0 0;
  height: min(34vh, 20rem);
  z-index: 0;
  background:
    radial-gradient(circle at 20% 100%, rgba(246, 208, 200, 0.18), transparent 42%),
    radial-gradient(circle at 80% 100%, rgba(244, 199, 174, 0.14), transparent 40%),
    linear-gradient(180deg, transparent 0%, rgba(26, 10, 18, 0.08) 18%, rgba(24, 11, 18, 0.48) 100%);
}

.garden-floor::before {
  content: "";
  position: absolute;
  inset: auto 8% 1.6rem;
  height: 2.1rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 232, 219, 0.32), rgba(234, 150, 168, 0.08), transparent 72%);
  filter: blur(24px);
  opacity: 0.66;
}

#gardenCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.garden-touch-effects {
  z-index: 2;
  overflow: hidden;
}

.garden-touch-bloom {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--bloom-size, 7.5rem);
  height: var(--bloom-size, 7.5rem);
  margin-left: calc(var(--bloom-size, 7.5rem) / -2);
  margin-top: calc(var(--bloom-size, 7.5rem) / -2);
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(var(--bloom-x, 0), var(--bloom-y, 0), 0) scale(0.35);
  background:
    radial-gradient(circle, rgba(255, 251, 245, 0.55) 0%, rgba(255, 226, 214, 0.36) 18%, rgba(244, 160, 180, 0.18) 44%, rgba(244, 160, 180, 0) 72%);
  filter: blur(2px);
  animation: garden-touch-bloom 760ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.garden-touch-bloom::before,
.garden-touch-bloom::after {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
}

.garden-touch-bloom::before {
  border: 1px solid rgba(255, 246, 239, 0.48);
  opacity: 0.86;
  animation: garden-touch-ring 760ms ease-out forwards;
}

.garden-touch-bloom::after {
  inset: 34%;
  background: radial-gradient(circle, rgba(255, 250, 244, 0.72), rgba(255, 220, 212, 0.12) 70%, transparent 100%);
  animation: garden-touch-core 760ms ease-out forwards;
}

.garden-gate {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.scene--garden.is-orientation-locked .garden-gate {
  opacity: 1;
  visibility: visible;
}

.garden-gate__card {
  width: min(34rem, calc(100vw - 2.5rem));
  padding: 1.6rem 1.45rem 1.5rem;
  border-radius: 2rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(95, 35, 57, 0.54), rgba(41, 15, 28, 0.74)),
    radial-gradient(circle at top, rgba(255, 236, 225, 0.2), transparent 62%);
  border: 1px solid rgba(255, 240, 231, 0.2);
  box-shadow:
    0 30px 60px rgba(26, 8, 18, 0.28),
    inset 0 1px 0 rgba(255, 247, 241, 0.18);
  backdrop-filter: blur(18px);
}

.garden-gate__card .scene-kicker {
  margin-bottom: 0.55rem;
}

.garden-gate__card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 7vw, 3.3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff3ed;
}

.garden-gate__card p:last-child {
  margin: 0.85rem auto 0;
  max-width: 26rem;
  line-height: 1.6;
  color: rgba(255, 240, 232, 0.84);
}

.garden-gate__icon {
  position: relative;
  display: inline-block;
  width: 2rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 239, 231, 0.36);
  background: linear-gradient(180deg, rgba(255, 247, 241, 0.8), rgba(244, 199, 174, 0.3));
  box-shadow:
    inset 0 0 0 1px rgba(255, 251, 248, 0.12),
    0 12px 26px rgba(43, 13, 26, 0.14);
  transform: rotate(90deg);
  animation: hint-tilt 2.4s ease-in-out infinite;
}

.garden-gate__icon::before {
  content: "";
  position: absolute;
  top: 0.34rem;
  left: 50%;
  width: 0.34rem;
  height: 0.34rem;
  margin-left: -0.17rem;
  border-radius: 50%;
  background: rgba(86, 36, 50, 0.56);
}

.garden-gate__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.34rem;
  width: 0.7rem;
  height: 0.09rem;
  margin-left: -0.35rem;
  border-radius: 999px;
  background: rgba(86, 36, 50, 0.38);
}

.garden-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.6rem 1.8rem 1.8rem;
  pointer-events: none;
}

.garden-overlay__headline,
.garden-overlay__whisper,
.garden-overlay__dedication,
.garden-overlay__actions {
  position: absolute;
}

#gardenCanvas,
.garden-atmosphere,
.garden-floor,
.garden-overlay__headline,
.garden-overlay__whisper {
  transition: opacity 280ms ease, visibility 280ms ease, transform 280ms ease;
}

.scene--garden.is-orientation-locked #gardenCanvas,
.scene--garden.is-orientation-locked .garden-touch-effects,
.scene--garden.is-orientation-locked .garden-atmosphere,
.scene--garden.is-orientation-locked .garden-floor,
.scene--garden.is-orientation-locked .garden-overlay__headline,
.scene--garden.is-orientation-locked .garden-overlay__whisper {
  opacity: 0;
  visibility: hidden;
}

.garden-overlay__headline {
  top: 1.7rem;
  left: 1.8rem;
  max-width: min(28rem, calc(100vw - 8rem));
  text-wrap: balance;
}

.garden-overlay__headline .scene-kicker {
  margin-bottom: 0.35rem;
}

.garden-overlay__headline h2 {
  font-size: clamp(2.3rem, 4.7vw, 4rem);
  color: #fff3ed;
  text-shadow: 0 10px 30px rgba(36, 10, 22, 0.35);
}

.garden-overlay__whisper {
  top: 2.3rem;
  right: 1.8rem;
  max-width: min(18rem, calc(100vw - 8rem));
  margin: 0;
  text-align: right;
  color: rgba(255, 241, 232, 0.86);
  line-height: 1.6;
  font-size: 0.95rem;
  text-shadow: 0 8px 22px rgba(28, 8, 18, 0.3);
}

.garden-overlay__dedication {
  left: 1.8rem;
  bottom: 2rem;
  max-width: min(25rem, calc(100vw - 8rem));
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.12;
  color: #fff1e8;
  text-shadow: 0 10px 24px rgba(34, 10, 21, 0.34);
}

.garden-overlay__actions {
  right: 1.8rem;
  bottom: 1.8rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
  pointer-events: auto;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes music-bloom {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 18px 32px rgba(58, 17, 35, 0.24),
      inset 0 1px 0 rgba(255, 250, 246, 0.52);
  }

  50% {
    transform: scale(1.06);
    box-shadow:
      0 22px 38px rgba(58, 17, 35, 0.28),
      0 0 0 8px rgba(255, 223, 204, 0.1),
      inset 0 1px 0 rgba(255, 250, 246, 0.52);
  }
}

@keyframes music-await {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes garden-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0.42;
  }

  50% {
    transform: translate3d(0, -16px, 0) scale(1.08);
    opacity: 0.9;
  }
}

@keyframes garden-touch-bloom {
  0% {
    opacity: 0;
    transform: translate3d(var(--bloom-x, 0), var(--bloom-y, 0), 0) scale(0.35);
  }

  18% {
    opacity: 0.88;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--bloom-x, 0), var(--bloom-y, 0), 0) scale(1.24);
  }
}

@keyframes garden-touch-ring {
  0% {
    opacity: 0.9;
    transform: scale(0.55);
  }

  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

@keyframes garden-touch-core {
  0% {
    opacity: 0.72;
    transform: scale(0.4);
  }

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes hint-tilt {
  0%,
  100% {
    transform: rotate(90deg) translateY(0);
  }

  40% {
    transform: rotate(84deg) translateY(-1px);
  }

  70% {
    transform: rotate(94deg) translateY(1px);
  }
}

@media (max-width: 980px) {
  .intro-layout,
  .letter-layout {
    grid-template-columns: 1fr;
  }

  .intro-layout {
    gap: 1.5rem;
  }

  .letter-layout {
    gap: 1rem;
  }

  .rose-stage {
    min-height: 30rem;
  }
}

@media (max-width: 720px) {
  .music-toggle {
    width: 3.25rem;
    height: 3.25rem;
  }

  .music-toggle__icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .music-toggle__petal {
    width: 0.82rem;
    height: 1.1rem;
  }

  .scene {
    align-items: flex-start;
    padding: 4.4rem 1rem 1.15rem;
  }

  .scene h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .scene h2 {
    font-size: clamp(2.4rem, 12vw, 3.5rem);
  }

  .scene-text {
    font-size: 0.96rem;
  }

  .rose-stage {
    min-height: 24rem;
  }

  #roseDrawing {
    width: min(18rem, 78vw);
  }

  .rose-stage__caption {
    position: static;
    transform: none;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
  }

  .letter-card,
  .thought-card {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 1.25rem;
  }

  .letter-card {
    min-height: auto;
  }

  .thought-card__text {
    min-height: 5.4rem;
    font-size: 1.7rem;
  }

  .garden-overlay {
    padding: 4.2rem 1rem 1.1rem;
  }

  .garden-gate {
    padding: 1rem;
  }

  .garden-gate__card {
    width: min(25rem, calc(100vw - 2rem));
    padding: 1.3rem 1rem 1.2rem;
    border-radius: 1.5rem;
  }

  .garden-overlay__headline {
    top: 4.2rem;
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .garden-overlay__headline h2 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .garden-overlay__whisper {
    top: auto;
    right: auto;
    left: 1rem;
    bottom: 9.15rem;
    max-width: min(15rem, calc(100vw - 8.5rem));
    text-align: left;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .garden-overlay__dedication {
    left: auto;
    right: 1rem;
    bottom: 9.15rem;
    max-width: min(11rem, calc(100vw - 9rem));
    text-align: right;
    font-size: 0.94rem;
  }

  .garden-overlay__actions {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .garden-overlay__actions .action-button {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .intro-layout,
  .letter-layout {
    gap: 0.9rem;
  }

  .scene-text {
    line-height: 1.65;
  }

  .letter-card {
    padding: 1.15rem 0.95rem;
  }

  .letter-card::before {
    inset: 0.65rem;
  }

  .thought-card__text {
    min-height: 4.6rem;
    font-size: 1.5rem;
  }

  .garden-overlay__headline {
    top: 4.1rem;
  }

  .garden-gate__card h3 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .garden-gate__card p:last-child {
    font-size: 0.92rem;
  }

  .garden-gate__icon {
    width: 1.7rem;
    height: 2.5rem;
  }

  .garden-overlay__whisper {
    max-width: 10.5rem;
    bottom: 8.8rem;
  }

  .garden-overlay__dedication {
    max-width: 9rem;
    bottom: 8.8rem;
    font-size: 0.88rem;
  }
}

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