/* TORRES NO LIMITS V213 — HUD MOBILE LANDSCAPE COMPACTO.
 * Baseado nas cinco capturas fornecidas em 22/11/2026.
 * APENAS layout mobile durante condução: não altera física, entrada, câmeras,
 * HUD desktop, modelos ou a região dos Molhes da V212.
 * Todas as superfícies reais de toque permanecem com pointer-events ativos.
 */
#hud.v205-active.v205-mobile {
 --tnl-m-edge:max(9px,env(safe-area-inset-left));
 --tnl-m-right:max(10px,env(safe-area-inset-right));
 --tnl-m-bottom:max(9px,env(safe-area-inset-bottom));
 --tnl-m-aux:clamp(30px,calc(var(--game-vh,1vh)*8),36px);
 --tnl-m-map:clamp(78px,calc(var(--game-vh,1vh)*23),98px);
 --tnl-m-steer:clamp(89px,calc(var(--game-vh,1vh)*27),120px);
 --tnl-m-exit:clamp(40px,calc(var(--game-vh,1vh)*12),49px);
 --tnl-m-pedal-w:clamp(46px,5.8vw,61px);
 --tnl-m-marine-pedal:clamp(42px,calc(var(--game-vh,1vh)*12),50px);
}
/* For portrait iPhones rotated into the game landscape, the browser's vw/vh
 * may still refer to the unrotated viewport: these fixed caps remain usable. */
#hud.v205-active.v205-mobile #v207AuxCommands {
 left:var(--tnl-m-edge);top:max(9px,env(safe-area-inset-top));gap:5px;z-index:32;
}
#hud.v205-active.v205-mobile #v207AuxCommands button {
 width:var(--tnl-m-aux);height:var(--tnl-m-aux);
 font-size:clamp(15px,calc(var(--game-vh,1vh)*4),19px);border-width:1.5px;
 box-shadow:0 0 0 2px #07121bd9,0 0 0 3px #58d8ee45,0 4px 10px #0009;
}
/* Single minimap on the LEFT, sized below 1/4 of a normal phone's height.
 * Car/boat/jet/helicopter all share the same aligned placement. */
