:root {
  color-scheme: dark;
  --night: #070c1a;
  --ink: #f1eadd;
  --muted: #aaaebb;
  --quiet: #838b9e;
  --gold: #d8bc87;
  --gold-light: #f0dbb2;
  --line: rgba(222, 199, 153, .16);
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --english: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 7px; }
button { color: inherit; }
a { color: inherit; }
button, p, h1, h2, h3, figure { margin: 0; }
[hidden] { display: none !important; }
.night-sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 51% 32%, #12213955 0%, transparent 53%), radial-gradient(ellipse at 14% 91%, #17325248 0%, transparent 58%), linear-gradient(155deg, #090f20 0%, #070c1a 46%, #0b1425 100%); }
.night-sky::after { content: ""; position: absolute; inset: 0; opacity: .032; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.55' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sky-haze { position: absolute; width: 85vw; height: 72vh; bottom: -29vh; right: -35vw; border-radius: 50%; background: #385b7b14; filter: blur(65px); }
.horizon { position: absolute; bottom: -51vw; left: -15%; width: 130%; height: 60vw; border: 1px solid #bcd3e20d; border-radius: 50%; box-shadow: 0 -10px 70px #2a456511; transform: rotate(-13deg); }
.sky-star { position: absolute; width: var(--size); height: var(--size); left: var(--x); top: var(--y); border-radius: 50%; background: var(--color); opacity: var(--opacity); box-shadow: 0 0 5px #ddc99925; animation: twinkle var(--duration) ease-in-out var(--delay) infinite alternate; }
.sky-cross { border-radius: 0; background: transparent; width: 7px; height: 7px; }
.sky-cross::before, .sky-cross::after { content: ""; position: absolute; background: var(--color); }
.sky-cross::before { width: 1px; height: 7px; left: 3px; }.sky-cross::after { width: 7px; height: 1px; top: 3px; }
#stardust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.app-shell { position: relative; max-width: 1180px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.masthead { flex-shrink: 0; height: calc(80px + env(safe-area-inset-top, 0px)); padding: calc(26px + env(safe-area-inset-top, 0px)) 26px 18px; display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex-shrink: 0; text-decoration: none; font-family: var(--english); font-size: 12px; letter-spacing: .21em; color: #e6d5b4; }
.wordmark svg { width: 13px; height: 13px; fill: var(--gold); }
.dedication { max-width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--english); font-size: 11px; letter-spacing: .15em; color: #aaaeb9; }
.dedication [data-recipient] { margin-left: 4px; font-family: var(--sans); letter-spacing: .12em; font-size: 10px; }
main { flex: 1; position: relative; min-height: 0; }
.scene { width: 100%; max-width: 610px; height: 100%; margin: 0 auto; position: absolute; inset: 0; padding: 28px 28px 18px; display: flex; flex-direction: column; align-items: center; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; opacity: 0; transform: translateY(9px); }
.scene::-webkit-scrollbar { display: none; }
.scene.is-active { opacity: 1; transform: translateY(0); }
.scene.is-entering { animation: sceneIn .8s cubic-bezier(.2,.7,.2,1) both; }
.scene.is-leaving { animation: sceneOut .35s ease both; pointer-events: none; }
.scene-heading { text-align: center; flex-shrink: 0; }
.eyebrow { font-family: var(--sans); font-size: 10px; line-height: 1.8; letter-spacing: .21em; color: var(--gold); font-weight: 400; }
h2 { font-family: var(--serif); font-size: clamp(26px, 6.5vw, 32px); font-weight: 400; letter-spacing: .095em; line-height: 1.6; }
.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; }
.scene-heading h2 { margin: 15px 0 12px; }
.subtitle { color: var(--muted); font-size: 13px; letter-spacing: .09em; line-height: 1.8; }
.scene-actions { flex-shrink: 0; text-align: center; width: 100%; }
.button { min-height: 50px; max-width: 100%; display: inline-flex; justify-content: center; align-items: center; gap: 11px; padding: 14px 30px; border-radius: 2px; font-size: 14px; letter-spacing: .08em; transition: background .3s, box-shadow .3s, transform .3s, opacity .3s; }
.button-gold { background: linear-gradient(110deg, #ebd7b0, #d4b57e); color: #272118; border: 1px solid #f5dfb647; box-shadow: 0 4px 28px #caa5680d; }
.button-gold:hover { background: linear-gradient(110deg, #f3e2c2, #e0c494); box-shadow: 0 4px 32px #caa56820; }
.button-gold:active { transform: scale(.98); }
.button-gold:disabled { opacity: .62; }
.button svg { width: 16px; height: 16px; fill: currentColor; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; max-width: 100%; border: 0; padding: 10px 4px; background: transparent; color: var(--gold-light); font-size: 14px; line-height: 1.7; letter-spacing: .09em; transition: color .2s, opacity .2s; }
.text-button span[aria-hidden] { font-size: 17px; }
.text-button:hover { color: #fff5df; }
.text-button:disabled { opacity: .45; }
.action-note { margin-top: 15px; color: #a1a8b8; font-size: 12px; line-height: 1.85; letter-spacing: .035em; }
.story-footer { flex-shrink: 0; padding: 8px 26px calc(17px + env(safe-area-inset-bottom, 0px)); min-height: calc(68px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; }
.back-button { width: 44px; height: 44px; flex-shrink: 0; background: transparent; border: 1px solid #ccd3e011; display: grid; place-items: center; border-radius: 50%; color: #b3b8c7; transition: opacity .3s, border-color .3s; }
.back-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.back-button:disabled { opacity: .16; }
.back-button:not(:disabled):hover { border-color: #ccd3e03b; }
.chapter-dots { display: flex; align-items: center; gap: 0; }
.chapter-dot { display: grid; place-items: center; width: clamp(24px, 6.5vw, 32px); height: 44px; border: 0; background: transparent; padding: 0; }
.chapter-dot::after { content: ""; width: 4px; height: 4px; background: #7d84944d; border-radius: 50%; transition: background .3s, width .3s, height .3s; }
.chapter-dot.is-visited::after { background: #ac9b7b85; }
.chapter-dot[aria-current="step"]::after { width: 6px; height: 6px; background: var(--gold-light); box-shadow: 0 0 9px #e5c7984d; }
.chapter-dot:disabled { opacity: .4; }
.chapter-count { width: 44px; flex-shrink: 0; font-family: var(--english); font-size: 12px; color: #a0a7b7; letter-spacing: .025em; white-space: nowrap; }
#chapterNumber { color: var(--gold-light); }.count-slash { margin: 0 5px; color: #677184; }

/* The first star */
.scene-opening { padding-top: clamp(20px, 5vh, 52px); overflow-y: auto; overflow-x: hidden; }
.opening-text { width: 100%; text-align: center; position: relative; z-index: 1; flex-shrink: 0; }
.opening-text .eyebrow { font-size: 8px; letter-spacing: .2em; color: #c2af8d; }
h1 { font-weight: 400; }
.opening-for { display: block; font-family: var(--serif); font-size: 16px; font-weight: 400; letter-spacing: .2em; margin-top: 29px; color: #bfbec4; }
.recipient-name { display: block; font-family: var(--serif); font-size: clamp(42px, 11vw, 60px); line-height: 1.35; letter-spacing: .18em; font-weight: 400; margin-top: 15px; padding-left: .18em; text-shadow: 0 0 35px #e4c78c0d; overflow-wrap: anywhere; }
.opening-note { font-size: 13px; letter-spacing: .09em; color: #a7aebd; margin-top: 20px; }
.opening-universe { position: relative; width: 100%; max-width: 390px; flex: 1; min-height: 225px; max-height: 380px; margin-top: 2px; display: grid; place-items: center; }
.orbital-ring { position: absolute; width: 242px; height: 242px; border: 1px solid #d7c69d15; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-25deg) scaleY(.67); pointer-events: none; }
.ring-one::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #cab68c; right: 26px; bottom: 17px; box-shadow: 0 0 12px #dfcb9d5c; }
.ring-two { width: 301px; height: 301px; border-color: #d7c69d09; transform: translate(-50%, -50%) rotate(47deg) scaleY(.75); }
.orbit-dot { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #d7bd8d; box-shadow: 0 0 10px #cbb58860; }
.dot-one { left: calc(50% - 130px); top: 48%; }.dot-two { left: calc(50% + 78px); top: calc(50% - 83px); opacity: .6; width: 2px; height: 2px; }
.main-star { border: 0; background: transparent; width: 112px; height: 112px; position: relative; display: grid; place-items: center; border-radius: 50%; }
.star-shape { width: 59px; height: 59px; filter: drop-shadow(0 0 13px #ddbd7952); transition: transform .6s, filter .6s; animation: starBreath 5s ease-in-out infinite; }
.star-halo { position: absolute; inset: -44px; background: radial-gradient(circle, #e4c1811f 0, #d0b16e07 38%, transparent 65%); border-radius: 50%; pointer-events: none; }
.main-star:hover .star-shape { transform: scale(1.12); filter: drop-shadow(0 0 20px #efd29680); }
.star-prompt { position: absolute; bottom: max(6px, calc(50% - 114px)); font-size: 12px; color: #d5c097; letter-spacing: .13em; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.prompt-rule { width: 15px; height: 1px; background: #cbb88f45; }
.scene-whisper { color: #808b9b; letter-spacing: .2em; font-size: 7px; line-height: 1.8; text-align: center; flex-shrink: 0; padding-top: 22px; }

/* V5：沿用开场与夜色，其余章节统一为象牙白、香槟金与冰蓝。 */
.scene-opening { padding-top: 18px; padding-bottom: 18px; }
.opening-text { margin-top: auto; }
.opening-for { margin-top: 0; }
.recipient-name { margin-top: 14px; }
.opening-note { margin-top: 18px; }
.opening-universe { flex: 0 0 auto; height: clamp(230px, 38vh, 310px); min-height: 230px; max-height: 310px; margin-top: 8px; margin-bottom: auto; }
.dedication [data-recipient] { font-size: 12px; }
.scene-heading h2 { margin-top: 0; }
.scene-cake, .scene-wish { padding-top: 18px; padding-bottom: 20px; }
.scene-cake .scene-heading h2, .scene-wish .scene-heading h2 { font-size: 21px; letter-spacing: .12em; color: #d9d9d8; margin: 0 0 6px; }
.cake-slot { position: relative; width: calc(100% + 12px); flex: 1 1 auto; min-height: 230px; display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.cake-art { width: 100%; height: 100%; max-width: 420px; max-height: 530px; min-height: 0; position: relative; }
.cake-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cake-led { opacity: .08; transition: opacity .8s; }
.cake-art.has-light .cake-led { opacity: .85; }
.candle-flame { opacity: 0; transition: opacity .35s; }
.candle.is-lit .candle-flame { opacity: 1; }
.flame-shape { transform-box: fill-box; transform-origin: 50% 100%; }
.candle.is-lit .flame-shape { animation: fineFlame 2.8s ease-in-out var(--flicker-delay) infinite alternate; }
.candle.is-going-out .flame-shape { animation: flameFarewell .38s ease-in-out both; }
.candle-reflection { opacity: 0; transition: opacity .5s; }
.candle.is-lit .candle-reflection { opacity: .22; }
.scene-cake .scene-actions, .scene-wish .scene-actions { min-height: 80px; display: flex; justify-content: center; align-items: center; padding-top: 12px; }
.ritual-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 236px; min-height: 56px; max-width: 100%; padding: 14px 35px; border: 1px solid #d4b678a6; border-radius: 7px; color: #f2e5cb; background: linear-gradient(135deg,#132b42c4,#0a172dcc); box-shadow: inset 0 1px 0 #d9e9f415,0 4px 24px #0002; font-family: var(--english); font-size: 18px; font-weight: 400; line-height: 1.4; letter-spacing: .04em; transition: border-color .3s,background .3s,box-shadow .3s,transform .25s; }
.ritual-button::before, .ritual-button::after { content: ''; position: absolute; top: calc(50% - 2px); width: 4px; height: 4px; border: 1px solid #bedbea99; transform: rotate(45deg); }
.ritual-button::before { left: 15px; }.ritual-button::after { right: 15px; }
.ritual-button:hover { border-color: #edd3a0; background: linear-gradient(135deg,#1a3a52e6,#0c1c32); box-shadow: inset 0 1px 0 #e9debf25,0 0 22px #9cc7dd15; }
.ritual-button:active { transform: translateY(1px); box-shadow: inset 0 0 20px #b2d9e015; }
.ritual-button:disabled { opacity: .66; }
.quiet-continuation { min-height: 48px; padding: 10px 6px; color: #bbc4ce; font-size: 15px; letter-spacing: .07em; }
.quiet-continuation span[aria-hidden] { font-size: 18px; color: #c9b58a; opacity: .65; transition: transform .3s; }
.quiet-continuation:hover span[aria-hidden] { transform: translateX(3px); }
.scene-bridge { justify-content: center; padding-bottom: 72px; }
.bridge-glow { position: absolute; width: 280px; height: 280px; top: 43%; border-radius: 50%; background: radial-gradient(circle,#e8cc8d08,transparent 65%); pointer-events: none; }
.bridge-message { position: relative; width: 100%; text-align: center; opacity: 0; transition: opacity 1.5s; }
.bridge-message.is-revealed { opacity: 1; }
.tiny-star { display: block; margin-bottom: 28px; color: #d9c18b; font-size: 21px; }
.bridge-message h2 { font-family: var(--english); font-size: clamp(25px,6.5vw,33px); line-height: 1.8; letter-spacing: .015em; font-weight: 400; color: #efe3cb; }
.bridge-message h2 span { display: block; }
.bridge-actions { position: absolute; bottom: 45px; opacity: 0; transition: opacity 1.2s; }
.bridge-actions.is-revealed { opacity: 1; }
.scene-letter { padding-top: 22px; }
.letter-overline { width: 100%; display: flex; justify-content: flex-end; flex-shrink: 0; }
.letter-star { font-size: 20px; line-height: 1; color: #c9b184; }
.letter-sheet { width: 100%; padding: 18px 1px 20px; flex: 1; }
.letter-rule { height: 1px; width: 100%; background: linear-gradient(90deg,#d8bc8738,#b8d4e40b); margin-bottom: 30px; }
.letter-sheet h2 { font-size: 23px; letter-spacing: .055em; line-height: 1.7; margin-bottom: 25px; overflow-wrap: anywhere; }
.letter-body { font-family: var(--serif); font-size: 17px; line-height: 2.12; letter-spacing: .025em; color: #dedbd5; overflow-wrap: anywhere; }
.letter-body p + p { margin-top: 22px; }
.letter-signoff { text-align: right; padding-top: 31px; }
.letter-signoff p { font-family: var(--serif); font-size: 21px; letter-spacing: .13em; color: #e5d9c3; }
.letter-signoff time { display: block; margin-top: 12px; font-family: var(--english); font-size: 15px; letter-spacing: .06em; line-height: 1.6; color: #aab7c8; }
.letter-photo { margin: 28px 0 0; max-width: 300px; }
.letter-photo img { display: block; width: 100%; height: auto; border: 1px solid #d4c2a957; border-radius: 2px; }
.letter-photo figcaption { color: #aab2bf; font-size: 13px; padding-top: 9px; line-height: 1.8; }
.letter-actions { padding: 10px 0 4px; text-align: right; }
.letter-actions .text-button { color: #aebbc9; }
.scene-timeline { justify-content: center; padding-top: 26px; padding-bottom: 26px; }
.timeline { width: 100%; max-width: 340px; list-style: none; margin: 0; padding: 0 10px; display: flex; flex-direction: column; gap: clamp(64px,10svh,104px); }
.timeline-node { padding: 0 30px 0 0; position: relative; }
.timeline time { display: block; font-family: var(--english); font-size: clamp(32px,9vw,42px); font-weight: 400; line-height: 1.4; letter-spacing: .015em; color: #eee5d5; }
.timeline h3 { margin-top: 17px; font-family: var(--english); font-weight: 400; font-size: 18px; line-height: 1.45; letter-spacing: .015em; color: #b0becb; }
.timeline .node-today time { color: #f2ddb5; }
.timeline .node-forever h3 { margin: 0; font-size: clamp(30px,8vw,38px); line-height: 1.25; color: #d8e4ed; }
.timeline-actions { margin-top: clamp(36px,6vh,52px); }
.timeline-actions .text-button { font-family: var(--english); font-size: 17px; letter-spacing: .02em; }
.scene-quotes { padding: 6px 0; overflow: hidden; }
.whisper-sky { position: relative; width: 100%; flex: 1; min-height: 260px; }
/* 基本可见状态不依赖计时；实际星位由连续随机采样生成。 */
.whisper-stars { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: space-around; padding-top: 36px; }
.whisper-star { position: relative; width: 56px; height: 56px; flex: 0 0 56px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; border-radius: 50%; opacity: .88; transition: opacity 1.3s ease; }
.whisper-star[data-placed] { position: absolute; transform: translate(-50%,-50%); }
.whisper-star svg { width: 19px; height: 19px; fill: #f0d9a6; filter: drop-shadow(0 0 5px #d9c69966); transition: transform .8s ease,opacity 1.3s ease; animation: multiBreath var(--breath,8s) ease-in-out var(--breath-delay,0s) infinite alternate; }
.whisper-star.is-visible { animation: multiEmerge 1.6s ease-out both; }
.whisper-star.is-burst { opacity: .13; }
.whisper-star.is-burst svg { transform: scale(.15); }
.whisper-word { position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.whisper-word.is-visible { opacity: 1; transition-duration: .45s; }
#quoteText { max-width: 360px; margin: 0 auto; font-family: var(--serif); font-size: clamp(18px,2.8vh,23px); font-weight: 400; line-height: 1.7; letter-spacing: .035em; text-align: center; color: #ece6db; overflow-wrap: anywhere; }
.bridge-message h2 { max-width: 380px; margin: 0 auto; font-size: clamp(24px,6.2vw,31px); line-height: 1.75; text-wrap: balance; overflow-wrap: anywhere; }
.gift-unavailable { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 22px; }
.gift-unavailable > span { font-size: 32px; color: var(--gold); }
.gift-unavailable h1 { font-family: var(--serif); font-size: 27px; line-height: 1.7; }
.gift-unavailable p { max-width: 320px; color: var(--muted); font-size: 16px; line-height: 1.9; }
@keyframes multiBreath { from { opacity: .5; filter: drop-shadow(0 0 3px #d9c69933); } to { opacity: 1; filter: drop-shadow(0 0 7px #d9c69977); } }
@keyframes multiEmerge { from { opacity: .32; } to { opacity: .88; } }
.load-status { color: #d8d1c5; font-size: 14px; background: #0e162bf5; border: 1px solid #e6d4ad24; position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); padding: 14px 18px; width: min(340px,calc(100% - 40px)); line-height: 1.8; z-index: 9; }
.noscript-message { position: fixed; bottom: 24px; padding: 24px; color: #e8d5b2; background: #10182c; }
@keyframes twinkle { 0%,30% { opacity: var(--opacity); } 100% { opacity: calc(var(--opacity) * .43); } }
@keyframes starBreath { 0%,100% { opacity: .87; } 50% { opacity: 1; } }
@keyframes sceneIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes sceneOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-7px); } }
@keyframes fineFlame { from { transform: rotate(-1.5deg) scaleX(.94) scaleY(.98); } to { transform: rotate(2deg) scaleX(1.02) scaleY(1.025); } }
@keyframes flameFarewell { 0% { transform: rotate(0) scaleY(1); } 35% { transform: rotate(-7deg) scaleY(1.025); } 70% { transform: rotate(9deg) scaleY(.7); } 100% { transform: rotate(2deg) scaleY(.12); } }
@keyframes whisperEmerge { from { opacity: .5; filter: drop-shadow(0 0 2px #d9c69922); } to { opacity: 1; filter: drop-shadow(0 0 6px #d9c69966); } }
@keyframes whisperBreath { from { opacity: .72; } to { opacity: 1; } }
@keyframes starRecovery { 0%,42% { opacity: 0; } 100% { opacity: .86; } }
@media (min-width:720px) { .masthead { height: 100px; padding: 33px 42px 23px; }.scene { padding-left: 38px; padding-right: 38px; }.story-footer { padding-left: 42px; padding-right: 42px; }.scene-opening { padding-top: 18px; }.cake-art { max-width: 460px; } }
@media (max-height:740px) and (max-width:719px) { .scene-cake,.scene-wish { padding-top: 8px; padding-bottom: 8px; }.cake-slot { min-height: 190px; padding: 2px 0; }.scene-cake .scene-actions,.scene-wish .scene-actions { min-height: 70px; padding-top: 4px; }.ritual-button { min-height: 52px; }.timeline { gap: 52px; }.timeline-actions { margin-top: 28px; }.scene-letter { padding-top: 16px; }.letter-body { font-size: 16px; line-height: 2.05; }.whisper-sky { min-height: 230px; } }
@media (max-width:359px) { .masthead { padding-left: 20px; padding-right: 20px; }.scene { padding-left: 23px; padding-right: 23px; }.scene-quotes { padding-left: 0; padding-right: 0; }.story-footer { padding-left: 20px; padding-right: 20px; }.ritual-button { min-width: 224px; }.timeline { padding: 0; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* V6.1: signature asset, measured typography and a quiet reading rhythm. */
.letter-to { font-family: var(--english); color: #c6b58e; margin-right: 8px; font-size: .8em; letter-spacing: .035em; }
.letter-signoff .signature-image { display: block; width: min(240px,70%); height: auto; margin: -16px -12px -12px auto; filter: invert(1) sepia(.18) brightness(.95); }
.timeline-guide { position: absolute; right: 1px; top: 15px; font-size: 19px; line-height: 1; color: #dfc68d; opacity: .42; }
.scene-timeline.is-active .timeline-guide { animation: timelineReading 8s ease-in-out infinite; }
.scene-timeline.is-active .node-today .timeline-guide { animation-delay: 2.2s; }
.scene-timeline.is-active .node-forever .timeline-guide { animation-delay: 4.4s; }
.forever-dots { letter-spacing: .1em; margin-left: 3px; color: #bfccda; }
@keyframes timelineReading { 0%,17%,100% { opacity: .35; filter: drop-shadow(0 0 0 transparent); } 28%,40% { opacity: 1; filter: drop-shadow(0 0 6px #dbc69065); } 58% { opacity: .4; } }
@media (max-height:620px) { .scene-timeline { padding-top: 10px; padding-bottom: 14px; }.timeline { gap: 39px; }.timeline time { font-size: 30px; }.timeline h3 { font-size: 17px; margin-top: 12px; }.timeline-actions { margin-top: 24px; } }
@media (prefers-reduced-motion:reduce) { .scene-timeline.is-active .timeline-guide { animation:none; opacity:.7; } }

/* V6.3: the letter remains chapter five; its inner pages share one layout. */
.scene-letter .letter-sheet{display:flex;flex-direction:column;flex:1 0 auto;min-height:calc(100% - 68px);padding-bottom:0}.letter-stage{display:flex;flex-direction:column;flex:1 0 auto;min-height:210px}.letter-content{display:flex;flex-direction:column;min-width:0}.letter-body p{white-space:pre-wrap}.letter-content .letter-photo{flex-shrink:0;margin-top:24px}.letter-content .letter-photo[style*="order: -1"]{margin-top:0;margin-bottom:24px}.letter-page-nav{display:flex;align-items:center;justify-content:center;gap:22px;min-height:48px;width:100%;flex-shrink:0;margin-top:14px;color:#97a7b9}.letter-page-nav button{border:0;background:transparent;color:#cbb68d;font-size:28px;min-width:44px;min-height:44px}.letter-page-nav button:disabled{opacity:.25}.letter-page-nav span{font:12px var(--english);letter-spacing:.14em}.tap-prompt{font-size:13px;letter-spacing:.12em;color:#b9b8b5}.scene-letter .letter-body{font-size:17px}.scene-letter .letter-body p+p{margin-top:1.05em}

.letter-body{white-space:pre-wrap}.letter-sheet.is-ashing .letter-body{animation:letterAshOut .85s ease-in forwards;pointer-events:none}.letter-sheet.is-reforming .letter-body{animation:letterReform .65s ease-out both}@keyframes letterAshOut{0%{opacity:1;filter:blur(0);transform:translate(0,0)}45%{opacity:.65;filter:blur(.7px)}100%{opacity:0;filter:blur(3px);transform:translate(7px,-12px)}}@keyframes letterReform{from{opacity:0;filter:blur(2px);transform:translateY(5px)}to{opacity:1;filter:blur(0);transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.letter-sheet.is-ashing .letter-body,.letter-sheet.is-reforming .letter-body{animation:none}}
