/* Words belong to the scene: no panels, button plates, or modal scrims. */
:root{--floating-ink:#fff5df;--floating-muted:#eee0ca;--floating-shadow:0 2px 4px #21160ff0,0 0 18px #21160fb0}
.topbar,.bottom-bar,.welcome,#target-prompt,.toast,#loading,dialog,.simple-panel,.collection-row{background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}
.topbar,.bottom-bar,.welcome,#target-prompt,.toast,dialog{color:var(--floating-ink);text-shadow:var(--floating-shadow)}
.topbar,.bottom-bar{pointer-events:none}.topbar button,.bottom-bar button{pointer-events:auto}
.brand{font-family:Georgia,"Times New Roman",serif;letter-spacing:.02em;font-size:24px}.brand small{color:var(--floating-muted);letter-spacing:.18em}.brand-mark{font-size:29px}
.location,.scene-note,.scene-note small{color:var(--floating-muted)}.location-dot{box-shadow:none}
button,.primary-button,.simple-panel .primary-button,.icon-button,.pocket-button,.collection-row,.keepsake-button,.tape-play,.touch-controls button,button:hover,.primary-button:hover,.icon-button:hover,.keepsake-button:hover:not(:disabled),.tape-play:hover:not(:disabled){background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;color:var(--floating-ink);text-shadow:var(--floating-shadow)}
button{min-height:44px}button:hover{color:#ffd99e}button:disabled{opacity:.42}button:focus-visible{outline:1px dashed #ffe8b8;outline-offset:3px}
#count{border:0}.primary-button{padding-left:0;padding-right:0;letter-spacing:.14em}.welcome{padding:0;left:7%;top:25%;max-width:340px}.welcome h1{font-size:38px}.welcome p{color:var(--floating-muted)}.welcome #explore{color:var(--floating-muted)}
#target-prompt{padding:0;bottom:119px;white-space:normal;text-align:center;width:calc(100% - 40px);pointer-events:none}.toast{bottom:164px;font-size:15px;max-width:min(90%,600px);padding:0}.toast.show{transform:translate(-50%,0)}
dialog{color-scheme:dark;background:none;padding:46px 28px 30px;width:min(760px,calc(100% - 32px));max-height:calc(100svh - 70px);scrollbar-width:thin;scrollbar-color:#e6cda377 transparent;outline:0}
dialog::backdrop,dialog[data-type="ritual"]::backdrop{background:transparent;backdrop-filter:none}
.dialog-close{color:var(--floating-ink);width:44px;height:44px;right:4px;top:0}.dialog-close:hover{color:#ffd99e}
.simple-panel h2{font-size:29px}.simple-panel p,.guide-list,.collection-row small,.reset-button{color:var(--floating-muted)}.collection{gap:8px}.collection-row{padding:12px 4px}.collection-row>span:first-child{color:#ffe1aa}.collection-row strong{color:var(--floating-ink)}
.keepsake{--keepsake-ink:var(--floating-ink);--keepsake-muted:var(--floating-muted);--keepsake-paper:transparent;color:var(--floating-ink)}
.letter-paper,.album-book,.album-page,.album-photo,.album-photo-frame,.album-photo-placeholder,.album-leaf-face .album-page{background:none;background-image:none;border:0;border-radius:0;box-shadow:none;color:var(--floating-ink)}
.letter-paper{padding:10px 20px 24px;transform:none}.letter-paper::before,.album-book::after,.album-bookmark,.letter-seal{display:none}.letter-paper-date,.letter-empty,.album-caption,.album-page-number,.album-page-count,.keepsake-mystery-note{color:var(--floating-muted)}
.letter-body{font-family:var(--story);line-height:2.2}.album-photo{padding:0}.album-page{padding:20px 20px 35px}.album-photo-placeholder{gap:15px}.album-caption{padding:18px 0 4px}.album-photo-placeholder .keepsake-icon{opacity:.8}
.tape-cassette,.keepsake-gift,.tape-audio{display:none}.keepsake--tape,.keepsake--mystery{padding:35px 10px}.tape-status{color:var(--floating-muted)}
dialog[data-type="ritual"]{left:0;right:0;top:auto;bottom:8%;margin:0 auto;transform:none;width:min(560px,calc(100% - 24px));max-height:52svh;padding:42px 24px 12px;text-align:center}
dialog[data-type="ritual"] .candle-heading{font-size:27px}dialog[data-type="ritual"] .candle-description{font-size:14px}
body[data-ritual="true"] .topbar,body[data-ritual="true"] .bottom-bar,body[data-ritual="true"] .touch-controls,body[data-ritual="true"] .toast{visibility:hidden}
.touch-controls button{font-size:28px}#touch-interact{font-size:14px}.dpad{grid-template-columns:repeat(3,46px);grid-template-rows:repeat(2,46px);width:146px;height:98px}
.height-controls{position:absolute;right:28px;bottom:145px;display:flex;flex-direction:column;gap:5px;z-index:2}.height-controls button{width:48px;height:48px;padding:0;font-size:30px;line-height:1;touch-action:none;user-select:none}
body[data-modal-open="true"] .topbar,body[data-modal-open="true"] .bottom-bar,body[data-modal-open="true"] .toast,body[data-modal-open="true"] .touch-controls,body[data-modal-open="true"] .height-controls,body[data-ritual="true"] .height-controls{visibility:hidden}
.album-image{object-fit:contain}.album-photo-frame{display:flex;align-items:center;justify-content:center;max-height:48svh}.album-image{max-height:48svh}.album-caption:empty{display:none}
dialog[data-type="photo"]{width:min(1240px,calc(100% - 28px));max-height:calc(100svh - 28px);padding:48px 12px 10px;overflow:hidden}dialog[data-type="photo"] #dialog-close{right:9px;top:0}.photo-viewer{margin:0;display:flex;align-items:center;justify-content:center;width:100%;height:calc(100svh - 110px)}.enlarged-photo{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
@media(max-width:700px){.topbar{height:76px;padding:0 18px}.brand{font-size:20px;gap:9px}.brand small{font-size:6px}.icon-button{width:36px}.experience{inset:0}.welcome{top:26%;left:8%;width:84%;padding:0}.welcome h1{font-size:32px}.welcome p{font-size:13px}.bottom-bar{padding:12px 17px max(12px,env(safe-area-inset-bottom));min-height:124px}.bottom-actions{gap:6px}.pocket-button{padding:8px 0;gap:7px}.scene-note{font-size:11px}.scene-note small{font-size:9px}.text-button{font-size:11px}.touch-controls{left:17px;right:18px;bottom:146px}#target-prompt{bottom:262px;font-size:11px}.toast{bottom:292px;font-size:13px}dialog{padding:45px 16px 22px;max-height:calc(100svh - 50px)}.letter-paper{padding:4px 8px 20px}.letter-body{font-size:14px}.album-page{padding:12px 8px 30px}.album-caption{font-size:11px}.album-book{border:0}dialog[data-type="ritual"]{bottom:9%;max-height:55svh;padding:42px 16px 12px}dialog[data-type="ritual"] .candle-heading{font-size:25px}}
/* The entrance stays quiet; only the two ways into the scene remain. */
.welcome{top:52%}
body[data-scene="outside"] .scene-note>.tiny-star,body[data-scene="outside"] #scene-note{display:none}
@media(max-width:700px){.welcome{top:23%}}
.keepsake--family-letter .letter-paper{max-width:600px;margin:auto;padding:18px 12px 26px}
.keepsake--family-letter .letter-body{font-size:clamp(18px,2.6vw,23px);text-align:center;line-height:2.1;text-shadow:0 2px 5px #24170fff,0 0 18px #24170fcc}
.keepsake--family-letter .letter-signature{font-size:18px;margin-top:24px;text-shadow:var(--floating-shadow)}
