/* Reuse the actual previous game's night.css + memory.css; only adapt asset and text IDs. */
.kaiduan-game .image-layer,.kaiduan-game .image-layer img{position:absolute;inset:0;width:100%;height:100%}.kaiduan-game .image-layer{isolation:isolate}.kaiduan-game .image-layer img{object-fit:cover;object-position:center 40%}.kaiduan-game #tint,.kaiduan-game #edge{position:absolute;inset:0;pointer-events:none;opacity:0}.kaiduan-game #screen[data-look=unease] img{filter:saturate(.87) contrast(1.024) brightness(.99)}.kaiduan-game #screen[data-look=unease] #tint{background:#6593b1;mix-blend-mode:soft-light;opacity:.084}.kaiduan-game #screen[data-look=unease] #edge{background:radial-gradient(ellipse at 48% 42%,transparent 38%,#05101b8a 100%);opacity:.36}.kaiduan-game #screen[data-look=tension] img{filter:saturate(.94) contrast(1.07) brightness(.99)}.kaiduan-game #screen[data-look=tension] #edge{background:radial-gradient(ellipse at center,transparent 45%,#16181966 100%);opacity:.24}
.kaiduan-game #words{min-height:46px;font-size:17px;line-height:1.9;margin:13px 0 16px}.kaiduan-game dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px}.kaiduan-game dialog header h2{font-size:23px;font-weight:400}.kaiduan-game dialog header button{font-size:25px}.kaiduan-game #history-content p{padding:12px 0;border-bottom:1px solid #ffffff18;line-height:1.9}.kaiduan-game .settings-list{display:grid;gap:20px;min-width:240px}.kaiduan-game .settings-list button,.kaiduan-game select{border:1px solid #c5adc563;padding:9px 14px;text-align:left}.kaiduan-game select{background:#171d28;color:#ece3ef;font:inherit;margin-left:12px;max-width:150px}.kaiduan-game .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}
@media(max-width:600px){.kaiduan-game #words{font-size:15px}.kaiduan-game .image-layer img{object-position:var(--shot-focus,50%) 35%}}
@media(max-height:650px) and (min-width:601px){.kaiduan-game #words{font-size:15px;min-height:30px;margin:8px 0}}
.kaiduan-game .dialogue-footer .advance{margin-left:auto}



.kaiduan-game #audio-status{font-size:12px;color:#beb7c5;font-weight:normal}.kaiduan-game #sound-sample{width:100%;margin:20px 0}.kaiduan-game #sound-panel p{max-width:520px;line-height:1.8}

.kaiduan-game #sound-panel{max-height:90dvh;overflow:auto}.kaiduan-game #sound-panel label{display:inline-flex;align-items:center;font-size:13px;margin:0 12px 12px 0}.kaiduan-game #sample-picture{display:block;width:100%;height:190px;object-fit:cover;object-position:center 35%;border-radius:4px}.kaiduan-game #sample-picture[hidden]{display:none}.kaiduan-game #sample-intent{font-size:13px;line-height:1.6}.kaiduan-game #sound-panel #sound-sample{margin:12px 0}@media(max-width:600px){.kaiduan-game #sample-picture{height:155px}.kaiduan-game #sound-panel{padding:20px}}

.kaiduan-game #settings-panel{max-height:88dvh;overflow:auto}.kaiduan-game .sound-credits{font-size:12px;line-height:1.7}.kaiduan-game .sound-credits summary{cursor:pointer}.kaiduan-game .sound-credits a{color:#e1cbe6}

/* Generated phone close-ups remain full-bleed; only the optional inspection is a modal. */
.kaiduan-game #phone-panel{width:min(760px,92vw);max-height:90dvh;overflow:auto}.kaiduan-game #phone-picture{display:block;width:100%;height:auto;border-radius:4px}.kaiduan-game #phone-transcript{display:grid;gap:12px;margin-top:16px}.kaiduan-game .phone-message{padding:14px 16px;background:#eef0ec;color:#202622;border-radius:8px}.kaiduan-game .phone-message small{color:#687267}.kaiduan-game .phone-message p{margin:6px 0 0;line-height:1.7;font-size:16px}.kaiduan-game #inspect-phone{color:#e6d3ed}.kaiduan-game #inspect-phone[hidden]{display:none}
@media(max-width:600px){.kaiduan-game #phone-panel{padding:18px}.kaiduan-game .dialogue-footer>div{flex-wrap:wrap}.kaiduan-game #screen[data-art^="phone"] img{object-position:var(--shot-focus,50%) 15%}}

.kaiduan-game #voice-candidates{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 16px}.kaiduan-game #voice-candidates[hidden]{display:none}.kaiduan-game #voice-candidates button{padding:12px 10px;border:1px solid #c5adc563;text-align:left;border-radius:4px;font-size:14px}.kaiduan-game #voice-candidates button[aria-pressed=true]{background:#dfd0e5;color:#24202a;border-color:#efe5f3}.kaiduan-game #sample-version{max-width:245px}@media(max-width:600px){.kaiduan-game #sample-version{max-width:210px}}

/* Narration presentation v5: retain the approved game shell and full-bleed art. */
.kaiduan-game #caption[data-kind=narration] .dialogue-top{display:none}
.kaiduan-game #caption[data-kind=narration] #words{margin-top:3px}
.kaiduan-game #caption[data-kind=thought] #who{color:#cfc6e5;font-size:13px}
.kaiduan-game #caption[data-kind=thought] #words{color:#dfdaeb;border-left:2px solid #c4b7db55;padding-left:12px}
.kaiduan-game #history-content [data-kind=thought]{color:#dfdaeb;border-left:2px solid #c4b7db55;padding-left:12px}
.kaiduan-game #revoice[hidden],.kaiduan-game #who[hidden]{display:none}

/* Action hands must stay inside the frame, including tall desktop panels. */
.kaiduan-game #screen[data-art^="duli-"] .image-layer img{object-position:var(--shot-focus,50%) 35%}

/* V9 actions stay readable; evidence details magnify the unchanged source photograph. */
.kaiduan-game #screen[data-art^="audit-"] .image-layer img{object-position:var(--shot-focus,50%) 32%}
.kaiduan-game #screen[data-crop="detail"] .image-layer img{object-fit:cover;object-position:var(--detail-x) var(--detail-y);transform:scale(var(--detail-zoom));transform-origin:var(--detail-x) var(--detail-y)}

/* V13: compact native fullscreen control; immersive mode contains only the game. */
.kaiduan-game .night-header{padding-right:calc(5.2% + 48px)}
.kaiduan-game #fullscreen-quick{position:absolute;z-index:5;right:5.2%;top:14px;width:34px;height:34px;padding:0;display:grid;place-items:center;border:1px solid #ddd4ea55;border-radius:6px;background:#11182055;color:#eee8f4;cursor:pointer}
.kaiduan-game #night-app[data-view=intro] #fullscreen-quick{top:27px}
.kaiduan-game #fullscreen-quick:hover,.kaiduan-game #fullscreen-quick:focus-visible{opacity:1;background:#202534bb;border-color:#eee0ff;outline:2px solid #d8cbe7;outline-offset:3px}
.kaiduan-game #fullscreen-quick .collapse-icon{display:none}
.kaiduan-game.game-fullscreen .night-header,.kaiduan-game.game-fullscreen .scene-heading,.kaiduan-game.game-fullscreen #save-status{display:none}
.kaiduan-game.game-fullscreen #fullscreen-quick{position:fixed;top:16px;right:20px;opacity:.35}
.kaiduan-game.game-fullscreen #fullscreen-quick:hover,.kaiduan-game.game-fullscreen #fullscreen-quick:focus-visible{opacity:1}
.kaiduan-game.game-fullscreen #fullscreen-quick .expand-icon{display:none}
.kaiduan-game.game-fullscreen #fullscreen-quick .collapse-icon{display:block}
.kaiduan-game #night-app:fullscreen{width:100%;height:100%;overflow:auto;background:#0c1119}
.kaiduan-game.game-fullscreen #play{min-height:100dvh}
@media(max-width:600px){.kaiduan-game .night-header{padding-right:64px}.kaiduan-game #fullscreen-quick{right:14px}.kaiduan-game.game-fullscreen #fullscreen-quick{right:14px}}

/* V15: artwork already has motivated night lighting; do not tint it blue again. */
.kaiduan-game.night-edition #screen img{filter:none}
.kaiduan-game.night-edition #screen #tint{opacity:0}
.kaiduan-game.night-edition #screen #edge{opacity:.12}
