:root {
  --violet: #8b7bf0;
  --violet-soft: #b9a7ff;
  --rose: #ff9db1;
  --candle: #ffd9a0;
  --ink: #f1eeff;
  --muted: rgba(232, 228, 255, 0.72);
  --hair: rgba(185, 167, 255, 0.3);
  --panel: rgba(150, 130, 240, 0.07);
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Baskerville', 'Book Antiqua', Georgia, serif;
  --script: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
  --hand: 'Bradley Hand', 'Noteworthy', 'Segoe Print', var(--serif);
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  color: var(--ink);
  font-family: var(--serif);
  background: linear-gradient(180deg, #1a1440 0%, #120e30 55%, #0a0722 100%);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}

body.locked {
  overflow: hidden;
  height: 100svh;
  touch-action: none;
}
html:has(body.locked) {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 40% at 50% 64%, rgba(255, 196, 130, 0.16), transparent 70%),
    radial-gradient(120% 100% at 50% 22%, transparent 52%, rgba(3, 4, 14, 0.55) 100%);
}

#stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  z-index: 0;
}

#petals {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

#scroll {
  position: relative;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s ease;
}
body.ready #scroll {
  opacity: 1;
  pointer-events: auto;
}

#grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  z-index: 6;
  pointer-events: none;
}

@supports (height: 100dvh) {
  #stage,
  #confetti {
    height: 100dvh;
  }
}

.petal {
  position: absolute;
  bottom: -8vh;
  color: var(--rose);
  text-shadow: 0 0 10px rgba(255, 157, 177, 0.4);
  will-change: transform, opacity;
  animation: floatUp var(--dur) linear var(--delay) infinite;
}
.petal:nth-child(2n) {
  color: var(--violet-soft);
  text-shadow: 0 0 10px rgba(185, 167, 255, 0.45);
}
.petal:nth-child(3n) {
  color: var(--candle);
  text-shadow: 0 0 10px rgba(255, 217, 160, 0.35);
}

.section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12vh max(26px, env(safe-area-inset-right)) 12vh max(26px, env(safe-area-inset-left));
  text-align: center;
}
@supports (height: 100dvh) {
  .section {
    min-height: 100dvh;
  }
}

.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 4vw, 16px);
  letter-spacing: 0.01em;
  color: var(--violet-soft);
  margin-bottom: 14px;
}
.kicker.center {
  margin-bottom: 30px;
}

h1 {
  font-family: var(--script);
  font-size: clamp(42px, 12.5vw, 82px);
  font-weight: 600;
  line-height: 1.02;
  color: var(--ink);
  text-shadow: 0 0 30px rgba(150, 130, 240, 0.45);
}

h2.serif {
  font-family: var(--serif);
  font-size: clamp(24px, 6.6vw, 37px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.005em;
}

.body {
  color: var(--muted);
  font-size: clamp(16px, 4.3vw, 19px);
  line-height: 1.8;
  max-width: 34ch;
}

.script-line {
  font-family: var(--script);
  font-size: clamp(22px, 6.4vw, 32px);
  line-height: 1.3;
  color: var(--ink);
}

.hero {
  justify-content: flex-end;
  gap: 6vh;
  padding-bottom: max(13vh, calc(env(safe-area-inset-bottom) + 9vh));
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-shadow: 0 2px 26px rgba(4, 6, 20, 0.6);
}
.wish {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 16px;
  max-width: 27ch;
}

.meter {
  width: min(72vw, 200px);
  height: 10px;
  border-radius: 99px;
  background: rgba(185, 167, 255, 0.16);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.meter.is-active {
  box-shadow: 0 0 18px rgba(185, 167, 255, 0.55);
}
#meter-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--rose));
  transition: width 0.08s linear;
}
.meter.is-calib #meter-fill {
  background: rgba(185, 167, 255, 0.45);
  transition: width 0.25s linear;
}

.hero-done {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-style: italic;
  animation: fadeUp 1s ease both;
}
.hero-done .script-line {
  color: var(--candle);
  font-style: normal;
}
#act1.wished .hero-copy {
  display: none;
}
#act1.wished .hero-done {
  display: flex;
}
.scroll-hint {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--violet-soft);
  animation: bob 1.8s ease-in-out infinite;
}

