/* SPDX-License-Identifier: MIT */
:root{color-scheme:dark;--ink:#101d26;--cream:#fff1cf;--coral:#ff805b;--mint:#8de3cf;--glass:rgba(10,24,30,.76)}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{font-family:Arial,Helvetica,sans-serif;color:var(--cream);background:var(--ink)}button{font:inherit;cursor:pointer;border:0;color:inherit;background:none;letter-spacing:.1em}button:focus-visible{outline:3px solid var(--mint);outline-offset:4px}#game{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}#vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 44%,rgba(7,16,24,.25));z-index:1}.hidden{display:none!important}.eyebrow{font-size:11px;letter-spacing:.22em;font-weight:700;line-height:1.8}#loading{position:fixed;inset:0;background:var(--ink);z-index:50;display:flex;align-items:center;justify-content:center;flex-direction:column}#loading h1{font-size:56px;letter-spacing:-.06em}#loading p{color:var(--mint);font-size:12px}#intro,#menu,#hud{position:absolute;inset:0;z-index:2}.letterbox{position:absolute;left:0;width:100%;height:9.5%;background:#080e12;z-index:3}.letterbox.top{top:0}.letterbox.bottom{bottom:0}.intro-brand{position:absolute;top:14%;left:5.5%;font-size:11px;letter-spacing:.2em;font-weight:700}.intro-brand span{opacity:.6;margin-left:20px;font-weight:400}#introCaption{position:absolute;left:7%;bottom:22%;text-shadow:0 3px 35px rgba(0,0,0,.5);transition:opacity .5s}#introCaption h2{font-size:clamp(28px,4.2vw,68px);font-weight:800;letter-spacing:-.045em;line-height:1.08;margin:16px 0 0}.skip{position:absolute;right:5.5%;bottom:13%;font-size:10px}.skip span{border:1px solid #ffffff55;border-radius:4px;padding:5px;margin-left:12px}.intro-progress{position:absolute;bottom:9.5%;width:100%;height:2px;background:#ffffff18;z-index:4}.intro-progress i{display:block;height:100%;background:var(--coral);width:0}#menu{background:linear-gradient(90deg,rgba(8,23,31,.88) 0%,rgba(8,23,31,.55) 31%,rgba(8,23,31,0) 75%)}.menu-meta{display:flex;gap:25px;position:absolute;left:5.5%;top:6%;font-size:9px;letter-spacing:.16em;opacity:.75}.menu-content{position:absolute;left:8%;top:19%}.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--coral);margin-right:7px}.menu-content h1{font-size:clamp(76px,10.8vw,165px);font-weight:900;font-stretch:condensed;line-height:.78;letter-spacing:-.075em;margin:30px 0 25px}.menu-content h1 em{font-style:normal;color:var(--coral)}.title-dot{color:var(--mint)}.menu-content p{font-size:15px;line-height:1.6;color:#f4e8d4bd;margin:0 0 28px}.primary{background:var(--coral);color:#17232a;font-weight:800;font-size:11px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:40px;padding:19px 22px;min-width:260px;border-radius:3px;box-shadow:0 8px 25px #0002;transition:background .2s,transform .2s}.primary:hover{background:#ffa382;transform:translateY(-2px)}.primary span{font-size:20px;line-height:1}.menu-links{display:flex;gap:24px;margin-top:23px}.menu-links button{font-size:9px;padding:0;border-bottom:1px solid #fff4;padding-bottom:5px}.menu-footer{position:absolute;bottom:6%;left:5.5%;right:5.5%;display:flex;justify-content:space-between;font-size:9px;letter-spacing:.12em;color:#f4e8d477;line-height:1.9}.menu-footer b{font-weight:400;color:#f4e8d4be}#audioToggle{position:absolute;right:28px;top:20px;z-index:10}#sound{padding:10px 13px;background:var(--glass);border:1px solid #ffffff20;font-size:9px;border-radius:3px}#hud{pointer-events:none}.hud-top{position:absolute;left:28px;right:28px;top:28px;display:flex;justify-content:space-between}.place{display:flex;flex-direction:column;gap:5px;text-shadow:0 2px 8px #000a}.place small{font-size:8px;letter-spacing:.22em;color:var(--mint)}.place strong{font-size:24px;font-weight:700;letter-spacing:-.025em}.place span{font-size:10px;color:#fffbe4bb}.heat{margin-top:66px;text-align:right;width:170px;display:flex;flex-direction:column;align-items:flex-end;gap:7px}#heatPips{display:flex;gap:6px}#heatPips i{height:8px;width:22px;background:#fff3;transform:skew(-15deg);border:1px solid #fff3}#heatPips i.on{background:var(--coral);border-color:var(--coral);box-shadow:0 0 9px #ff805b77}#policeState{font-size:9px;letter-spacing:.1em;text-shadow:0 2px 8px #000}.escape-track{width:100%;height:3px;background:#fff2}.escape-track i{display:block;background:var(--mint);height:100%;width:0}.objective{position:absolute;top:138px;left:28px;max-width:240px;padding:17px 18px;background:linear-gradient(110deg,var(--glass),rgba(10,24,30,.35));border-left:2px solid var(--mint);backdrop-filter:blur(8px);border-radius:0 4px 4px 0}.objective .eyebrow{color:var(--mint);font-size:8px}.objective h3{font-size:15px;margin:7px 0;font-weight:600}.objective p{font-size:11px;line-height:1.5;color:#fff1cfad;margin:5px 0 8px}.objective small{font-size:10px;color:var(--mint)}.objective-toggle{display:block;width:100%;padding:0;text-align:left;letter-spacing:normal;cursor:default;pointer-events:none}.objective-summary{display:none}.objective-summary b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.objective-summary small{flex:0 0 auto;font-size:9px}.objective-summary i{font-style:normal;font-size:8px;letter-spacing:.08em;white-space:nowrap;color:var(--mint)}.minimap-wrap{position:absolute;left:28px;bottom:26px;width:190px;background:var(--glass);border:1px solid #ffffff20;box-shadow:0 6px 30px #0003;padding:5px;border-radius:5px;backdrop-filter:blur(8px)}#minimap{width:178px;height:178px;display:block;border-radius:2px}.minimap-wrap>span{position:absolute;right:14px;top:13px;font-size:10px;color:var(--mint)}.map-caption{padding:11px 6px 6px;font-size:8px;letter-spacing:.12em;display:flex;justify-content:space-between}.map-caption b{color:var(--mint);font-size:10px}.status{position:absolute;right:28px;bottom:26px;width:220px;padding:18px;background:linear-gradient(120deg,rgba(10,24,30,.35),var(--glass));border-radius:4px;backdrop-filter:blur(8px)}.status-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.status-line>span{font-size:9px;letter-spacing:.1em;color:var(--mint)}.status-line b{font-size:28px;font-weight:400}.status-line small{font-size:8px;color:#fff8}.health-label{font-size:7px;letter-spacing:.1em;display:flex;justify-content:space-between}.health-track{height:3px;background:#fff2;margin:8px 0 16px}.health-track i{display:block;height:100%;width:100%;background:var(--mint)}.key-hints{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 10px;font-size:8px;color:#fff8}kbd{font-family:inherit;border:1px solid #fff3;border-radius:3px;padding:2px 4px;color:var(--cream);font-size:9px}#interaction{position:absolute;bottom:110px;left:50%;transform:translateX(-50%);background:var(--glass);padding:12px 18px;border:1px solid #ffffff20;border-radius:4px;font-size:11px;white-space:nowrap}#toast{position:absolute;left:50%;bottom:45px;transform:translateX(-50%);font-size:12px;color:var(--cream);background:var(--glass);padding:14px 23px;border-left:2px solid var(--coral);opacity:0;transition:opacity .25s;max-width:45%;text-align:center;border-radius:3px}#toast.show{opacity:1}.overlay{position:fixed;inset:0;background:rgba(7,18,25,.76);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:center;z-index:20}.panel{background:#132730;border:1px solid #ffffff14;max-width:520px;width:90%;padding:42px;border-radius:7px;box-shadow:0 20px 100px #0006}.panel h2{font-size:36px;letter-spacing:-.04em;line-height:1.05;margin:18px 0 28px}.panel .primary{width:100%;margin-top:24px}.secondary{display:block;text-align:left;padding:15px 0;font-size:10px;width:100%;border-bottom:1px solid #ffffff13}.panel p{font-size:12px;line-height:1.65;color:#fff1cfa3}.control-grid{display:grid;grid-template-columns:85px 1fr;gap:10px 18px;align-items:center;font-size:11px;color:#fff1cfb3}.control-grid kbd{text-align:center}.help-panel{max-height:93vh;overflow:auto}.help-panel h2{font-size:30px;margin-bottom:22px}#fatal{z-index:100}#fatalMessage{color:var(--coral)}@media(max-width:700px){.menu-content{left:7%;top:21%}.menu-content h1{font-size:95px}.menu-content p{font-size:13px}.menu-meta{font-size:7px}.menu-footer{font-size:7px}.minimap-wrap{width:130px;left:12px;bottom:12px}#minimap{width:118px;height:118px}.hud-top{left:15px;right:15px;top:20px}.objective{left:15px;top:118px;max-width:190px;padding:12px}.status{right:12px;bottom:12px;width:175px;padding:12px}.status-line b{font-size:23px}.key-hints{gap:6px;font-size:7px}#toast{bottom:185px;max-width:80%;font-size:11px}.heat{width:120px}.place strong{font-size:20px}.panel{padding:25px}.panel h2{font-size:29px}.control-grid{font-size:10px}.intro-brand{font-size:8px}.intro-brand span{margin-left:10px}.skip{font-size:8px}}
#vignette.hit{background:radial-gradient(ellipse at center,transparent 38%,rgba(190,20,32,.6))}
#wasted{position:fixed;inset:0;z-index:15;pointer-events:none}
.wasted-text{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:17vh;text-align:center;opacity:0}
.wasted-text h2{margin:0;font-size:clamp(54px,13vw,170px);line-height:.9;letter-spacing:.04em;font-style:italic;font-weight:900;color:#e2343f;text-shadow:0 4px 0 #3a0508,0 0 42px rgba(226,52,63,.55)}
.wasted-text p{margin:18px 0 0;font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--cream);opacity:.85}
#aim{position:absolute;left:50%;top:40%;width:14px;height:14px;margin:-7px 0 0 -7px;border:1.5px solid #fff9;border-radius:50%;pointer-events:none;transition:opacity .2s}
#aim::after{content:"";position:absolute;left:50%;top:50%;width:2px;height:2px;margin:-1px;background:#fff;border-radius:50%}#aim.target{border-color:var(--coral);box-shadow:0 0 0 2px #101d2688,0 0 12px #ff805b88}#aim.target::after{background:var(--coral)}
.arsenal{font-size:8px;letter-spacing:.12em;color:var(--mint);margin:-6px 0 12px}
#wasted.busted .wasted-text h2{color:#4d9dff;text-shadow:0 4px 0 #06203f,0 0 42px rgba(77,157,255,.55)}
.shop{display:flex;flex-direction:column;gap:6px;margin:10px 0 16px;max-height:46vh;overflow:auto}
.shop-item{display:grid;grid-template-columns:1fr auto;gap:2px 14px;text-align:left;padding:10px 12px;background:#ffffff0d;border:1px solid #ffffff1f;border-radius:3px;color:var(--cream);font:inherit;cursor:pointer}
.shop-item b{font-size:12px;letter-spacing:.04em}.shop-item span{grid-column:1;font-size:10px;opacity:.7}.shop-item em{grid-row:1/3;grid-column:2;align-self:center;font-style:normal;font-size:12px;color:var(--mint)}
.shop-item:hover:not(:disabled){background:#ffffff1c}.shop-item:disabled{opacity:.38;cursor:default}
#missionText kbd{display:inline-block;min-width:14px;padding:0 4px;margin-right:4px;border:1px solid #fff5;border-radius:3px;font-size:9px;text-align:center}
#missionText b{color:var(--mint);font-weight:600}
.menu-content p.menu-sub{font-size:11px;letter-spacing:.04em;color:#f4e8d48c;margin:-14px 0 26px}
.menu-info{position:absolute;right:5.5%;top:19%;width:min(330px,28vw);display:flex;flex-direction:column;gap:12px}
.info-block{background:var(--glass);backdrop-filter:blur(10px);border:1px solid #ffffff14;border-left:2px solid var(--mint);border-radius:3px;padding:16px 18px}
.info-block .eyebrow{display:block;margin-bottom:10px}
.info-block ol{list-style:none;counter-reset:step;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.info-block li{counter-increment:step;display:grid;grid-template-columns:22px 1fr;column-gap:8px}
.info-block li::before{content:counter(step,decimal-leading-zero);grid-row:1/3;font-size:10px;letter-spacing:.08em;color:var(--coral);padding-top:1px}
.info-block li b{font-size:12px;letter-spacing:.03em;color:var(--cream)}.info-block li span{font-size:10.5px;line-height:1.45;color:#f4e8d4a6}
.menu-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.menu-stats b{display:block;font-size:17px;color:var(--cream);letter-spacing:-.01em;white-space:nowrap}.menu-stats small{font-size:8px;letter-spacing:.14em;text-transform:uppercase;color:#f4e8d480}
.menu-keys{display:flex;flex-wrap:wrap;gap:8px 12px;font-size:9px;color:#f4e8d4a6;border-left-color:var(--coral)}
.menu-keys kbd{display:inline-block;padding:2px 5px;margin-right:4px;border:1px solid #fff4;border-radius:3px;font-size:8px;color:var(--cream)}
.menu-ext{display:flex;flex-wrap:wrap;gap:8px 18px;padding:2px 2px 0}.menu-ext a,.menu-ext button{font-size:9px;letter-spacing:.14em;color:#f4e8d4be;text-decoration:none;border-bottom:1px solid #fff4;padding:0 0 4px}.menu-ext a:hover,.menu-ext button:hover{color:var(--mint);border-color:var(--mint)}
@media (max-width:980px),(max-height:640px){.menu-info{display:none}}

/* v0.3 — mapa, campanha, foto e acessibilidade em jogo */
.map-panel{max-width:820px}.map-panel h2{margin-bottom:14px}.map-panel canvas{display:block;width:100%;height:auto;max-height:58vh;background:#173a45;border:1px solid #ffffff25;border-radius:5px;cursor:crosshair}.dialogue{position:fixed;z-index:18;left:50%;bottom:8%;transform:translateX(-50%);width:min(620px,88vw);padding:16px 20px;background:rgba(10,24,30,.92);border-left:3px solid var(--coral);border-radius:4px;box-shadow:0 12px 50px #0008;pointer-events:none}.dialogue span{font-size:9px;letter-spacing:.18em;color:var(--mint);font-weight:800}.dialogue p{font-size:15px;line-height:1.45;margin:7px 0 0}.photo-ui{position:fixed;z-index:25;left:28px;right:28px;top:24px;display:flex;align-items:center;gap:18px;padding:12px 15px;background:rgba(10,24,30,.82);border:1px solid #ffffff20;border-radius:4px}.photo-ui>b{font-size:9px;font-weight:400;color:#fff9;flex:1}.photo-ui div{display:flex;gap:8px}.photo-ui button{font-size:9px;padding:9px 11px;border:1px solid #ffffff33;border-radius:3px;background:#ffffff0b}.photo-ui button:hover{border-color:var(--mint);color:var(--mint)}body.photo-clean #photoMode{opacity:0}body.photo-clean #vignette{display:none}.campaign-badge{color:var(--coral)!important}.route-note{color:var(--mint)}
@media(max-width:700px){.photo-ui{left:10px;right:10px;flex-wrap:wrap}.photo-ui>b{display:none}.map-panel{padding:18px}.dialogue{bottom:18%;font-size:12px}}

/* v0.5 — controles adaptativos para mouse e toque */
#touchControls,#portraitHint{display:none}#touchControls{position:fixed;inset:0;z-index:14;pointer-events:none;touch-action:none}.touch-look{position:absolute;right:0;top:0;width:56%;height:100%;pointer-events:auto;touch-action:none}.touch-pad{position:absolute;left:max(22px,env(safe-area-inset-left));bottom:max(22px,env(safe-area-inset-bottom));width:clamp(92px,16vw,132px);height:clamp(92px,16vw,132px);border:2px solid #fff7;border-radius:50%;background:#07182070;box-shadow:0 5px 24px #0006;pointer-events:auto;touch-action:none}.touch-pad i{position:absolute;left:50%;top:50%;width:44%;height:44%;transform:translate(-50%,-50%);border-radius:50%;background:#fff1cfd9;border:2px solid #fff;box-shadow:0 3px 12px #0007}.touch-action,.touch-context,.touch-pause{position:absolute;pointer-events:auto;touch-action:none;background:#071820d9;border:2px solid #ffffff88;color:var(--cream);font-size:9px;font-weight:800;letter-spacing:.06em;box-shadow:0 4px 18px #0007}.touch-action{width:clamp(52px,9vw,72px);height:clamp(52px,9vw,72px);border-radius:50%;white-space:pre-line}.touch-primary{right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));width:clamp(66px,11vw,86px);height:clamp(66px,11vw,86px);background:#ff805bd9;border-color:var(--coral)}.touch-secondary{right:clamp(94px,16vw,138px);bottom:clamp(78px,14vw,118px)}.touch-third{right:clamp(24px,5vw,52px);bottom:clamp(104px,18vw,148px)}.touch-context{left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translateX(-50%);padding:12px 17px;border-radius:22px;border-color:var(--mint)}.touch-weapon{right:clamp(190px,30vw,250px);bottom:clamp(92px,16vw,132px)}.touch-fire{right:clamp(190px,30vw,250px);bottom:clamp(22px,4vw,36px);background:#ff805bd9;border-color:var(--coral)}.touch-pause{right:max(14px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));width:38px;height:34px;border-radius:5px}.touch-action.pressed{transform:scale(.92);filter:brightness(1.25)}.touch-context.pressed{transform:translateX(-50%) scale(.92);filter:brightness(1.25)}#portraitHint{position:fixed;inset:0;z-index:120;background:var(--ink);align-items:center;justify-content:center;flex-direction:column;gap:10px;text-align:center}#portraitHint b{color:var(--coral);font-size:22px}#portraitHint span{font-size:12px;color:#fff1cfaa}
@media (pointer:coarse){#touchControls:not(.hidden){display:block}.key-hints{display:none}.status{bottom:12px;right:12px;width:180px}.minimap-wrap{bottom:12px;left:12px}.objective{max-width:220px}#aim{top:42%;left:50%}}
@media (pointer:coarse) and (orientation:portrait){#portraitHint{display:flex}#touchControls{display:none!important}}
body.touch-preview #touchControls:not(.hidden){display:block}
.touch-device #touchControls:not(.hidden){display:block}.touch-device #audioToggle,.touch-preview #audioToggle{top:14px;right:58px}.touch-device .touch-pause,.touch-preview .touch-pause{top:14px}.touch-device .minimap-wrap,.touch-preview .minimap-wrap{left:12px;top:66px;bottom:auto;width:118px;padding:4px}.touch-device #minimap,.touch-preview #minimap{width:108px;height:108px}.touch-device .map-caption,.touch-preview .map-caption{display:none}.touch-device .objective,.touch-preview .objective{left:142px;top:70px;width:min(260px,calc(100vw - 310px));max-width:none;padding:0;pointer-events:auto;overflow:hidden;border-radius:0 22px 22px 0;transition:width .2s,border-radius .2s}.touch-device .objective-toggle,.touch-preview .objective-toggle{padding:8px 11px;pointer-events:auto;cursor:pointer}.touch-device .objective-toggle .eyebrow,.touch-preview .objective-toggle .eyebrow{font-size:7px;line-height:1.2}.touch-device .objective-summary,.touch-preview .objective-summary{display:flex;align-items:center;gap:8px;margin-top:2px}.touch-device .objective-summary b,.touch-preview .objective-summary b{flex:1;font-size:10px;font-weight:700}.touch-device .objective-details,.touch-preview .objective-details{display:none}.touch-device .objective.expanded,.touch-preview .objective.expanded{width:min(240px,calc(100vw - 310px));border-radius:0 4px 4px 0}.touch-device .objective.expanded .objective-details,.touch-preview .objective.expanded .objective-details{display:block;padding:0 11px 10px}.touch-device .objective.expanded .objective-details h3,.touch-preview .objective.expanded .objective-details h3{display:none}.touch-device .objective p,.touch-preview .objective p{font-size:9px;line-height:1.35;margin:4px 0}.touch-device .objective small,.touch-preview .objective small{font-size:8px}.touch-device .status,.touch-preview .status{right:12px;top:132px;bottom:auto;width:145px;padding:10px}.touch-device .status-line,.touch-preview .status-line{margin-bottom:7px}.touch-device .status-line b,.touch-preview .status-line b{font-size:20px}.touch-device .arsenal,.touch-preview .arsenal{display:none}.touch-device .health-track,.touch-preview .health-track{margin:5px 0 0}.touch-device #interaction,.touch-preview #interaction{display:none!important}.touch-device #toast,.touch-preview #toast{bottom:72px;max-width:46%;font-size:9px;padding:9px 13px}.touch-device .place strong,.touch-preview .place strong{font-size:18px}.touch-device .hud-top,.touch-preview .hud-top{left:14px;right:14px;top:14px}.touch-device .heat,.touch-preview .heat{margin-top:38px;width:120px}
.touch-device .status,.touch-preview .status{top:64px;padding:8px}.touch-device .heat,.touch-preview .heat{position:absolute;right:160px;top:2px;margin-top:0}.touch-device .status-line,.touch-preview .status-line{margin-bottom:4px}.touch-device .health-label,.touch-preview .health-label{font-size:6px}
.touch-preview .key-hints{display:none}

/* HUD compacto para celulares baixos em orientação horizontal. */
@media (orientation:landscape) and (max-height:430px){
  .touch-device .touch-pad,.touch-preview .touch-pad{left:max(12px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));width:92px;height:92px}
  .touch-device .minimap-wrap,.touch-preview .minimap-wrap{left:12px;top:52px;width:94px;padding:3px}
  .touch-device #minimap,.touch-preview #minimap{width:86px;height:86px}
  .touch-device .objective,.touch-preview .objective{left:112px;top:58px;width:min(270px,calc(100vw - 270px))}
  .touch-device .objective.expanded,.touch-preview .objective.expanded{width:min(260px,calc(100vw - 270px))}
}

.touch-device .objective.expanded .objective-summary small,.touch-preview .objective.expanded .objective-summary small{display:none}
.touch-device .objective.expanded .objective-summary b,.touch-preview .objective.expanded .objective-summary b{white-space:normal}