#hud.driving.v205-active.v205-mobile .map,
html.landscape-rotated #hud.driving.v205-active.v205-mobile .map,
#hud.driving.v205-active.v205-mobile[data-v205-profile="car"] .map {
 left:calc(var(--tnl-m-edge) + var(--tnl-m-aux) + 10px)!important;
 top:max(9px,env(safe-area-inset-top))!important;
 right:auto!important;
 width:var(--tnl-m-map)!important;height:var(--tnl-m-map)!important;
 border-width:2px!important;border-radius:22%!important;
 box-shadow:0 0 0 2px #091725,0 0 0 3px #d7b274a6,0 4px 10px #0009!important;
}
#hud.v205-active.v205-mobile[data-v205-profile="helicopter"] .map,
#hud.v205-active.v205-mobile[data-v205-profile="boat"] .map,
#hud.v205-active.v205-mobile[data-v205-profile="jetski"] .map {border-radius:50%!important}
#hud.v205-active.v205-mobile .v205-place {
 display:flex;
 left:calc(var(--tnl-m-edge) + var(--tnl-m-aux) + var(--tnl-m-map) + 19px);
 top:max(22px,env(safe-area-inset-top));
 min-width:0;max-width:clamp(108px,18vw,180px);padding:3px 7px;gap:2px;
}
#hud.v205-active.v205-mobile .v205-place b {font-size:clamp(8px,1.1vw,11px)}
#hud.v205-active.v205-mobile .v205-place span {font-size:clamp(7px,.8vw,9px)}
#hud.v205-active.v205-mobile[data-v205-profile="car"] .v205-place {display:none!important}
/* Car: integrated digital speed + gear + RPM panel no longer eats upper-right scene. */
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster {
 right:var(--tnl-m-right);top:max(8px,env(safe-area-inset-top));
 width:clamp(222px,31vw,325px);min-width:0;
 height:clamp(76px,calc(var(--game-vh,1vh)*22),102px);
 border-radius:17px 20px 17px 20px;border-width:1.5px;
 box-shadow:0 0 0 2px #06121ce8,0 0 0 3px #53ddeb4d,0 5px 15px #000a,inset 0 0 16px #2eeaff14;
}
#hud.v205-active.v205-mobile #v207CarCluster .v207-carName {top:7%;left:5%;gap:4px;height:24%;max-width:74%}
#hud.v205-active.v205-mobile #v207CarCluster .v207-carIcon {font-size:clamp(11px,1.5vw,15px)}
#hud.v205-active.v205-mobile #v207CarCluster .v207-carName strong {max-width:clamp(98px,16vw,165px);font-size:clamp(9px,1.1vw,12px)}
#hud.v205-active.v205-mobile #v207CarCluster .v207-carHealth {font-size:clamp(9px,1vw,11px)}
#hud.v205-active.v205-mobile #v207CarCluster .v207-carValue {left:6%;top:39%;gap:3px}
#hud.v205-active.v205-mobile #v207CarCluster .v207-carValue strong {font-size:clamp(35px,5vw,54px);line-height:.89}
#hud.v205-active.v205-mobile #v207CarCluster .v207-carValue span {font-size:clamp(9px,1vw,12px)}
#hud.v205-active.v205-mobile #v207CarCluster .v207-rpmMeter {right:0;top:-4%;width:43%;height:106%}
#hud.v205-active.v205-mobile #v207CarCluster .v207-rpmText {font-size:clamp(8px,.9vw,10px);top:67%}
#hud.v205-active.v205-mobile #v207CarCluster .v207-gear {bottom:9%;left:51%;height:25%;min-width:17%;gap:4px}
#hud.v205-active.v205-mobile #v207CarCluster .v207-gear span {font-size:7px}
#hud.v205-active.v205-mobile #v207CarCluster .v207-gear strong {font-size:clamp(15px,1.7vw,21px)}
/* Real steering joystick: unobstructed center; diagonal/corner gestures still work. */
#hud.v205-active.v205-mobile #vehicleHud #vehSteer,
#hud.v205-active.v205-mobile[data-v205-profile="car"] #vehicleHud #vehSteer,
#hud.v205-active.v205-mobile[data-v205-profile="helicopter"] #vehicleHud #vehSteer {
 --diameter:var(--tnl-m-steer)!important;
 left:max(11px,env(safe-area-inset-left))!important;right:auto!important;
 bottom:var(--tnl-m-bottom)!important;
 border-width:2px!important;
 box-shadow:0 0 0 2px #071522ed,0 0 0 3px #52e7fb6b,0 5px 13px #000b,inset 0 0 10px #5befff23!important;
}
#hud.v205-active.v205-mobile #vehicleHud #vehSteer .discKnob {width:33%!important;height:33%!important;border-width:2px!important;box-shadow:0 0 0 3px #0c2031,0 0 0 4px #b38e5e,0 2px 5px #000a!important}
#hud.v205-active.v205-mobile #vehicleHud .discArrow {font-size:clamp(19px,calc(var(--game-vh,1vh)*5),26px)!important}
#hud.v205-active.v205-mobile #vehicleHud #vehSteer .discArrow.left {left:5%!important}
#hud.v205-active.v205-mobile #vehicleHud #vehSteer .discArrow.right {right:5%!important}
/* Car gas + brake: independent buttons; keep pressed state JS unchanged. */
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v205TouchControls .v205-pedals {
 right:max(12px,env(safe-area-inset-right));bottom:var(--tnl-m-bottom);
 gap:clamp(8px,1.2vw,14px);align-items:flex-end;
}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v205TouchControls .v205-gas {
 width:var(--tnl-m-pedal-w);height:clamp(88px,calc(var(--game-vh,1vh)*25),113px);border-radius:14px;
}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v205TouchControls .v205-brake {
 width:clamp(44px,5.4vw,58px);height:clamp(70px,calc(var(--game-vh,1vh)*19),90px);border-radius:13px;
}
#hud.v205-active.v205-mobile #v205TouchControls .v205-pedal {border-width:1.5px;box-shadow:0 0 0 2px #071522,0 0 0 3px #4ce3f74a,0 4px 13px #000a!important}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v205TouchControls .v207-chevrons {width:55%;height:50%}
/* Small exit button to the right of the world, but above driving inputs. */
#hud.v205-active.v205-mobile #vehicleHud .vehExit,
html.landscape-rotated #hud.v205-active.v205-mobile #vehicleHud .vehExit,
#hud.v205-active.v205-mobile[data-v205-profile="car"] #vehicleHud .vehExit,
#hud.v205-active.v205-mobile[data-v205-profile="jetski"] #vehicleHud .vehExit,
#hud.v205-active.v205-mobile[data-v205-profile="boat"] #vehicleHud .vehExit {
 position:absolute!important;top:40%!important;bottom:auto!important;
 left:auto!important;right:max(12px,env(safe-area-inset-right))!important;
 width:var(--tnl-m-exit)!important;height:var(--tnl-m-exit)!important;
 min-width:0!important;padding:2px!important;gap:0!important;
 border-width:1.5px!important;border-radius:50%!important;
 display:flex!important;flex-direction:column;align-items:center;justify-content:center;
 box-shadow:0 0 0 2px #071422ea,0 0 0 3px #51ddef42,0 4px 13px #000a!important;
}
#hud.v205-active.v205-mobile #vehicleHud .vehExitIcon {width:19px!important;height:18px!important;font-size:17px!important}
#hud.v205-active.v205-mobile #vehicleHud .vehExitIcon svg {width:17px;height:17px;stroke-width:2.5px}
#hud.v205-active.v205-mobile #vehicleHud .vehExit span:last-child {font-size:8px!important;letter-spacing:0}
/* Other vehicles' top-right name/damage display also shrinks. */
#hud.v205-active.v205-mobile[data-v205-profile="boat"] .v205-vehicleStatus,
#hud.v205-active.v205-mobile[data-v205-profile="jetski"] .v205-vehicleStatus,
#hud.v205-active.v205-mobile[data-v205-profile="helicopter"] .v205-vehicleStatus {
 right:var(--tnl-m-right);top:max(8px,env(safe-area-inset-top));
 width:clamp(133px,19.5vw,190px);min-width:133px;max-width:190px;
 height:clamp(34px,calc(var(--game-vh,1vh)*10),45px);
 padding:4px 7px;gap:5px;border-width:1.5px;
 box-shadow:0 4px 11px #000a,inset 0 0 6px #42e7ff18;
}
#hud.v205-active.v205-mobile .v205-vehicleIcon {width:17px;min-width:17px;font-size:17px}
#hud.v205-active.v205-mobile .v205-ident {gap:3px}
#hud.v205-active.v205-mobile .v205-ident>strong {font-size:clamp(9px,1.0vw,11px);letter-spacing:.01em}
#hud.v205-active.v205-mobile .v205-health {gap:4px}
#hud.v205-active.v205-mobile .v205-healthLine {height:4px;min-width:28px}
#hud.v205-active.v205-mobile .v205-health b {font-size:9px}
/* Boat and jet ski: two vertical, circular, light-weight forward/reverse buttons. */
#hud.v205-active.v205-mobile[data-v205-profile="jetski"] #v205TouchControls .v205-pedals,
#hud.v205-active.v205-mobile[data-v205-profile="boat"] #v205TouchControls .v205-pedals {
 right:max(12px,env(safe-area-inset-right));bottom:var(--tnl-m-bottom);
 flex-direction:column;gap:8px;align-items:center;
}
#hud.v205-active.v205-mobile[data-v205-profile="jetski"] #v205TouchControls .v205-pedal,
#hud.v205-active.v205-mobile[data-v205-profile="boat"] #v205TouchControls .v205-pedal {
 width:var(--tnl-m-marine-pedal);height:var(--tnl-m-marine-pedal);
 border-radius:50%;padding:0;
}
#hud.v205-active.v205-mobile[data-v205-profile="jetski"] .v205-speedReadout,
#hud.v205-active.v205-mobile[data-v205-profile="boat"] .v205-speedReadout {
 right:calc(max(12px,env(safe-area-inset-right)) + var(--tnl-m-marine-pedal) + 13px);
 bottom:var(--tnl-m-bottom);min-width:clamp(82px,12vw,120px);
 padding:5px 8px;border-radius:11px;border-width:1.5px;
}
#hud.v205-active.v205-mobile .v205-speedReadout span {font-size:clamp(22px,3.4vw,32px)}
#hud.v205-active.v205-mobile .v205-speedReadout small {font-size:9px}
/* Helicopter: smaller steering + separate altitude joystick just ABOVE steering.
 * V205 touch controls remain linked to flightAxis(); right controls also remain. */
