*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#080b10;color:#fff;font-family:Arial,Helvetica,sans-serif;touch-action:none}canvas{display:block;width:100%;height:100%}
#hud{position:fixed;z-index:3;top:0;left:0;width:100%;padding:12px 15px 10px;background:linear-gradient(180deg,rgba(0,0,0,.82),rgba(0,0,0,.18),transparent);pointer-events:none}.topline,.missionline{display:flex;justify-content:space-between;align-items:center;gap:8px}.logo{font-weight:1000;letter-spacing:3px;font-size:18px}.logo span,h1 span{color:#e02b3b}.rank{font-size:10px;color:#c6ccd2;letter-spacing:1px}.rank b{color:#fff}.meters{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:9px}.meter{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800}.meter label{font-size:9px;letter-spacing:1px;color:#aeb7c1}.meter b{font-size:12px}.bar{width:66px;height:6px;border-radius:5px;background:#4a2428;overflow:hidden}.bar i{display:block;width:100%;height:100%;background:#e3444b}.bar.armour{background:#1d394b}.bar.armour i{background:#4ea9db}.missionline{margin-top:9px;font-size:10px;letter-spacing:1px;font-weight:900;color:#f0d6a5}.wanted{margin-top:5px;color:#ff6169;font-size:11px;letter-spacing:2px;font-weight:900}.worldline{display:flex;gap:13px;margin-top:5px;color:#a9d6dc;font-size:9px;font-weight:900;letter-spacing:1.5px}
.screen{position:fixed;inset:0;z-index:8;display:grid;place-items:center;background:radial-gradient(circle at center,rgba(33,40,48,.72),rgba(0,0,0,.95))}.hidden{display:none!important}.panel{width:min(92%,510px);padding:28px 22px;text-align:center;background:rgba(9,12,17,.95);border:1px solid #ffffff26;box-shadow:0 20px 90px #000;border-radius:12px}.eyebrow{font-size:9px;letter-spacing:3px;color:#aab2ba}h1{font-size:clamp(36px,10vw,64px);letter-spacing:3px;margin:15px 0 5px;font-weight:1000}h2{letter-spacing:2px;margin:0}p{font-size:12px;color:#b8c0c8;line-height:1.5}.menuStats{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:17px 0}.menuStats span{font-size:8px;letter-spacing:1px;padding:7px;border:1px solid #ffffff25;border-radius:4px;color:#bfc6cc}button{border:0;border-radius:6px;background:#c91f30;color:#fff;font-weight:900;letter-spacing:1px;padding:13px 15px;font-size:11px;cursor:pointer;touch-action:manipulation}button:active{transform:scale(.97)}.panel>button{display:block;width:100%;margin:10px 0}.secondary{background:#29323c}.panel small{display:block;color:#78838e;font-size:9px;line-height:1.5;margin-top:13px}.shopPanel{text-align:left;max-height:88vh;overflow:auto}.shopHead{display:flex;justify-content:space-between;align-items:center}.xbtn{padding:8px 11px;background:#333}.shopGrid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.shopGrid button{text-align:left;min-height:76px;background:#202a34;border:1px solid #ffffff20}.shopGrid button b{display:block;color:#ffb8a1;margin-top:7px}.shopGrid button small{margin:5px 0 0;color:#aeb8c1}.shopGrid button:disabled{opacity:.4}#shopMessage{font-size:11px;color:#f0c38e;margin-top:14px;min-height:16px}
#mobileControls{position:fixed;z-index:4;bottom:16px;left:0;right:0;padding:0 14px;display:flex;justify-content:space-between;align-items:end;pointer-events:none}#stickZone{width:112px;height:112px;border:2px solid #ffffff40;border-radius:50%;background:#0005;position:relative;pointer-events:auto}#stick{position:absolute;left:30px;top:30px;width:48px;height:48px;border-radius:50%;background:#cbd2d980;border:2px solid #fff9}.mobileActions{display:grid;grid-template-columns:repeat(2,58px);gap:7px;pointer-events:auto}.mobileActions button{height:45px;padding:4px;font-size:9px;background:#303b47}.mobileActions #fireBtn{height:58px;background:#d52232;border-radius:50%;grid-column:2;grid-row:1/3;align-self:center}.mobileActions #aimBtn{grid-column:1;grid-row:1}.mobileActions #reloadBtn{grid-column:1;grid-row:2}.mobileActions #switchBtn{grid-column:1;grid-row:3}.mobileActions #driveBtn{grid-column:1;grid-row:4;background:#8a642e}#desktopHelp{position:fixed;z-index:3;bottom:6px;left:0;right:0;text-align:center;color:#ffffff90;font-size:9px;pointer-events:none}#toast{position:fixed;z-index:6;top:27%;left:50%;transform:translate(-50%,-50%);padding:10px 16px;background:#090d12dd;border:1px solid #ffffff30;border-radius:6px;color:#ffd3a1;font-size:12px;font-weight:900;letter-spacing:1px;opacity:0;transition:opacity .2s;pointer-events:none}
@media(min-width:800px){#mobileControls{opacity:.35}#stickZone{width:88px;height:88px}#stick{left:20px;top:20px}#desktopHelp{font-size:10px}}
#reticle{position:fixed;left:50%;top:50%;width:22px;height:22px;transform:translate(-50%,-50%);z-index:2;pointer-events:none;opacity:.78}
#reticle:before,#reticle:after{content:'';position:absolute;background:#f4eee0;box-shadow:0 0 4px #000}
#reticle:before{left:10px;top:1px;width:2px;height:20px}#reticle:after{left:1px;top:10px;width:20px;height:2px}
#hud{backdrop-filter:blur(3px)}.logo{text-shadow:0 2px 10px #000}button{box-shadow:0 3px 12px #0007}
@media(max-width:600px){#hud{padding:9px 10px 8px}.meters{gap:8px}.meter{font-size:10px}.bar{width:48px}.rank{font-size:8px}.worldline{gap:8px;font-size:8px}#desktopHelp{display:none}.panel{padding:23px 17px}}

/* Integrated navigation and mobile HUD upgrade */
#minimap{position:fixed;z-index:3;right:13px;top:116px;width:132px;height:132px;border-radius:50%;border:2px solid rgba(255,255,255,.7);box-shadow:0 4px 20px #000b;background:#080d12aa;pointer-events:none}
#qualityBtn{margin-top:5px;background:#354657;border:1px solid #ffffff25}
#killCount{color:#fff}
@media(max-width:600px){#minimap{top:145px;right:9px;width:105px;height:105px}.meters{max-width:calc(100% - 105px)}.missionline{max-width:calc(100% - 105px);font-size:9px}.wanted{max-width:calc(100% - 105px)}}
@media(max-height:650px){#minimap{width:88px;height:88px;top:132px}.mobileActions button{height:38px}#stickZone{width:94px;height:94px}}


/* Landscape-only gameplay: show a full-screen instruction whenever the phone is upright. */
#rotateNotice{display:none;position:fixed;inset:0;z-index:9999;background:radial-gradient(circle at center,#1c2834,#05080c 78%);align-items:center;justify-content:center;padding:24px;text-align:center;}
#rotateNotice .rotateCard{max-width:420px;border:1px solid #ffffff30;border-radius:16px;background:#0b1119;padding:28px 24px;box-shadow:0 18px 70px #000b;}
#rotateNotice h2{font-size:clamp(20px,5vw,30px);letter-spacing:2px;color:#fff;}
#rotateNotice p{font-size:14px;line-height:1.6;color:#c4ccd5;}
#rotateNotice .rotateIcon{font-size:58px;line-height:1;color:#e02b3b;margin-bottom:12px;animation:rotatePhone 1.8s ease-in-out infinite alternate;}
@keyframes rotatePhone{from{transform:rotate(0deg)}to{transform:rotate(90deg)}}
@media (orientation:portrait){#rotateNotice{display:flex;} }
@media (orientation:landscape){#rotateNotice{display:none!important;} }
@media (orientation:landscape) and (max-height:500px){#hud{padding:6px 10px 5px}.meters{margin-top:4px;gap:9px}.missionline{margin-top:4px}.wanted{margin-top:2px}.worldline{margin-top:2px}#minimap{top:92px;width:92px;height:92px}.mobileActions{grid-template-columns:repeat(2,54px);gap:5px}.mobileActions button{height:38px}#mobileControls{bottom:8px}#stickZone{width:88px;height:88px}}