.letter-note {
  width: min(92vw, 440px);
  transform: rotate(-1.15deg);
  filter: drop-shadow(0 30px 62px rgba(4, 6, 20, 0.55));
}
.note-paper {
  position: relative;
  padding: 42px 30px 40px;
  border-radius: 5px;
  text-align: left;
  color: #4a3a63;
  background:
    radial-gradient(130% 55% at 50% 0%, #fffdf6 0%, transparent 62%),
    linear-gradient(178deg, #fbf6ea 0%, #f2e7cf 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 1px rgba(120, 90, 60, 0.09);
}
.note-paper::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 26px;
  width: 1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(209, 67, 106, 0.42) 12%, rgba(209, 67, 106, 0.42) 88%, transparent);
}
.note-greeting {
  font-family: var(--hand);
  font-size: clamp(28px, 7.4vw, 38px);
  font-weight: 700;
  line-height: 1.16;
  color: #443257;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.note-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 22px;
  color: #d1436a;
}
.note-rule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(120, 90, 60, 0.3), transparent);
}
.note-rule span {
  font-size: 13px;
}

.btn-primary {
  position: relative;
  appearance: none;
  border: none;
  cursor: pointer;
  min-height: 54px;
  padding: 16px 42px;
  border-radius: 99px;
  font-family: var(--serif);
  font-size: clamp(17px, 5vw, 19px);
  letter-spacing: 0.015em;
  color: #fff;
  background: linear-gradient(135deg, #a390ff 0%, var(--violet) 55%, #6f5fe6 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -12px 22px rgba(90, 70, 200, 0.35) inset,
    0 16px 34px rgba(124, 108, 240, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s ease;
  touch-action: manipulation;
  user-select: none;
  isolation: isolate;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(62% 120% at 50% 0%, rgba(185, 167, 255, 0.6), transparent 72%);
  filter: blur(11px);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -12px 22px rgba(90, 70, 200, 0.4) inset,
    0 22px 44px rgba(124, 108, 240, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:active {
  transform: translateY(0) scale(0.97);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}
#begin::before {
  animation: btnGlow 3.2s ease-in-out infinite;
}

.btn-ghost {
  appearance: none;
  cursor: pointer;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 99px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  background: rgba(185, 167, 255, 0.05);
  border: 1px solid var(--hair);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
  user-select: none;
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--violet-soft);
  background: rgba(185, 167, 255, 0.1);
}
.btn-ghost:active {
  transform: scale(0.97);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--violet-soft);
  outline-offset: 3px;
}
#mic-fallback {
  opacity: 0.62;
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.reply {
  margin-top: 22px;
  color: var(--candle);
  min-height: 1.4em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reply.show {
  opacity: 1;
  transform: translateY(0);
}

.ink .w {
  display: inline-block;
  margin-right: 0.04em;
  opacity: 0;
  transform: translateY(12px) rotate(0.5deg);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: calc(var(--i) * 45ms);
}
.reveal.in-view .ink .w {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

#gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, calc(env(safe-area-inset-bottom) + 12px));
  background:
    radial-gradient(64% 46% at 50% 40%, rgba(255, 198, 138, 0.11), transparent 62%),
    radial-gradient(120% 90% at 50% 22%, #241b57 0%, #0f0a2c 62%, #0a0722 100%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#gate.hidden {
  opacity: 0;
  visibility: hidden;
}
.gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 30rem;
}

.gate-emblem {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
}
.gate-emblem::before {
  content: '';
  position: absolute;
  bottom: -4px;
  width: 152px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(255, 196, 130, 0.42), transparent 72%);
  filter: blur(11px);
  pointer-events: none;
}
.gate-cake {
  position: relative;
  font-size: clamp(58px, 16vw, 76px);
  line-height: 1;
  filter: drop-shadow(0 8px 22px rgba(255, 196, 130, 0.4));
  animation: bob 2.4s ease-in-out infinite;
}

.gate-kicker {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--violet-soft);
  font-size: clamp(13px, 3.6vw, 15px);
  margin-bottom: 14px;
}
.gate-title {
  font-family: var(--script);
  font-size: clamp(24px, 7.4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  max-width: 100%;
  text-shadow: 0 0 30px rgba(150, 130, 240, 0.45);
}
.gate-line {
  display: block;
  white-space: nowrap;
}
.gate-name {
  display: block;
  margin-top: 2px;
  color: var(--candle);
  text-shadow: 0 0 34px rgba(255, 205, 130, 0.5);
}
.gate-inner .btn-primary {
  margin-top: 34px;
}
.gate-meta {
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-soft);
  opacity: 0.58;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vh, 40px);
  padding: 8vh 24px;
  overflow: hidden;
}
.intro-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(120% 80% at 50% 42%, #2a2168 0%, #171240 46%, #0a0722 100%);
  will-change: opacity;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro.leaving .intro-veil {
  opacity: 0;
}
.intro-title,
.reel-window,
.intro-date {
  position: relative;
  z-index: 4;
}
.intro-bloom {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(62vw, 360px);
  aspect-ratio: 1;
  z-index: 2;
  border-radius: 50%;
  transform: translate(-50%, -42%) scale(0.15);
  background: radial-gradient(circle, rgba(255, 244, 214, 0.95) 0%, rgba(255, 205, 140, 0.55) 30%, rgba(255, 170, 110, 0.16) 55%, transparent 72%);
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.intro.leaving .intro-bloom {
  animation: bloom 1.15s cubic-bezier(0.22, 0.7, 0.25, 1) forwards;
}
.intro.leaving .intro-title {
  opacity: 0;
  transform: translateY(-38px) scale(0.98);
}
.intro.leaving .intro-date {
  opacity: 0;
  transform: translateY(-22px);
  transition-delay: 0.05s;
}
.intro.leaving .reel-window {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro.leaving .reel-num.lit {
  transform: scale(2);
  color: #fff7e6;
  text-shadow: 0 0 46px rgba(255, 222, 150, 0.95), 0 0 96px rgba(255, 180, 110, 0.55);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.5s ease, text-shadow 0.6s ease;
}
.intro.leaving .intro-glow {
  animation: none;
  opacity: 1;
  transform: translate(-50%, -38%) scale(2.7);
}
.intro-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -38%);
  background: radial-gradient(circle, rgba(255, 205, 130, 0.42) 0%, rgba(255, 160, 100, 0.14) 36%, transparent 68%);
  filter: blur(6px);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.6s ease, transform 0.9s ease-out;
}
.intro.landed .intro-glow {
  opacity: 1;
  animation: glowPulse 2.6s ease-in-out infinite;
}
.intro-title {
  font-family: var(--script);
  font-size: clamp(40px, 12vw, 84px);
  font-weight: 600;
  color: var(--ink);
  opacity: 0.5;
  text-shadow: 0 0 18px rgba(185, 167, 255, 0.4);
  will-change: transform, opacity;
  transition: opacity 0.7s ease, text-shadow 0.6s ease,
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.intro.landed .intro-title {
  opacity: 1;
  text-shadow: 0 0 26px rgba(185, 167, 255, 0.85), 0 0 60px rgba(139, 123, 240, 0.5);
}
.reel-window {
  position: relative;
  height: calc(5 * clamp(52px, 13vw, 76px));
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent);
}
.reel-track {
  will-change: transform;
}
.reel-num {
  height: clamp(52px, 13vw, 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(30px, 8vw, 46px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(185, 167, 255, 0.32);
  transition: opacity 0.45s ease;
}
.reel-num.lit {
  color: var(--candle);
  transform: scale(1.7);
  text-shadow: 0 0 24px rgba(255, 205, 130, 0.9), 0 0 52px rgba(255, 160, 100, 0.5);
  transition: transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1), color 0.4s ease, text-shadow 0.4s ease;
}
.intro-date {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: 0.06em;
  font-size: clamp(15px, 4vw, 19px);
  color: var(--violet-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
}
.intro.landed .intro-date {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes btnGlow {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}
@keyframes bloom {
  0% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.15);
  }
  28% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(3.6);
  }
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}
@keyframes floatUp {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.55;
  }
  88% {
    opacity: 0.55;
  }
  100% {
    transform: translate(var(--drift), -114vh) rotate(var(--spin));
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .ink .w,
  .gate-cake,
  .scroll-hint,
  .petal,
  #begin::before,
  .intro.landed .intro-glow {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
  .petal {
    display: none;
  }
  .intro-bloom {
    display: none;
  }
  .intro-veil,
  .intro.leaving .reel-num.lit {
    transition: none;
  }
}

.about {
  gap: 5vh;
  min-height: auto;
  justify-content: flex-start;
  padding-top: 7vh;
  padding-bottom: 4vh;
}
.about-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 34ch;
}

.gallery {
  gap: 4vh;
  min-height: auto;
  justify-content: flex-start;
  padding-top: 4vh;
  padding-bottom: 9vh;
}
.collection {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(60px, 11vh, 92px);
  width: 100%;
  max-width: min(88vw, 400px);
  margin: 0 auto;
}
@media (min-width: 640px) {
  .collection {
    max-width: 440px;
    gap: clamp(72px, 10vh, 104px);
  }
}

.keepsake {
  display: flex;
  justify-content: center;
  width: 100%;
}
.keepsake-inner {
  position: relative;
  transform: rotate(0deg);
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.3, 1);
  filter: drop-shadow(0 26px 44px rgba(4, 6, 20, 0.5));
}
.keepsake.in-view .keepsake-inner {
  transform: rotate(var(--tilt));
}

