/* Shared presentation rules for the playable refinement pass. */
[data-asset-state=loading]>:not(.asset-status),[data-asset-state=error]>:not(.asset-status){visibility:hidden!important;pointer-events:none!important}
.asset-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:18px;z-index:90;background:#101b19e8;color:#ddd4b8;font:18px/1.6 var(--serif);pointer-events:auto}
.asset-retry{padding:9px 18px;border:1px solid #8d8060;color:#eee0b8;background:#283a32}
.cg-load-status{position:fixed;inset:60px 0 0;z-index:12}.cg-pending #story-view,.cg-pending #notice-view,.cg-pending #scene-objects,.cg-pending #inspect-assist{visibility:hidden!important;pointer-events:none!important}
.scene-reading .reading-ink{font-family:'Songbai Hand','KaiTi',serif!important;font-weight:400;-webkit-text-stroke:0;text-shadow:none;color:#211a13!important;line-height:1.6}
.scene-reading .reading-ink header,.scene-reading .reading-ink button{font-family:'KaiTi',serif;font-weight:400;-webkit-text-stroke:0;text-shadow:none;color:#2b2117}
.reading-words{overflow:hidden!important;scrollbar-width:none}
.grave-subtitles blockquote{max-width:min(90vw,720px);text-wrap:balance}
.grave-subtitle-line{white-space:normal}.object-glint{opacity:.65}.scene-object.examined .object-glint{opacity:.15}
.scene-object.required-object .object-label{opacity:1;transform:translate(-50%,0);background:#13221fe8;color:#eee3c6;border:1px solid #ad9b7166}
.memory-scene{position:fixed;inset:0;z-index:8;overflow:hidden;background:#101b19}.memory-plane{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:100%;height:100%;aspect-ratio:16/9}.memory-plane>img{width:100%;height:100%;display:block;object-fit:cover}
.memory-content{position:absolute;color:#292a21;overflow:hidden;font:20px/1.7 'KaiTi',serif}
.memory-content h3{color:#272b24!important}.memory-leave{position:absolute;right:5%;bottom:5%;color:#eee2bd;background:#17231fe8;border:1px solid #9d8a61;padding:9px 22px;font:18px var(--serif)}
.memory-scene[data-kind=dismissal] .memory-content{left:30%;top:13%;width:40%;height:65%;padding:2.8% 3%;background:#e5d7b5;box-shadow:0 6px 30px #0009;transform:rotate(-1.2deg);display:flex;flex-direction:column}
.memory-paper-words{flex:1;min-height:0;overflow:hidden}.memory-paper-words p{margin:.6em 0}.memory-paper-words h3{text-align:center;font-size:24px;margin:.5em 0}.memory-paper-words small{font-size:14px}.memory-paper-words .letter-sign{margin:15px 0 0;font-size:20px}.memory-content .letter-letterhead{font-size:14px}.memory-content .letter-number{font-size:14px;color:#4c4a39;margin:8px 0}.memory-page-turn{align-self:flex-end;color:#3b3021;border-bottom:1px solid #87704b;padding:6px 10px;font:18px 'KaiTi',serif}
.memory-scene[data-kind=forum] .memory-content{left:14%;top:13%;width:72%;height:57%;font-family:'Microsoft YaHei',sans-serif;background:#e5e2d3;display:flex;flex-direction:column}
.memory-content .forum-window{height:100%;display:flex;flex-direction:column}.memory-content .forum-page{max-height:none!important;flex:1;min-height:0;grid-template-columns:140px 1fr}.memory-content .forum-page main{padding:22px 32px}.memory-content .forum-toolbar{flex:none;font-size:12px}.memory-content .forum-page aside{font-size:13px}.memory-content .forum-comment,.memory-content .forum-post,.memory-content .forum-reply{font-size:17px}
.memory-scene[data-kind=phone] .memory-content{left:36%;top:12%;width:28%;height:62%;background:#deded0;padding:2%;font-family:'Microsoft YaHei',sans-serif}.memory-content .phone-shell{width:100%;max-width:none;box-shadow:none;padding:0;background:transparent;border:0;border-radius:0;color:#262c26}.memory-content .phone-shell h3{font-size:21px}.memory-content .chat-received{font-size:18px;padding:10px;margin:10px 0}.memory-content .chat-os{color:#4c5747;font-size:16px}.memory-content .phone-input{font-size:16px}
.memory-content .inspection-aside{color:#383c31}.memory-content .fictional-seal{color:#88392e;border-color:#88392e}
body.scene-memory-active .dialogue-panel,body.scene-memory-active #left-portrait,body.scene-memory-active #right-portrait,body.scene-memory-active #choices{visibility:hidden!important}
body.scene-memory-active #scene-objects,body.scene-memory-active #inspect-assist{visibility:hidden!important}
body.cemetery-night #backdrop{filter:brightness(.65) saturate(.64) hue-rotate(6deg)}
.painted-investigation[data-prop=photo-envelope] .painted-real-object.operated{filter:brightness(1.12)}
@media(max-width:900px){.memory-scene[data-kind=dismissal] .memory-content{left:17%;width:66%;top:12%;height:72%;font-size:20px;padding:4%}.memory-scene[data-kind=forum] .memory-content{left:8%;width:84%;top:14%;height:60%}.memory-content .forum-page{grid-template-columns:1fr}.memory-content .forum-page aside{display:none}.memory-content .forum-page main{padding:18px}.memory-scene[data-kind=phone] .memory-content{left:30%;width:40%;font-size:18px}.memory-content .chat-received{font-size:17px}}
@media(max-width:600px){.memory-scene[data-kind=dismissal] .memory-content{left:7%;width:86%;top:11%;height:75%;font-size:19px}.memory-scene[data-kind=phone] .memory-content{left:18%;width:64%;top:14%;height:62%}.memory-content .chat-received{font-size:17px}.memory-leave{bottom:4%;right:7%}.memory-content .forum-comment,.memory-content .forum-post,.memory-content .forum-reply{font-size:16px}}
@media(prefers-reduced-motion:reduce){.object-glint{animation:none!important}}
.memory-plane{transform:translate(-50%,-50%) scale(var(--memory-zoom,1))}
.memory-scene[data-kind=forum]{--memory-zoom:1.25}.memory-scene[data-kind=forum] .memory-content{left:23.2%;top:18.7%;width:53%;height:44.1%}
.memory-scene[data-kind=phone]{--memory-zoom:1.22}.memory-scene[data-kind=phone] .memory-content{left:41.1%;top:20%;width:18%;height:49.8%;padding:.8%}.memory-content .phone-status{font-size:12px}.memory-content .phone-input{display:none}.memory-content .phone-shell h3{font-size:18px;margin:7px 0}.memory-content .chat-received{font-size:16px;line-height:1.55;padding:7px;margin:8px 0}.memory-content .chat-os{font-size:14px;line-height:1.6;margin:8px 0}.memory-content .forum-actions,.memory-content #forum-expand:has(+p:not([hidden])){display:none}
body.cemetery-night #backdrop{filter:brightness(.52) saturate(.48) hue-rotate(12deg)}body.cemetery-night .puzzle-cg{filter:brightness(.48) saturate(.5)}body.cemetery-night .scene-puzzle[data-kind=proof] .puzzle-cg{filter:brightness(.72) saturate(.6)}
.painted-investigating:has(.painted-investigation[data-prop=photo-envelope]) .dialogue-panel{top:95px;bottom:auto;left:5%;width:min(480px,90%);min-height:0;padding:18px 22px;background:#12201be8}.painted-investigating:has(.painted-investigation[data-prop=photo-envelope]) .story-text{font-size:21px;line-height:1.6;min-height:0}.painted-investigating:has(.painted-investigation[data-prop=photo-envelope]) .dialogue-topline{display:none}.painted-investigating:has(.painted-investigation[data-prop=photo-envelope]) .dialogue-bottom{margin-top:10px}
@media(max-width:900px){.memory-scene[data-kind=forum]{--memory-zoom:1.4}.memory-content .forum-page main{padding:12px 18px}.memory-content .forum-page{font-size:16px}.memory-scene[data-kind=phone]{--memory-zoom:1.45}}
@media(max-width:600px){.memory-scene[data-kind=forum]{--memory-zoom:1.2}.memory-scene[data-kind=forum] .memory-content{left:23.2%;width:53%;top:18.7%;height:44.1%}.memory-content .forum-page main{padding:12px}.memory-content .forum-comment,.memory-content .forum-post,.memory-content .forum-reply{font-size:16px}.memory-scene[data-kind=phone]{--memory-zoom:1.1}}
.scene-reading[data-type=book] .reading-ink{font-size:calc(22px / var(--reading-zoom,1));line-height:1.55}.memory-page-turn{background:#d5c49d;border:1px solid #8b744f;box-shadow:none}.memory-content>.object-actions{display:none}
.memory-scene[data-kind=dismissal] .memory-content{background-image:linear-gradient(8deg,transparent 49%,#92794b22 50%,transparent 51%),radial-gradient(ellipse at 10% 20%,#9f7d3720,transparent 55%),linear-gradient(90deg,#b9a17122,transparent 8%,transparent 90%,#b9a17120)}
.memory-content .forum-breadcrumb{font-size:11px;line-height:1.4}.memory-content .forum-page main h3{font-size:23px;line-height:1.4;margin:7px 0}.memory-content .forum-score{margin:3px 0 10px;font-size:18px}.memory-content .forum-post{margin:10px 0;padding:10px 0;gap:12px}.memory-content .forum-post p{margin:7px 0;font-size:16px;line-height:1.65}.memory-content .forum-post b{font-size:16px}.memory-content .forum-post small,.memory-content .forum-count{font-size:11px}.memory-content .forum-post .forum-avatar{width:32px;height:32px;font-size:16px}.memory-content .forum-reply{padding:12px}.memory-content .forum-comment{padding:13px 3px}
body:has(.scene-object[data-object=photo-envelope]) .dialogue-panel,.painted-investigating:has(.painted-investigation[data-prop=photo-envelope]) .dialogue-panel{position:fixed!important;left:4vw!important;top:110px!important;bottom:auto!important;transform:none!important;width:min(440px,80vw)!important;min-height:0;padding:18px 22px;background:#12201be8}
body:has(.scene-object[data-object=photo-envelope]) .story-text{font-size:21px;line-height:1.6;min-height:0}body:has(.scene-object[data-object=photo-envelope]) .dialogue-topline{display:none}
.scene-reading[data-type=book] .reading-words p{text-wrap:balance}
body:not(.scene-puzzle-active):has(#backdrop[data-cg^="photo-desk"]) .dialogue-panel{position:fixed!important;left:4vw!important;right:auto!important;top:110px!important;bottom:auto!important;transform:none!important;margin:0!important;width:min(440px,80vw)!important;min-height:0;padding:18px 22px;background:#12201be8}
body:not(.scene-puzzle-active):has(#backdrop[data-cg^="photo-desk"]) .story-text{font-size:21px;line-height:1.6;min-height:0}
body:not(.scene-puzzle-active):has(#backdrop[data-cg^="photo-desk"]) .dialogue-topline{display:none}
