/* All on-screen material is CSS + text. Never intercepts touches. */
#cinemaImpact{position:absolute;inset:0;z-index:31;pointer-events:none;visibility:hidden;opacity:0;overflow:hidden;isolation:isolate;contain:layout style paint;display:grid;place-items:center;user-select:none;--cine-accent:#ff405b;--cine-glow:#d81740}
#cinemaImpact.cinema-show{visibility:visible;opacity:1;background:linear-gradient(155deg,rgba(4,8,17,.9),rgba(32,3,12,.9))}
#cinemaImpact[data-theme="state"]{--cine-accent:#aaf6ff;--cine-glow:#00d7ea;background:linear-gradient(155deg,rgba(1,20,30,.89),rgba(1,9,20,.9))}
#cinemaImpact[data-theme="white"]{--cine-accent:#eff6fb;--cine-glow:#b8455b;background:linear-gradient(155deg,rgba(5,7,14,.93),rgba(18,8,16,.9))}
#cinemaImpact .cinema-noise,#cinemaImpact .cinema-scan,#cinemaImpact .cinema-darkedge{position:absolute;inset:0;pointer-events:none}
#cinemaImpact .cinema-noise{opacity:.28;background:repeating-linear-gradient(0deg,transparent 0px,transparent 4px,#c2d7e427 5px,transparent 6px),repeating-linear-gradient(91deg,transparent 0 81px,#ee355922 83px,transparent 84px);background-size:auto}
#cinemaImpact .cinema-scan{opacity:.55;background:linear-gradient(to bottom,transparent 44%,var(--cine-accent) 49%,transparent 54%);background-size:100% 20%;transform:translateY(-120%)}
#cinemaImpact .cinema-darkedge{box-shadow:inset 0 0 12vmin 3vmin #020207a0,inset 0 0 5vmin 1vmin #b8012a40}
#cinemaImpact .cinema-rail{position:absolute;top:0;bottom:0;width:50%;background:linear-gradient(0deg,#08070f,#1e050f 50%,#08070f);opacity:0;box-shadow:0 0 4vmin var(--cine-glow)}
#cinemaImpact .cinema-rail-l{left:0;transform:translateX(-100%)}#cinemaImpact .cinema-rail-r{right:0;transform:translateX(100%)}
#cinemaImpact .cinema-reticle{position:absolute;inset:23%;opacity:0;pointer-events:none;border:2px solid var(--cine-accent);box-shadow:inset 0 0 26px var(--cine-glow),0 0 20px var(--cine-glow);transform:scale(2.1)}
#cinemaImpact .cinema-reticle i{position:absolute;display:block;width:18px;height:18px;background:var(--cine-accent);opacity:.87}
#cinemaImpact .cinema-reticle i:nth-child(1){top:-7px;left:-7px}#cinemaImpact .cinema-reticle i:nth-child(2){top:-7px;right:-7px}#cinemaImpact .cinema-reticle i:nth-child(3){bottom:-7px;left:-7px}#cinemaImpact .cinema-reticle i:nth-child(4){bottom:-7px;right:-7px}
#cinemaImpact .cinema-rings{position:absolute;left:50%;top:50%;width:32vmin;aspect-ratio:1;border:8px solid var(--cine-accent);border-radius:50%;transform:translate(-50%,-50%) scale(.25);opacity:0;box-shadow:0 0 32px var(--cine-glow),inset 0 0 15px var(--cine-glow)}
#cinemaImpact .cinema-shards,#cinemaImpact .cinema-notices{position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:0}
#cinemaImpact .cinema-shards i{position:absolute;display:block;left:50%;top:50%;width:clamp(2px,1.5vmin,9px);height:clamp(24px,16vmin,120px);background:linear-gradient(var(--cine-accent),transparent);transform-origin:50% 120%;transform:rotate(var(--angle)) translateY(0) scaleY(.1);box-shadow:0 0 16px var(--cine-glow);opacity:.65;clip-path:polygon(20% 0,90% 30%,35% 100%,0 75%)}
#cinemaImpact .cinema-notices span{display:block;position:absolute;left:var(--x);top:var(--y);border:1px solid var(--cine-accent);background:#230813eb;padding:.3em .5em;box-shadow:0 0 20px #ec29446b;white-space:nowrap;color:#ffe8ea;font:900 clamp(11px,2.6vw,19px)/1.2 sans-serif;opacity:0;transform:translateY(30px) scale(.7)}
#cinemaImpact .cinema-burst{width:100%;max-width:860px;padding:20px 16px;min-height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;position:relative;z-index:2;transform-origin:center}
#cinemaImpact .cinema-burst-top{font:900 clamp(13px,2.7vw,22px)/1.35 system-ui,sans-serif;letter-spacing:.18em;color:#ffe9eb;border-block:1px solid var(--cine-accent);padding:8px 16px;text-shadow:0 2px 12px #000}
#cinemaImpact .cinema-burst-title{font:900 clamp(28px,8.8vw,105px)/1.18 'Yu Mincho','Hiragino Mincho ProN','Noto Serif JP',serif;color:#fff6f4;white-space:normal;overflow-wrap:anywhere;word-break:keep-all;letter-spacing:-.035em;text-shadow:0 4px 3px #160208,0 5px 18px #000,0 0 44px var(--cine-glow);max-width:100%;text-wrap:balance}
#cinemaImpact .cinema-burst-foot{font:800 clamp(11px,2.5vw,20px)/1.3 system-ui,sans-serif;color:#ffdfdd;letter-spacing:.09em;text-shadow:0 3px 10px #000}
#cinemaImpact[data-theme="state"] .cinema-burst-title{color:#eaffff;text-shadow:0 0 33px #29d9e29d,0 6px 18px #000}
#cinemaImpact[data-kind="six"] .cinema-burst-title{font:900 clamp(78px,25vw,220px)/1 system-ui,sans-serif;letter-spacing:-.09em;color:#ff3852}
#cinemaImpact[data-kind="count"] .cinema-burst-title{font:900 clamp(62px,18vw,165px)/1 system-ui,sans-serif;color:#fff}
#cinemaImpact[data-kind="you"] .cinema-burst-title,#cinemaImpact[data-kind="motherCapture"] .cinema-burst-title,#cinemaImpact[data-kind="police"] .cinema-burst-title{font-size:clamp(25px,7.5vw,82px)}
#cinemaImpact[data-kind="crime"] .cinema-burst-title{font-size:clamp(27px,7vw,90px);color:#ff8f95}
#cinemaImpact[data-kind="innocent"] .cinema-burst-title{font-size:clamp(58px,17vw,160px);color:#ff5a70}
#cinemaImpact .cinema-frame{position:absolute;inset:12px;pointer-events:none;border:2px solid color-mix(in srgb,var(--cine-accent) 45%,transparent);z-index:1}
#cinemaImpact .cinema-frame i{display:block;position:absolute;width:26px;height:26px;border:5px solid var(--cine-accent);opacity:.85}
#cinemaImpact .cinema-frame i:nth-child(1){left:-3px;top:-3px;border-right:0;border-bottom:0}#cinemaImpact .cinema-frame i:nth-child(2){right:-3px;top:-3px;border-left:0;border-bottom:0}#cinemaImpact .cinema-frame i:nth-child(3){left:-3px;bottom:-3px;border-top:0;border-right:0}#cinemaImpact .cinema-frame i:nth-child(4){right:-3px;bottom:-3px;border-top:0;border-left:0}
@keyframes panicHit{0%{opacity:0;transform:translateY(-42px) scale(1.04) skew(-2deg);filter:blur(4px)}12%{opacity:1;transform:translateY(8px) scale(.92) skew(1deg);filter:none}26%{transform:translateY(-3px) scale(1.02)}43%,100%{transform:translateY(0) scale(1)}}
@keyframes panicSweep{0%{transform:translateY(-130%)}95%{transform:translateY(130%)}}
@keyframes panicShake{0%,100%{transform:translate(0,0)}11%{transform:translate(8px,-5px)}23%{transform:translate(-10px,4px)}37%{transform:translate(6px,7px)}53%{transform:translate(-6px,-3px)}71%{transform:translate(3px,2px)}}
@keyframes panicRiot{0%,100%{transform:rotate(0) translateX(0)}12%{transform:rotate(-2deg) translate(-10px,7px)}30%{transform:rotate(1.8deg) translate(12px,-5px)}48%{transform:rotate(-1deg) translate(-7px,3px)}}
@keyframes panicZoom{0%{opacity:0;transform:translateY(-44px) scale(1.04)}25%{opacity:1;transform:translateY(8px) scale(.91)}54%,100%{transform:translateY(0) scale(1)}}
@keyframes panicClampL{0%{opacity:1;transform:translateX(-100%)}25%{opacity:1;transform:translateX(-22%)}42%{opacity:1;transform:translateX(0)}66%{opacity:.85;transform:translateX(0)}100%{opacity:0;transform:translateX(-100%)}}
@keyframes panicClampR{0%{opacity:1;transform:translateX(100%)}25%{opacity:1;transform:translateX(22%)}42%{opacity:1;transform:translateX(0)}66%{opacity:.85;transform:translateX(0)}100%{opacity:0;transform:translateX(100%)}}
@keyframes panicReticle{0%{opacity:0;transform:scale(2)}35%{opacity:1;transform:scale(.55)}60%{opacity:.9;transform:scale(.7)}100%{opacity:0;transform:scale(.3)}}
@keyframes panicRing{0%{opacity:.9;transform:translate(-50%,-50%) scale(.25)}100%{opacity:0;transform:translate(-50%,-50%) scale(4)}}
@keyframes panicDebris{0%{opacity:0;transform:rotate(var(--angle)) translateY(0) scaleY(.1)}16%{opacity:.85}90%,100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(var(--length) * -1)) scaleY(1)}}
@keyframes panicNotice{0%{opacity:0;transform:translateY(30px) scale(.7)}22%,73%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-30px) scale(1.05)}}
@keyframes panicNoise{0%{opacity:.18;transform:translateY(-5px)}20%{opacity:.8;transform:translateX(5px)}47%{opacity:.25;transform:translateY(7px)}75%,100%{opacity:.4;transform:none}}
@keyframes panicCameraBreak{0%,100%{transform:none;filter:none}12%{transform:translateX(17px) skewX(2deg);filter:contrast(1.8)}30%{transform:translateX(-16px)}46%{transform:translateX(10px) skewX(-1deg)}65%{transform:none}}
#cinemaImpact.cinema-animated .cinema-burst{animation:panicHit .76s cubic-bezier(.18,1,.25,1) both}
#cinemaImpact.cinema-animated .cinema-scan{animation:panicSweep .55s ease-in-out 1 both}
#cinemaImpact.cinema-animated .cinema-noise{animation:panicNoise .75s steps(3,end) both}
#cinemaImpact.cinema-animated[data-kind="poster"] .cinema-burst,#cinemaImpact.cinema-animated[data-kind="last"] .cinema-burst,#cinemaImpact.cinema-animated[data-kind="arrest"] .cinema-burst{animation:panicZoom .68s cubic-bezier(.1,1,.3,1) both}
#cinemaImpact.cinema-animated[data-kind="arrest"] .cinema-rail,#cinemaImpact.cinema-animated[data-kind="police"] .cinema-rail,#cinemaImpact.cinema-animated[data-kind="over"] .cinema-rail{opacity:1}
#cinemaImpact.cinema-animated[data-kind="arrest"] .cinema-rail-l,#cinemaImpact.cinema-animated[data-kind="police"] .cinema-rail-l,#cinemaImpact.cinema-animated[data-kind="over"] .cinema-rail-l{animation:panicClampL .82s ease-in-out both}
#cinemaImpact.cinema-animated[data-kind="arrest"] .cinema-rail-r,#cinemaImpact.cinema-animated[data-kind="police"] .cinema-rail-r,#cinemaImpact.cinema-animated[data-kind="over"] .cinema-rail-r{animation:panicClampR .82s ease-in-out both}
#cinemaImpact.cinema-animated:is([data-kind="lock"],[data-kind="mark"],[data-kind="you"],[data-kind="motherCapture"]) .cinema-reticle{animation:panicReticle .67s ease-in-out both}
#cinemaImpact.cinema-animated:is([data-kind="count"],[data-kind="gun"],[data-kind="mistake"],[data-kind="six"],[data-kind="innocent"]) .cinema-rings{animation:panicRing .7s ease-out both}
#cinemaImpact.cinema-animated:is([data-kind="glass"],[data-kind="riot"],[data-kind="gun"],[data-kind="gunAfter"]) .cinema-shards{opacity:1}
#cinemaImpact.cinema-animated:is([data-kind="glass"],[data-kind="riot"],[data-kind="gun"],[data-kind="gunAfter"]) .cinema-shards i{animation:panicDebris .8s cubic-bezier(.1,1,.25,1) both;animation-delay:calc(var(--n) * 21ms)}
#cinemaImpact.cinema-animated:is([data-kind="report"],[data-kind="reportEnd"]) .cinema-notices{opacity:1}
#cinemaImpact.cinema-animated:is([data-kind="report"],[data-kind="reportEnd"]) .cinema-notices span{animation:panicNotice 1.22s ease-out both;animation-delay:calc(var(--n) * 49ms)}
#cinemaImpact.cinema-animated:is([data-kind="riot"],[data-kind="gun"],[data-kind="glass"],[data-kind="gunAfter"],[data-kind="child"]) .cinema-burst{animation:panicRiot .55s ease-out both}
#app.cinema-impacting>.topbar,#app.cinema-impacting>.playfield,#app.cinema-impacting>.statusbar{animation:panicShake .5s ease-out both}
#app.cinema-impacting:has(#cinemaImpact[data-kind="riot"])>.playfield,#app.cinema-impacting:has(#cinemaImpact[data-kind="gun"])>.playfield{animation:panicRiot .56s ease-out both}
#app.cinema-impacting:has(#cinemaImpact[data-kind="gunAfter"])>.playfield,#app.cinema-impacting:has(#cinemaImpact[data-kind="doubt"])>.playfield{animation:panicCameraBreak .6s steps(4,end) both}
@media(max-width:380px){#cinemaImpact .cinema-burst{padding:14px 8px;gap:7px}#cinemaImpact .cinema-burst-title{font-size:clamp(27px,8.3vw,37px)}#cinemaImpact[data-kind="six"] .cinema-burst-title{font-size:clamp(75px,23vw,110px)}#cinemaImpact[data-kind="you"] .cinema-burst-title{font-size:clamp(24px,7vw,40px)}#cinemaImpact .cinema-burst-foot{letter-spacing:0}}
@media(min-width:1024px) and (orientation:landscape){#cinemaImpact .cinema-frame{inset:23px}#cinemaImpact .cinema-burst-title{font-size:clamp(55px,6vw,110px)}}
@media(prefers-reduced-motion:reduce){#cinemaImpact *,#app.cinema-impacting>.topbar,#app.cinema-impacting>.playfield,#app.cinema-impacting>.statusbar{animation:none!important;transition:none!important}}

/* Audited UX: status text must remain visible above END/record modals. */
#app > .overlay-toast{z-index:40;top:calc(8px + env(safe-area-inset-top,0px));bottom:auto;left:6%;right:6%;font-size:13px;line-height:1.45;padding:9px 11px;overflow-wrap:anywhere;pointer-events:none;}
/* Topbar controls had 34-38px hit boxes on short/small phones. */
#app .agency-row{height:auto;min-height:44px;}
#app .agency-row .icon-btn{width:44px;min-width:44px;height:44px;}

/* The tiny wanted-card instruction remains legible on narrow phones. */
@media(max-width:365px){#app .wanted-hint-tap{font-size:10px;letter-spacing:0;}}