.ks-frame {
  width: min(80vw, 360px);
  padding: clamp(11px, 3vw, 15px) clamp(11px, 3vw, 15px) clamp(15px, 4vw, 19px);
  background: #f6f4ec;
  border-radius: 4px;
}
.ks-img,
.ks-ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.ks-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    radial-gradient(120% 100% at 30% 20%, rgba(185, 167, 255, 0.25), transparent 60%),
    linear-gradient(160deg, #2a2168 0%, #171240 60%, #120e30 100%);
  color: var(--muted);
}
.ph-mark {
  font-size: 28px;
  color: var(--violet-soft);
  opacity: 0.85;
  filter: drop-shadow(0 0 14px rgba(185, 167, 255, 0.5));
}
.ph-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0.72;
}

.ks-letter {
  --lh: 25px;
  --ks-note: 0.9;
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 168px;
  padding: 18px 14px 12px;
  border-radius: 3px;
  transform-origin: right bottom;
  transform: rotate(var(--nt)) scale(var(--ks-note));
  box-shadow: 0 14px 24px rgba(4, 6, 20, 0.42);
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0 calc(var(--lh) - 1px),
      rgba(89, 66, 111, 0.18) calc(var(--lh) - 1px) var(--lh)
    ),
    linear-gradient(178deg, #fffdf5 0%, #f4edda 100%);
  background-repeat: repeat, no-repeat;
  background-position:
    0 18px,
    0 0;
}
.ks-letter::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  pointer-events: none;
}
.hand {
  font-family: var(--script);
  font-size: 17px;
  line-height: var(--lh);
  color: #59426f;
  text-align: left;
}
@media (min-width: 640px) {
  .ks-letter {
    --ks-note: 1;
    right: -8px;
    bottom: -18px;
  }
}
.pin {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffc0cd 0%, #ff9db1 38%, #d1436a 100%);
  box-shadow:
    0 4px 7px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
}
.pin::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 2px;
  height: 9px;
  margin-left: -1px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
  border-radius: 1px;
}

