/* Story presentation: existing character masters remain unchanged. */
.room-game-panel .story-cinematic{display:block;aspect-ratio:auto;overflow:hidden;background:#f7f4ea}.story-cinematic:after{display:none}.story-visual{position:relative;aspect-ratio:3/2;overflow:hidden;isolation:isolate;background:#dce5d6}.story-visual:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#334c3820,transparent 23%,transparent 76%,#334c3815);z-index:1}.story-painted{position:absolute;inset:0;width:100%;height:100%;background-image:url('/assets/mystery/story-atlas-v2.png');background-size:200% 300%;background-repeat:no-repeat;transform:scale(1.012);animation:storyCamera 8s linear forwards}.story-painted[data-panel="0"]{background-position:0 0}.story-painted[data-panel="1"]{background-position:100% 0}.story-painted[data-panel="2"]{background-position:0 50%}.story-painted[data-panel="3"]{background-position:100% 50%}.story-painted[data-panel="4"]{background-position:0 100%}.story-painted[data-panel="5"]{background-position:100% 100%}.story-shot-box{transform-origin:45% 65%}.story-shot-deal{transform-origin:55% 35%}.story-shot-missing{transform-origin:55% 80%}.story-shot-blackout{filter:brightness(.35) blur(2px)}.story-grain{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 45%,#314c3026)}.story-location{position:absolute;left:20px;top:18px;z-index:2;color:#405746;background:#fff9edea;box-shadow:0 3px 14px #334c3812;border:1px solid #fff8edbd;border-radius:25px;padding:8px 13px;font-size:10px;letter-spacing:.4px}.story-cinematic .room-story-caption,.story-cinematic.is-origin .room-story-caption{position:relative;inset:auto;padding:25px 28px 28px;color:#314a3c;background:#faf7ee;border-top:1px solid #e5e6d5;min-height:190px}.story-cinematic .room-story-caption>span{display:flex;align-items:center;gap:10px;color:#7a8b72;font-size:9px;font-weight:600;letter-spacing:1.6px}.room-story-caption>span i{height:1px;width:28px;background:#b5c2a1}.story-cinematic .room-story-caption h3{font-size:24px;line-height:1.5;letter-spacing:-.65px;margin:12px 0 15px;color:#314a3c;word-break:keep-all}.story-cinematic .room-story-caption p{max-width:650px;color:#5b6b59;font-size:14px;line-height:1.95;word-break:keep-all;overflow-wrap:anywhere;margin:0}.story-cinematic .room-story-caption blockquote{margin:0 0 12px;padding:10px 14px;border-left:3px solid #b2c395;border-radius:0 7px 7px 0;background:#edf0e2;color:#425e42;font-size:14px;font-weight:600;line-height:1.8;word-break:keep-all}.story-cinematic .story-visual>.room-origin-character,.story-cinematic.is-origin .story-visual>.room-origin-character{position:absolute;top:auto;right:6%;bottom:2%;z-index:2;transform:scale(.8);transform-origin:bottom right;width:350px;height:165px;filter:drop-shadow(0 5px 4px #40563e20)}.story-cinematic .room-origin-character small{display:none}.story-cinematic .room-origin-character .art-ground{opacity:.6}.story-cinematic .room-origin-character .speech,.story-cinematic .room-origin-character .art-spark{display:none}.room-game-panel .room-story-controls{border-top:1px solid #e2e6d6;padding:12px 18px;background:#f2f4e9;gap:8px}.room-story-controls button{border-radius:9px}.room-story-controls .primary{background:#456b53;color:#fffbed;border:0}.cinematic-poster{aspect-ratio:3/2;background:#dce5d6}.cinematic-poster .story-painted{animation:none}.cinematic-poster:after{background:linear-gradient(90deg,#233d32eb,#233d32b3 45%,#233d3220)}.cinematic-poster>div{max-width:78%}.cinematic-poster h3{font-size:29px;letter-spacing:-.8px;word-break:keep-all}.cinematic-poster p{max-width:330px}.room-game-panel .room-clear-result{background:#f6f1e4;border-top:1px solid #dedbc8}.room-clear-result>p{line-height:2.1;word-break:keep-all}.room-game-panel .room-journal{background:#fafbf6}.room-clue-cards article{box-shadow:0 3px 10px #3b573b04}.room-clue-cards p{line-height:1.95}.room-title-block h2{letter-spacing:-.35px}
@keyframes storyCamera{from{transform:scale(1.012)}to{transform:scale(1.045)}}
@media(max-width:600px){.story-location{left:12px;top:12px;font-size:9px;padding:6px 10px}.story-cinematic .room-story-caption,.story-cinematic.is-origin .room-story-caption{padding:20px 20px 23px;min-height:205px}.story-cinematic .room-story-caption h3{font-size:21px;line-height:1.5;margin:11px 0 12px}.story-cinematic .room-story-caption p{font-size:13px;line-height:1.95;max-width:none}.story-cinematic .room-story-caption blockquote{font-size:13px;padding:9px 12px;margin-bottom:12px}.story-cinematic .story-visual>.room-origin-character,.story-cinematic.is-origin .story-visual>.room-origin-character{right:3%;bottom:0;top:auto;transform:scale(.49);width:350px}.room-game-panel .room-story-controls{padding:11px 12px;gap:6px}.room-story-controls .outline,.room-story-controls .primary{min-height:38px;padding:7px 10px;font-size:10px}.cinematic-poster h3{font-size:23px;line-height:1.5}.cinematic-poster>div{max-width:85%;left:7%}.cinematic-poster p{font-size:12px;line-height:1.8;max-width:260px}.cinematic-poster small{font-size:9px!important;line-height:1.8!important;max-width:260px}.cinematic-poster .primary{min-height:40px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.story-painted{animation:none;transform:none}.room-story-controls progress::-webkit-progress-value{transition:none}}

/* Casual painted exploration. All pointer targets remain invisible. */
.painted-exploration{aspect-ratio:5/3;background:#eddfbb}.painted-exploration .room-painted-background,.painted-exploration .room-object-layer{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;user-select:none;pointer-events:none}.painted-exploration .room-object-layer{overflow:visible}.painted-exploration:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 45px #73694612;z-index:1}.room-object-modal{color:#405840}.room-object-modal>h2{letter-spacing:-.4px}.room-object-modal .clock-object-view{background:linear-gradient(#f1e6c9e0,#e6d7b1e0 76%,#c6ad80ed 77%,#d7bb8aee),url('/assets/mystery/record-room-casual-v1.png') center/cover;border:1px solid #d9ccaa;box-shadow:inset 0 2px 15px #8d795719}.room-object-modal .clock-wall-line{background:#a6a17d}.room-object-modal .clock-floor{background:repeating-linear-gradient(0deg,#ae8f5620 0,#ae8f5620 2px,transparent 2px,transparent 22px);border-color:#b29d7066}.room-object-modal .room-drag-clock svg{filter:drop-shadow(0 6px 4px #a58a532a)}.room-object-modal .room-found-paper{background:#fff3cf;color:#ad9969;box-shadow:0 3px 6px #78603b2b;border:1px solid #e5d3a4;border-radius:3px}.room-object-modal .book-object-view{background:linear-gradient(#b99a6580,#9e7c4ec2),url('/assets/mystery/record-room-casual-v1.png') 8% 20%/390% auto;border:8px solid #c1a06b;border-bottom:16px solid #d1af77;box-shadow:inset 0 6px 20px #81663d30}.room-object-modal .room-pull-book{border-color:#b4a17c;box-shadow:4px 5px 6px #715a3b33;border-radius:5px;color:#fff8e4}.room-object-modal .book-blue{background:linear-gradient(90deg,#85a4af,#b3c8cb)}.room-object-modal .book-green{background:linear-gradient(90deg,#8b9d73,#b5c093)}.room-object-modal .book-yellow{background:linear-gradient(90deg,#d4af6e,#ead39a)}.room-object-modal .drawer-object-view{background:#c6a36e;border-color:#d5b27c;box-shadow:inset 0 5px 13px #88704330}.room-object-modal .room-drawer{background:linear-gradient(#dab47b,#d2aa70);border-color:#b89660;box-shadow:0 3px 4px #8c6c3a20;color:#6e6a46}.room-object-modal .room-drawer small{color:#7c744e}.room-object-modal .room-drawer-handle{background:#f1d17f;box-shadow:0 2px #ac8c4f}.room-object-modal .room-drawer.open{background:#b39564}.room-object-modal .drawer-empty-top{background:#9c855e;color:#f1e7cb;border-radius:4px}.room-object-modal .room-false-floor{background:#b49c71;border-color:#d1b889;box-shadow:inset -2px -4px 0 #9c8255}.room-object-modal .room-false-floor:before{background:#e1cea0}.room-object-modal .cabinet-object-view{background:#a5ac83;border-color:#c0c6a1;box-shadow:inset 0 5px 14px #6f785330}.room-object-modal .cabinet-object-door{background:linear-gradient(120deg,#bac29a,#9fa980);border-color:#8b9871;color:#fff1be;box-shadow:inset 0 1px #d3d6ac}.room-object-modal .cabinet-object-door small{color:#536647}.room-object-modal .cabinet-upper-tray,.room-object-modal .cabinet-lower-tray{background:#c2c8a8;border-color:#dde0c4;color:#5b6b4d;box-shadow:0 12px #899674}.room-object-modal .room-decoy-window{border-color:#ba9a6b;background:linear-gradient(#7699af,#a4b9b8);color:#fff4c7;box-shadow:inset 0 0 40px #66849a40}.room-object-modal .room-decoy-lamp{background:radial-gradient(ellipse at center,#fff2c4,#f0e6c9);color:#c49d54}

.room-title-block>.room-mini-character{display:block;position:relative;flex:0 0 68px;width:68px;height:82px;padding:0;border:1px solid #dfe6d3;border-radius:16px;overflow:hidden;background:#f0f3e8;box-shadow:none;cursor:pointer}.room-mini-character .detective-character{position:absolute;left:-28px;top:-4px;width:220px;transform:scale(.55);transform-origin:top left}.room-mini-character .speech,.room-mini-character .art-spark,.room-mini-character .art-ground,.room-mini-character .detective-character>small{display:none}.room-mini-character:focus-visible{outline:2px solid #6d8b58;outline-offset:3px}.room-title-block>div:last-child{min-width:0}.room-title-block h2{flex-wrap:wrap}.room-game-panel>header{gap:10px}@media(max-width:600px){.room-title-block>.room-mini-character{flex-basis:54px;width:54px;height:68px;border-radius:13px}.room-mini-character .detective-character{left:-24px;top:-4px;transform:scale(.46)}}
