:root{color-scheme:dark;--ink:#eff0e8;--muted:#b5c1bf;--paper:#152431;--deep:#0e1822;--red:#e65150;--line:#47606a;--serif:"Hiragino Mincho ProN","Yu Mincho","Noto Serif CJK JP",serif;--sans:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;}
*{box-sizing:border-box}html,body{padding:0;margin:0;width:100%;height:100%;background:#080d14;overflow:hidden;-webkit-text-size-adjust:100%}body{font-family:var(--serif);font-weight:800;color:var(--ink)}button{font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible,[role="button"]:focus-visible{outline:3px solid #f0d490;outline-offset:3px}img{max-width:100%}[hidden]{display:none!important}.app{width:100%;max-width:530px;height:100vh;height:100dvh;max-height:1100px;margin:auto;position:relative;overflow:hidden;background:var(--paper);display:flex;flex-direction:column;box-shadow:0 0 0 1px #2a3a46,0 0 80px #000a}.paper-grain{pointer-events:none;position:absolute;inset:0;z-index:25;opacity:.045;background-image:repeating-linear-gradient(90deg,transparent 0 3px,#fff 4px 4.2px),repeating-linear-gradient(0deg,#fff 0 .3px,transparent .4px 5px)}.topbar{position:relative;z-index:3;flex:none;background:linear-gradient(160deg,#203844,#101c29);box-shadow:0 4px 15px #13243177;padding:8px 12px 10px;border-bottom:2px solid #78918e}.agency-row{display:flex;align-items:center;gap:6px;height:29px;border-bottom:1px solid #4e6269;padding-bottom:5px;margin-bottom:8px}.agency-mark{color:#ccac76;font-size:22px;line-height:1}.agency-title{font-family:var(--sans);font-size:11px;font-weight:800;letter-spacing:.03em;white-space:nowrap;flex:1}.agency-sub{font-weight:500;color:#c2cecb}.icon-btn{border:1px solid #58727a;color:#ebeee6;background:#233943;border-radius:6px;min-width:31px;height:29px;padding:0 5px;font-size:17px}.wanted-strip{display:flex;gap:11px;align-items:stretch;min-height:88px}.wanted-photo{background:#d9c7a7;flex:none;width:70px;height:89px;border:2px solid #c8b18b;position:relative;overflow:hidden;box-shadow:inset 0 0 0 2px #5e665e}.wanted-photo canvas{width:100%;height:100%;display:block;image-rendering:pixelated}.wanted-photo span{position:absolute;bottom:1px;right:1px;left:1px;text-align:center;color:#3d4341;background:#e2ceabdf;font-family:var(--sans);font-size:9px;font-weight:800}.wanted-info{min-width:0;flex:1}.wanted-label{font-family:var(--sans);font-size:10px;color:#f3a5a0;letter-spacing:.12em;font-weight:800;margin:2px 0 4px}.wanted-name{font-size:clamp(16px,4.7vw,21px);font-weight:900;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wanted-hint{font-size:11px;font-family:var(--sans);font-weight:700;color:#d8ddd8;margin-top:5px;line-height:1.35}.wanted-crime{color:#efb0a8;font-size:10px;font-family:var(--sans);font-weight:700;margin-top:5px}.time-block{flex:none;border-left:1px solid #556671;padding-left:8px;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;min-width:69px}.time-block span{font-family:var(--sans);font-size:9px;color:#b4c4c4}.time-block strong{font-family:var(--sans);font-weight:800;font-size:22px;letter-spacing:-.06em;font-variant-numeric:tabular-nums;color:#e9e3c7;margin-bottom:2px}.time-block strong.danger{color:#f76865;animation:timepulse .8s ease-in-out infinite alternate}@keyframes timepulse{to{opacity:.48}}
.playfield{flex:1;min-height:0;overflow:hidden;position:relative;background:#bdbaa9;touch-action:manipulation;cursor:crosshair}.playfield canvas{display:block;width:100%;height:100%;image-rendering:pixelated;touch-action:manipulation}.playfield::after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 55px #07132257;z-index:1}.camera-top,.camera-bottom{position:absolute;left:12px;right:12px;z-index:2;pointer-events:none;color:#f8eacf;font-family:var(--sans);font-weight:800;text-shadow:1px 1px 3px #182c37;font-size:10px;letter-spacing:.08em}.camera-top{top:12px}.camera-bottom{bottom:12px;display:flex;justify-content:space-between}.live-dot{display:inline-block;background:#e34747;width:7px;height:7px;border-radius:50%;margin-right:6px;box-shadow:0 0 9px #ff5656}.hint-float{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);border:1px solid #ead1a888;background:#14222ace;color:#eae9db;white-space:nowrap;font-family:var(--sans);font-size:11px;font-weight:700;padding:8px 11px;z-index:3;border-radius:20px;pointer-events:none;transition:opacity .3s}.hint-float.quiet{opacity:0}.toast{position:absolute;top:11%;left:8%;right:8%;background:#152631ed;color:#f1ebdf;font-size:15px;font-weight:900;text-align:center;padding:12px 8px;border:1px solid #88918d;border-radius:5px;z-index:10;opacity:0;pointer-events:none;transition:opacity .2s}.toast.show{opacity:1}.statusbar{flex:none;min-height:62px;padding:8px 15px calc(10px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:space-between;background:#111d29;border-top:1px solid #597079;gap:10px}.status-item{min-width:70px;display:flex;gap:2px;flex-direction:column}.status-item span{font-family:var(--sans);font-weight:700;letter-spacing:.1em;font-size:10px;color:#aebdbd}.status-item b{font-family:var(--sans);font-size:19px;font-weight:900;font-variant-numeric:tabular-nums}.status-item small{font-size:12px;color:#a0b3b4}.status-divider{height:26px;width:1px;background:#51616b}.status-small{font-size:11px;color:#b6bdba;max-width:92px;text-align:right;line-height:1.4}
.dialog-overlay{position:absolute;inset:0;background:linear-gradient(0deg,#08111ccc 0%,#08111c70 48%,#08111c1c 100%);z-index:13;display:flex;align-items:flex-end;padding:0 10px calc(12px + env(safe-area-inset-bottom,0px));cursor:pointer;touch-action:manipulation}.dialog-card{height:179px;width:100%;background:#111d28f8;border:2px solid #c2ad86;border-radius:5px;box-shadow:0 0 30px #000b,inset 0 0 0 3px #263e47;padding:14px 17px 12px;display:flex;flex-direction:column}.dialog-meta{font-family:var(--sans);display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:11px;color:#cbbd9e;min-height:22px}.dialog-meta span:first-child{font-weight:900;white-space:nowrap}.dialog-meta span:last-child{font-size:10px;color:#829398}.dialog-text{flex:1;display:flex;align-items:center;font-family:var(--serif);font-size:clamp(19px,5.1vw,24px);line-height:1.56;letter-spacing:.02em;font-weight:900;white-space:pre-wrap;overflow:hidden;word-break:normal;overflow-wrap:anywhere;text-shadow:0 1px 1px #000}.dialog-text.red-voice{color:#f64e51;text-shadow:0 0 8px #d6293444}.dialog-next{font-family:var(--sans);font-weight:600;color:#a5afb1;font-size:10px;letter-spacing:.07em;display:flex;justify-content:flex-end;align-items:center;gap:8px}.dialog-next span{font-size:19px;color:#e2c38d;animation:blink 1.2s infinite}@keyframes blink{50%{opacity:.25}}
.panel-overlay{position:absolute;inset:0;background:#07121de9;z-index:14;display:flex;align-items:center;justify-content:center;padding:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));overflow:hidden}.modal-card{width:100%;max-height:100%;min-width:0;display:flex;flex-direction:column;gap:12px;background:linear-gradient(155deg,#203544,#101c28);border:2px solid #a6a08a;border-radius:6px;padding:clamp(13px,3.2vw,20px);box-shadow:0 16px 50px #0009;overflow:hidden}.modal-eyebrow{font-family:var(--sans);color:#ccb991;font-size:11px;font-weight:900;letter-spacing:.13em}.modal-card h2{font-size:clamp(21px,5.5vw,29px);line-height:1.32;font-weight:900;margin:0;letter-spacing:.015em}.modal-card p{font-size:16px;line-height:1.55;margin:0}.primary-btn,.secondary-btn{width:100%;flex:none;min-height:49px;padding:10px 12px;border-radius:4px;font-family:var(--serif);font-weight:900;font-size:clamp(16px,4.4vw,20px);line-height:1.4;box-shadow:0 2px 0 #0b1016;touch-action:manipulation}.primary-btn{border:1px solid #e2be83;background:#e9ca8d;color:#18242a}.primary-btn:active,.secondary-btn:active{transform:translateY(1px)}.primary-btn:disabled{opacity:.45;cursor:not-allowed}.secondary-btn{background:#213746;border:1px solid #76949a;color:#e6ece6}.red-btn{background:#b94b4b;border-color:#f5a099;color:#fff4ee}.accent-btn{border-color:#e6cf94;color:#f8dc97}.button-stack{display:flex;flex-direction:column;gap:8px}.compare-card{gap:10px}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-height:0}.compare-box{min-width:0;background:#ccbfaa;border:2px solid #7b958b;padding:7px;display:flex;align-items:center;flex-direction:column;color:#263945}.compare-caption{font-family:var(--sans);font-size:11px;font-weight:900;letter-spacing:.1em}.compare-box canvas{display:block;max-width:100%;width:auto;height:auto;max-height:min(24dvh,195px);image-rendering:pixelated}.compare-note{font-family:var(--sans);font-size:9px;font-weight:800;text-align:center;min-height:16px}.portrait-drag{display:flex;align-items:center;justify-content:center;gap:8px;border:1px dashed #9cafa8;padding:10px;font-size:12px;font-family:var(--sans);touch-action:none;user-select:none;color:#e6e6d4;background:#263b45}.portrait-drag span{color:#e6c995;font-size:20px}.dropzone.is-comparing{box-shadow:0 0 0 3px #e9cc8a inset}.evidence-card{align-items:stretch;gap:9px}.evidence-thumb,.end-image-btn{position:relative;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #8b9b96;background:#162934;padding:0;flex:1}.evidence-thumb img{height:100%;max-height:36dvh;object-fit:contain}.evidence-thumb span,.end-image-btn span{position:absolute;bottom:0;right:0;background:#192733e8;color:#faebce;padding:5px 9px;font-family:var(--sans);font-size:11px;font-weight:800}.evidence-desc{color:#e5dacc;font-size:clamp(15px,3.8vw,19px)!important;font-weight:900;line-height:1.5!important}.choice-card,.spare-card,.verify-card{gap:13px}.choice-card p{color:#c4cbca}.spare-zone{height:min(45dvh,375px);background:linear-gradient(#607683,#293d4e);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none;border:1px solid #99a5a1}.spare-zone:before{content:"";position:absolute;inset:auto 0 0;height:34%;background:#51636c;border-top:4px solid #a6aa9b}.spare-person{position:relative;z-index:1;display:flex;align-items:center;flex-direction:column;gap:1px;touch-action:none;user-select:none;will-change:transform}.spare-person canvas{width:102px;height:143px;image-rendering:pixelated}.spare-person span{font-size:14px;color:#fff5de}.spare-arrow{font-size:38px!important;animation:blink 1s infinite}.spare-foot{position:absolute;bottom:12px;left:0;right:0;text-align:center;color:#ffe7a7;font-size:17px;z-index:2}.verify-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;min-height:0}.verify-item{font-size:12px;border:1px solid #71868c;background:#253c48;padding:8px 4px;color:#efece1;display:flex;align-items:center;flex-direction:column;gap:3px;min-height:0}.verify-item img{height:min(14dvh,110px);width:auto;object-fit:contain}.verify-item.checked{border-color:#efc888;background:#4b594e}.verify-progress{font-family:var(--sans);font-size:12px;color:#d4d7cb}.hold-btn{position:relative;overflow:hidden;background:#e0c18c}.hold-btn span{position:relative;z-index:1}.hold-btn #holdFill{position:absolute;z-index:0;left:0;top:0;bottom:0;width:0;background:#6a9b77;transition:width .08s linear}.ending-card{gap:8px}.ending-card h2{font-size:clamp(21px,5.5vw,29px)}.end-image-btn{flex:1;max-height:42dvh;min-height:130px}.end-image-btn img{width:100%;height:100%;object-fit:cover;object-position:center 50%;image-rendering:pixelated}.ending-quote{color:#e2cc98!important;text-align:center;font-size:clamp(15px,4vw,20px)!important}.ending-row{display:flex;gap:8px}.ending-row .secondary-btn{flex:1;min-width:0;font-size:14px;padding:10px 5px}.text-btn{background:transparent;color:#ccd4d1;border:none;padding:7px;font-size:13px;text-decoration:underline}.gameover-card{gap:18px}.gameover-card h2{color:#f09b93}.gameover-card p{color:#d6d7d2;line-height:1.8}
.full-overlay{position:absolute;inset:0;background:#101c29;z-index:19;display:flex;flex-direction:column;overflow:hidden}.overlay-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:calc(16px + env(safe-area-inset-top,0px)) 16px 13px;background:#203443;border-bottom:2px solid #8d9b96;flex:none}.overlay-kicker{font-family:var(--sans);font-size:11px;color:#c3ae89;font-weight:800}.overlay-top h2{margin:2px 0 0;font-size:27px}.close-btn{width:45px;height:45px;flex:none;background:#152a35;border:1px solid #95a4a2;color:#eee;font-size:31px;border-radius:5px}.archive-body,.debug-body{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:17px 15px calc(26px + env(safe-area-inset-bottom,0px));flex:1}.archive-heading{display:flex;align-items:center;justify-content:space-between;font-size:19px;font-weight:900;border-bottom:1px solid #768487;padding-bottom:8px;margin:8px 0 12px}.archive-heading span{font-family:var(--sans);font-size:13px;color:#d6c08d}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:20px}.archive-item{border:1px solid #76878b;background:#223846;color:#fff;min-width:0;display:flex;flex-direction:column;padding:0;text-align:left;overflow:hidden}.archive-item img{aspect-ratio:4/5;width:100%;object-fit:cover;image-rendering:pixelated}.archive-item .locked-art{aspect-ratio:4/5;background:repeating-linear-gradient(135deg,#243b46 0 10px,#1b2f3e 10px 20px);display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:20px;color:#b6c1be}.archive-item span{font-size:12px;font-weight:800;padding:7px 5px;line-height:1.35}.archive-footnote{color:#9cabae;font-size:12px}.zoom-body{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;padding:15px}.zoom-body img{min-height:0;max-width:100%;max-height:calc(100% - 65px);width:auto;object-fit:contain;image-rendering:pixelated;border:1px solid #8c9790}.zoom-body button{max-width:350px}.debug-body{font-family:var(--sans);font-weight:600}.debug-section{border-bottom:1px solid #596f77;padding:12px 0}.debug-section h3{font-family:var(--serif);font-size:20px;margin:2px 0 12px}.debug-row{display:flex;align-items:center;gap:6px;margin:7px 0}.debug-row .debug-caption{font-size:12px;line-height:1.45;flex:1;min-width:0}.debug-row button{border:1px solid #88a3a8;background:#263b48;color:#e9ecdf;border-radius:3px;min-width:79px;min-height:38px;font-family:var(--sans);font-size:12px}.debug-note{font-size:12px;color:#b7c4c3;line-height:1.7}
@media(max-width:365px){.agency-sub{display:none}.topbar{padding:7px 8px}.wanted-strip{gap:7px}.wanted-photo{width:58px;height:78px}.time-block{min-width:62px}.time-block strong{font-size:19px}.wanted-name{font-size:16px}.wanted-hint,.wanted-crime{font-size:10px}.dialog-card{height:170px;padding:11px 12px}.dialog-text{font-size:19px}.modal-card{gap:9px}.archive-grid{gap:6px}.archive-item span{font-size:11px}}
@media(max-height:700px){.topbar{padding-top:4px;padding-bottom:5px}.agency-row{margin-bottom:4px}.wanted-photo{height:69px;width:59px}.wanted-strip{min-height:70px}.time-block strong{font-size:19px}.statusbar{min-height:49px}.dialog-card{height:151px}.dialog-text{font-size:19px}.modal-card{gap:7px;padding:10px}.modal-card h2{font-size:20px}.compare-box canvas{max-height:20dvh}.evidence-thumb img{max-height:29dvh}.end-image-btn{max-height:34dvh}.primary-btn,.secondary-btn{min-height:43px;font-size:16px}.spare-zone{height:36dvh}}

#compareWanted{touch-action:none;cursor:grab;will-change:transform;position:relative;z-index:2}
/* Small top controls retain comfortable touch targets on phones. */
.agency-row{height:43px;padding-bottom:3px}.icon-btn{min-width:40px;height:39px;font-size:20px}

/* Audit fixes: keep image composition intact and show actual translucent comparison. */
.portrait-layer{position:relative;display:flex;align-items:center;justify-content:center;max-width:100%;min-height:0}
.portrait-layer #compareOverlay{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;mix-blend-mode:multiply;transition:opacity .12s ease}
.dropzone.is-comparing #compareOverlay{opacity:.55}
.end-image-btn img{object-fit:contain}
@media(max-height:455px){.panel-overlay{overflow-y:auto;align-items:flex-start}.panel-overlay .modal-card{max-height:none;margin:auto 0}.zoom-body{padding:8px}}

/* Test-only access remains reachable from modal/END scenes. */
.app > .debug-trigger{position:absolute;z-index:22;right:10px;top:calc(74px + env(safe-area-inset-top,0px));width:45px;height:45px;background:#45342e;border-color:#dfb476}

/* Audit: phone-friendly header tap targets and legible wanted details. */
.agency-row{height:48px}
.icon-btn{min-width:44px;height:44px}
.wanted-hint{font-size:12px}
.wanted-crime{font-size:11px}
@media(max-width:365px){.wanted-hint,.wanted-crime{font-size:11px}}
@media(max-height:700px){.primary-btn,.secondary-btn{min-height:44px}}

/* New PC/phone END stills: preserve the complete composition without cropping or pixel scaling. */
.end-image-btn img{object-fit:contain;image-rendering:auto}
.archive-item img[src*="assets/end0"]{object-fit:contain;image-rendering:auto;background:#0e1c28}
.zoom-body img[src*="assets/end0"]{image-rendering:auto}
