/* Fonts are loaded locally via fonts.css — fully offline. */
/* --- Static build additions (replaces Tailwind preflight + framer-motion) --- */
[hidden] { display: none !important; }
.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; }
button { appearance: none; }
h1, h2, p { margin: 0; }
svg { display: block; }
img { display: block; }

/* Scenes are stacked inside the paper sheet; script.js toggles [hidden]. */
.scene { position: absolute; inset: 0; }
.paper.scene-enter { animation: scene-enter 480ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.paper.scene-exit { animation: scene-exit 480ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes scene-enter { from { opacity: 0; transform: translateY(22px) rotate(-0.7deg) scale(0.985); } to { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); } }
@keyframes scene-exit { from { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); } to { opacity: 0; transform: translateY(-16px) rotate(0.6deg) scale(0.99); } }

:root {
  font-family: "Fredoka", "Trebuchet MS", sans-serif;
  color: #8d2638;
  background: #f5eadc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --wine: #96283b;
  --wine-dark: #7b1d31;
  --paper: #fff9ec;
  --gingham: #a73443;
}

* { box-sizing: border-box; }
html, body, #root { min-width: 320px; min-height: 100%; margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #d38563; outline-offset: 4px; }
button:disabled { cursor: default; }

.site-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 28px 13px;
  overflow-x: hidden;
  overflow-y: auto;
  background: radial-gradient(circle at 12% 15%, rgba(224, 176, 159, 0.23), transparent 27%), radial-gradient(circle at 89% 87%, rgba(218, 169, 155, 0.2), transparent 28%), #f5eadc;
}
.site-header, .story-frame, .story-footer { width: min(1190px, 100%); }
.site-header { display: flex; height: 58px; flex: none; align-items: center; justify-content: space-between; padding: 0 8px 6px; }
.wordmark { display: flex; flex-direction: column; align-items: flex-start; padding: 0; border: 0; background: none; color: var(--wine-dark); line-height: .85; text-align: left; }
.wordmark span { font-family: "Caveat", cursive; font-size: 31px; font-weight: 700; letter-spacing: -1px; }
.wordmark small { align-self: flex-end; margin-top: 6px; font-family: "DM Sans", sans-serif; font-size: 8px; font-weight: 700; letter-spacing: 2.8px; }
.personalize-link { display: inline-flex; align-items: center; gap: 8px; padding: 5px 0; border: 0; border-bottom: 1px solid rgba(141, 38, 56, .55); background: none; color: var(--wine-dark); font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .02em; transition: transform 180ms ease, border-color 180ms ease; }
.personalize-link:hover { transform: translateY(-2px); border-color: var(--wine-dark); }
.personalize-link span { font-size: 19px; font-weight: 400; line-height: 12px; }
.header-actions { display: flex; flex: none; align-items: center; gap: 22px; }
.music-toggle { position: relative; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--wine-dark); transition: transform 180ms ease, background 180ms ease; }
.music-toggle:hover { transform: translateY(-2px); background: rgba(150, 40, 59, .08); }
.music-toggle .music-icon { width: 20px; height: 20px; }
.music-toggle .music-icon--off { display: none; }
.music-toggle[aria-pressed="true"] .music-icon--on { display: none; }
.music-toggle[aria-pressed="true"] .music-icon--off { display: block; }
.music-toggle[aria-pressed="false"] .music-icon--on { animation: sparkle-pulse 3.2s ease-in-out infinite; }