.note-body {
  --lh: 34px;
  font-family: var(--hand);
  font-size: clamp(17px, 4.6vw, 20px);
  line-height: var(--lh);
  color: #4a3a63;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 calc(var(--lh) - 1px),
    rgba(120, 90, 60, 0.11) calc(var(--lh) - 1px) var(--lh)
  );
}
.note-para + .note-para {
  margin-top: var(--lh);
}
.note-signoff {
  margin-top: 28px;
  text-align: right;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(21px, 5.6vw, 28px);
  color: #b98a3e;
}
.note-pin {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff2f4;
  box-shadow:
    0 7px 12px rgba(60, 20, 40, 0.4),
    0 1px 0 rgba(120, 90, 60, 0.18),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -3px 5px rgba(80, 20, 50, 0.32);
  z-index: 2;
}
.note-pin--heart {
  left: 22px;
  bottom: 20px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  background: radial-gradient(circle at 35% 30%, #ffb3c2 0%, #d1436a 52%, #a52a4d 100%);
}
.note-pin--tr {
  right: 22px;
  top: -14px;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 35% 30%, #cbb8ff 0%, #8b7bf0 52%, #5b4bc4 100%);
}

@media (prefers-reduced-motion: reduce) {
  .keepsake-inner {
    transition: none;
    transform: rotate(var(--tilt));
  }
}
