/* State Security / Dossier visual revision. Artwork, narrative, hit coordinates and
   original interactive structure remain unchanged. Loaded last by design. */
:root{
 --hud-navy:#082238;--hud-ink:#edf8ff;--hud-cyan:#74c9e8;--hud-edge:#4184aa;
 --hud-alert:#d72f50;--hud-muted:#c1dce9;--hud-paper:#e4f3ff;
}
/* 01-10: WANTED card, official user-supplied emblem, rules, navigation, status. */
.topbar{padding-inline:clamp(7px,2.2vw,12px);padding-bottom:8px;
 background:linear-gradient(153deg,#123d5c 0%,#092840 52%,#07192a 100%);
 border-bottom:2px solid var(--hud-cyan)}
.agency-row{gap:7px;min-height:40px;height:42px;padding-bottom:4px;margin-bottom:6px;
 border-bottom:1px solid #77c1e060}
.agency-mark{transform:none!important;width:37px;height:37px;min-width:37px;display:flex;
 align-items:center;justify-content:center;background:#eff6fb!important;outline:1px solid #8dcde6;
 outline-offset:-3px;border:1px solid #2b7597;border-radius:3px!important;
 box-shadow:0 1px 7px #0007!important;overflow:hidden;}
.agency-mark img{width:91%;height:91%;object-fit:contain;display:block}
.agency-title{font-family:var(--serif);font-weight:900;font-size:clamp(12px,3.5vw,16px);
 letter-spacing:.025em;line-height:1.14;white-space:normal;min-width:0}
.agency-sub{display:block;padding-top:3px;color:#bfe5f7;font-size:clamp(8px,2.3vw,10px);letter-spacing:.08em}
.agency-row .icon-btn{min-width:38px;width:38px;height:38px;flex:none;border-radius:3px;
 border:1px solid #72c5e9;box-shadow:inset 0 0 0 2px #082b45,0 1px 4px #0008;
 background:linear-gradient(#276188,#104266);color:#f8fcff;font-size:22px}
.wanted-strip{gap:0;grid-template-columns:clamp(57px,18%,75px) minmax(0,1fr) clamp(69px,20%,87px);
 border:2px solid #9bd6f0;outline:1px solid #246c98;outline-offset:-6px;
 box-shadow:0 3px 0 #061526,0 8px 16px #0005;background:#eaf6ff;min-height:100px}
.wanted-photo{width:100%;height:100%;min-height:91px;position:relative;border:0!important;
 border-right:2px solid #5c9bbf!important;outline:0!important;
 background:#d9eaf6;box-shadow:inset 0 0 0 3px #ffffff88}
.wanted-photo:before{border:1px solid #6c9eb8;inset:5px}
.wanted-photo span{bottom:0;left:0;right:0;border:0;border-top:1px solid #91c8e1;
 background:#114669f0;color:#f9fdff;font:900 clamp(9px,2.3vw,11px)/1.25 var(--sans);padding:4px 0}
.wanted-photo canvas{object-fit:contain;max-height:130px}
.wanted-info{padding:7px 7px 6px 11px;gap:3px;justify-content:center;min-width:0;
 background:linear-gradient(107deg,#f4faff,#e0f1ff 80%,#cfe8f7)}
.wanted-label{display:flex;justify-content:space-between;align-items:center;gap:5px;
 margin:0 0 3px;border-bottom:1px solid #5aa3c58c;padding:0 0 4px;
 font:900 clamp(9px,2.25vw,12px)/1.1 var(--sans);letter-spacing:.055em;color:#175780}
.wanted-label-prefix{font-size:clamp(9px,2.3vw,12px)}
.wanted-label-case{white-space:nowrap;letter-spacing:.04em}
.wanted-name{color:#0b2b40;font:900 clamp(18px,5.1vw,25px)/1.18 var(--serif);
 letter-spacing:.02em;margin:0;white-space:normal;overflow-wrap:anywhere}
.wanted-hint{font:800 clamp(10px,2.75vw,13px)/1.34 var(--serif);
 color:#284f66;margin:0;overflow-wrap:anywhere}
.wanted-crime{font:900 clamp(10px,2.65vw,12px)/1.24 var(--serif);
 color:#a91c40;margin:0;overflow-wrap:anywhere;display:-webkit-box;
 -webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.wanted-hint-tap{font:800 clamp(8px,2.15vw,10px)/1.25 var(--sans);
 color:#116fa1;margin-top:3px;letter-spacing:0}
.time-block{min-width:0;padding:5px 3px;gap:4px;align-items:center;justify-content:space-between;
 border-left:2px solid #65a6cc;background:linear-gradient(#155478,#082e4d)}
.time-block span{color:#f2fbff;font:800 clamp(9px,2.4vw,12px)/1.3 var(--serif);letter-spacing:0}
.time-block strong{font:900 clamp(20px,5.4vw,27px)/1 var(--sans);width:100%;padding:8px 0;
 letter-spacing:-.05em;color:#fff;background:#07243e;
 border-top:1px solid #8fc8e0;border-bottom:1px solid #8fc8e0}
.time-block.time-critical{background:linear-gradient(#802239,#350d20);border-color:#ff6778}
.time-block.time-critical strong{background:#3f1225;color:#ffd3d4;border-color:#fc7b89}
.statusbar{gap:4px;min-height:58px;padding:6px 9px calc(7px + env(safe-area-inset-bottom,0px));
 border-top:2px solid #66c2eb;background:linear-gradient(#175378,#0a2e4b)}
.status-item{min-width:0;flex:1;min-height:44px;display:flex;gap:2px;flex-direction:column;
 align-items:center;justify-content:center;border-right:0}
.status-item span{font:900 clamp(10px,2.5vw,12px)/1.15 var(--serif);color:#d0edfb;letter-spacing:.02em}
.status-item b{font:900 clamp(22px,6vw,30px)/1.06 var(--sans);color:#fff;tab-size:2}
.status-item small{font-size:clamp(10px,2.3vw,12px);color:#a4d7ee}
.status-divider{width:1px;min-width:1px;height:33px;background:#72b8d385}
.status-small{flex:1;max-width:none;min-width:0;text-align:center;
 font:900 clamp(11px,2.7vw,13px)/1.35 var(--serif);color:#e0f6ff}
/* 11-18: clear surveillance image, balanced alerts, safe noninteractive framing. */
.playfield{border:0!important;flex:1 1 auto;min-height:0;isolation:isolate}
.playfield:before{animation:none!important;opacity:.20!important;z-index:2;
 background:repeating-linear-gradient(0deg,transparent 0 5px,rgba(10,36,58,.18) 6px 6.4px)}
.playfield:after{box-shadow:inset 0 0 0 1px #8ac9e785,inset 0 0 20px #092d4945}
.camera-corners{position:absolute;inset:9px;pointer-events:none;z-index:2;opacity:.74}
.camera-corners i{position:absolute;width:16px;height:16px;display:block;border-color:#c7f5ff}
.camera-corners i:nth-child(1){left:0;top:0;border-left:2px solid;border-top:2px solid}
.camera-corners i:nth-child(2){right:0;top:0;border-right:2px solid;border-top:2px solid}
.camera-corners i:nth-child(3){left:0;bottom:0;border-left:2px solid;border-bottom:2px solid}
.camera-corners i:nth-child(4){right:0;bottom:0;border-right:2px solid;border-bottom:2px solid}
.camera-top,.camera-bottom{font:900 clamp(9px,2.5vw,11px)/1.3 var(--sans);
 letter-spacing:.045em;color:#f6fbff;text-shadow:1px 1px 2px #07131e,0 0 6px #07131e}
.camera-top{left:17px;right:auto;top:16px;padding:6px 8px;
 border:1px solid #8bcbdf55;background:#0b2b40d9;max-width:calc(100% - 35px);white-space:nowrap}
.camera-bottom{left:14px;right:14px;bottom:12px;padding:5px 8px;border-top:1px solid #8dbfdf76;
 background:#0c3148c9;justify-content:space-between}
.live-dot{width:8px;height:8px;margin-right:5px;box-shadow:0 0 0 2px #11394f,0 0 8px #ff3f5c}
.playfield .riot-banner{left:8px;right:8px;top:58px!important;padding:8px 9px;
 font:900 clamp(11px,2.9vw,13px)/1.3 var(--serif);letter-spacing:.015em;
 color:#ffffff;background:#70283ce9;border:1px solid #f0adb2;box-shadow:0 2px 6px #07111dcc}
.playfield .riot-banner.riot-danger{background:#762137ed;color:#fff;border-color:#ec8390}
.camera-alert .camera-corners{border-color:#ed4865;opacity:1}
.camera-alert .camera-corners i{border-color:#ff6072}
.camera-alert::after{box-shadow:inset 0 0 0 2px #da3b5b5c,inset 0 0 37px #7c142844}
@media(prefers-reduced-motion:no-preference){.camera-alert .camera-corners{animation:surveillanceWarning 1.1s steps(2,end) infinite}}
@keyframes surveillanceWarning{50%{opacity:.30}}
/* 19-25: target/photo comparison and paper presentation. No image or mask geometry changes. */
.wanted-detail-overlay .overlay-top{gap:8px}
.wanted-detail-body.poster-art-active{background:#0a2337!important;gap:12px!important;
 padding:8px 10px calc(14px + env(safe-area-inset-bottom,0px))!important}
.wanted-poster-art{max-width:min(100%,550px)}
.wanted-poster-art img{width:100%;height:auto;max-height:calc(100dvh - 150px);object-fit:contain;
 border:2px solid #c1ad88;box-shadow:0 8px 24px #0009;background:#e6ddc9}
.wanted-detail-body.poster-art-active > .primary-btn{min-height:50px!important}
.compare-grid{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.compare-card .compare-box{min-width:0;display:flex;flex-direction:column;
 align-items:center;justify-content:flex-start;gap:4px;padding:7px 5px 5px;
 border:2px solid #8cbbd2;background:#e9f5ff;box-shadow:inset 0 0 0 3px #fff}
.compare-caption{width:100%;text-align:center;color:#173a55;border-bottom:1px solid #6a9ebd;
 font:900 clamp(11px,2.6vw,13px)/1.4 var(--sans);padding-bottom:3px}
.compare-box canvas{display:block;width:auto;height:auto;max-width:100%;max-height:min(24dvh,205px);
 image-rendering:pixelated;object-fit:contain;}
.compare-box .portrait-layer{min-width:0;display:grid;place-items:center}
.compare-note{min-height:24px;color:#3a6078;font:800 10px/1.35 var(--sans)}
.compare-card .red-btn{background:#b51b3f;color:#fff;border-color:#fc9dab}
.compare-card .secondary-btn{background:#214b67;color:#fff;border-color:#8fd2ed}
.compare-card .button-stack{gap:9px}
.compare-card .primary-btn,.compare-card .secondary-btn{min-height:50px}
.redaction-card{border:2px solid #9cc9df;background:linear-gradient(140deg,#173e56,#0c2741)}
.redaction-card .modal-eyebrow{border-bottom:1px solid #84bdd9;padding-bottom:5px;text-align:center;
 font:900 12px/1.3 var(--sans);letter-spacing:.09em;color:#e5f6ff}
.redaction-instruction{color:#eaf7ff!important;font-weight:900!important}
.redaction-scroll{background:#cfcac0;border:2px solid #7399a8;padding:5px;box-shadow:inset 0 0 12px #24282e57}
.reveal-document-frame{box-shadow:0 6px 16px #151e2777;}
.reveal-paper{background:linear-gradient(150deg,#f0ebdc,#e2ded0);border:1px solid #b7aa96;box-shadow:0 3px 15px #070e1773}
.reveal-document-mask,.reveal-black{outline:1px solid #33383d99;outline-offset:-2px}
.reveal-document-mask{clip-path:polygon(0 .6%,3% 0,30% .4%,68% 0,97% .7%,100% 0,99.7% 100%,80% 99.5%,54% 100%,15% 99.8%,0 100%)}
.reveal-spotlight{position:absolute;z-index:3;pointer-events:none;border:2px solid #e22d48;
 box-shadow:0 0 0 1px #fff4,inset 0 0 7px #e22d4866;inset:0;
 animation:revealFocusGlow 1.05s ease-out both}
.reveal-document-frame .reveal-spotlight{inset:auto}
@keyframes revealFocusGlow{0%{opacity:0;box-shadow:0 0 12px #f73565}25%{opacity:1;box-shadow:0 0 9px #f7356570}100%{opacity:0}}
.redaction-card #revealNext{min-height:48px}
/* 26-30: typography, true still-first cinema and the result screen. */
.dialog-card{border:2px solid #7dd0f1;border-radius:3px;
 background:linear-gradient(145deg,#0b3856ef,#091e36f5);
 padding:12px 15px 10px;box-shadow:0 0 26px #020b15ba,inset 0 0 0 3px #0a3a59}
.dialog-meta{padding-bottom:7px;border-bottom:1px solid #66aaca70;gap:6px}
#dialogSpeaker{display:inline-flex;align-items:center;min-height:23px;padding:2px 8px;
 border-left:3px solid #a6e6ff;background:#123c5edb;color:#fbfdff;font:900 12px/1.35 var(--serif)}
.dialog-overlay[data-voice="agency"] #dialogSpeaker{border-color:#ff6683;background:#5d1a39}
.dialog-overlay[data-voice="inner"] #dialogSpeaker{border-color:#bfe1f6;background:#1a4565}
.dialog-overlay[data-voice="agency"] .dialog-text{color:#ff728b}
.dialog-text{font:900 clamp(17px,4.7vw,23px)/1.5 var(--serif);
 color:#f7fcff;letter-spacing:.012em;min-height:0;max-height:none;overflow-y:auto;
 scrollbar-width:none}
.dialog-next{font:800 11px/1.4 var(--sans);color:#c5e5f8}
.dialog-next span{color:#78d7fa}
/* During the ending artwork, the illustration occupies every available pixel.
   Dialog window becomes subtitles without changing tap handling. */
.dialog-overlay.is-end-still{background:linear-gradient(0deg,#02070c88,transparent 42%);padding:0 7px calc(7px + env(safe-area-inset-bottom,0px))}
.dialog-overlay.is-end-still .dialog-card{min-height:0!important;height:auto!important;max-height:29dvh;
 padding:9px 13px 7px;border:1px solid #d1dfed80;border-radius:3px;
 background:linear-gradient(165deg,#030b17d9,#071524ef)!important;
 box-shadow:0 3px 20px #0008!important;backdrop-filter:blur(3px)}
.dialog-overlay.is-end-still .dialog-meta{border:0;padding-bottom:2px;min-height:22px}
.dialog-overlay.is-end-still #dialogSpeaker{font-size:11px;background:transparent;border-left:2px solid #b3d7ec;padding:1px 5px}
.dialog-overlay.is-end-still .dialog-text{font-size:clamp(17px,4.6vw,22px);line-height:1.37;
 text-shadow:0 2px 7px #000;min-height:0;padding:4px 0;overflow:hidden}
.dialog-overlay.is-end-still .dialog-next{font-size:9px}
.end-scene.is-ending-still .stage-ending-still{background:#04090e}
.end-scene.is-ending-still .stage-ending-still>img{max-width:100%;max-height:100%;object-fit:contain}
.ending-card{gap:8px!important;max-height:calc(100dvh - 22px);padding:clamp(10px,3.5vw,17px);
 border:2px solid #75c6e9;background:linear-gradient(155deg,#123954,#071e32)}
.ending-card .modal-eyebrow{font:900 12px/1.3 var(--sans);letter-spacing:.13em;
 color:#c2ecff;border-bottom:1px solid #6cbedb;padding-bottom:4px}
.ending-card h2{font-size:clamp(19px,5.2vw,28px);line-height:1.23;color:#f8fbff}
.ending-card .end-image-btn{height:clamp(155px,33dvh,385px);min-height:0;
 flex:1 1 auto;max-height:45dvh;border:2px solid #93cbe2;
 padding:2px;background:#071526;box-shadow:0 4px 13px #0008}
.ending-card .end-image-btn img{object-fit:contain;height:100%;width:100%;}
.ending-card .share-btn{min-height:49px;background:#c4edff;color:#0c3859;border-color:#f1fdff}
.ending-card .ending-row .secondary-btn{min-height:46px;background:#174e73;border-color:#7bc7ea;color:#f9fcff}
.ending-card .ending-quote{max-height:13dvh;overflow:auto;font-size:clamp(12px,3.4vw,17px)!important;line-height:1.38}
.ending-card .text-btn{font-size:12px;padding:5px 2px}
/* All phone-first placements stay inside safe areas, maintaining tappable targets. */
@media(max-width:365px){
 .topbar{padding-inline:6px}
 .agency-row{gap:4px;min-height:35px;height:37px}
 .agency-mark{min-width:31px;width:31px;height:31px}
 .agency-title{font-size:12px}
 .agency-sub{font-size:8px}
 .agency-row .icon-btn{width:35px;min-width:35px;height:35px}
 .wanted-strip{grid-template-columns:55px minmax(0,1fr) 66px;min-height:83px}
 .wanted-photo{min-height:81px}
 .wanted-info{padding:5px 4px 4px 6px;gap:1px}
 .wanted-label{font-size:8px;padding-bottom:3px}
 .wanted-name{font-size:17px}
 .wanted-hint{font-size:10px}
 .wanted-crime{font-size:10px;line-height:1.16}
 .wanted-hint-tap{font-size:8px}
 .time-block{padding:4px 2px}
 .time-block span{font-size:9px}
 .time-block strong{font-size:18px}
 .statusbar{padding-inline:4px;gap:2px}
 .status-item span{font-size:10px}
 .status-item b{font-size:22px}
 .status-small{font-size:10px}
 .compare-card .compare-box{padding:4px 2px}
 .compare-note{font-size:9px;min-height:19px}
 .ending-card .end-image-btn{max-height:35dvh}
}
@media(max-height:700px){
 .agency-row{min-height:34px;height:35px;margin-bottom:4px}
 .agency-mark{width:31px;height:31px;min-width:31px}
 .agency-row .icon-btn{min-width:34px;width:34px;height:34px}
 .topbar{padding-top:calc(4px + env(safe-area-inset-top,0px));padding-bottom:5px}
 .wanted-strip{min-height:75px}
 .wanted-photo{min-height:74px}
 .wanted-info{padding-block:3px;gap:1px}
 .wanted-label{margin-bottom:1px}
 .wanted-hint-tap{margin-top:1px}
 .statusbar{min-height:46px;padding-top:4px}
 .status-item{min-height:35px}
 .status-item b{font-size:20px}
 .camera-top{top:12px}
 .playfield .riot-banner{top:44px!important}
 .compare-box canvas{max-height:19dvh}
 .dialog-card{max-height:44dvh}
 .dialog-overlay.is-end-still .dialog-card{max-height:34dvh}
 .ending-card .end-image-btn{height:clamp(115px,26dvh,250px);max-height:30dvh}
 .ending-card .share-btn,.ending-card .ending-row .secondary-btn{min-height:43px}
}
@media(min-width:768px) and (orientation:landscape){
 .end-scene.is-ending-still{position:fixed!important;inset:0!important}
 .ending-card{width:min(92vw,680px)}
 .ending-card .end-image-btn{height:clamp(220px,48dvh,480px);max-height:48dvh}
}
@media(prefers-reduced-motion:reduce){
 .camera-alert .camera-corners,.live-dot,.time-block strong{animation:none!important}
 .reveal-spotlight{animation:none;opacity:.9}
}
/* Short landscape: show complete inspection dialog by allowing vertical scrolling. */
@media(max-height:540px) and (orientation:landscape){
 #inspectPanel{align-items:flex-start;overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;padding-top:6px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
 #inspectPanel .compare-card{flex:none;max-height:none;overflow:visible;margin:0 auto}
 #inspectPanel .compare-grid canvas{max-height:22dvh}
 #inspectPanel .compare-note{min-height:14px}
}
