.detective-game{margin-top:64px;padding-top:42px;border-top:1px solid #b0ee5940;scroll-margin-top:115px}.detective-game .game-kicker{color:#b0ee59;letter-spacing:.14em;font-size:.8rem;font-weight:700}.detective-game h3{font-size:clamp(2.6rem,5vw,4.8rem);margin:12px 0 20px}.detective-game .game-description{max-width:780px;color:#c4cbbb}.flex-game-shell{overflow:hidden;border:1px solid #526339;border-radius:18px;background:#10180f;box-shadow:0 24px 80px #0007}.flex-game-hud{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 24px;background:#182313}.flex-game-hud>div{display:flex;gap:24px;flex-wrap:wrap}.flex-game-stat{font-size:.68rem;letter-spacing:.1em;color:#c0cbaa}.flex-game-stat strong{display:block;color:#f4f5ec;font:800 1.8rem/1.2 var(--display,Arial)}.flex-game-hud button,.flex-game-overlay button,.flex-game-controls button{border:1px solid #69754d;color:#f4f5ec;background:#25321e;border-radius:9px;font:700 1rem var(--body,Arial);cursor:pointer;min-height:44px}.flex-game-hud button{padding:10px 18px}.flex-game-hud button:disabled{opacity:.4;cursor:default}.flex-game-stage{position:relative;background:#0e191a}.flex-game-stage canvas{display:block;width:100%;height:auto;aspect-ratio:900/640;touch-action:none;outline-offset:-4px}.flex-game-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:#08120bbe;backdrop-filter:blur(4px)}.flex-game-overlay[hidden]{display:none}.flex-game-overlay>div{text-align:center;max-width:440px;padding:26px 32px;border:1px solid #b6d17470;border-radius:16px;background:#10190fed}.flex-game-overlay .game-case{color:#b0ee59;font-size:.75rem;letter-spacing:.14em}.flex-game-overlay h4{font:800 clamp(1.8rem,3vw,3rem)/1 var(--display,Arial);margin:14px 0}.flex-game-overlay p{font-size:.95rem;line-height:1.5}.flex-game-overlay button{background:#b0ee59;color:#10170b;border:0;padding:14px 28px;min-height:48px}.flex-game-bottom{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px}.flex-game-help{max-width:590px;font-size:.9rem;color:#b9c4ad}.flex-game-help p{margin:0 0 8px}.flex-game-help kbd{font:700 .8rem var(--body,Arial);color:#eef4df}.flex-game-status{color:#b0ee59!important;min-height:1.5em}.flex-game-controls{display:grid;grid-template-columns:repeat(3,48px);grid-template-rows:repeat(2,48px);gap:6px;flex-shrink:0}.flex-game-controls button{touch-action:none;user-select:none;-webkit-user-select:none;font-size:1.3rem}.flex-game-controls [data-dir=up]{grid-column:2}.flex-game-controls [data-dir=left]{grid-column:1;grid-row:2}.flex-game-controls [data-dir=down]{grid-column:2;grid-row:2}.flex-game-controls [data-dir=right]{grid-column:3;grid-row:2}.flex-game-controls button:active{background:#b0ee59;color:#10170b}.detective-game .game-note{font-size:.8rem;color:#a4aba0;margin-top:16px}@media(max-width:650px){.flex-game-hud{padding:14px}.flex-game-hud>div{gap:14px}.flex-game-stat strong{font-size:1.5rem}.flex-game-hud button{padding:8px 12px}.flex-game-bottom{padding:16px;gap:14px}.flex-game-help{font-size:.78rem}.flex-game-controls{grid-template-columns:repeat(3,42px);grid-template-rows:repeat(2,44px);gap:4px}.flex-game-controls button{min-height:44px}.flex-game-overlay{padding:12px}.flex-game-overlay>div{padding:16px}.flex-game-overlay p{font-size:.8rem}.flex-game-overlay h4{margin:8px 0}.flex-game-overlay button{padding:10px 18px}}

.flex-game-shell{max-width:960px;margin-inline:auto}.game-actions{display:flex!important;gap:8px!important;flex-wrap:wrap}.flex-game-hud{flex-wrap:wrap}.flex-game-hud [data-game-music][aria-pressed=true]{border-color:#b0ee59;color:#b0ee59}.flex-game-stage{box-shadow:inset 0 0 80px #b0ee5920}@media(max-width:650px){.game-actions{width:100%}.game-actions button{flex:1;font-size:.8rem}.flex-game-bottom{flex-wrap:wrap}.flex-game-controls{margin-left:auto}}

.game-case-picker{display:flex;flex-wrap:wrap;gap:18px;margin:24px 0;align-items:end}.game-case-picker label{display:grid;gap:8px;color:#cce5b5;font-size:.8rem;font-weight:700;flex:1;min-width:240px}.game-case-picker select{width:100%;padding:12px;background:#18251c;border:1px solid #60734f;border-radius:8px;color:#eef4dd;font:inherit;min-height:44px}.game-case-picker p{flex-basis:100%;font-size:.85rem;color:#b9c4ad;margin:0}.world-location{position:absolute;left:14px;top:14px;padding:8px 12px;max-width:60%;background:#08120ddb;border:1px solid #b0ee5950;border-radius:8px;color:#d3eeac;font-size:.7rem;font-weight:700;pointer-events:none}.flex-game-stage canvas.world-map{position:absolute;right:12px;top:12px;width:140px;height:94px;aspect-ratio:auto;border:1px solid #8baf6b;border-radius:5px;pointer-events:none}.world-action-bar{display:flex;gap:16px;align-items:center;padding:16px 24px;background:#152017}.world-action-bar button,.world-turn button{background:#304329;color:#f1f7e2;border:1px solid #869e67;border-radius:8px;min-height:44px;padding:10px 14px;font:700 .85rem Arial;cursor:pointer}.world-action-bar button:disabled{opacity:.45}.world-action-bar span{font-size:.8rem;color:#bfcaae}.world-mobile-controls{display:grid;gap:12px}.world-turn{display:flex;gap:8px}.world-turn button{touch-action:none}.world-mobile-controls .flex-game-controls{justify-self:center}.flex-game-stage canvas[data-world]{cursor:grab}.flex-game-stage canvas[data-world]:active{cursor:grabbing}@media(max-width:650px){.flex-game-stage canvas.world-map{width:90px;height:60px;right:8px;top:8px}.world-location{max-width:58%;font-size:.58rem;left:8px;top:8px;padding:5px}.world-action-bar{padding:12px;flex-wrap:wrap;gap:8px}.world-action-bar span{font-size:.7rem}.flex-game-overlay>div{padding:12px}.flex-game-overlay h4{font-size:1.3rem}.flex-game-overlay p{font-size:.7rem;margin:8px 0}.game-case-picker label{min-width:200px}.world-mobile-controls{margin-left:auto}.game-actions{gap:5px!important}.game-actions button{font-size:.7rem;padding:8px;min-width:62px}}


.phone-play-controls{display:none}
@media(pointer:coarse),(max-width:650px){
.phone-play-controls{position:absolute;inset:auto 12px 12px;display:flex;justify-content:space-between;align-items:end;gap:12px;pointer-events:none;z-index:2;color:#ecffd9;font:700 10px Arial;letter-spacing:.08em}
.phone-walk,.phone-right{display:grid;gap:6px;text-align:center}.phone-joystick{position:relative;width:116px;height:116px;border-radius:50%;background:#081b13ba;border:2px solid #c5ee9780;box-shadow:0 3px 15px #0008;touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:auto}
.joystick-knob{position:absolute;width:48px;height:48px;left:32px;top:32px;border-radius:50%;background:#b0ee59;border:3px solid #e4ffc8;box-shadow:0 3px 12px #0008;pointer-events:none}.joystick-guide{position:absolute;left:0;right:0;top:5px;font-size:20px;color:#c5ee97}
.phone-turn,.phone-tools{display:flex;gap:8px}.phone-right button{pointer-events:auto;border:1px solid #c5ee9780;border-radius:12px;background:#13291fe8;color:#f0ffdf;min-width:58px;min-height:52px;font:700 15px Arial;touch-action:none;user-select:none;-webkit-user-select:none}.phone-turn button{font-size:30px}.phone-right button:active{background:#b0ee59;color:#10200d}.phone-tools button:disabled{opacity:.5}.phone-tools [data-phone-action]:not(:disabled){background:#b0ee59;color:#10200d}
.flex-game-stage canvas[data-world]{height:clamp(380px,62svh,520px);aspect-ratio:auto}.flex-game-stage canvas.world-map{width:80px;height:54px}.world-mobile-controls{display:none}.world-action-bar{display:none}.flex-game-bottom{padding:12px!important}.flex-game-help{font-size:.8rem}.flex-game-overlay{z-index:3}.flex-game-help p:first-child{display:none}
}
@media(pointer:coarse) and (orientation:landscape){.flex-game-stage canvas[data-world]{height:76svh;min-height:290px}.phone-joystick{width:104px;height:104px}.joystick-knob{left:26px;top:26px}}

.game-how-to{max-width:960px;margin:16px auto;border:1px solid #617842;border-radius:12px;background:#152017;color:#d5e4c9;padding:14px 18px;font:400 .9rem/1.6 Arial}.game-how-to summary{cursor:pointer;color:#b0ee59;font-weight:800;min-height:32px;letter-spacing:.05em}.game-how-to ol{padding-left:22px;margin:12px 0}.game-how-to li{margin-bottom:10px}.game-how-to p{margin:12px 0 0}.game-how-to strong{color:#f2ffe6}@media(max-width:650px){.game-how-to{font-size:.85rem;padding:12px 14px}}

.flex-bucks-wallet{max-width:960px;margin:14px auto;display:flex;align-items:center;gap:14px;padding:12px 16px;border:1px solid #b99a52;border-radius:12px;background:#1e2113;color:#ffdc7d;font-family:Arial}.flex-bucks-wallet img{width:88px;height:58px;object-fit:contain;border-radius:3px}.flex-bucks-wallet span{display:block;font-size:.68rem;font-weight:700;letter-spacing:.12em}.flex-bucks-wallet strong{display:block;font-size:1.7rem;line-height:1.2}.flex-bucks-wallet small{display:block;color:#efe1ba;font-size:.7rem}.flex-bucks-wallet p{margin:0 0 0 auto;font-size:.75rem;max-width:130px;color:#efe1ba;line-height:1.5}.flex-bucks-reward{position:absolute;left:50%;top:30%;transform:translateX(-50%);display:grid;justify-items:center;gap:7px;padding:10px 14px;border:1px solid #f4d477;border-radius:12px;background:#151b12ed;box-shadow:0 8px 30px #0009;z-index:2;pointer-events:none}.flex-bucks-reward[hidden]{display:none}.flex-bucks-reward img{width:160px;height:106px;object-fit:contain}.flex-bucks-reward strong{color:#ffdc7d;font:800 .85rem Arial;white-space:nowrap}@media(max-width:650px){.flex-bucks-wallet{gap:10px;padding:10px}.flex-bucks-wallet img{width:66px;height:44px}.flex-bucks-wallet strong{font-size:1.4rem}.flex-bucks-wallet p{font-size:.65rem;max-width:100px}}

.story-progress{max-width:960px;margin:12px auto;padding:14px 16px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;border:1px solid #b0ee5980;border-radius:12px;background:#152817;color:#d5f6ae;font:700 .85rem Arial}.story-progress[hidden]{display:none}.story-progress span{font-size:.75rem;color:#c3d6b4}.story-progress button{margin-left:auto;padding:10px;border:1px solid #758b58;border-radius:8px;background:#263a21;color:#edf7e4;min-height:44px;cursor:pointer}.story-progress button[hidden]{display:none}


.catch-stamp{display:block;color:#b0ee59;font:900 1.55rem Arial;letter-spacing:.1em;transform:rotate(-5deg);text-shadow:2px 2px #111}.flex-bucks-reward:not([hidden]){animation:flex-catch-pop .22s ease-out}.game-actions [data-game-tag][aria-pressed=true]{color:#ffdc7d;border-color:#b99a52}@keyframes flex-catch-pop{from{opacity:0;transform:translateX(-50%) scale(.8)}to{opacity:1;transform:translateX(-50%) scale(1)}}@media(prefers-reduced-motion:reduce){.flex-bucks-reward:not([hidden]){animation:none}}

.flex-bucks-reward:not([hidden]){animation:case-cash-pop 1.6s ease both}.phone-tools button,.phone-turn button{touch-action:none;-webkit-user-select:none;user-select:none}@keyframes case-cash-pop{0%{opacity:0;transform:translate(-50%,18px) scale(.65) rotate(-7deg)}20%{opacity:1;transform:translate(-50%,-8px) scale(1.12) rotate(3deg)}36%,80%{opacity:1;transform:translate(-50%,0) scale(1) rotate(0)}100%{opacity:0;transform:translate(-50%,-22px) scale(.95)}}@media(prefers-reduced-motion:reduce){.flex-bucks-reward:not([hidden]){animation:none}}

/* Save isolation and clear case objectives. */
.detective-case-strip{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;background:#19382a;border-block:1px solid #b8cf7855;padding:12px 16px;font:700 13px/1.5 Arial;color:#e1f7b8}.detective-case-strip span{font-weight:400;color:#bfd2b9;font-size:12px}.detective-backups{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 16px;background:#101e17;border-top:1px solid #526339}.detective-backups button,.detective-backups label{min-height:44px;padding:10px 14px;border:1px solid #899c64;border-radius:10px;background:#253c26;color:#e9f5d9;font:700 12px/1.5 Arial}.detective-backups input{display:block;max-width:100%;font:12px Arial;margin-top:5px}.detective-backups small{font:12px/1.6 Arial;color:#bdcdb2}.game-how-to summary{min-height:44px}.flex-game-stage{overscroll-behavior:contain}.detective-game button:focus-visible,.detective-backups input:focus-visible{outline:3px solid #f4d183;outline-offset:3px}@media(max-width:500px){.detective-backups{align-items:stretch}.detective-backups>*{width:100%}.detective-case-strip{font-size:12px}}@media(prefers-reduced-motion:reduce){.flex-bucks-reward,.catch-stamp{animation:none!important}}

.detective-chase-status{position:absolute;top:45px;left:50%;transform:translateX(-50%);z-index:4;max-width:75%;padding:8px 14px;background:#142a24e8;color:#ffe49b;border:1px solid #dab565;border-radius:20px;font-size:11px;font-weight:900;text-align:center;pointer-events:none;box-shadow:0 3px 16px #0006}.detective-chase-status[hidden]{display:none}.phone-tools [data-phone-run]{background:linear-gradient(135deg,#d5ad54,#f4df9e);color:#0d241c;border:1px solid #fff0bd;font-weight:900}.phone-tools [data-phone-run].held{background:#fff3c4;box-shadow:0 0 16px #ffdd8c;transform:translateY(1px)}

.lizard-files{margin:16px 0;padding:14px 16px;background:#0e241f;border:1px solid #6f623c;border-radius:12px}.lizard-files summary{cursor:pointer;font-size:12px;font-weight:900;letter-spacing:.06em;min-height:30px}.lizard-files summary span{float:right;color:#efd38e;font-size:10px}.lizard-files>p{font-size:12px;line-height:1.6;color:#b9d2c9;margin:12px 0}.lizard-file-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lizard-file{padding:12px;border:1px solid #ffffff18;border-radius:8px;background:#071511}.lizard-file b{display:block;font-size:12px;color:var(--lizard-color)}.lizard-file b i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--lizard-color);margin-right:7px}.lizard-file span{display:block;color:#c8d6ce;font-size:11px;margin-top:5px;line-height:1.45}.lizard-file small{display:block;color:#93a59b;font-size:8px;letter-spacing:.06em;margin-top:8px}.lizard-file.is-caught{border-color:var(--lizard-color)}.case-lizard-new{background:url('detective-lizard-nightlife-v4.webp') 0 0/400% 300% no-repeat;object-fit:unset}@media(max-width:400px){.lizard-file-grid{grid-template-columns:1fr}.lizard-files summary span{float:none;display:block;margin-top:7px}}

/* App view runs the same saved game in a dedicated, edge-to-edge play surface. */
.detective-view-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#142820;border-top:1px solid #536c4e;font:12px/1.5 Arial;color:#c8d9bc}.detective-view-bar button,.detective-app-bar button{min-height:44px;border:1px solid #d5b565;border-radius:9px;background:#eed18d;color:#10251d;padding:10px 14px;font:800 12px Arial;cursor:pointer;touch-action:manipulation}.detective-view-bar button{flex-shrink:0}.detective-app-bar{display:none}body.detective-app-playing{overflow:hidden;overscroll-behavior:none}.flex-game-stage.detective-app-view{position:fixed;inset:0;z-index:10000;width:100%;height:100dvh;max-width:none;border-radius:0;background:#081c18;touch-action:none;overscroll-behavior:none;contain:layout paint}.flex-game-stage.detective-app-view canvas[data-world]{width:100%;height:100%;min-height:0;aspect-ratio:auto}.detective-app-view .detective-app-bar{position:absolute;inset:0 0 auto;z-index:5;display:flex;align-items:center;justify-content:end;gap:8px;padding:calc(8px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));background:linear-gradient(#081a18fa,#081a18c9);color:#efd18a;font:900 12px Arial}.detective-app-bar strong{margin-right:auto}.detective-app-bar button{background:#17382d;color:#f5e5be;min-height:40px;padding:8px 12px}.detective-app-bar button:disabled{opacity:.45}.detective-app-view .world-location{top:calc(70px + env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left))}.detective-app-view canvas.world-map{top:calc(70px + env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}.detective-app-view .detective-chase-status{top:calc(110px + env(safe-area-inset-top))}.detective-app-view .phone-play-controls{position:absolute;inset:auto max(12px,env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));display:flex;justify-content:space-between;align-items:end;gap:12px;pointer-events:none;z-index:2;color:#ecffd9;font:700 10px Arial;letter-spacing:.08em}.detective-app-view .phone-walk,.detective-app-view .phone-right{display:grid;gap:6px;text-align:center}.detective-app-view .phone-joystick{position:relative;width:104px;height:104px;border-radius:50%;background:#081b13ba;border:2px solid #c5ee9780;touch-action:none;user-select:none;pointer-events:auto}.detective-app-view .joystick-knob{position:absolute;width:48px;height:48px;left:26px;top:26px;border-radius:50%;background:#b0ee59;border:3px solid #e4ffc8;pointer-events:none}.detective-app-view .phone-turn,.detective-app-view .phone-tools{display:flex;gap:6px}.detective-app-view .phone-right button{pointer-events:auto;min-width:52px;min-height:48px;border:1px solid #c5ee9780;border-radius:10px;background:#13291fe8;color:#f0ffdf;font:700 13px Arial;touch-action:none;user-select:none}.detective-app-view .phone-turn button{font-size:28px}.detective-app-view .phone-tools [data-phone-run]{background:#eed18d;color:#10251d}.detective-app-view .joystick-guide{position:absolute;left:0;right:0;top:5px;font-size:20px}.detective-app-view .flex-game-overlay{padding:75px 16px 130px}.detective-app-view .flex-game-overlay>div{max-height:100%;overflow:auto}@media(max-width:500px){.detective-view-bar{flex-wrap:wrap}.detective-view-bar button{width:100%}.detective-app-bar strong{font-size:10px}.detective-app-bar button{font-size:11px;padding:8px}.detective-app-view .phone-joystick{width:90px;height:90px}.detective-app-view .joystick-knob{left:19px;top:19px}.detective-app-view .phone-right button{min-width:48px}.detective-app-view .world-location{font-size:9px;max-width:58%}}

.detective-objective{margin:0;padding:12px 16px;background:#26301e;border-top:1px solid #a8894b;color:#f5db95;font:800 12px/1.5 Arial;letter-spacing:.03em}.case-evidence{margin:16px 0;padding:14px 16px;border:1px solid #887347;border-radius:12px;background:#10231e;color:#d9e5d2}.case-evidence summary{cursor:pointer;font:900 12px/1.6 Arial;min-height:32px;color:#f1d391}.case-evidence>p{font:12px/1.6 Arial;color:#bbd1c6}.case-evidence [data-case-evidence]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.case-evidence h5{font:900 12px/1.5 Arial;color:#f1d391;margin:0 0 10px}.case-evidence section>p{margin:0;padding:10px 0;border-top:1px solid #ffffff15;font:12px/1.5 Arial}.case-evidence b,.case-evidence span{display:block}.case-evidence span{font-size:11px;margin-top:3px}.evidence-found b{color:#b7ef9e}.evidence-sealed{color:#8b9e95}.evidence-sealed span{color:#6f8479}.detective-cinema{position:absolute;inset:0;z-index:6;overflow:hidden;background:linear-gradient(180deg,#02080ecc 0%,#06111033 30%,#02080e33 42%,#02080ef5 100%);color:#fff4da;display:flex;flex-direction:column;justify-content:space-between;padding:20px;border-block:18px solid #02080e;font-family:Arial}.detective-cinema[hidden]{display:none}.cinema-top{display:flex;align-items:center;gap:12px;z-index:2;font-size:10px;font-weight:800;letter-spacing:.08em;color:#f1d391}.cinema-top b{margin-right:auto}.cinema-top button,.cinema-caption button{border:1px solid #c6a65e;background:#142b25;color:#ffe2a0;min-height:44px;border-radius:8px;padding:10px 14px;font:800 11px Arial;cursor:pointer}.cinema-flex{position:absolute;right:0;bottom:0;height:87%;width:52%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 5px 20px #000);opacity:.85;pointer-events:none;animation:cinema-arrive .8s ease both}.cinema-caption{position:relative;z-index:1;max-width:73%;padding:20px 22px;border-left:3px solid #d6b569;background:linear-gradient(90deg,#061610ef,#061610bb 90%,#06161033);border-radius:0 14px 14px 0}.cinema-caption>span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#c9ee9e}.cinema-caption h4{margin:10px 0;color:#ffdc87;font-size:clamp(19px,3vw,32px);line-height:1.1}.cinema-caption p{font-size:15px;line-height:1.65;margin:10px 0 16px;text-shadow:0 2px 4px #000}.cinema-caption button{background:#eed18d;color:#10251d;min-width:130px}.detective-app-view .detective-cinema{padding:calc(30px + env(safe-area-inset-top)) 18px calc(30px + env(safe-area-inset-bottom))}.detective-app-view .cinema-caption{max-width:680px;width:76%}.detective-app-view .phone-play-controls{transition:opacity .15s}.flex-game-stage:has(.detective-cinema:not([hidden])) .phone-play-controls{opacity:0;pointer-events:none}.flex-game-stage:has(.detective-cinema:not([hidden])) .phone-play-controls button,.flex-game-stage:has(.detective-cinema:not([hidden])) .phone-joystick{pointer-events:none}@keyframes cinema-arrive{from{opacity:0;transform:translateX(30px)}to{opacity:.85;transform:translateX(0)}}@media(max-width:600px){.case-evidence [data-case-evidence]{grid-template-columns:1fr}.detective-cinema{padding:12px;border-block-width:12px}.cinema-top{gap:6px;font-size:8px;letter-spacing:0}.cinema-top b{max-width:53%}.cinema-top button{font-size:10px;padding:8px}.cinema-caption,.detective-app-view .cinema-caption{max-width:100%;width:100%;padding:12px 14px}.cinema-caption h4{font-size:20px}.cinema-caption p{font-size:13px;line-height:1.5}.cinema-flex{width:85%;right:-25%;opacity:.6}.detective-app-view .cinema-flex{height:73%;bottom:13%}}@media(prefers-reduced-motion:reduce){.cinema-flex{animation:none}.detective-app-view .phone-play-controls{transition:none}}

.detective-app-bar [data-app-readout]{display:block;font-size:10px;color:#c5e4b6;margin-top:3px;letter-spacing:.03em}.detective-app-view .world-location{max-width:58%}

.cinema-caption{max-height:74%;overflow-y:auto}

/* Investigation actions and short, readable case conversations. */
.investigation-count{margin:10px 0;padding:10px 14px;border-left:3px solid #78d8c5;background:#142a24;color:#c5eadd;font:700 12px/1.5 Arial}.investigation-panel{position:absolute;inset:0;z-index:8;display:grid;place-items:center;padding:20px;background:#06150fe8;backdrop-filter:blur(3px);font-family:Arial}.investigation-panel[hidden]{display:none}.investigation-panel>div{width:min(100%,520px);max-height:100%;overflow:auto;padding:24px;border:1px solid #d2ad60;border-radius:14px;background:linear-gradient(145deg,#182c25,#071b19);box-shadow:0 20px 50px #0008}.investigation-tag{margin:0;color:#7fe0c3;font-size:10px;font-weight:900;letter-spacing:.12em}.investigation-panel h4{margin:12px 0;color:#f4d387;font-size:clamp(20px,4vw,30px);line-height:1.15}.investigation-panel [data-investigation-text]{font-size:15px;line-height:1.65;color:#edf2e3}.investigation-panel button{min-height:44px;border:1px solid #bcab74;border-radius:9px;padding:11px 14px;background:#173c31;color:#f6e7c3;font:800 12px Arial;cursor:pointer}.investigation-panel [data-investigation-close]{display:block;width:100%;margin-top:16px;background:#ecd18e;color:#102a21}.investigation-panel small{display:block;margin-top:12px;color:#aec8ba;font-size:11px}.witness-questions{display:flex;flex-wrap:wrap;gap:8px}.witness-questions[hidden]{display:none}.witness-questions button{flex:1}.world-action-bar [data-game-inspect]:not(:disabled){background:#e7cf8d;color:#142a1c}.cinema-object{position:absolute;top:22%;left:12%;max-width:45%;padding:28px 18px;border:2px solid #d7bb73;border-radius:8px;background:#d8c69e;color:#183b2b;font:900 18px/1.6 Arial;box-shadow:0 12px 40px #0008;transform:rotate(-5deg);animation:evidence-reveal .6s ease both}.cinema-object[hidden]{display:none}@keyframes evidence-reveal{from{opacity:0;transform:translateY(18px) rotate(-8deg) scale(.92)}to{opacity:1;transform:translateY(0) rotate(-5deg) scale(1)}}.phone-tools [data-phone-inspect]:not(:disabled){background:#96e2c4;color:#0d291e}.flex-game-stage:has(.investigation-panel:not([hidden])) .phone-play-controls{visibility:hidden}@media(pointer:coarse),(max-width:650px){.phone-tools,.detective-app-view .phone-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.phone-tools button,.detective-app-view .phone-tools button{min-width:50px;min-height:44px;font-size:12px}.phone-right,.detective-app-view .phone-right{min-width:116px}.cinema-object{top:24%;left:8%;max-width:70%;font-size:14px;padding:16px}.investigation-panel{padding:12px}.investigation-panel>div{padding:16px}.investigation-panel [data-investigation-text]{font-size:13px;line-height:1.55}}@media(prefers-reduced-motion:reduce){.cinema-object{animation:none}}

.investigation-log{padding:14px 16px;background:#102b24;border:1px solid #799c73;border-radius:10px;margin:12px 0;font:12px/1.6 Arial}.investigation-log summary{cursor:pointer;min-height:36px;font-weight:900;color:#bceacb}.investigation-log article{padding:10px 0;border-top:1px solid #ffffff25}.investigation-log article b{color:#f2d59b}.investigation-log article p{margin:5px 0;color:#cbded1}

.deduction-options[hidden],[data-game-review][hidden],[data-investigation-review][hidden]{display:none!important}.deduction-options{display:grid;gap:8px;margin-top:14px}.deduction-options [data-deduction-facts]{white-space:pre-line;padding:12px;border:1px solid #77917b;border-radius:8px;background:#081f1a;color:#cce6d6;font-size:12px;line-height:1.7}.deduction-options button{width:100%;text-align:left;line-height:1.5}.deduction-options button:disabled{opacity:.65}.investigation-panel [data-investigation-review]{margin-top:14px;width:100%;background:#24604a;color:#f9e5ad}.flex-game-overlay [data-game-review]{margin-top:10px;background:#274c37;color:#f3de9f}.deduction-options button:focus-visible{outline:3px solid #f3d78e;outline-offset:2px}

.phone-tools [data-phone-jump],.detective-app-view .phone-tools [data-phone-jump]{background:#347b76;color:#f0ffec;border-color:#7bdfd2;font-weight:900}.phone-tools [data-phone-jump]:disabled{opacity:.55}.detective-app-view .phone-tools{display:grid;grid-template-columns:repeat(3,minmax(46px,1fr));max-width:190px}.detective-app-view .phone-tools button{font-size:11px;min-width:46px;min-height:44px}.detective-app-view .phone-tools [data-phone-action]{grid-column:2 / 4}@media(max-width:650px){.phone-tools{flex-wrap:wrap;max-width:190px}.phone-tools button{min-width:46px;min-height:44px}}

.detective-app-view .phone-tools [data-phone-action]{grid-column:auto}.detective-app-view .phone-tools [data-phone-view]{font-size:9px}.phone-tools [data-phone-view]{border-color:#80d7dc;color:#b9f2f4}.detective-app-view .phone-tools [data-phone-view]{order:6}.detective-app-view .phone-tools [data-phone-jump]{order:1}.detective-app-view .phone-tools [data-phone-run]{order:0}.detective-app-view .phone-tools [data-phone-scan]{order:2}.detective-app-view .phone-tools [data-phone-inspect]{order:3}.detective-app-view .phone-tools [data-phone-action]{order:4}

.detective-pause-audio{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:12px}.flex-game-overlay .detective-pause-audio button{font-size:12px;padding:10px 12px;min-height:44px;background:#173b31;color:#f0dfa9;border:1px solid #8c986e}
