.chapter-transition{background:transparent!important;backdrop-filter:none!important}

#reveal-photo{display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:7px;font:11px/1.4 DengXian,'等线',sans-serif!important;color:#eae6d5!important;text-shadow:0 1px 5px #233e3b!important;animation:reveal-pulse 2.4s ease-in-out infinite!important;opacity:.8}#reveal-photo i{margin:0!important;animation:none!important;width:4px;height:4px;box-shadow:0 0 8px 2px #fff5d466}@keyframes reveal-pulse{50%{opacity:.22}}
.gallery-photo{max-width:none!important;max-height:none!important}.gallery-photo img{width:100%!important;height:auto!important;max-width:100%!important;max-height:72svh!important;object-fit:contain}.gallery-scroll{touch-action:pan-y;-webkit-overflow-scrolling:touch;scroll-behavior:auto}.gallery-scroll .gallery-space{perspective:1100px}.gallery-photos{perspective:1100px}
#postcard-wall{display:flex;flex-direction:column;gap:5px}.postcard-lane{width:100%;overflow:hidden;touch-action:pan-y;cursor:grab;user-select:none}.postcard-lane:active{cursor:grabbing}.postcard-lane .postcard-track{animation:none!important;will-change:transform}.postcard-track .memory-card{width:250px;height:178px;margin:5px 0 10px}.postcard-track .memory-card p{font-size:10px}.postcard-group{padding-right:18px}.brush-color-label{display:flex!important;align-items:center;justify-content:space-between;gap:12px}.postcard-editor #brush-color{width:48px;height:34px;padding:2px}.card-swatches{display:flex;gap:13px;overflow-x:auto;padding:6px 3px 12px}.card-swatches button{width:30px;height:30px;min-height:30px;flex-shrink:0;border-radius:50%;border:1px solid #31545155}.card-swatches button[aria-pressed=true]{outline:2px solid #315451;outline-offset:3px}
.more-underlined{text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:1px}.more-dialog{background:transparent;backdrop-filter:blur(12px);overflow:hidden;padding-top:60px}.more-dialog:before{position:absolute!important;inset:0!important;z-index:-1;background:linear-gradient(#e3e6d7cc,#e3e6d7e8),url('assets/guest/more.webp') center/cover;filter:blur(3px)}.more-dialog>.more-content{height:min(70svh,750px);overflow-y:auto;overscroll-behavior:contain;padding-right:6px}.more-dialog>button{position:absolute;top:15px;right:22px}.site-menu .chapter-jumps button{border:0!important;text-decoration:none!important;background:none}
html[data-motion=reduced] #reveal-photo{animation:none!important}

.postcard-track .memory-card{width:210px;height:149px;padding:13px;gap:8px;margin:4px 0 8px}.postcard-track .memory-card p{font-size:10px;line-height:1.65}.postcard-track .memory-card small{font-size:7px}.postcard-lane{max-height:165px}

/* Functional daylight and night palettes. User photos and chosen postcard colors retain their content. */
body[data-theme=light]{--ui-bg:#f0f1e8;--ui-ink:#254641;--ui-muted:#526a62;--ui-panel:#f9f8efeF;--ui-line:#36564b55;color-scheme:light;background:#edf0e5;color:var(--ui-ink)}
body[data-theme=dark]{--ui-bg:#102323;--ui-ink:#d9dfd1;--ui-muted:#a5b6ab;--ui-panel:#1a3130f5;--ui-line:#c4d0ae44;color-scheme:dark;background:#102323;color:var(--ui-ink)}
body .site-header{color:var(--ui-ink)}body .site-header .graphic-logo{color:inherit}body .menu-toggle>span{background:var(--ui-ink)}body .site-menu{background:var(--ui-bg);color:var(--ui-ink)}body .site-menu .theme-setting button{color:inherit;border-color:var(--ui-line)}body .site-menu .theme-setting button[aria-pressed=true]{background:var(--ui-ink);color:var(--ui-bg)}body .site-menu button{color:inherit}
body[data-theme=light] .stage-scene,body[data-theme=light] .bridge-scene,body[data-theme=light] .gallery-scene,body[data-theme=light] .guest-scene,body[data-theme=light] .weather-scene,body[data-theme=light] .cover-scene,body[data-theme=light] .ending-scene{background-color:var(--ui-bg);color:var(--ui-ink)}
body[data-theme=dark] .stage-scene,body[data-theme=dark] .bridge-scene,body[data-theme=dark] .gallery-scene,body[data-theme=dark] .guest-scene,body[data-theme=dark] .weather-scene,body[data-theme=dark] .cover-scene,body[data-theme=dark] .ending-scene{background-color:var(--ui-bg);color:var(--ui-ink)}
body[data-theme=light] .stage-background{background-image:linear-gradient(#f0f1e8c9,#e4eaddf2),url('assets/stage/photo-13.jpg');filter:blur(8px) saturate(.5)}body[data-theme=dark] .stage-background{background-image:linear-gradient(#102323c9,#102323f2),url('assets/stage/photo-13.jpg');filter:blur(8px) saturate(.45)}
body[data-theme=light] .bridge-scene:before{background-image:linear-gradient(#edf0e3c9,#e6eadff2),url('assets/bridge/background.jpg')}body[data-theme=dark] .bridge-scene:before{background-image:linear-gradient(#102323c9,#102323f2),url('assets/bridge/background.jpg')}
body[data-theme=light] .gallery-river{filter:saturate(.65) brightness(1);background-image:linear-gradient(#edf1dd22,#edf1dd33),url('assets/gallery/river.webp')}body[data-theme=light] .gallery-haze{background:#e9efe0b5;backdrop-filter:blur(4px)}body[data-theme=dark] .gallery-river{filter:saturate(.55) brightness(.48)}body[data-theme=dark] .gallery-haze{background:#0b222688;backdrop-filter:blur(4px)}
body[data-theme=light] .guest-shade{background:linear-gradient(#edf0e5b8,#edf0e598,#edf0e5dd)}body[data-theme=dark] .guest-shade{background:linear-gradient(#102323b8,#10232388,#102323e8)}body[data-theme=light] .weather-shade,body[data-theme=light] .cover-grade{background:linear-gradient(#edf0e5a8,#edf0e577,#edf0e5d9)}body[data-theme=dark] .weather-shade,body[data-theme=dark] .cover-grade{background:linear-gradient(#102323a8,#10232388,#102323d9)}body[data-theme=light] .weather-landscape{filter:saturate(.65) brightness(1)}body[data-theme=dark] .weather-landscape{filter:saturate(.45) brightness(.5)}body[data-theme=dark] .cover-landscape{filter:brightness(.55)}
body .planning-scene{--paper:var(--ui-bg);--ink:var(--ui-ink)}body[data-theme=light] .planning-haze{background:#edf0e588}body[data-theme=dark] .planning-haze{background:#102323bb}body[data-theme=dark] .planning-landscape{filter:blur(8px) brightness(.45) saturate(.5)}
body .stage-nav,body .bridge-scene nav,body .planning-nav{color:var(--ui-ink);background:linear-gradient(var(--ui-bg),transparent)}body .stage-hero>p,body .stage-past time,body .planning-kicker{color:var(--ui-muted)}body .stage-card,body .timeline-card,body .bridge-timeline article{color:var(--ui-ink);border-color:var(--ui-line)}body[data-theme=light] .stage-card,body[data-theme=light] .timeline-card{background:#f8f8eef0}body[data-theme=dark] .stage-card,body[data-theme=dark] .timeline-card{background:#1a3130e8}
body .stage-past-line,body .bridge-line{stroke:var(--ui-muted)}body[data-theme=light] .spatial-thread{stroke:#406d58;mix-blend-mode:multiply;opacity:.22}body[data-theme=dark] .spatial-thread{opacity:.3}
body .help-dialog,body .hall-guide,body .stage-dialog,body .bridge-dialog,body #exit-confirm,body .upside-return-dialog,body .postcard-editor,body .more-dialog{color:var(--ui-ink);background-color:var(--ui-panel)}body[data-theme=dark] .bridge-dialog:before{background-image:linear-gradient(#173331df,#173331ef),var(--dialog-image)}body[data-theme=dark] #exit-confirm{background:#183130fa!important;color:var(--ui-ink)}body[data-theme=dark] #exit-confirm:before{opacity:.1!important}
body[data-theme=dark] .postcard-editor:before{background-image:linear-gradient(#102b2cd9,#102b2ce8),url('assets/guest/postcard-background.webp')}body[data-theme=dark] .more-dialog:before{background-image:linear-gradient(#102b2cdf,#102b2ced),url('assets/guest/more.webp')}body[data-theme=dark] .postcard-editor label,body[data-theme=dark] .postcard-editor h2,body[data-theme=dark] .more-content{color:var(--ui-ink)}body[data-theme=dark] .postcard-editor #card-visibility{background:#1c3838;color:var(--ui-ink);border-color:var(--ui-line)}body[data-theme=dark] .drawing-actions button{color:var(--ui-ink);border-color:var(--ui-line)}
body[data-theme=dark] .hall-art{filter:brightness(.75)}body[data-theme=light] .hall-art{filter:brightness(1.05)}body[data-theme=dark] .upside-art{filter:brightness(.6) saturate(.7)}body[data-theme=light] .upside-art{filter:brightness(1)}body[data-theme=light] .gallery-nav button,body[data-theme=light] .gallery-restart{color:var(--ui-ink);border-color:var(--ui-line);background:#edf0e56b}body[data-theme=dark] .gallery-nav button,body[data-theme=dark] .gallery-restart{color:var(--ui-ink);border-color:var(--ui-line)}
body[data-theme=dark] dialog::backdrop{background:#071415b8}body[data-theme=light] dialog::backdrop{background:#536a644d}body :focus-visible{outline-color:var(--ui-ink)}

body[data-theme] .site-header{color:var(--ui-ink)}body .hall-scene,body .upside-scene{background-color:var(--ui-bg)}body .hall-footer,body .hall-footer>span,body .hall-footer button,body .upside-footer,body .upside-nav{color:var(--ui-ink)}body[data-theme=light] .hall-atmosphere{opacity:.12}body[data-theme=dark] .hall-atmosphere{opacity:.25}body .hall-closeup{color:#f7f1df}body .gallery-viewer,body .stage-zoom,body .upside-print-viewer{background:var(--ui-bg);color:var(--ui-ink)}body .cover-colophon,body .ending-copy p{color:var(--ui-muted)}body .stage-card time,body .stage-card>p{color:var(--ui-muted)}body[data-theme=light] .cover-scene .anniversary{color:#25464118}body[data-theme=dark] .loading-scene{background:#102323}body .loading-scene{color:#f4f1de}body[data-theme=dark] .loading-film video{filter:brightness(.65)}

/* Cover is the original fixed art direction, independent of reading mode. */
body[data-theme] .cover-scene{color:#fff;background:#3c6c6f}body[data-theme] .cover-scene .cover-landscape{filter:none}body[data-theme] .cover-scene .cover-grade{background:#3c6c6f;mix-blend-mode:color;opacity:.76}body[data-theme] .cover-scene .cover-colophon{color:#ffffffa6}body[data-theme] .cover-scene .anniversary{color:#edf3e52b}body[data-scene=cover][data-theme] .site-header{color:#fff}body[data-scene=cover][data-theme] .menu-toggle>span{background:#fff}
