/* Visual additions only; base palette, characters and END assets unchanged. */
[hidden]{display:none!important}
/* Live arrest testimony: a large face extracted from the pre-existing pixel sprite. */
.dialog-overlay.capture-mode{background:linear-gradient(180deg,#14324bbd 0%,#12314b9c 42%,#183a55d0 95%)}
.capture-portrait-scene{position:absolute;top:clamp(158px,22%,240px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:7px;width:min(79%,310px);max-height:calc(100% - 380px);pointer-events:none;z-index:2}
.capture-face-frame{position:relative;width:min(100%,280px);aspect-ratio:1;background:#eef6fb;border:6px solid #edf2ed;outline:3px double #9db3b9;box-shadow:0 8px 24px #15314c55;overflow:hidden}
.capture-face-frame canvas{width:100%;height:100%;display:block;image-rendering:pixelated}
.capture-person-label{font:900 clamp(14px,4vw,18px)/1.4 'Noto Serif JP',serif;color:#f1e7d5;background:#112d46ed;border:1px solid #9cd7e7;padding:5px 15px;text-align:center}
.capture-mouth{display:none}
.capture-speaking-bars{display:none}
.capture-speaking-bars i{display:block;width:4px;height:8px;background:#f6f4d6;animation:speakingBar .41s steps(2,end) infinite alternate}
.capture-speaking-bars i:nth-child(2){animation-delay:.14s;height:15px}.capture-speaking-bars i:nth-child(3){animation-delay:.23s;height:9px}.capture-speaking-bars i:nth-child(4){animation-delay:.31s;height:17px}
.capture-portrait-scene.capture-bounce{animation:faceArrives .22s ease-out both}
@keyframes faceArrives{from{opacity:.35;transform:translate(-50%,8px) scale(.97)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@keyframes captureTalk{0%,100%{height:2px;width:10px}50%{height:9px;width:7px;border-radius:2px}}
@keyframes speakingBar{from{transform:scaleY(.35)}to{transform:scaleY(1)}}
@media(max-height:760px){.capture-portrait-scene{top:clamp(126px,21%,170px);max-height:calc(100% - 300px)}.capture-face-frame{width:min(100%,200px)}}
@media(max-height:620px){.capture-portrait-scene{top:clamp(108px,20%,142px)}.capture-face-frame{width:min(100%,145px)}.capture-person-label{font-size:12px;padding:3px 7px}}
@media(max-width:350px){.capture-portrait-scene{top:clamp(124px,23%,195px)}.capture-face-frame{width:min(100%,200px)}}
/* Bystanders speak above the pixel actors, not in the bottom dialogue box. */
.dialog-overlay.bystander-mode{background:transparent;z-index:13}
.dialog-overlay.bystander-mode .dialog-card{visibility:hidden;pointer-events:none}
.bubble-tap-hint{display:none;position:absolute;left:50%;bottom:calc(22px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);font:900 12px/1.4 system-ui,sans-serif;background:#123652ed;color:#fff4d9;border:1px solid #a9d9eb;border-radius:4px;padding:8px 13px;white-space:nowrap;pointer-events:none}
.dialog-overlay.bystander-mode .bubble-tap-hint{display:block}
/* Official-looking fictional public notice instead of a floating information card. */
.wanted-detail-overlay .wanted-detail-body{background:#ede5d1!important;background-image:repeating-linear-gradient(0deg,transparent 0 8px,#5c483108 9px 10px)!important;box-shadow:inset 0 0 0 5px #b0a289,0 12px 42px #000b;border:5px double #bcb098!important;color:#1b2228!important;max-width:490px}
.wanted-poster-header{position:relative;text-align:center;display:flex;flex-direction:column;gap:3px;border-bottom:4px double #292b32;padding-bottom:10px}
.poster-japan-name{font:800 12px/1.3 'Noto Sans JP',sans-serif;color:#28303c;letter-spacing:.12em}
.poster-main-heading{font:900 clamp(35px,10.8vw,54px)/1.1 'Noto Serif JP',serif;letter-spacing:.08em;color:#a32d35;text-shadow:1px 1px 0 #58282c}
.poster-official-stamp{font:900 12px/1.2 'Noto Serif JP',serif;border:3px double #a72d3b;color:#a72d3b;align-self:flex-end;transform:rotate(-6deg);padding:4px 8px}
.wanted-detail-overlay .wanted-detail-seal{align-self:center;transform:none;background:none;color:#272c30;border:0;font-size:12px;padding:0;letter-spacing:.04em}
.wanted-detail-overlay .wanted-detail-index{color:#3b4144;border-color:#6a655b;text-align:center;font:800 12px/1.35 monospace}
.wanted-detail-overlay .wanted-detail-portrait{width:min(100%,245px);min-height:0!important;max-height:none;background:#d3c4a6;border:3px solid #5e5853;box-shadow:4px 5px 0 #70645360;padding:6px}
.wanted-detail-overlay .wanted-detail-portrait canvas{max-height:min(30dvh,260px);object-fit:contain;background:#d8dee0}
.wanted-detail-overlay .wanted-detail-name{text-align:center;font:900 clamp(24px,6.3vw,32px)/1.22 'Noto Serif JP',serif;border-bottom:2px solid #6f685d;color:#1a1b20;padding:4px 0 7px}
.wanted-detail-overlay .wanted-detail-warning{color:#3d3931;background:#ede2d0;border:2px solid #a6a093;border-left:5px solid #a02a36;font-size:clamp(13px,3.5vw,16px);padding:5px 8px}
.wanted-detail-overlay .wanted-detail-key{font-size:12px;color:#383a3b;border-bottom:1px solid #a39b8d;padding-bottom:2px}
.wanted-detail-overlay .wanted-detail-hint{background:none;border:0;padding:0;color:#1e2932!important;font-size:clamp(15px,4vw,18px)}
.wanted-detail-overlay .wanted-detail-crime{color:#9e2633;font-size:clamp(15px,4vw,19px)}
.poster-footnote{display:flex;flex-direction:column;gap:3px;border-top:3px double #918878;padding:6px 8px 2px;font:700 12px/1.35 'Noto Sans JP',sans-serif;color:#343334}
.poster-footnote b{font-size:13px}.poster-footnote small{font-size:10px;line-height:1.35}
.wanted-detail-overlay .wanted-detail-body .primary-btn{background:#18394b;color:#fff7df;box-shadow:0 0 0 2px #ede5d1;margin-top:2px}
@media(max-height:750px){.wanted-detail-overlay .wanted-detail-body{gap:5px}.poster-main-heading{font-size:clamp(31px,8vw,43px)}.poster-footnote{font-size:10px;padding-top:3px}.wanted-detail-overlay .wanted-detail-portrait{width:min(100%,155px)}.wanted-detail-overlay .wanted-detail-portrait canvas{max-height:155px}}
@media(max-height:570px){.poster-main-heading{font-size:29px}.poster-official-stamp{font-size:10px;padding:2px 5px}.wanted-detail-overlay .wanted-detail-portrait{width:min(100%,100px)}.wanted-detail-overlay .wanted-detail-portrait canvas{max-height:105px}.wanted-detail-overlay .wanted-detail-body{gap:3px}.wanted-detail-overlay .wanted-detail-body .primary-btn{min-height:44px}}
/* Developer-only tabs. Four across, no horizontal overflow even on a 320px screen. */
.debug-tabs{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;background:#082740;padding:9px 1px 7px;border-bottom:2px solid #4d94b6}
.debug-tab{font:800 clamp(11px,3vw,14px)/1.2 system-ui,sans-serif;padding:9px 2px;min-height:44px;color:#e6f9ff;border:1px solid #4d88a9;background:#18425f;border-radius:5px;min-width:0}
.debug-tab.is-active{background:#e4f3fa;color:#0c2e43;border-color:#d1f5ff;box-shadow:inset 0 -3px 0 #a32942}
.debug-tab:focus-visible{outline:3px solid #ffdc7c;outline-offset:1px}
.debug-tab-pane[hidden]{display:none!important}
.debug-tab-pane{padding-bottom:10px}
.debug-end-next{border:2px solid #ffd38d;background:#174c69;color:#fff;min-height:50px}
@media(prefers-reduced-motion:reduce){.capture-mouth,.capture-speaking-bars i,.capture-portrait-scene{animation:none!important}}

.dialog-overlay.riot-scene-mode{background:linear-gradient(0deg,#081a2ca6 0%,#071a2c10 36%,transparent 75%)}
.dialog-overlay.riot-scene-mode.bystander-mode{background:transparent}
/* Final small-screen legibility pass. */
.bubble-tap-hint{bottom:calc(69px + env(safe-area-inset-bottom,0px))}
@media(min-height:760px){.wanted-detail-overlay .wanted-detail-portrait{width:min(100%,195px)}.wanted-detail-overlay .wanted-detail-portrait canvas{max-height:228px}}
@media(max-height:700px){.bubble-tap-hint{bottom:calc(63px + env(safe-area-inset-bottom,0px))}}
