:root {
  color-scheme: light;
  --sky: #f1f5fa;
  --ink: #30465d;
  --soft-ink: #596a7f;
  --gold: #aa7141;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--sky); }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #936039; outline-offset: 6px; }
[hidden] { display: none !important; }
.birthday-journey { isolation: isolate; --art-size: min(100vw, 100svh, 1080px); }
.winter-scene { position: relative; width: 100%; height: 100svh; min-height: 640px; overflow: hidden; background: var(--sky); }
.illustration-plane { position: absolute; left: 50%; bottom: 0; width: var(--art-size); aspect-ratio: 1; transform: translateX(-50%); --fire-x: 47%; }
.scene-artwork { position: absolute; inset: 0; pointer-events: none; }
.illustration { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
@media (min-width: 601px) {
  /* The panorama's middle quarter is the original square, at the same scale. */
  .illustration { position: absolute; left: 50%; width: 400%; transform: translateX(-50%); }
}
.scene-header { position: absolute; z-index: 5; top: max(26px, env(safe-area-inset-top)); left: clamp(22px, 3vw, 48px); right: clamp(22px, 3vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; color: #51687f; text-decoration: none; font-size: 12px; letter-spacing: .12em; }
.wordmark > span:first-child { font-family: Georgia, serif; font-size: 25px; font-weight: 400; line-height: 1; color: #9b714f; }
.scene-tools { display: flex; gap: 8px; align-items: center; }
.quiet-button { min-height: 44px; padding: 8px 12px; border: 1px solid rgba(78, 100, 125, .18); border-radius: 30px; color: #52677d; background: rgba(247,250,253,.73); cursor: pointer; font-size: 12px; letter-spacing: .025em; transition: background .2s, border-color .2s; }
.quiet-button:hover { background: #fff; border-color: #a5b3c2; }
.snow-button { display: inline-flex; align-items: center; gap: 7px; }
.snow-button svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.message-area { position: absolute; z-index: 4; top: 110px; left: 50%; width: min(88%, 650px); height: 360px; transform: translateX(-50%); display: grid; place-items: center; text-align: center; pointer-events: none; }
.intro-content, .welcome-content { width: 100%; padding: 12px 0; }
.eyebrow { margin: 0 0 25px; font-size: 10px; font-weight: 600; letter-spacing: .27em; color: #67788b; line-height: 1.8; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4.5vw, 65px); font-weight: 400; line-height: 1.13; letter-spacing: -.045em; margin: 0; text-wrap: balance; }
h1 em { font-weight: 400; color: #607a95; }
.intro-description, .welcome-body { margin: 24px auto 0; max-width: 410px; font-size: 14px; font-weight: 400; line-height: 1.85; color: var(--soft-ink); text-wrap: pretty; }
.signature { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 20px; margin: 22px 0 0; color: #94653f; }
.small-ornament { display: flex; gap: 14px; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 19px; color: #a77b53; margin: 24px auto 0; }
.small-ornament span { display: block; height: 1px; width: 33px; background: #c5ced7; }
.intro-content { transition: opacity .48s ease, transform .6s ease; }
.is-lighting .intro-content { opacity: 0; transform: translateY(-9px); }
.welcome-content { animation: welcome-in 1.2s both cubic-bezier(.2,.65,.2,1); }
.welcome-content h1 { font-size: clamp(36px, 4.3vw, 58px); }
.welcome-content .eyebrow { margin-bottom: 19px; }
.welcome-content .small-ornament { margin-top: 17px; }
#welcome-title:focus { outline: none; }
.scene-footer { position: absolute; z-index: 4; bottom: max(17px, env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; pointer-events: none; margin: 0; font-size: 8px; letter-spacing: .23em; color: #4c637a; }

/* All campfire positions are relative to the original square illustration.
   ResizeObserver scales this entire plane, keeping the effects on the logs. */
.campfire-button { position: absolute; z-index: 4; left: var(--fire-x); top: 78%; width: 17%; height: 11%; min-width: 52px; min-height: 44px; transform: translateX(-50%); border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 50%; touch-action: manipulation; }
.campfire-prompt { position: absolute; bottom: calc(100% + 29px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: max-content; min-width: 186px; padding: 12px 23px 11px; border: 1px solid rgba(150,112,72,.35); border-radius: 15px; background: rgba(255,253,247,.97); color: #764e30; box-shadow: 0 4px 20px #4058750b; transition: opacity .45s, transform .45s, box-shadow .2s; }
.campfire-prompt > span:first-child { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.prompt-detail { margin-top: 4px; font-family: Georgia, serif; font-size: 13px; font-style: italic; color: #806c57; }
.prompt-arrow { position: absolute; top: calc(100% + 8px); left: calc(50% - 10px); width: 20px; height: 27px; fill: none; stroke: #9c7954; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: point-down 2.5s ease-in-out infinite; }
.campfire-ring { position: absolute; left: 7%; right: 7%; bottom: 5%; height: 44%; border: 1.5px dashed rgba(141,100,58,.7); border-radius: 50%; opacity: .65; animation: ring-breathe 3s ease-in-out infinite; }
.campfire-button:hover .campfire-prompt { box-shadow: 0 6px 24px #a77b5328; }
.campfire-button:hover .campfire-ring { border-style: solid; }
.is-lit .campfire-button { pointer-events: none; }
.is-lit .campfire-prompt { opacity: 0; transform: translate(-50%, -9px); }
.is-lit .campfire-ring { opacity: 0; animation: none; transition: opacity .3s; }
.fire-glow {
  position: absolute;
  z-index: 1;
  left: var(--fire-x);
  top: 82.5%;
  width: 30%;
  height: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #ffd49675 0%, #ffb7683d 22%, #ffad5d16 40%, transparent 62%),
    radial-gradient(circle closest-side, #ffc78942 0%, #ffb66b34 31%, #ffb16a1b 54%, #ffa46308 74%, transparent 88%);
  opacity: 0;
  transition: opacity 1.8s ease;
  mix-blend-mode: screen;
}
/* Strength follows the brightness of the sky in each chapter’s artwork. */
.winter-scene { --fire-glow-opacity: .24; }
#our-story { --fire-glow-opacity: .35; }
.love-section { --fire-glow-opacity: .55; }
.letter-section { --fire-glow-opacity: .67; }
.trip-section { --fire-glow-opacity: .80; }
.fire-visual { position: absolute; z-index: 2; left: var(--fire-x); bottom: 15.5%; width: 6%; height: 9%; transform: translateX(-50%) scale(.4); transform-origin: 50% 100%; opacity: 0; pointer-events: none; transition: opacity .65s ease, transform 1s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 6px rgba(255,182,77,.32)); }
.fire-visual svg { display: block; width: 100%; height: 100%; overflow: visible; }
.is-lit .fire-visual { opacity: .98; transform: translateX(-50%) scale(1); }
.is-lit .fire-glow { opacity: var(--fire-glow-opacity, 1); }
.flame { transform-box: fill-box; transform-origin: 50% 100%; }
.is-lit .flame-one { animation: fire-flicker 2.1s ease-in-out infinite alternate; }
.is-lit .flame-two { animation: fire-flicker 1.4s -.6s ease-in-out infinite alternate-reverse; }
.is-lit .flame-three { animation: fire-flicker 1.8s -.9s ease-in-out infinite alternate; }
.ember { position: absolute; width: 2px; height: 3px; border-radius: 60%; background: #f5b668; opacity: 0; bottom: 35%; }
.ember-one { left: 38%; --drift: -17px; }
.ember-two { left: 59%; --drift: 21px; }
.ember-three { left: 47%; --drift: 10px; }
.is-lit .ember-one { animation: ember-rise 3.1s .4s ease-out infinite; }
.is-lit .ember-two { animation: ember-rise 3.7s 1.6s ease-out infinite; }
.is-lit .ember-three { animation: ember-rise 4.1s 2.5s ease-out infinite; }
#snow { position: fixed; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.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; }
.noscript-message { position: absolute; z-index: 9; top: 95px; left: 10%; width: 80%; padding: 18px; background: #fff; text-align: center; }
@keyframes fire-flicker { 0% { transform: scale(.96,1) rotate(-1.5deg); } 38% { transform: scale(1.02,.96) rotate(1deg); } 70% { transform: scale(.97,1.035) rotate(-.7deg); } 100% { transform: scale(1.03,.98) rotate(1.2deg); } }
@keyframes ember-rise { 0% { opacity: 0; transform: translate(0,0) scale(1); } 18% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--drift),-65px) scale(.3); } }
@keyframes welcome-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes point-down { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes ring-breathe { 0%,100% { opacity: .45; transform: scale(.98); } 50% { opacity: .8; transform: scale(1.03); } }
@media (max-width: 600px) {
  .scene-header { top: max(17px, env(safe-area-inset-top)); left: 18px; right: 18px; gap: 9px; }
  .wordmark { font-size: 10px; gap: 7px; letter-spacing: .07em; }
  .quiet-button { padding: 8px 10px; font-size: 11px; }
  .scene-tools { gap: 5px; }
  h1 { font-size: clamp(33px, 9.5vw, 46px); line-height: 1.17; }
  .welcome-content h1 { font-size: clamp(33px, 9.5vw, 46px); }
  .eyebrow { font-size: 9px; letter-spacing: .22em; margin-bottom: 22px; }
  .intro-description, .welcome-body { font-size: 13px; line-height: 1.8; max-width: 310px; margin-top: 21px; }
  .signature { margin-top: 20px; font-size: 20px; }
  .campfire-prompt { min-width: 174px; padding: 11px 20px; bottom: calc(100% + 24px); }
  .campfire-prompt > span:first-child { font-size: 14px; }
  .prompt-detail { font-size: 12px; }
  .scene-footer { font-size: 7px; bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (min-width: 601px) and (max-height: 700px) {
  h1 { font-size: 42px; }
  .eyebrow { margin-bottom: 14px; }
  .intro-description, .welcome-body { margin-top: 16px; }
  .small-ornament { margin-top: 17px; }
}

.story-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #b99575;
  border-radius: 30px;
  background: #fffcf5;
  color: #764e30;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.welcome-content .story-link { margin-top: 15px; pointer-events: auto; }
.story-link:hover, .story-button:hover:not([aria-disabled="true"]) { background: #fff; border-color: #936039; }

.story-section {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: max(720px, 100svh);
  overflow: hidden;
  /* Keep the illustrated campfire below the controls when content grows. */
  padding: clamp(24px, 5vh, 56px) 20px max(48px, calc(var(--art-size) * .26));
  background: #c2d1e5;
}
.story-artwork { pointer-events: none; }
.story-content { position: relative; z-index: 4; width: min(100%, 495px); text-align: center; }
.story-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: #344b64;
  font-size: 13px;
  text-underline-offset: 4px;
}
.story-content h2 {
  margin: 4px 0 20px;
  font: 400 clamp(42px, 7vw, 64px)/1.05 Georgia, serif;
  letter-spacing: -.045em;
}
.story-content h2:focus { outline: none; }
.story-photo {
  margin: 0;
  padding: clamp(8px, 2vw, 14px);
  border: 1px solid #c8b7a5;
  border-radius: 5px;
  background: #fffcf5;
  box-shadow: 0 12px 34px #35496324;
}
.story-photo-area { display: grid; aspect-ratio: 3 / 2; overflow: hidden; background: #e7e9ed; }
.story-photo-area img { display: block; width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.story-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px dashed #8798a9;
  background: linear-gradient(150deg, #f8efe3, #dfe8f2);
  color: #445c75;
  font-size: 13px;
}
.story-placeholder > span:first-child { color: #9b714f; font: 36px/1 Georgia, serif; }
.story-photo figcaption {
  min-height: 51px;
  padding: 14px 10px 4px;
  font: italic 17px/1.4 Georgia, serif;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.story-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 12px; }
.story-controls p { min-width: 7rem; margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.story-button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #a8896b;
  border-radius: 50%;
  background: #fffcf5;
  color: #684527;
  font-size: 19px;
  cursor: pointer;
}
.story-button[aria-disabled="true"] { opacity: .55; cursor: default; }
.story-album { margin-top: 16px; padding: 11px 16px 14px; border-radius: 14px; background: #fffaf0ed; }
.story-album h3 { margin: 0 0 5px; font: 400 22px/1.2 Georgia, serif; }
.story-album p { margin: 0; color: var(--soft-ink); font-size: 13px; }
.story-album .story-link { margin-top: 5px; }

.love-chapter-link { margin-top: 16px; }
.love-section { background: #888dbb; }
.love-content { width: min(100%, 650px); color: #27243c; }
.love-content .story-back { color: inherit; }
.love-content h2 { margin-bottom: 10px; font-size: clamp(36px, 6vw, 60px); text-wrap: balance; }
.love-instructions { margin: 0 0 20px; font-size: 14px; line-height: 1.45; }
.love-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.love-card {
  display: grid;
  min-height: 128px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #56394e;
  cursor: pointer;
  perspective: 850px;
}
.love-card-face {
  display: grid;
  grid-area: 1 / 1;
  place-content: center;
  gap: 7px;
  padding: 13px 10px;
  border: 1px solid #9b7b8d;
  border-radius: inherit;
  box-shadow: 0 5px 14px #33263d23;
  backface-visibility: hidden;
  transition: transform .45s cubic-bezier(.23,.68,.32,1);
}
.love-card-front {
  background: linear-gradient(145deg, #fff9ed, #f0e2ef);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.love-card-front .heart { color: #82556b; font: 32px/1 Georgia, serif; }
.love-card-back {
  background: #fffaf3;
  font: italic clamp(15px, 2vw, 19px)/1.35 Georgia, serif;
  white-space: pre-line;
  overflow-wrap: anywhere;
  transform: rotateY(-180deg);
}
.love-card[aria-expanded="true"] .love-card-front { transform: rotateY(180deg); }
.love-card[aria-expanded="true"] .love-card-back { transform: rotateY(0); }
.love-card:hover .love-card-face { border-color: #65455b; }
.love-card:focus-visible { outline-color: #382139; outline-offset: 3px; }

@media (max-width: 540px) {
  .love-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .love-card { min-height: 92px; }
}

.letter-section { background: #626b9a; }
.letter-content { width: min(100%, 520px); color: #fff8ed; }
.letter-content .story-back { color: #fff8ed; }
.letter-mechanism { width: min(100%, 400px); margin: clamp(44px, 8vh, 82px) auto 15px; }
.letter-reveal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  margin-bottom: -12px;
  opacity: 0;
  transition: grid-template-rows .58s ease, opacity .25s ease;
}
.letter-paper-window { min-height: 0; overflow: hidden; }
.letter-paper {
  margin: 1px 5% 0;
  padding: clamp(10px, 3vw, 19px) clamp(10px, 3vw, 19px) 24px;
  border: 1px solid #d0b491;
  background: #fff8e9;
  box-shadow: inset 0 0 0 5px #fff8e9, inset 0 0 0 6px #d0b491;
  color: #765941;
  transform: translateY(100%);
  transition: transform .58s ease;
}
.letter-photo-link { display: grid; place-items: center; background: #f9f0e0; }
.letter-photo-link:focus-visible { outline-offset: -3px; }
.letter-photo-link img { display: block; width: 100%; height: auto; max-height: 660px; object-fit: contain; }
.letter-placeholder {
  display: grid;
  place-items: center;
  min-height: clamp(200px, 35svh, 320px);
  margin: 0;
  padding: 20px;
  border: 1px dashed #c7aa85;
  font: italic 18px/1.4 Georgia, serif;
}
.letter-envelope {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.68;
  min-height: 143px;
  align-items: end;
  justify-items: center;
  padding: 16px;
  border: 1px solid #b9987f;
  border-radius: 9px;
  background: #dec0a7;
  color: #65442d;
  box-shadow: 0 16px 30px #27244036;
  cursor: pointer;
}
.letter-envelope::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, #f3e0c8, #ead0b4);
  clip-path: polygon(0 12%, 50% 61%, 100% 12%, 100% 100%, 0 100%);
  content: "";
}
.letter-flap {
  position: absolute;
  z-index: 4;
  inset: 0 0 auto;
  height: 62%;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(170deg, #f9ead3, #dfbaa0);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: perspective(700px) rotateX(0);
  transform-origin: top;
  transition: transform .4s ease, z-index 0s .18s;
}
.letter-seal {
  position: absolute;
  z-index: 5;
  top: 60%;
  left: 50%;
  display: grid;
  width: 47px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #8d4b52;
  border-radius: 50%;
  background: #a45c62;
  color: #fff4df;
  font: 25px/1 Georgia, serif;
  transform: translate(-50%, -50%);
  transition: opacity .18s ease;
}
.letter-envelope-label { position: relative; z-index: 5; font-size: 13px; font-weight: 600; }
.letter-envelope:hover .letter-envelope-label { text-decoration: underline; text-underline-offset: 4px; }
.letter-envelope:focus-visible, .letter-content .story-back:focus-visible { outline-color: #fff8e9; }
.letter-mechanism.is-open .letter-reveal { grid-template-rows: 1fr; opacity: 1; transition-delay: .23s; }
.letter-mechanism.is-open .letter-paper { transform: translateY(0); transition-delay: .23s; }
.letter-mechanism.is-open .letter-flap { z-index: 0; transform: perspective(700px) rotateX(180deg); }
.letter-mechanism.is-open .letter-seal { opacity: 0; }

.trip-section { background: #36487d; }
.trip-content { width: min(100%, 850px); color: #fff8ed; }
.trip-content .story-back { color: inherit; }
.trip-content h2 { text-wrap: balance; }
.trip-instructions { margin: 0 0 24px; font-size: 14px; line-height: 1.5; }
.trip-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.trip-gifts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.trip-option {
  --wrapping: #9b5965;
  --lid: #aa6872;
  --ribbon: #f3d5a4;
  display: grid;
  min-height: 180px;
  align-items: start;
}
.trip-option:nth-child(2) { --wrapping: #f7f7fa; --lid: #fff; --ribbon: #f1d9ae; }
.trip-option:nth-child(3) { --wrapping: #666c9c; --lid: #777da9; --ribbon: #ead5bd; }
.trip-gift, .trip-card { position: relative; grid-area: 1 / 1; min-width: 0; }
.trip-gift {
  z-index: 2;
  display: grid;
  width: 100%;
  min-height: 180px;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.trip-gift:hover .trip-gift-label { text-decoration: underline; text-underline-offset: 4px; }
.trip-gift:focus-visible, .trip-content .story-back:focus-visible { outline-color: #fff8ed; }
.trip-box { position: relative; display: block; width: min(100%, 165px); height: 122px; }
.trip-box-base, .trip-box-lid {
  position: absolute;
  left: 50%;
  background: linear-gradient(90deg, transparent 43%, var(--ribbon) 43% 57%, transparent 57%);
  transform: translateX(-50%);
}
.trip-box-base {
  bottom: 0;
  width: 90%;
  height: 69%;
  border-radius: 3px 3px 9px 9px;
  background-color: var(--wrapping);
  box-shadow: 0 10px 22px #221a353b;
}
.trip-box-lid {
  bottom: 67%;
  width: 100%;
  height: 22%;
  border-radius: 5px;
  background-color: var(--lid);
  box-shadow: 0 3px 5px #2c1b3444;
}
.trip-box-lid::before, .trip-box-lid::after {
  position: absolute;
  bottom: 98%;
  width: 30px;
  height: 12px;
  border: 4px solid var(--ribbon);
  content: "";
}
.trip-box-lid::before { right: 49%; border-radius: 70% 65% 7% 70%; transform: rotate(22deg); transform-origin: right bottom; }
.trip-box-lid::after { left: 49%; border-radius: 65% 70% 70% 7%; transform: rotate(-22deg); transform-origin: left bottom; }
.trip-gift-label { font-size: 13px; font-weight: 600; }
.trip-card {
  margin: 0;
  padding: 9px;
  border: 1px solid #c4aa89;
  border-radius: 12px;
  background: #fffcf4;
  color: #302a43;
  box-shadow: 0 9px 25px #231a3940;
}
.trip-card:focus, .trip-result:focus { outline: none; }
.trip-image { display: grid; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; background: #ece6ed; }
.trip-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.trip-photo-placeholder { display: grid; place-items: center; margin: 0; padding: 12px; color: #51465d; font-size: 13px; }
.trip-card figcaption { padding: 11px 5px; overflow-wrap: anywhere; }
.trip-destination { display: block; font: 400 21px/1.2 Georgia, serif; }
.trip-caption { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; white-space: pre-line; }
.trip-choice { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border-top: 1px solid #ded3c5; font-size: 13px; }
.trip-choice input { width: 17px; height: 17px; accent-color: #754f67; }
.trip-option.is-chosen .trip-card { outline: 3px solid #f3d5a4; }
.trip-confirm, .trip-result { margin-top: 20px; }
.trip-confirm:disabled { opacity: .8; cursor: default; }
.trip-result { padding: 11px 16px; border-radius: 12px; background: #fff8e9; color: #302a43; font: 400 23px/1.3 Georgia, serif; }
.trip-option.is-unwrapped .trip-gift { visibility: hidden; animation: trip-wrap-away .36s ease both; pointer-events: none; }
.trip-option.is-unwrapped .trip-box-lid { animation: trip-lid-away .36s ease both; }
.trip-option.is-unwrapped .trip-card { animation: trip-card-out .42s ease both; }
@keyframes trip-wrap-away { from { visibility: visible; opacity: 1; } to { visibility: hidden; opacity: 0; } }
@keyframes trip-lid-away { to { transform: translate(-44%, -76%) rotate(12deg); } }
@keyframes trip-card-out { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
  .trip-gifts { grid-template-columns: 1fr; width: min(100%, 340px); margin-inline: auto; }
}

.trip-result[hidden] + .finale-link { display: none; }
.finale-section {
  align-content: center;
  min-height: max(640px, 100svh);
  padding-top: 72px;
  background: #172349;
}
.finale-back {
  position: absolute;
  z-index: 4;
  top: clamp(12px, 4vh, 30px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  color: #fff5e6;
}
.finale-content { width: min(100%, 650px); color: #fff5e6; }
.finale-content h2 { margin-bottom: 16px; text-wrap: balance; }
.finale-content p { margin: 0 auto 25px; font: italic clamp(19px, 3vw, 25px)/1.4 Georgia, serif; text-wrap: balance; }
.finale-back:focus-visible, .wish-button:focus-visible { outline-color: #fff5e6; }
.wish-button[aria-disabled="true"] { cursor: default; }
.wish-sky { position: absolute; inset: 0; pointer-events: none; }
.wish-star, .wish-moon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  width: 4.8%;
  aspect-ratio: 1;
  opacity: 0;
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
}
.wish-star { background: radial-gradient(circle, #fff9d7 1%, #ffe9a788 12%, #ffd68a30 36%, transparent 70%); }
.wish-moon {
  width: 17%;
  background: radial-gradient(circle, #fff1c852 0%, #ffe1a132 20%, #ffdb9224 35%, transparent 71%);
}
.has-wished .wish-star { opacity: .72; animation: wish-twinkle 3.6s var(--delay) ease-in-out infinite both; }
.has-wished .wish-moon { opacity: .85; animation: wish-moon-glow 5.9s ease-in-out infinite; }
@keyframes wish-twinkle {
  0%, 100% { opacity: .22; transform: translate(-50%, -50%) scale(.68); }
  42% { opacity: 1; transform: translate(-50%, -50%) scale(1.16); }
  72% { opacity: .45; transform: translate(-50%, -50%) scale(.86); }
}
@keyframes wish-moon-glow {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.88); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ember { display: none; }
}
