:root{--native-left:0px;--native-right:0px;--native-top:0px;--native-bottom:0px;--drive-button:60px;--walk-button:52px;--status-width:260px;--pad-width:130px;--pedals-width:196px;--edge-left:max(12px,env(safe-area-inset-left),calc(var(--native-left) + 12px));--edge-right:max(12px,env(safe-area-inset-right),calc(var(--native-right) + 12px));--edge-top:max(10px,env(safe-area-inset-top),calc(var(--native-top) + 10px));--edge-bottom:max(12px,env(safe-area-inset-bottom),calc(var(--native-bottom) + 12px))}
html,body{-webkit-text-size-adjust:100%;text-size-adjust:100%}#mobileStatus,#mobileMessages{display:contents}#directionPad{display:none}
.mobile-play #mobileJoyAnchor,.mobile-play #joy,.mobile-play #touchZone{display:none!important}
.mobile-play.has-session:not(.in-vehicle):not(.ui-open):not(.map-mode) #joy,.mobile-play.has-session:not(.in-vehicle):not(.ui-open):not(.map-mode) #touchZone{display:block!important;position:fixed;inset:auto auto var(--edge-bottom) var(--edge-left)!important;width:120px;height:120px;box-sizing:border-box;touch-action:none}
.mobile-play.left-hand.has-session:not(.in-vehicle):not(.ui-open):not(.map-mode) #joy,.mobile-play.left-hand.has-session:not(.in-vehicle):not(.ui-open):not(.map-mode) #touchZone{left:auto!important;right:var(--edge-right)!important}
.mobile-play #joyKnob{left:34px;top:34px}
.mobile-play #btns{position:fixed!important;inset:auto var(--edge-right) var(--edge-bottom) auto!important;display:grid!important;grid-template-columns:repeat(3,var(--drive-button));grid-template-rows:repeat(2,var(--drive-button));gap:8px!important;width:var(--pedals-width)!important;height:auto!important;z-index:8;pointer-events:none;opacity:1!important}
.mobile-play #btns>.abtn{display:none!important;position:static!important;inset:auto!important;width:var(--drive-button)!important;height:var(--drive-button)!important;min-width:48px;min-height:48px;margin:0!important;padding:5px!important;border:1.5px solid #d1e0d5;border-radius:16px;pointer-events:auto;touch-action:none;opacity:1!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;background:#18394be8}
.mobile-play #btns>.abtn .icon{width:22px;height:22px;flex:none}.mobile-play #btns>.abtn span{font:700 9px/1.1 system-ui;letter-spacing:.1px}.mobile-play #btns>.abtn.act{background:#f2c66d;color:#152f3b}
.mobile-play.in-vehicle #btns>#btnAccelerate{display:flex!important;grid-row:2;grid-column:3;background:#437c69ee}.mobile-play.in-vehicle #btns>#btnReverse{display:flex!important;grid-row:2;grid-column:2}.mobile-play #btns>#btnAction{display:flex!important;grid-row:1;grid-column:3}.mobile-play #btns>#btnFire:not(.context-hidden){display:flex!important;grid-row:1;grid-column:2}.mobile-play #btns>#btnSiren:not(.context-hidden){display:flex!important;grid-row:1;grid-column:1}.mobile-play #btns>#mobileHeadlights:not(.context-hidden){display:flex!important;grid-row:2;grid-column:1;font:700 9px/1.2 system-ui}.mobile-play #btns>.abtn.on{background:#377880;color:#fff}
.mobile-play #directionPad{display:none;position:fixed;left:var(--edge-left);bottom:var(--edge-bottom);z-index:8;pointer-events:none;touch-action:none}
#directionPad button{display:flex;align-items:center;justify-content:center;border:1.5px solid #c1dbd6;border-radius:17px;background:#18394be8;color:#fff4d3;font:500 34px/1 system-ui;min-width:48px;min-height:48px;padding:0;pointer-events:auto;touch-action:none;user-select:none;box-shadow:0 3px 0 #0c233a66}#directionPad button.on{background:#eec16a;color:#183240}
.mobile-play.in-vehicle #directionPad{display:grid;grid-template-columns:repeat(2,var(--drive-button));grid-template-rows:var(--drive-button);gap:10px}#steerLeft{grid-row:1;grid-column:1}#steerRight{grid-row:1;grid-column:2}
.mobile-play.left-hand #btns{left:var(--edge-left)!important;right:auto!important}.mobile-play.left-hand #directionPad{left:auto;right:var(--edge-right)}
.mobile-play #mobileStatus{display:flex;flex-direction:column;gap:5px;position:fixed;top:var(--edge-top);left:var(--edge-left);width:var(--status-width);padding:10px 12px;background:#102b3de6;color:#f0eee0;border:1px solid #9abeb780;border-radius:14px;z-index:5;pointer-events:none}
.mobile-play #mobileStatus #hudTop{position:static!important;inset:auto!important;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:3px;width:auto!important;max-width:none!important}.mobile-play #mobileStatus .hudBox{padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;max-width:none!important;width:auto!important;font:500 11px/1.35 system-ui;text-shadow:none;color:#f3eedc}.mobile-play #mobileStatus #hudClan{max-width:none;color:#f3eedc;line-height:1.4}.mobile-play #mobileStatus #hudTop br{display:none}.mobile-play #mobileStatus #hudMoney,.mobile-play #mobileStatus #hudLevel{color:#d4e0dc}.mobile-play #mobileStatus .center{display:flex;gap:8px;align-items:center;text-align:left}.mobile-play #mobileStatus #hudStars{font-size:11px;color:#f2cb79}.mobile-play #mobileStatus #hudTimer{font-size:9px;color:#bcd8d4}
.mobile-play #mobileStatus #hudBars{position:static!important;inset:auto!important;display:grid;grid-template-columns:1fr 1fr;gap:4px;width:auto!important;max-width:none}.mobile-play #mobileStatus .bar{margin:0!important;min-width:0;height:10px}.mobile-play #mobileStatus .lbl{width:14px;font-size:10px}.mobile-play #mobileStatus .bar .icon{width:12px;height:12px;color:#cadacf!important}.mobile-play #mobileStatus #hudWeapon{grid-column:1/-1;font-size:9px;padding:2px 0;background:none;color:#d5e2de}.mobile-play #worldClock{grid-column:1/-1;padding:0!important;margin:0!important;background:none!important;color:#c8ddd7!important;font:500 9px/1.35 system-ui!important}
.mobile-play #mobileMore,.mobile-play #mobileMap{top:var(--edge-top)!important;right:var(--edge-right)!important;width:48px;height:48px;border-radius:14px}.mobile-play #mobileMap{right:calc(var(--edge-right) + 56px)!important}
.mobile-play #mobileMessages{display:flex;flex-direction:column;gap:7px;position:fixed;top:var(--message-top,10px);left:calc(var(--edge-left) + var(--status-width) + 12px);right:calc(var(--edge-right) + 116px);width:auto;z-index:6;pointer-events:none;max-height:38vh;overflow:hidden}
.mobile-play #mobileMessages #hudToast,.mobile-play #mobileMessages #gpsGuide,.mobile-play #mobileMessages .tutorial-note{position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:none!important;margin:0!important;padding:8px 10px;font-size:10px;line-height:1.4;border-radius:10px;overflow:hidden}
.mobile-play #mobileMessages #hudToast{padding:0;max-height:70px}.mobile-play #hudToast div{font-size:10px;padding:7px 10px;margin:0 0 4px}.mobile-play #hudToast:empty{display:none}
.mobile-play #hudObj{position:fixed;left:var(--objective-left,180px)!important;right:var(--objective-right,220px)!important;bottom:var(--edge-bottom)!important;top:auto!important;width:auto!important;max-width:none!important;max-height:126px;padding:10px 12px!important;transform:none!important;border:1px solid #74928e;border-radius:12px;box-shadow:none;overflow:hidden;background:#102b3de6;color:#ece8d7}.mobile-play #hudObjText{font-size:10px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.mobile-play #hudMissionLabel{font-size:9px;letter-spacing:1px;margin-bottom:4px;color:#f2c477}.mobile-play #hudHint{font-size:9px;line-height:1.3;color:#9cdbbe}.mobile-play #hudObj .mission-track{margin-top:6px}
.mobile-play #location{left:var(--edge-left)!important;bottom:calc(var(--edge-bottom) + var(--drive-button) + 12px)!important;max-width:var(--pad-width);pointer-events:none}.mobile-play #location>span{display:none}.mobile-play #location strong{font-size:10px;line-height:1.3}.mobile-play #hudSpeed{right:var(--edge-right)!important;bottom:calc(var(--edge-bottom) + var(--drive-button)*2 + 22px)!important;left:auto!important;font-size:22px;line-height:1;text-align:right;pointer-events:none}.mobile-play #hudSpeed small{font-size:8px;display:inline;margin-left:5px}
.mobile-play:not(.in-vehicle) #location{bottom:calc(var(--edge-bottom) + var(--walk-button)*3 + 24px)!important}.mobile-play.left-hand #hudSpeed{left:var(--edge-left)!important;right:auto!important}.mobile-play.left-hand #location{right:var(--edge-right)!important;left:auto!important}
.mobile-play:not(.in-vehicle) #location,.mobile-play:not(.in-vehicle) #hudSpeed{display:none!important}.mobile-play:not(.in-vehicle) #btns>#btnAction,.mobile-play:not(.in-vehicle) #btns>#btnFire{grid-row:2}.mobile-play.ui-open #mobileMore,.mobile-play.ui-open #mobileMap,.mobile-play.map-mode #mobileStatus,.mobile-play.map-mode #mobileMessages{visibility:hidden!important}
.mobile-play #mobileStatus #hudSpeed{align-self:flex-start;position:static!important;inset:auto!important;margin:2px 0 0!important;text-align:left;font:600 14px/1.1 system-ui}
.mobile-play.ui-open #directionPad,.mobile-play.ui-open #btns,.mobile-play.ui-open #mobileMessages,.mobile-play.ui-open #location,.mobile-play.ui-open #hudSpeed,.mobile-play:not(.has-session) #directionPad,.mobile-play:not(.has-session) #btns,.mobile-play.map-mode #directionPad,.mobile-play.map-mode #btns{visibility:hidden!important;pointer-events:none!important}
.mobile-play #menu{padding:var(--edge-top) var(--edge-right) var(--edge-bottom) var(--edge-left);overflow:auto}.mobile-play #menuBox{max-height:calc(100dvh - var(--edge-top) - var(--edge-bottom));overflow:auto;overscroll-behavior:contain;padding:20px;width:min(820px,100%);font-size:14px}.mobile-play #menuBox h2{font-size:22px}.mobile-play .setting{gap:8px}.mobile-play .setting select{min-width:0;font-size:12px}.mobile-play .controls-help{padding:10px;border:1px solid #527c7c;border-radius:8px}
@media(orientation:portrait){.mobile-play #mobileMessages{top:var(--message-top,160px);left:var(--edge-left);right:var(--edge-right);max-height:180px}.mobile-play #hudObj{bottom:calc(var(--edge-bottom) + var(--walk-button)*3 + 40px)!important;max-height:125px}.mobile-play #location{bottom:calc(var(--edge-bottom) + var(--drive-button)*2 + 18px)!important}.mobile-play:not(.in-vehicle) #location{bottom:calc(var(--edge-bottom) + var(--walk-button)*3 + 18px)!important}}
@media(max-height:380px) and (orientation:landscape){.mobile-play #mobileStatus{padding:7px 9px;gap:3px}.mobile-play #mobileStatus .hudBox{font-size:10px}.mobile-play #mobileMessages{max-height:110px}.mobile-play #hudObj{max-height:105px;padding:8px!important}.mobile-play #hudHint{display:none}.mobile-play #hudObjText{-webkit-line-clamp:2}}
@media(max-height:380px) and (orientation:landscape){.mobile-play:not(.in-vehicle) #worldClock{display:none!important}}
/* 3.20: título da missão e cronômetro em uma linha; velocidade no canto do painel para não criar outra linha. */
.mobile-play #mobileStatus .center{flex-wrap:nowrap;min-width:0;justify-content:space-between}
.mobile-play #mobileStatus #hudStars{letter-spacing:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1 1 auto;min-height:0}
.mobile-play #mobileStatus #hudTimer{white-space:nowrap;flex:0 0 auto;letter-spacing:0}
.mobile-play #mobileStatus #hudSpeed{position:absolute!important;inset:auto 12px 8px auto!important;margin:0!important;text-align:right}