.story-frame {
  position: relative;
  flex: none;
  height: clamp(570px, calc(100svh - 150px), 700px);
  border-radius: 38px;
  background-color: #f8eee5;
  background-image: linear-gradient(90deg, rgba(158, 46, 60, .74) 50%, transparent 50%), linear-gradient(rgba(158, 46, 60, .74) 50%, transparent 50%);
  background-size: 20px 20px;
  box-shadow: 0 26px 55px rgba(112, 49, 50, .18), 0 7px 0 rgba(124, 38, 51, .09), inset 0 0 0 1px rgba(109, 37, 46, .27);
}
.story-frame::after { position: absolute; inset: 7px; border: 1px solid rgba(255, 250, 236, .65); border-radius: 33px; content: ""; pointer-events: none; }
.paper {
  position: absolute;
  inset: 16px;
  overflow: hidden;
  border: 1.5px solid #b96461;
  border-radius: 30px 35px 31px 37px / 33px 30px 37px 30px;
  background: radial-gradient(circle at 13% 24%, rgba(240, 213, 184, .15), transparent 31%), radial-gradient(circle at 85% 75%, rgba(245, 225, 203, .22), transparent 28%), #fff9ec;
  box-shadow: inset 0 0 23px rgba(168, 112, 84, .055);
  isolation: isolate;
}
.paper::selection, .paper *::selection { background: #e6a9a9; color: var(--wine-dark); }
.story-footer { display: grid; height: 54px; flex: none; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 7px 8px 0; }
.footer-link, .footer-note { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 3px 0; border: 0; background: none; color: var(--wine-dark); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.footer-link:not(:disabled):hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-link:disabled { opacity: .34; }
.footer-link--right, .footer-note { justify-self: end; }
.footer-note { font-family: "Caveat", cursive; font-size: 20px; font-weight: 600; letter-spacing: 0; }
.arrow-icon { display: inline-block; width: 18px; height: 18px; flex: none; vertical-align: middle; }
.arrow-icon--left { transform: rotate(180deg); }
.story-progress { display: flex; align-items: center; gap: 13px; color: var(--wine-dark); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.progress-dots { display: flex; align-items: center; gap: 7px; }
.progress-dot { display: block; width: 7px; height: 7px; border: 1px solid rgba(145, 41, 57, .55); border-radius: 50%; background: transparent; transition: background 300ms ease, transform 300ms ease; }
.progress-dot--active { transform: scale(1.2); background: var(--wine); }

.arc-title { position: absolute; top: 28px; left: 50%; z-index: 4; width: min(83%, 830px); height: auto; overflow: visible; transform: translateX(-50%); pointer-events: none; }
.arc-title text { fill: var(--wine-dark); font-family: "Fredoka", "Trebuchet MS", sans-serif; font-size: 62px; font-weight: 600; letter-spacing: .4px; paint-order: stroke; stroke: #fff9ec; stroke-width: 1.5px; }
.arc-title--dare text, .arc-title--cake text { font-size: 86px; font-weight: 600; }
.arc-title--excited text { font-size: 70px; }
.arc-title--gifts { top: 15px; width: min(89%, 880px); }
.arc-title--gifts text { font-size: 52px; }
.arc-title--cake { top: 13px; width: min(75%, 730px); }

.photo-cutout {
  display: block;
  position: absolute;
  max-width: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 11px rgba(91, 44, 38, .11));
  pointer-events: none;
  user-select: none;
}
.intro-girl, .dare-girl, .excited-girl { left: 50%; animation: float-center 5s ease-in-out infinite; }
.intro-girl { z-index: 2; bottom: 83px; width: min(52%, 550px); height: 72%; }
.dare-girl { z-index: 2; bottom: 82px; width: min(49%, 515px); height: 73%; animation-name: float-center-dare; }
.excited-girl { z-index: 3; bottom: 99px; width: min(49%, 510px); height: 70%; }
.intro-sparkle { position: absolute; z-index: 3; width: 22px; color: #d48d82; animation: sparkle-pulse 3.2s ease-in-out infinite; }
.intro-sparkle--left { top: 39%; left: 24%; }
.intro-sparkle--right { top: 29%; right: 24%; width: 16px; animation-delay: -1.5s; }
.question-block { position: absolute; z-index: 5; right: 0; bottom: 30px; left: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.question-block p { margin: 0 0 14px; color: var(--wine-dark); font-size: clamp(24px, 2.3vw, 31px); font-weight: 600; line-height: 1.1; }
.button-pair { display: flex; align-items: center; justify-content: center; gap: 16px; }
.retro-button {
  display: inline-flex;
  min-width: 108px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 18px 6px;
  border: 2px dashed #fff9e8;
  border-radius: 999px;
  outline: 2px solid var(--wine);
  background: var(--wine);
  box-shadow: 2px 4px 0 rgba(105, 32, 47, .14);
  color: #fff9e8;
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.retro-button:hover { transform: translateY(-4px) rotate(-2deg); background: #7d1e32; box-shadow: 3px 8px 0 rgba(105, 32, 47, .14); }
.retro-button:active { transform: translateY(1px); box-shadow: none; }
.retro-button:focus-visible { outline: 3px solid #d38563; outline-offset: 4px; }
.dare-question { bottom: 34px; }
.dare-question .retro-button { min-width: 142px; }
.peek-ledge { position: absolute; z-index: 4; bottom: 126px; left: 50%; width: min(38%, 390px); height: 103px; transform: translateX(-50%) rotate(-1deg); border: 3px solid #65312c; border-radius: 3px; background: #71372f; box-shadow: 0 12px 20px rgba(79, 37, 35, .18); opacity: 1; }
.excited-question { bottom: 29px; }

.gift-row { position: absolute; top: 48%; left: 50%; z-index: 3; display: flex; width: min(80%, 820px); align-items: center; justify-content: center; gap: 22px; transform: translate(-50%, -50%); }
.gift-button { display: block; width: 29%; max-width: 230px; padding: 0; border: 0; background: none; transition: transform 220ms cubic-bezier(.2, .8, .2, 1); }
.gift-button:nth-child(2) { transform: translateY(10px) rotate(-2deg); }
.gift-button:nth-child(3) { transform: rotate(3deg); }
.gift-button:hover, .gift-button:nth-child(2):hover, .gift-button:nth-child(3):hover { transform: translateY(-11px) rotate(-4deg); }
.gift-illustration { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 8px 2px rgba(122, 51, 56, .12)); }
.gift-lid { transform-origin: 90px 90px; transition: transform 600ms cubic-bezier(.2, 1.35, .4, 1); }
.gift-illustration--open .gift-lid { transform: translate(-18px, -28px) rotate(-16deg); }
.gift-bottom { position: absolute; z-index: 5; right: 12%; bottom: 37px; left: 12%; min-height: 85px; text-align: center; }
.gift-instruction { display: inline-flex; align-items: center; gap: 12px; margin: 14px 0 0; color: var(--wine-dark); font-size: clamp(26px, 3vw, 39px); font-weight: 600; letter-spacing: .035em; }
.gift-instruction .arrow-icon { width: 29px; height: 29px; }
.gift-reveal { position: relative; margin: 0 0 5px; font-family: "Caveat", cursive; font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.1; }
.text-next { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 3px 0; border: 0; border-bottom: 1.5px solid currentColor; background: none; color: var(--wine-dark); font-family: "Fredoka", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.2; transition: gap 180ms ease, transform 180ms ease; }
.text-next:hover { gap: 14px; transform: translateY(-2px); }
.gift-peek-girl { right: -53px; bottom: -78px; z-index: 2; width: 240px; height: 265px; transform: rotate(-17deg); }

.paper--birthday::before, .paper--birthday::after, .paper--cake::before, .paper--finale::before { position: absolute; z-index: 0; background: #a52c38; content: ""; pointer-events: none; }
.paper--birthday::before { top: -158px; left: -95px; width: 335px; height: 345px; transform: rotate(24deg); border-radius: 39% 61% 63% 37% / 53% 41% 59% 47%; }
.paper--birthday::after { right: -120px; bottom: -175px; width: 280px; height: 320px; transform: rotate(-25deg); border-radius: 55% 45% 53% 47%; }
.birthday-layout { position: relative; z-index: 1; display: grid; width: 100%; height: 100%; grid-template-columns: 52% 48%; align-items: center; padding: 44px 64px 34px 104px; }
.birthday-copy { position: relative; z-index: 4; margin-top: 17px; }
.birthday-kicker { display: flex; align-items: center; gap: 10px; margin-left: 6px; color: #a5464b; font-family: Georgia, serif; font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.025em; }
.birthday-kicker svg { width: 19px; height: 22px; }
.birthday-copy h1 { margin: -7px 0 8px; color: var(--wine-dark); font-family: "Great Vibes", "Caveat", cursive; font-size: clamp(85px, 9vw, 130px); font-weight: 400; line-height: 1.04; text-shadow: 1px 2px 0 rgba(161, 65, 69, .13); }
.birthday-copy h1 span { margin-left: 4px; font-family: "Caveat", cursive; font-size: .67em; }
.birthday-copy p { max-width: 385px; margin: 3px 0 27px 5px; font-family: "Caveat", cursive; font-size: clamp(24px, 2.4vw, 31px); font-weight: 600; line-height: 1.16; }
.ribbon-button { display: inline-flex; min-width: 162px; height: 43px; align-items: center; justify-content: center; gap: 8px; margin-left: 5px; padding: 0 25px; border: 0; background: var(--wine); clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); color: #fff8e8; font-family: "Fredoka", sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .04em; transition: transform 180ms ease, background 180ms ease; }
.ribbon-button:hover { transform: translateX(6px); background: var(--wine-dark); }
.birthday-art { position: relative; width: 100%; height: 100%; }
.birthday-polaroid { position: absolute; top: 14%; left: 9%; width: min(80%, 340px); height: 69%; max-height: 390px; padding: 14px 14px 49px; transform: rotate(5deg); border: 2px solid #9a3544; background: #fffdf3; box-shadow: 9px 12px 0 rgba(116, 51, 54, .14); }
.birthday-polaroid::after { position: absolute; top: -14px; right: 14px; width: 15px; height: 37px; transform: rotate(5deg); border: 2px solid #874349; border-bottom: 0; border-radius: 8px 8px 0 0; content: ""; }
.polaroid-photo { width: 100%; height: 100%; min-height: 0; overflow: hidden; background: #dfeef0; }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; }
.polaroid-scribble { display: block; margin-top: 6px; color: #98505b; font-family: "Caveat", cursive; font-size: 21px; text-align: center; }

.mini-landscape { position: relative; width: 100%; height: 100%; overflow: hidden; background: linear-gradient(#afd9e6 0%, #cce7e6 62%, #eff2ce 62%); }
.mini-landscape--1 { background: linear-gradient(#b8d9e8 0%, #d5e8e6 61%, #edf1ce 61%); }
.mini-landscape--2 { background: linear-gradient(#a4d5e4 0%, #cce6e1 62%, #eff1ca 62%); }
.mini-landscape--3 { background: linear-gradient(#b9dce8 0%, #e0ebe5 59%, #eef0c5 59%); }
.landscape-cloud { position: absolute; top: 20%; left: 16%; z-index: 2; width: 22%; height: 5%; border-radius: 40px; background: #fffdf5; }
.landscape-cloud::before, .landscape-cloud::after { position: absolute; bottom: 0; border-radius: 50%; background: #fffdf5; content: ""; }
.landscape-cloud::before { left: 22%; width: 37%; height: 190%; }
.landscape-cloud::after { right: 10%; width: 32%; height: 145%; }
.landscape-cloud--two { top: 37%; left: 64%; width: 16%; transform: scale(.8); }
.landscape-hill { position: absolute; bottom: -30%; display: block; width: 126%; height: 60%; border-radius: 50% 50% 0 0; }
.landscape-hill--back { right: -44%; bottom: -24%; background: #a9c959; }
.landscape-hill--front { left: -43%; background: #75aa45; }
.mini-landscape--2 .landscape-hill--back { background: #bdd578; }
.mini-landscape--3 .landscape-hill--front { background: #91b663; }
.cool-girl { right: -58px; bottom: -58px; z-index: 3; width: 270px; height: 320px; transform: rotate(-7deg); }
.birthday-sparkle { position: absolute; color: #b4575c; }
.birthday-sparkle--one { top: 12%; right: 2%; width: 26px; }
.birthday-sparkle--two { bottom: 10%; left: -7%; width: 17px; }

.paper--cake::before { top: -185px; left: -115px; width: 275px; height: 310px; transform: rotate(30deg); border-radius: 43% 57% 70% 30%; }
.cake-tap { position: absolute; bottom: 93px; left: 50%; z-index: 2; width: min(52%, 540px); padding: 0; transform: translateX(-57%); border: 0; background: none; }
.cake-illustration { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 5px 0 rgba(154, 56, 63, .06)); transition: transform 250ms ease; }
.cake-tap:hover .cake-illustration { transform: scale(1.025); }
.candle-flame { transform-box: fill-box; transform-origin: center bottom; animation: flame-flicker 1.1s ease-in-out infinite alternate; filter: drop-shadow(0 0 8px rgba(255, 164, 52, .75)); transition: opacity 320ms ease, transform 320ms ease; }
.candle-flame--inner { animation-duration: .8s; }
.candle-smoke { opacity: 0; transition: opacity 450ms ease 120ms; }
.cake-illustration--blown .candle-flame { transform: scale(0); opacity: 0; animation: none; }
.cake-illustration--blown .candle-smoke { opacity: .6; }
.party-girl { right: 4%; bottom: 50px; z-index: 3; width: 260px; height: 325px; transform: rotate(-8deg); animation: party-bob 4.2s ease-in-out infinite; }
.cake-sparkle { position: absolute; color: #d3907c; animation: sparkle-pulse 2.8s ease-in-out infinite; }
.cake-sparkle--left { top: 48%; left: 17%; width: 22px; }
.cake-sparkle--right { top: 38%; right: 17%; width: 18px; animation-delay: -1.4s; }
.cake-bottom { position: absolute; right: 0; bottom: 19px; left: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.cake-bottom p { margin: 0; font-family: "Caveat", cursive; font-size: 26px; font-weight: 700; line-height: 1; }
.cake-bottom .retro-button { min-width: 177px; min-height: 38px; font-size: 13px; }
.cake-bottom .arrow-icon { width: 16px; height: 16px; }
.confetti-burst { position: absolute; inset: 0; z-index: 6; overflow: hidden; pointer-events: none; }
.confetti-burst span { position: absolute; width: 8px; height: 14px; border-radius: 2px; background: #c84658; animation: confetti-fall 1.7s ease-in forwards; }
.confetti-burst span:nth-child(3n) { width: 7px; height: 7px; border-radius: 50%; background: #e8ae5c; }
.confetti-burst span:nth-child(4n) { background: #87ad74; }

.memory-letters { position: absolute; top: 37px; left: 50%; z-index: 4; display: flex; align-items: center; gap: 3px; transform: translateX(-50%); }
.memory-letter { display: flex; width: 60px; height: 72px; align-items: center; justify-content: center; clip-path: polygon(3% 2%, 98% 0, 95% 96%, 6% 100%, 0 47%); background: #b8354a; box-shadow: 3px 5px 0 rgba(112, 44, 52, .12); color: #fff5de; font-family: "Fredoka", sans-serif; font-size: 55px; font-weight: 600; line-height: 1; text-shadow: 2px 2px 0 rgba(84, 33, 42, .13); }
.memory-letter--0 { transform: rotate(-7deg) translateY(2px); }
.memory-letter--1 { transform: rotate(4deg) translateY(-4px); background: #e5a2a3; color: #9d2538; }
.memory-letter--2 { transform: rotate(-3deg) translateY(5px); background: #fff0dc; color: #a12b3e; }
.memory-letter--3 { transform: rotate(5deg) translateY(1px); background: #c95b65; }
.memory-line { position: absolute; top: 32%; right: -2%; left: -2%; height: 52px; border-top: 2px solid #8e4242; border-radius: 50%; transform: rotate(-1deg); }
.memory-photos { position: absolute; top: 34%; right: 7%; left: 7%; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hanging-photo { position: relative; width: 18%; height: 245px; transform-origin: top center; animation: photo-sway 5s ease-in-out infinite; }
.hanging-photo--0 { transform: rotate(-6deg); animation-delay: -1s; }
.hanging-photo--1 { transform: rotate(4deg); animation-delay: -2.5s; }
.hanging-photo--2 { transform: rotate(-3deg); animation-delay: -.4s; }
.hanging-photo--3 { transform: rotate(5deg); animation-delay: -3.1s; }
.hanging-photo--4 { transform: rotate(-5deg); animation-delay: -1.9s; }
.photo-peg { position: absolute; top: -15px; left: 50%; z-index: 3; width: 15px; height: 36px; transform: translateX(-50%) rotate(6deg); border: 1px solid #a87650; border-radius: 3px; background: linear-gradient(90deg, #bb8a58 0 50%, #d7ab70 50%); box-shadow: 2px 2px 2px rgba(71, 43, 39, .17); }
.photo-peg::after { position: absolute; top: 18px; left: 0; width: 100%; border-top: 1px solid #8d653f; content: ""; }
.memory-photo-border { width: 100%; height: 218px; padding: 8px 8px 27px; border: 2px solid #a44b52; background-color: #f9eee2; background-image: linear-gradient(90deg, rgba(167, 53, 65, .65) 50%, transparent 50%), linear-gradient(rgba(167, 53, 65, .65) 50%, transparent 50%); background-size: 12px 12px; box-shadow: 5px 8px 0 rgba(119, 66, 62, .13); }
.memory-photo-border .mini-landscape { border: 3px solid #fff5e7; }
.memory-photo-img { width: 100%; height: 100%; overflow: hidden; border: 3px solid #fff5e7; background: #dfeef0; }
.memory-photo-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; }
.memory-bottom { position: absolute; right: 65px; bottom: 38px; left: 65px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.memory-bottom p { margin: 0; font-family: "Caveat", cursive; font-size: 29px; font-weight: 600; line-height: 1; }
.memory-sparkle { position: absolute; right: 5%; bottom: 15%; width: 23px; color: #ca666c; }

.letter-side-pattern { position: absolute; top: 0; right: 0; bottom: 0; width: 18%; border-left: 2px dashed #b35f65; background-color: #f8ede4; background-image: linear-gradient(90deg, rgba(156, 46, 60, .73) 50%, transparent 50%), linear-gradient(rgba(156, 46, 60, .73) 50%, transparent 50%); background-size: 22px 22px; }
.letter-side-pattern::before { position: absolute; top: 0; bottom: 0; left: -13px; width: 9px; background: radial-gradient(circle, #a73849 2px, transparent 2.5px) center top / 9px 20px repeat-y; content: ""; }
.letter-sheet { position: relative; z-index: 1; display: flex; width: 82%; height: 100%; flex-direction: column; padding: 68px 10% 41px 8%; }
.letter-tape { position: absolute; top: 18px; left: 49%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-5deg); background: rgba(205, 160, 128, .32); clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); }
.letter-sheet h1 { display: flex; flex: none; align-items: flex-start; gap: 17px; margin: 0 0 25px; color: var(--wine-dark); font-family: "Great Vibes", "Caveat", cursive; font-size: clamp(66px, 7.2vw, 100px); font-weight: 400; line-height: 1; }
.letter-sheet h1 svg { width: 22px; height: 21px; margin-top: 14px; color: #ad2942; transform: rotate(16deg); }
.letter-words { max-width: 695px; flex: 1; overflow-y: auto; padding-right: 7px; color: #772637; font-family: "Caveat", cursive; font-size: clamp(24px, 2.45vw, 31px); font-weight: 500; line-height: 1.13; scrollbar-color: #c78783 transparent; scrollbar-width: thin; }
.letter-words p { margin: 0 0 14px; }
.letter-words .letter-greeting { margin-bottom: 15px; font-weight: 700; }
.letter-words .letter-signoff { margin-top: 16px; }
.letter-signoff span { font-size: 1.25em; font-weight: 700; }
.letter-next { align-self: flex-end; flex: none; margin-top: 12px; }

.paper--finale::before { top: -185px; left: -135px; width: 335px; height: 315px; transform: rotate(-9deg); border-radius: 55% 45% 69% 31%; }
.finale-content { position: absolute; top: 14%; left: 8%; z-index: 4; width: 68%; }
.finale-kicker { color: #ad5b5b; font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.finale-content h1 { margin: 24px 0 18px; color: var(--wine-dark); font-size: clamp(39px, 4.6vw, 67px); font-weight: 600; letter-spacing: -.025em; line-height: 1.13; }
.finale-heart { display: inline-block; width: 27px; height: 27px; margin-left: 11px; color: #c04a57; transform: rotate(13deg); vertical-align: middle; }
.finale-heart svg { display: block; width: 100%; }
.finale-content p { margin: 0 0 23px; font-family: "Caveat", cursive; font-size: 31px; font-weight: 600; }
.finale-buttons { display: flex; align-items: center; gap: 27px; }
.finale-buttons .retro-button { min-width: 185px; min-height: 43px; font-size: 13px; }
.finale-girl { right: 0; bottom: 13px; z-index: 3; width: 34%; height: 19%; object-position: bottom; transform: rotate(-4deg); animation: party-bob 5s ease-in-out infinite; }
@media (min-width: 701px) { .finale-girl { height: auto; aspect-ratio: 3 / 4; } }
.finale-sparkle { position: absolute; z-index: 2; color: #c66d6b; animation: sparkle-pulse 3s ease-in-out infinite; }
.finale-sparkle--one { top: 22%; right: 15%; width: 27px; }
.finale-sparkle--two { right: 7%; bottom: 30%; width: 18px; animation-delay: -1.4s; }

.birthday-copy p, .letter-words, .finale-content, .finale-content p, .finale-kicker { overflow-wrap: anywhere; }

.dialog-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(76, 25, 35, .57); backdrop-filter: blur(5px); }
.personalize-dialog { position: relative; width: min(520px, 100%); max-height: calc(100svh - 36px); overflow-y: auto; padding: 39px 42px 37px; border: 9px solid #a94c58; border-radius: 22px; background: #fff9ec; box-shadow: 0 23px 70px rgba(54, 18, 25, .3); }
.dialog-close { position: absolute; top: 17px; right: 17px; display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 0; background: none; color: var(--wine-dark); }
.dialog-close svg { width: 22px; }
.dialog-kicker { font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .2em; }
.personalize-dialog h2 { margin: 7px 0 2px; font-family: "Great Vibes", "Caveat", cursive; font-size: 58px; font-weight: 400; line-height: 1.2; }
.personalize-dialog > p { max-width: 375px; margin: 0 0 22px; color: #965864; font-family: "DM Sans", sans-serif; font-size: 13px; line-height: 1.5; }
.personalize-dialog form, .personalize-dialog label { display: flex; flex-direction: column; }
.personalize-dialog form { gap: 17px; }
.personalize-dialog label { gap: 6px; color: var(--wine-dark); font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; }
.personalize-dialog input, .personalize-dialog textarea { width: 100%; padding: 10px 13px; border: 1px solid #d4a5a0; border-radius: 7px; background: #fffdf6; color: var(--wine-dark); font-family: "DM Sans", sans-serif; font-size: 14px; font-weight: 400; }
.personalize-dialog textarea { resize: vertical; line-height: 1.45; }
.personalize-dialog input::placeholder, .personalize-dialog textarea::placeholder { color: #ad9391; }
.label-title { display: block; }
.optional-label { display: inline; color: #a67f7e; font-size: 11px; font-weight: 400; margin-left: 4px; }
.dialog-save { align-self: flex-start; min-width: 185px; margin-top: 6px; font-size: 13px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: min(340px, calc(100vw - 32px)); padding: 13px 20px; border: 2px solid #fff9ec; border-radius: 12px; background: var(--wine-dark); box-shadow: 0 10px 30px rgba(76, 25, 35, .2); color: #fff9ec; font-family: "DM Sans", sans-serif; font-size: 13px; font-weight: 600; }

@keyframes float-center { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-9px); } }
@keyframes float-center-dare { 0%, 100% { transform: translateX(-50%) rotate(-2deg) translateY(0); } 50% { transform: translateX(-50%) rotate(1deg) translateY(-6px); } }
@keyframes party-bob { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-8px); } }
@keyframes sparkle-pulse { 0%, 100% { transform: scale(.82) rotate(-8deg); opacity: .55; } 50% { transform: scale(1.14) rotate(10deg); opacity: 1; } }
@keyframes flame-flicker { from { transform: scale(.9) rotate(-7deg); } to { transform: scale(1.1) rotate(7deg); } }
@keyframes confetti-fall { 0% { transform: translateY(-20px) rotate(0); opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(510px) rotate(600deg); opacity: 0; } }
@keyframes photo-sway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }

@media (max-width: 900px) {
  .birthday-layout { padding-left: 65px; padding-right: 35px; }
  .birthday-copy h1 { font-size: clamp(74px, 10vw, 100px); }
  .birthday-polaroid { left: 4%; }
  .cool-girl { right: -75px; width: 235px; }
  .hanging-photo { height: 205px; }
  .memory-photo-border { height: 190px; }
  .letter-sheet { padding-left: 7%; padding-right: 7%; }
  .finale-content h1 { font-size: clamp(35px, 5vw, 48px); }
}

@media (max-width: 700px) {
  .site-shell { padding: 7px 10px 6px; overflow-x: hidden; overflow-y: auto; }
  .site-header { height: 48px; padding: 0 5px 4px; }
  .wordmark span { font-size: 25px; }
  .wordmark small { font-size: 6px; letter-spacing: 2.2px; }
  .personalize-link { gap: 4px; font-size: 10px; }
  .header-actions { gap: 13px; }
  .music-toggle { width: 30px; height: 30px; }
  .music-toggle .music-icon { width: 17px; height: 17px; }
  .story-frame { height: clamp(560px, calc(100svh - 105px), 760px); border-radius: 28px; background-size: 15px 15px; }
  .story-frame::after { inset: 5px; border-radius: 24px; }
  .paper { inset: 10px; border-radius: 20px 25px 23px 27px / 24px 21px 26px 22px; }
  .story-footer { height: 45px; padding: 5px 3px 0; }
  .footer-link { gap: 2px; font-size: 9px; letter-spacing: .04em; }
  .footer-link .arrow-icon { width: 14px; height: 14px; }
  .footer-note { font-size: 16px; }
  .story-progress { gap: 6px; font-size: 9px; }
  .progress-dots { gap: 4px; }
  .progress-dot { width: 5px; height: 5px; }
  .arc-title { top: 37px; width: 100%; }
  .arc-title--intro text { font-size: 66px; }
  .arc-title--dare { top: 48px; }
  .arc-title--dare text { font-size: 84px; }
  .arc-title--excited { top: 45px; }
  .arc-title--excited text { font-size: 68px; }
  .arc-title--gifts { top: 39px; width: 104%; }
  .arc-title--gifts text { font-size: 51px; }
  .arc-title--cake { top: 36px; width: 97%; }
  .arc-title--cake text { font-size: 87px; }
  .intro-girl { bottom: 125px; width: 100%; height: 56%; }
  .dare-girl { bottom: 115px; width: 100%; height: 58%; }
  .excited-girl { bottom: 143px; width: 100%; height: 53%; }
  .intro-sparkle--left { top: 43%; left: 7%; width: 16px; }
  .intro-sparkle--right { top: 28%; right: 9%; width: 13px; }
  .question-block { bottom: 38px; }
  .question-block p { margin-bottom: 13px; font-size: 25px; }
  .button-pair { gap: 14px; }
  .retro-button { min-width: 78px; min-height: 38px; padding: 7px 13px 6px; font-size: 14px; }
  .dare-question { bottom: 45px; }
  .dare-question .retro-button { min-width: 122px; }
  .peek-ledge { bottom: 138px; width: 68%; height: 72px; }
  .excited-question { bottom: 44px; }
  .gift-row { top: 46%; width: 100%; gap: 0; }
  .gift-button { width: 32%; }
  .gift-bottom { right: 5%; bottom: 70px; left: 5%; min-height: 78px; }
  .gift-instruction { gap: 5px; font-size: 22px; }
  .gift-instruction .arrow-icon { width: 21px; height: 21px; }
  .gift-reveal { font-size: 27px; }
  .gift-peek-girl { right: -40px; bottom: -42px; width: 145px; height: 155px; }
  .paper--birthday::before { top: -126px; left: -108px; width: 255px; height: 255px; }
  .paper--birthday::after { right: -135px; bottom: -135px; }
  .birthday-layout { display: block; padding: 100px 29px 0; }
  .birthday-copy { margin-top: 0; }
  .birthday-kicker { font-size: 20px; }
  .birthday-copy h1 { margin: -2px 0 5px; font-size: clamp(78px, 21vw, 105px); }
  .birthday-copy p { max-width: 290px; margin: 0 0 19px 3px; font-size: 25px; }
  .ribbon-button { min-width: 145px; height: 38px; font-size: 13px; }
  .birthday-art { position: absolute; inset: 0; pointer-events: none; }
  .birthday-polaroid { top: auto; right: 25px; bottom: 37px; left: auto; width: 193px; height: clamp(190px, 32svh, 225px); padding: 9px 9px 36px; }
  .polaroid-scribble { margin-top: 2px; font-size: 15px; }
  .cool-girl { right: -46px; bottom: -30px; width: 188px; height: 220px; }
  .birthday-sparkle--one { top: 57%; right: 4%; width: 17px; }
  .birthday-sparkle--two { bottom: 12%; left: 17%; width: 13px; }
  .paper--cake::before { top: -157px; left: -112px; }
  .cake-tap { bottom: 160px; width: 104%; transform: translateX(-56%); }
  .party-girl { right: -35px; bottom: 105px; width: 170px; height: 218px; }
  .cake-sparkle--left { top: 42%; left: 5%; width: 16px; }
  .cake-sparkle--right { top: 34%; right: 8%; width: 15px; }
  .cake-bottom { bottom: 38px; gap: 11px; }
  .cake-bottom p { font-size: 22px; }
  .cake-bottom .retro-button { min-width: 161px; }
  .memory-letters { top: 75px; gap: 1px; }
  .memory-letter { width: clamp(31px, 9vw, 40px); height: 47px; font-size: 34px; }
  .memory-line { top: 28%; }
  .memory-photos { top: 29%; right: 5%; left: 5%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 4px; }
  .hanging-photo { width: 91%; height: clamp(119px, calc(17svh + 13px), 143px); margin: 0 auto; }
  .hanging-photo--3 { grid-column: 1 / 2; margin-left: 45%; }
  .hanging-photo--4 { grid-column: 3 / 4; margin-left: -25%; }
  .photo-peg { top: -11px; width: 11px; height: 25px; }
  .photo-peg::after { top: 12px; }
  .memory-photo-border { height: clamp(106px, 17svh, 130px); padding: 5px 5px 19px; background-size: 9px 9px; }
  .memory-photo-img { border-width: 2px; }
  .memory-bottom { right: 18px; bottom: 26px; left: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .memory-bottom p { max-width: 265px; font-size: 23px; line-height: 1.05; }
  .memory-bottom .text-next { font-size: 15px; }
  .memory-sparkle { bottom: 13%; width: 16px; }
  .letter-side-pattern { width: 32px; background-size: 15px 15px; }
  .letter-sheet { width: calc(100% - 32px); padding: 90px 20px 29px 21px; }
  .letter-tape { top: 25px; }
  .letter-sheet h1 { gap: 8px; margin-bottom: 19px; font-size: clamp(56px, 14vw, 72px); }
  .letter-sheet h1 svg { width: 16px; margin-top: 7px; }
  .letter-words { font-size: clamp(22px, 5.8vw, 27px); line-height: 1.11; }
  .letter-words p { margin-bottom: 10px; }
  .letter-next { margin-top: 9px; font-size: 15px; }
  .paper--finale::before { top: -171px; left: -175px; width: 290px; }
  .finale-content { top: 11%; right: 18px; left: 24px; width: auto; }
  .finale-kicker { font-size: 10px; letter-spacing: .15em; }
  .finale-content h1 { margin: 22px 0 19px; font-size: clamp(28px, 8vw, 41px); line-height: 1.22; }
  .finale-heart { width: 17px; height: 17px; margin-left: 5px; }
  .finale-content p { max-width: 270px; margin-bottom: 23px; font-size: 25px; }
  .finale-buttons { flex-direction: column; align-items: flex-start; gap: 15px; }
  .finale-buttons .retro-button { min-width: 160px; min-height: 39px; font-size: 11px; }
  .finale-buttons .text-next { font-size: 15px; }
  .finale-girl { right: -37px; bottom: 10px; width: 69%; height: auto; aspect-ratio: 3 / 4; }
  .finale-sparkle--one { top: 53%; right: 11%; width: 17px; }
  .finale-sparkle--two { right: 4%; bottom: 25%; width: 12px; }
  .personalize-dialog { padding: 34px 24px 29px; border-width: 7px; }
  .personalize-dialog h2 { font-size: 51px; }
  .toast { right: 12px; bottom: 12px; }
}

@media (min-width: 540px) and (max-width: 700px) {
  .finale-content { top: 15%; right: auto; left: 7%; width: 67%; }
  .finale-content h1 { font-size: clamp(36px, 6vw, 43px); line-height: 1.15; }
  .finale-buttons { flex-direction: row; align-items: center; }
  .finale-girl { right: -4%; bottom: 6px; width: 40%; height: auto; aspect-ratio: 3 / 4; }
}

@media (max-width: 380px) {
  .arc-title--intro text { font-size: 60px; }
  .birthday-layout { padding-left: 23px; }
  .birthday-copy h1 { font-size: 78px; }
  .finale-content h1 { font-size: 28px; }
}

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