:root {
  color-scheme: dark;
  --night: #100f29;
  --night-soft: #191735;
  --violet: #9586dd;
  --violet-light: #c7bbff;
  --rose: #f18dab;
  --rose-light: #ffc1d0;
  --cream: #fff7f2;
  --muted: #c8bfd9;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ffd3df; outline-offset: 5px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .7rem 1rem; border-radius: 999px; color: var(--night); background: var(--cream); transform: translateY(-180%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.gate, .scene { position: relative; isolation: isolate; min-height: 100svh; overflow: hidden; background: radial-gradient(ellipse at 50% 43%, #242047 0%, #17152f 45%, #100f29 100%); }
.gate { display: grid; place-items: center; padding: 2.5rem 1.25rem calc(4rem + var(--safe-bottom)); }
.gate__content { position: relative; z-index: 2; width: min(100%, 34rem); text-align: center; animation: float-in 1.05s cubic-bezier(.2,.7,.2,1) both; }
.gate__glow { position: absolute; z-index: 0; width: min(76vw, 35rem); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(213,111,175,.15), rgba(120,91,197,.07) 44%, transparent 71%); filter: blur(10px); pointer-events: none; }
.gate__ornament { display: flex; align-items: center; justify-content: center; gap: .65rem; color: #c2a7eb; font-size: .8rem; margin-bottom: .5rem; }
.gate__ornament i { display: block; width: 3rem; height: 1px; background: linear-gradient(90deg, transparent, #a58dce, transparent); }
.heart-orbit { position: relative; display: grid; place-items: center; width: 9rem; height: 9rem; margin: .3rem auto 1.1rem; }
.heart-orbit__heart { position: relative; z-index: 2; color: #f08aaf; font-size: 5.4rem; line-height: 1; text-shadow: 0 0 18px rgba(255,139,180,.8), 0 0 48px rgba(235,109,186,.58), 0 0 90px rgba(150,115,230,.45); animation: heartbeat 3s ease-in-out infinite; }
.heart-orbit__ring { position: absolute; inset: 12%; border: 1px solid rgba(230,183,239,.25); border-radius: 50%; animation: orbit-breathe 4s ease-in-out infinite; }
.heart-orbit__ring--two { inset: 0; border-color: rgba(193,161,242,.14); animation-delay: -1.5s; }
.heart-orbit__spark { position: absolute; color: #fff0f5; text-shadow: 0 0 12px #ffc6da; animation: twinkle 2.8s ease-in-out infinite; }
.heart-orbit__spark--one { top: 8%; right: 10%; font-size: 1.4rem; }
.heart-orbit__spark--two { left: 4%; bottom: 18%; font-size: 1.1rem; animation-delay: -1s; }
.eyebrow { margin: 0 0 .9rem; color: #d2bce3; font-size: .66rem; font-weight: 600; letter-spacing: .23em; line-height: 1.7; text-transform: uppercase; }
.gate__eyebrow { margin-bottom: .65rem; }
.gate__title, .scene-title { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; }
.gate__title { font-size: clamp(2.15rem, 8vw, 3.6rem); line-height: .98; }
.gate__title em, .scene-title em { color: var(--rose-light); font-weight: 400; }
.gate__question { margin: 1.5rem 0 .8rem; color: #eee5f4; font-family: var(--serif); font-size: 1.38rem; }
.gate__form { display: flex; flex-direction: column; align-items: center; width: min(100%, 19rem); margin-inline: auto; }
.gate__form input { width: 100%; height: 3.55rem; padding: 0 1rem; border: 1px solid rgba(221,201,242,.28); border-radius: .9rem; color: #fff4f8; background: rgba(255,255,255,.065); text-align: center; font-size: 1.2rem; letter-spacing: .62em; transition: border-color .2s, box-shadow .2s, background .2s; }
.gate__form input::placeholder { color: rgba(255,232,242,.45); letter-spacing: .5em; }
.gate__form input:focus { border-color: rgba(255,181,208,.75); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(233,127,172,.11); outline: none; }
.gate__form input[aria-invalid='true'] { border-color: #ff9bb8; animation: nudge .34s ease-in-out; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.25rem; padding: .8rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer; font-size: .88rem; font-weight: 600; transition: transform .22s, box-shadow .22s, background .22s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.button--glow { width: 100%; min-height: 3.35rem; margin-top: .85rem; color: #291b35; background: linear-gradient(115deg, #ffd5dc, #f0a9c8 56%, #d6b8fa); box-shadow: 0 8px 26px rgba(235,134,184,.25); }
.button--glow:hover { box-shadow: 0 10px 34px rgba(235,134,184,.4); }
.gate__message { min-height: 1.45rem; margin: .65rem 0 0; color: #ffbfd1; font-size: .81rem; }
.gate__footnote { margin: .8rem 0 0; color: rgba(225,215,237,.57); font-size: .7rem; letter-spacing: .035em; }
.gate__bottom-note { position: absolute; bottom: calc(1.2rem + var(--safe-bottom)); color: rgba(219,207,237,.45); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; }
.gate.is-unlocking .gate__content { animation: unlock-bloom .85s cubic-bezier(.2,.75,.25,1) forwards; }
.gate.is-unlocking .gate__glow { animation: pink-flash .85s ease-out forwards; }

.starfield { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.star { position: absolute; display: block; width: var(--star-size); height: var(--star-size); border-radius: 50%; background: #fff8fd; opacity: .3; box-shadow: 0 0 8px 1px rgba(219,200,255,.62); animation: star-twinkle var(--star-duration) ease-in-out var(--star-delay) infinite alternate; }
.star:nth-child(5n) { background: #fbb9d1; box-shadow: 0 0 9px 1px rgba(255,153,196,.52); }
.shooting-star { position: absolute; top: 19%; left: 68%; width: 4.7rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,227,243,.8), transparent); opacity: 0; transform: rotate(-35deg); animation: shoot 8s ease-in-out 2s infinite; }

.story { position: relative; overflow: clip; }
.scene { display: grid; place-items: center; min-height: max(100svh, 43rem); padding: clamp(5rem, 9vh, 7.5rem) 1.25rem calc(5rem + var(--safe-bottom)); scroll-margin-top: 0; }
.scene__content { position: relative; z-index: 2; width: min(100%, 63rem); margin: auto; text-align: center; }
.scene__glow { position: absolute; z-index: 0; width: min(100vw, 52rem); aspect-ratio: 1; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.scene__glow--arrival { top: 7%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(218,109,176,.14), rgba(95,91,192,.1) 42%, transparent 70%); }
.wordmark { display: flex; align-items: center; justify-content: center; gap: .85rem; margin-bottom: 1rem; color: #d6c7e5; font-size: .65rem; letter-spacing: .21em; text-transform: uppercase; }
.wordmark__star { color: #f5c3d6; font-size: .78rem; }
.arrival-heart { position: relative; display: grid; place-items: center; width: 8.6rem; height: 8.6rem; margin: 0 auto .45rem; }
.arrival-heart span { color: #f08aac; font-size: 5.7rem; line-height: 1; text-shadow: 0 0 20px rgba(254,137,181,.76), 0 0 62px rgba(210,117,223,.6); animation: heartbeat 3.3s ease-in-out infinite; }
.arrival-heart i { position: absolute; top: .4rem; right: .6rem; color: #fff1f6; font-size: 1.5rem; font-style: normal; animation: twinkle 2.2s ease-in-out infinite; }
.scene-title--arrival { font-size: clamp(2.55rem, 8vw, 5.8rem); line-height: .95; }
.scene-title--arrival span { display: inline-block; margin-left: .15em; font-family: var(--sans); font-size: .45em; vertical-align: .12em; }
.scene-copy { color: #d5cde0; font-size: clamp(.92rem, 2.2vw, 1.08rem); font-weight: 400; line-height: 1.8; }
.scene-copy--arrival { max-width: 31rem; margin: 1.3rem auto 0; }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: .25rem; margin: clamp(2.3rem, 6vh, 4rem) auto 0; color: #d5c2de; text-decoration: none; }
.scroll-cue__text { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue__arrow { color: #f1adc7; font-size: 2rem; line-height: .9; animation: arrow-bob 1.7s ease-in-out infinite; }
.scene-index { position: absolute; z-index: 2; right: max(1.25rem, env(safe-area-inset-right)); bottom: calc(1.2rem + var(--safe-bottom)); color: rgba(232,220,240,.57); font-family: var(--serif); font-size: .9rem; letter-spacing: .12em; }
.scene-index i { margin-inline: .22rem; color: #d18eae; font-style: normal; }

.scene--poem { background: radial-gradient(ellipse at 50% 37%, #282141 0%, #19172e 50%, #131329 100%); }
.scene__content--poem { max-width: 47rem; }
.moon { position: absolute; top: 8%; right: 12%; width: clamp(3.2rem, 9vw, 6rem); aspect-ratio: 1; border-radius: 50%; background: #fff0d8; box-shadow: 0 0 18px rgba(255,241,220,.45), 0 0 65px rgba(250,221,196,.19); opacity: .85; }
.moon::after { position: absolute; top: -8%; left: 22%; width: 100%; height: 100%; border-radius: 50%; background: #282141; content: ''; }
.scene-title--poem { margin-bottom: 1.4rem; font-size: clamp(2.15rem, 6vw, 3.8rem); }
.poem-card { position: relative; max-width: 39rem; margin: 0 auto; padding: clamp(1.55rem, 5vw, 2.6rem) clamp(1rem, 5vw, 3rem); border: 1px solid rgba(230,207,232,.14); border-radius: 1.2rem; background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); box-shadow: 0 18px 70px rgba(6,6,22,.16); backdrop-filter: blur(4px); }
.poem-card::before, .poem-card::after { position: absolute; left: 50%; width: 2.7rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(240,180,210,.8), transparent); content: ''; transform: translateX(-50%); }
.poem-card::before { top: .78rem; } .poem-card::after { bottom: .78rem; }
.poem-card__ornament { display: block; margin-bottom: .5rem; color: #e8adc8; font-family: var(--serif); font-size: 2rem; line-height: .85; }
.poem-card__ornament--bottom { margin: .5rem 0 0; transform: rotate(180deg); }
.poem { margin: 0; padding: 0; list-style: none; }
.poem li { color: #f7edf2; font-family: var(--serif); font-size: clamp(1.18rem, 4.4vw, 1.62rem); line-height: 1.35; opacity: 0; animation: none; }
.scene--poem.is-visible .poem li { animation: poem-line-in .65s ease-out forwards; }
.poem li:nth-child(1) { animation-delay: .18s; } .poem li:nth-child(2) { animation-delay: .42s; } .poem li:nth-child(3) { animation-delay: .66s; } .poem li:nth-child(4) { animation-delay: .9s; }
.poem li:nth-child(5) { animation-delay: 1.14s; } .poem li:nth-child(6) { animation-delay: 1.38s; } .poem li:nth-child(7) { animation-delay: 1.62s; } .poem li:nth-child(8) { animation-delay: 1.86s; }
.flower-garden { position: absolute; z-index: 1; right: 0; bottom: 2.4rem; left: 0; display: flex; align-items: end; justify-content: space-around; height: 5rem; overflow: hidden; pointer-events: none; opacity: .45; }
.flower-garden span { color: #efb9ce; font-size: clamp(1.5rem, 5vw, 2.8rem); transform-origin: center bottom; animation: flower-sway 3s ease-in-out infinite alternate; }
.flower-garden span:nth-child(2n) { color: #d6c2fd; animation-delay: -1.4s; font-size: clamp(1.1rem, 4vw, 2.15rem); }
.flower-garden span:nth-child(3n) { animation-delay: -.8s; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.6rem; padding: .55rem .3rem; color: #e3cddd; font-size: .72rem; letter-spacing: .07em; text-decoration: none; transition: color .2s, gap .2s; }
.text-link:hover { gap: .8rem; color: #fff; }
.text-link span { color: #eea8c5; font-size: 1.05rem; }

.scene--penguins { background: radial-gradient(ellipse at 50% 45%, #22213e, #15162e 60%, #101128); }
.scene__content--penguins { max-width: 57rem; }
.moon--penguins { top: 10%; right: 15%; width: clamp(2.8rem, 7vw, 4.6rem); background: #f4e7da; opacity: .68; }
.moon--penguins::after { background: #20203b; }
.cloud { position: absolute; z-index: 0; width: 8rem; height: 1.55rem; border-radius: 5rem; background: rgba(202,197,227,.08); filter: blur(1px); animation: cloud-drift 26s linear infinite; }
.cloud::before, .cloud::after { position: absolute; bottom: .18rem; border-radius: 50%; background: inherit; content: ''; }
.cloud::before { left: 1.1rem; width: 2.5rem; height: 2.5rem; } .cloud::after { right: 1.25rem; width: 2rem; height: 2rem; }
.cloud--one { top: 28%; left: -10%; } .cloud--two { top: 20%; left: -20%; transform: scale(.68); animation-delay: -14s; animation-duration: 33s; }
.scene-title--penguins { font-size: clamp(2.1rem, 6vw, 3.9rem); }
.penguin-stage { --penguin-meet: clamp(2rem, 13vw, 6.75rem); position: relative; width: min(100%, 43rem); height: clamp(11rem, 37vw, 17rem); margin: .3rem auto .4rem; }
.penguin-stage__ground { position: absolute; right: 10%; bottom: 1.7rem; left: 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(208,207,235,.24), transparent); }
.penguin { position: absolute; z-index: 2; bottom: 1.85rem; display: flex; width: clamp(4.5rem, 17vw, 6.7rem); height: clamp(7rem, 25vw, 9rem); flex-direction: column; align-items: center; transform-origin: 50% 90%; }
.penguin--left { left: 20%; }
.penguin--right { right: 20%; transform: scaleX(-1); }
.scene.is-visible .penguin--left { animation: penguin-approach-left 2.1s cubic-bezier(.2,.7,.25,1) .35s both; }
.scene.is-visible .penguin--right { animation: penguin-approach-right 2.1s cubic-bezier(.2,.7,.25,1) .35s both; }
.penguin__body { position: relative; display: block; width: 78%; height: 83%; margin-top: .75rem; border-radius: 52% 52% 44% 44%; background: #24253a; box-shadow: inset -7px -5px 0 rgba(8,10,25,.18), 0 12px 30px rgba(7,8,20,.18); }
.penguin__body::before { position: absolute; right: 15%; bottom: 1%; left: 15%; height: 65%; border-radius: 55% 55% 46% 46%; background: linear-gradient(180deg, #fffdf7, #efe9eb); content: ''; }
.penguin__body::after { position: absolute; top: -6%; left: 20%; width: 15%; height: 18%; border-radius: 50%; background: #24253a; box-shadow: 2.35rem .05rem 0 #24253a; content: ''; }
.penguin__eye { position: absolute; z-index: 2; top: 19%; width: .48rem; height: .57rem; border-radius: 50%; background: #fff; }
.penguin__eye::after { position: absolute; top: .16rem; left: .18rem; width: .18rem; height: .22rem; border-radius: 50%; background: #252338; content: ''; }
.penguin__eye--one { left: 25%; } .penguin__eye--two { right: 25%; }
.penguin__beak { position: absolute; z-index: 3; top: 34%; left: 50%; width: 1rem; height: .7rem; background: #f3aa6d; clip-path: polygon(0 0, 100% 20%, 50% 100%); transform: translateX(-50%); }
.penguin__wing { position: absolute; z-index: 2; top: 34%; left: 3%; width: 23%; height: 40%; border-radius: 55% 40% 50% 50%; background: #292a40; transform: rotate(18deg); transform-origin: top center; }
.penguin__feet { position: absolute; bottom: 0; display: flex; gap: .5rem; }
.penguin__feet i { display: block; width: 1rem; height: .45rem; border-radius: 90% 40% 50% 45%; background: #eea269; }
.penguin--right .penguin__feet { flex-direction: row-reverse; }
.scene.is-visible .penguin__wing { animation: wing-wave .34s ease-in-out 8 alternate; }
.penguin-quote { width: min(100%, 38rem); min-height: 3.2rem; margin: .55rem auto 0; color: #fff1f4; font-family: var(--serif); font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.25; opacity: 0; transform: translateY(10px); }
.scene.is-visible .penguin-quote { animation: quote-arrive .85s ease-out 2.6s forwards; }
.penguin-hearts { position: absolute; z-index: 1; right: 12%; bottom: 25%; left: 12%; height: 50%; pointer-events: none; }
.penguin-hearts span { position: absolute; bottom: 4%; color: #f4a9c4; font-size: 1.3rem; text-shadow: 0 0 18px rgba(240,151,190,.4); animation: float-heart 6s ease-in-out infinite; }
.penguin-hearts span:nth-child(1) { left: 18%; animation-delay: -.5s; }
.penguin-hearts span:nth-child(2) { left: 34%; font-size: 1.1rem; animation-delay: -2.4s; }
.penguin-hearts span:nth-child(3) { right: 17%; animation-delay: -3.8s; }
.penguin-hearts span:nth-child(4) { right: 35%; color: #e7d6fb; animation-delay: -1.5s; }
.penguin-hearts span:nth-child(5) { left: 50%; font-size: .9rem; animation-delay: -4.2s; }

.scene--letter { background: radial-gradient(ellipse at 50% 48%, #25203d 0%, #18162d 58%, #111027 100%); }
.scene__content--letter { max-width: 50rem; }
.scene-title--letter { max-width: 42rem; margin: 0 auto 1.3rem; font-size: clamp(2rem, 5.5vw, 3.4rem); }
.scene__glow--letter { top: 18%; left: 50%; width: min(83vw, 34rem); background: radial-gradient(circle, rgba(222,160,203,.12), transparent 72%); transform: translateX(-50%); }
.envelope { position: relative; display: block; width: min(78vw, 18rem); height: 12.1rem; margin: 1.8rem auto 1rem; padding: 0; border: 0; background: transparent; cursor: pointer; perspective: 850px; transition: transform .28s; }
.envelope:hover { transform: translateY(-4px); }
.envelope:focus-visible { outline-offset: 9px; border-radius: 1rem; }
.envelope__body { position: absolute; right: 0; bottom: 0; left: 0; height: 8.7rem; overflow: hidden; border: 1px solid rgba(255,224,228,.68); border-radius: .35rem; background: linear-gradient(145deg, #f8d6d7, #edbdcb 55%, #e6b6d3); box-shadow: 0 18px 35px rgba(8,8,24,.28); }
.envelope__body::before, .envelope__body::after { position: absolute; bottom: -2.25rem; width: 12rem; height: 12rem; background: #eebfce; content: ''; transform: rotate(45deg); }
.envelope__body::before { left: -7.15rem; border-right: 1px solid rgba(179,124,160,.24); }
.envelope__body::after { right: -7.15rem; border-left: 1px solid rgba(179,124,160,.24); }
.envelope__flap { position: absolute; z-index: 3; top: 3.4rem; left: 50%; width: 0; height: 0; border-right: calc(min(78vw, 18rem) / 2) solid transparent; border-left: calc(min(78vw, 18rem) / 2) solid transparent; border-top: 5.2rem solid #f3cbd6; filter: drop-shadow(0 2px 1px rgba(138,94,128,.12)); transform: translateX(-50%); transform-origin: top center; transition: transform .7s cubic-bezier(.2,.7,.2,1), z-index 0s .32s; }
.envelope__seal { position: absolute; z-index: 4; top: 6.3rem; left: 50%; display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff1f5; background: #bb698f; box-shadow: 0 3px 12px rgba(95,32,71,.2); transform: translateX(-50%); transition: opacity .2s, transform .3s; }
.envelope__hint { position: absolute; z-index: 5; top: .1rem; right: 0; left: 0; color: #f2dbe4; font-family: var(--serif); font-size: 1.35rem; }
.envelope__sparkle { position: absolute; z-index: 1; top: 5.7rem; right: 1rem; color: #fff0f7; font-size: 1.5rem; opacity: .8; animation: twinkle 2s ease-in-out infinite; }
.envelope.is-open .envelope__flap { z-index: 0; transform: translateX(-50%) rotateX(180deg); }
.envelope.is-open .envelope__seal { opacity: 0; transform: translateX(-50%) scale(.6); }
.envelope.is-open .envelope__hint { opacity: .55; }
.letter { position: relative; max-width: 37rem; margin: 1rem auto 1.5rem; padding: clamp(1.5rem, 5vw, 2.6rem); border: 1px solid rgba(255,243,228,.5); border-radius: .35rem; color: #453341; background: #fbf0e4; box-shadow: 0 18px 60px rgba(7,7,22,.36); text-align: left; transform-origin: top center; animation: letter-unfold .85s cubic-bezier(.16,.8,.28,1) both; }
.letter::before { position: absolute; inset: .45rem; border: 1px solid rgba(177,127,140,.2); content: ''; pointer-events: none; }
.letter__topline { display: flex; justify-content: space-between; margin-bottom: 1.2rem; color: #a56884; font-size: .63rem; letter-spacing: .18em; text-transform: uppercase; }
.letter p { position: relative; margin: .72rem 0; font-family: var(--serif); font-size: clamp(1.05rem, 3.4vw, 1.25rem); line-height: 1.46; }
.letter__signature { padding-top: .1rem; color: #955e7a; font-size: 1.35rem !important; font-style: italic; text-align: right; }

.scene--finale { background: radial-gradient(ellipse at 50% 42%, #733b72 0%, #493267 35%, #242044 68%, #17162f 100%); }
.scene__glow--finale { top: 50%; left: 50%; width: min(100vw, 56rem); background: radial-gradient(circle, rgba(250,146,192,.21), rgba(174,108,218,.13) 43%, transparent 70%); transform: translate(-50%, -50%); animation: finale-glow 5s ease-in-out infinite alternate; }
.scene__content--finale { max-width: 46rem; }
.scene--finale .eyebrow { color: #f1c5df; }
.final-heart { position: relative; margin: -.1rem auto 0; color: #ffabc9; font-size: clamp(6rem, 24vw, 10rem); line-height: 1.13; text-shadow: 0 0 20px rgba(255,151,198,.75), 0 0 58px rgba(245,130,204,.52), 0 0 110px rgba(174,134,255,.38); animation: heartbeat 3.2s ease-in-out infinite; }
.final-heart span { position: absolute; top: 7%; right: 16%; color: #fff1fa; font-size: 1.8rem; text-shadow: 0 0 15px white; animation: twinkle 2s ease-in-out infinite; }
.scene-title--finale { font-size: clamp(2.8rem, 9vw, 5.3rem); line-height: .98; }
.finale__promise { margin: 1.15rem 0 0; color: #f6d8e9; font-family: var(--serif); font-size: clamp(1.7rem, 5.5vw, 2.5rem); opacity: 0; }
.scene--finale.is-visible .finale__promise { animation: poem-line-in .8s ease-out .55s forwards; }
.finale__promise span { display: inline-block; font-family: var(--sans); font-size: .6em; vertical-align: .08em; }
.button--restart { margin-top: 2.3rem; border: 1px solid rgba(255,223,239,.38); color: #fff4f7; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.button--restart:hover { background: rgba(255,255,255,.15); box-shadow: 0 8px 28px rgba(12,8,32,.17); }
.button--restart span { font-size: 1.15rem; }
.finale__signature { margin: 1.4rem 0 0; color: rgba(246,222,239,.68); font-family: var(--serif); font-size: 1.08rem; font-style: italic; letter-spacing: .035em; }
.final-particles { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.final-particles span { position: absolute; top: -5%; color: rgba(255,235,247,.78); font-size: 1.3rem; animation: particle-fall 10s linear infinite; }
.final-particles span:nth-child(1) { left: 9%; animation-delay: -2s; } .final-particles span:nth-child(2) { left: 24%; animation-delay: -7s; font-size: 1.6rem; }
.final-particles span:nth-child(3) { left: 38%; animation-delay: -4s; font-size: 1.9rem; } .final-particles span:nth-child(4) { left: 63%; animation-delay: -8s; }
.final-particles span:nth-child(5) { left: 78%; animation-delay: -1s; } .final-particles span:nth-child(6) { left: 89%; animation-delay: -5.5s; font-size: 1.7rem; }
.final-particles span:nth-child(7) { left: 52%; animation-delay: -3s; font-size: 1rem; } .final-particles span:nth-child(8) { left: 16%; animation-delay: -9s; }
.scene-index--final { color: rgba(255,235,246,.73); }
.music-toggle { position: fixed; z-index: 20; top: max(1rem, env(safe-area-inset-top)); right: max(1rem, env(safe-area-inset-right)); display: inline-flex; align-items: center; gap: .48rem; min-height: 2.75rem; padding: .45rem .85rem; border: 1px solid rgba(239,217,240,.24); border-radius: 999px; color: #fff2f7; background: rgba(29,25,54,.65); box-shadow: 0 6px 25px rgba(6,6,20,.14); cursor: pointer; font-size: .73rem; backdrop-filter: blur(12px); transition: background .2s, border-color .2s; }
.music-toggle:hover { border-color: rgba(255,215,233,.48); background: rgba(59,44,78,.78); }
.music-toggle__icon { color: #ffc4d7; font-size: 1.05rem; }
.music-toggle__equalizer { display: flex; align-items: center; gap: 2px; height: 1rem; }
.music-toggle__equalizer i { width: 2px; height: .27rem; border-radius: 2px; background: #f0adc8; }
.music-toggle[aria-pressed='true'] .music-toggle__equalizer i { animation: equalize .58s ease-in-out infinite alternate; }
.music-toggle[aria-pressed='true'] .music-toggle__equalizer i:nth-child(2) { animation-delay: -.36s; }
.music-toggle[aria-pressed='true'] .music-toggle__equalizer i:nth-child(3) { animation-delay: -.18s; }

.js .reveal { opacity: 0; transform: translateY(1.1rem); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .scene__content > .reveal:nth-child(2) { transition-delay: .12s; }
.js .scene__content > .reveal:nth-child(3) { transition-delay: .2s; }
.js .scene__content > .reveal:nth-child(4) { transition-delay: .3s; }

@keyframes heartbeat { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.09); } 58% { transform: scale(1.03); } }
@keyframes orbit-breathe { 0%, 100% { transform: scale(.96); opacity: .45; } 50% { transform: scale(1.05); opacity: .92; } }
@keyframes twinkle { 0%, 100% { opacity: .4; transform: scale(.8) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.16) rotate(8deg); } }
@keyframes star-twinkle { from { opacity: .18; transform: scale(.75); } to { opacity: .85; transform: scale(1.2); } }
@keyframes shoot { 0%, 7% { opacity: 0; transform: translate(0, 0) rotate(-35deg); } 9% { opacity: .9; } 15% { opacity: 0; transform: translate(-12rem, 7rem) rotate(-35deg); } 100% { opacity: 0; } }
@keyframes float-in { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes unlock-bloom { 35% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(.82); opacity: 0; } }
@keyframes pink-flash { 45% { transform: scale(1.3); background: radial-gradient(circle, rgba(250,140,190,.38), rgba(185,114,224,.19) 48%, transparent 72%); } 100% { opacity: 0; } }
@keyframes nudge { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes arrow-bob { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
@keyframes poem-line-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flower-sway { from { transform: rotate(-10deg) translateY(2px); } to { transform: rotate(10deg) translateY(-3px); } }
@keyframes cloud-drift { from { margin-left: 0; } to { margin-left: 125vw; } }
@keyframes penguin-approach-left { 0% { transform: translateX(0) translateY(0); } 32% { transform: translateX(6vw) translateY(-.25rem); } 64% { transform: translateX(var(--penguin-meet)) translateY(0); } 77% { transform: translateX(var(--penguin-meet)) translateY(-.35rem) rotate(-3deg); } 100% { transform: translateX(var(--penguin-meet)) translateY(0); } }
@keyframes penguin-approach-right { 0% { transform: translateX(0) scaleX(-1) translateY(0); } 32% { transform: translateX(-6vw) scaleX(-1) translateY(-.25rem); } 64% { transform: translateX(calc(0px - var(--penguin-meet))) scaleX(-1) translateY(0); } 77% { transform: translateX(calc(0px - var(--penguin-meet))) scaleX(-1) translateY(-.35rem) rotate(-3deg); } 100% { transform: translateX(calc(0px - var(--penguin-meet))) scaleX(-1) translateY(0); } }
@keyframes wing-wave { from { transform: rotate(12deg); } to { transform: rotate(-27deg); } }
@keyframes quote-arrive { to { opacity: 1; transform: translateY(0); } }
@keyframes float-heart { 0% { opacity: 0; transform: translateY(1.5rem) scale(.7) rotate(-12deg); } 15% { opacity: .9; } 80% { opacity: .72; } 100% { opacity: 0; transform: translateY(-8rem) scale(1.08) rotate(12deg); } }
@keyframes letter-unfold { from { opacity: 0; transform: perspective(800px) rotateX(-11deg) translateY(-1rem) scale(.97); } to { opacity: 1; transform: perspective(800px) rotateX(0) translateY(0) scale(1); } }
@keyframes finale-glow { from { opacity: .72; transform: translate(-50%, -50%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes particle-fall { 0% { opacity: 0; transform: translateY(-4vh) rotate(0); } 10% { opacity: .68; } 86% { opacity: .55; } 100% { opacity: 0; transform: translateY(110vh) rotate(170deg); } }
@keyframes equalize { from { height: .24rem; } to { height: .9rem; } }

@media (min-width: 760px) {
  .gate { padding-top: 3rem; }
  .heart-orbit { width: 10rem; height: 10rem; }
  .scene { padding-right: 3rem; padding-left: 3rem; }
  .scene--poem { min-height: 100svh; }
  .poem-card { padding-top: 2rem; padding-bottom: 2rem; }
  .poem li { line-height: 1.31; }
  .scene--penguins { min-height: 100svh; }
}
@media (max-width: 430px) {
  .gate { padding-bottom: calc(4.5rem + var(--safe-bottom)); }
  .heart-orbit { width: 7.6rem; height: 7.6rem; }
  .heart-orbit__heart { font-size: 4.7rem; }
  .scene { min-height: max(100svh, 42rem); padding-right: 1rem; padding-left: 1rem; }
  .scene--arrival { min-height: 100svh; }
  .scene--poem { min-height: 100svh; padding-top: 5rem; padding-bottom: 6rem; }
  .poem li { font-size: clamp(1.05rem, 4.3vw, 1.24rem); line-height: 1.34; }
  .poem-card { padding-right: .72rem; padding-left: .72rem; }
  .scene--penguins { min-height: 100svh; }
  .scene__content--penguins { padding-top: 1rem; }
  .penguin { width: 4.55rem; height: 7.2rem; }
  .penguin--left { left: 21%; }
  .penguin--right { right: 21%; }
  .penguin-stage { height: 12.5rem; }
  .scene--letter { padding-top: 5.4rem; padding-bottom: 5rem; }
  .letter { padding: 1.45rem 1.15rem; }
  .letter p { font-size: 1.08rem; }
  .scene--finale { min-height: 100svh; }
  .music-toggle { min-height: 2.55rem; padding: .35rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .poem li, .penguin-quote, .finale__promise { opacity: 1; animation: none; transform: none; }
  .scene.is-visible .penguin--left { transform: translateX(var(--penguin-meet)); }
  .scene.is-visible .penguin--right { transform: translateX(calc(0px - var(--penguin-meet))) scaleX(-1); }
}