#hud.v205-active.v205-mobile[data-v205-profile="helicopter"] #vehicleHud #flightLift.altitudeDisc {
 --diameter:clamp(41px,calc(var(--game-vh,1vh)*12),54px)!important;
 left:calc(max(11px,env(safe-area-inset-left)) + var(--tnl-m-steer)*.27)!important;
 bottom:calc(var(--tnl-m-bottom) + var(--tnl-m-steer) + 8px)!important;
 border-width:1.5px!important;
 box-shadow:0 0 0 2px #071422e3,0 0 0 3px #55e6fe6b,0 3px 10px #000a!important;
}
#hud.v205-active.v205-mobile[data-v205-profile="helicopter"] #vehicleHud #flightLift .altUp,
#hud.v205-active.v205-mobile[data-v205-profile="helicopter"] #vehicleHud #flightLift .altDown {font-size:12px}
#hud.v205-active.v205-mobile[data-v205-profile="helicopter"] #v205TouchControls .v205-flightButtons {
 top:auto;right:max(12px,env(safe-area-inset-right));
 bottom:var(--tnl-m-bottom)!important;gap:8px;transform:none;
}
#hud.v205-active.v205-mobile[data-v205-profile="helicopter"] #v205TouchControls .v205-flightControl {
 width:var(--tnl-m-marine-pedal);height:var(--tnl-m-marine-pedal);
 border-width:1.5px!important;font-size:24px;
}
#hud.v205-active.v205-mobile[data-v205-profile="helicopter"] #v207FlightReadout {
 right:calc(max(12px,env(safe-area-inset-right)) + var(--tnl-m-marine-pedal) + 12px);
 bottom:var(--tnl-m-bottom);
 width:clamp(153px,23vw,218px);height:clamp(49px,calc(var(--game-vh,1vh)*14),64px);
 border-width:1.5px;border-radius:12px;
 box-shadow:0 0 0 2px #061420e0,0 0 0 3px #50e4ff44,0 5px 13px #000a;
}
#hud.v205-active.v205-mobile #v207FlightReadout .v207-altData strong {font-size:clamp(21px,2.6vw,31px)}
#hud.v205-active.v205-mobile #v207FlightReadout .v207-flightSpeed strong {font-size:clamp(27px,3.8vw,42px)}
/* Compact handbrake when present: no large white P pill floating over the view. */
#hud.v205-active.v205-mobile #vehicleHud #vehDrift:not([hidden]) {
 position:absolute;top:calc(max(9px,env(safe-area-inset-top)) + var(--tnl-m-map) + 12px);
 left:calc(var(--tnl-m-edge) + var(--tnl-m-aux) + 10px);
 right:auto;bottom:auto;width:32px;height:32px;min-width:32px;
 border:1.5px solid #d8b371;border-radius:50%;background:#142638eb;color:#f7dfb3;
 font:800 13px system-ui;box-shadow:0 3px 9px #0009;z-index:30;
}
/* Corner-case: low-height landscape or forced 90° portrait orientation. */
@media(max-height:440px) {
 #hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster {height:clamp(71px,21vh,89px);width:clamp(218px,31vw,290px)}
 #hud.v205-active.v205-mobile[data-v205-profile="car"] #v205TouchControls .v205-gas {height:clamp(79px,24vh,99px)}
 #hud.v205-active.v205-mobile[data-v205-profile="car"] #v205TouchControls .v205-brake {height:clamp(65px,19vh,81px)}
}
@media(max-width:680px) {
 #hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster {width:clamp(216px,37vw,258px);min-width:0}
 #hud.v205-active.v205-mobile #v207CarCluster .v207-carName strong {max-width:125px}
 #hud.v205-active.v205-mobile .v205-place {max-width:110px}
}
/* The existing CSS calls the pause button inside the separate mobile overlays.
 * Keep v205Pause hidden to avoid two pause controls in the same car. */
#hud.v205-active.v205-mobile #v205Pause {display:none!important}
