/* Torres No Limits V220 — UI/hitbox only. Scene, textures, movement and graphics unchanged. */

/* MOBILE landscape: dedicated entry control sits on the RIGHT SCREEN EDGE,
   between the minimap and the circular action wheel. It is no longer laid
   over the running/jump/weapon controls (as shown in the V219 screenshot). */
html:not(.desktop-input) #hud #quickVehicleEnter.v219QuickEnter:not([hidden]) {
 position:absolute!important;
 left:auto!important;right:max(8px,env(safe-area-inset-right))!important;
 top:clamp(139px,calc(var(--game-vh,1vh) * 38),310px)!important;
 bottom:auto!important;transform:none!important;
 width:48px!important;height:48px!important;
 min-width:48px!important;max-width:48px!important;
 min-height:48px!important;max-height:48px!important;
 border-radius:13px!important;padding:3px!important;
 z-index:35!important;
 transition:opacity .2s ease,border-color .2s ease!important;
 box-shadow:0 3px 12px #000a,inset 0 1px 1px #fff2!important;
}
html:not(.desktop-input) #hud #quickVehicleEnter .v219EnterIcon{font-size:19px!important}
html:not(.desktop-input) #hud #quickVehicleEnter .v219EnterText{font-size:7px!important}
@media(max-height:440px){
 html:not(.desktop-input) #hud #quickVehicleEnter.v219QuickEnter:not([hidden]) {
  top:clamp(132px,calc(var(--game-vh,1vh) * 38),180px)!important;
  bottom:auto!important;width:46px!important;height:46px!important;
  min-width:46px!important;max-width:46px!important;
  min-height:46px!important;max-height:46px!important;
 }
}

/* DESKTOP: GTA-style minimalist placement inspired by the supplied HUD image.
   Preserve the functioning keyboard/gamepad controls while hiding all instructional
   legends and virtual touch surfaces. No fictitious money, health, or wanted stars. */
#hud #desktopSpeedHud{display:none}
html.desktop-input #hud{background:none!important;padding:0!important}
html.desktop-input #hud #desktopHelp,
html.desktop-input #hud .stats,
html.desktop-input #hud .utilities,
html.desktop-input #hud .tools,
html.desktop-input #hud #objective,
html.desktop-input #hud #location,
html.desktop-input #hud #worldStage,
html.desktop-input #hud #status,
html.desktop-input #hud #newsToast,
html.desktop-input #hud #weaponSwitcher,
html.desktop-input #hud #contextActions,
html.desktop-input #hud #worldHotspot,
html.desktop-input #hud #controls,
html.desktop-input #hud #quickVehicleEnter,
html.desktop-input #hud #v205VehicleOverlay,
html.desktop-input #hud #v205TouchControls,
html.desktop-input #hud #vehicleHud,
html.desktop-input #hud #v207AuxCommands,
html.desktop-input #hud #v205Pause,
html.desktop-input #hud #v205GearControls,
html.desktop-input #hud #v207CarCluster,
html.desktop-input #hud #v207FlightReadout {
 display:none!important;
}
/* Keep pause accessible on ESC; do not show virtual pause and keyboard text in the 3D scene. */
html.desktop-input #hud .top{position:fixed!important;top:0!important;left:0!important;right:0!important;display:block!important}
html.desktop-input #hud .brand,
html.desktop-input #hud.driving.v205-active .brand{
 display:block!important;position:fixed!important;
 top:max(15px,env(safe-area-inset-top))!important;
 left:auto!important;right:max(20px,env(safe-area-inset-right))!important;
 width:auto!important;margin:0!important;
 padding:5px 9px!important;
 border:1px solid rgba(255,255,255,.16)!important;border-radius:7px!important;
 background:rgba(5,11,20,.35)!important;
 color:rgba(240,243,250,.85)!important;
 text-shadow:0 2px 4px #0008!important;
 box-shadow:none!important;
 font:700 12px/1 system-ui,sans-serif!important;
 letter-spacing:.11em!important;
 opacity:.9!important;
}
html.desktop-input #hud .brand small,
html.desktop-input #hud.driving.v205-active .brand small{
 display:inline!important;margin:0!important;font:inherit!important;opacity:1!important
}
html.desktop-input #hud .map,
html.desktop-input #hud:not(.driving) .map,
html.desktop-input #hud.driving.v205-active .map,
html.desktop-input #hud.driving.v205-active.v205-desktop .map,
html.desktop-input #hud.v205-active.v205-desktop[data-v205-profile] .map{
 display:block!important;box-sizing:border-box!important;
 position:fixed!important;
 top:auto!important;right:auto!important;
 bottom:max(23px,env(safe-area-inset-bottom))!important;
 left:max(20px,env(safe-area-inset-left))!important;
 width:clamp(138px,11.7vw,188px)!important;
 height:clamp(138px,11.7vw,188px)!important;
 border-radius:50%!important;border:3px solid #dc9ddc!important;
 background:#061b2acc!important;
 box-shadow:0 0 0 3px #060a19bd,0 4px 18px #0008!important;
 padding:0!important;
 overflow:hidden!important;
 opacity:1!important;
 transform:none!important;z-index:23!important;
}
html.desktop-input #hud .map canvas,
html.desktop-input #hud.driving.v205-active .map canvas{
 display:block!important;width:100%!important;height:100%!important;
 border-radius:50%!important;object-fit:cover!important;
}
html.desktop-input #hud .map .north{position:absolute;top:2px;left:50%;transform:translateX(-50%);font:800 10px system-ui;color:#fff;text-shadow:0 1px 4px #000}
html.desktop-input #hud .map a{position:absolute;bottom:2px;left:0;right:0;padding:2px!important;font:7px system-ui!important;color:#dfd8ec;letter-spacing:0;opacity:.85;text-shadow:0 1px 4px #000;text-align:center;pointer-events:auto}
/* Compact speed only while driving; no bulky vehicle instrument cards. */
html.desktop-input #hud.driving #desktopSpeedHud{
 display:flex;position:fixed;right:22px;bottom:26px;z-index:26;
 gap:6px;align-items:baseline;pointer-events:none;
 color:#fff;font:800 26px/1 system-ui,sans-serif;
 text-shadow:0 2px 8px #000a;
}
html.desktop-input #hud.driving #desktopSpeedHud small{font:650 10px system-ui;color:#e6edf4}
/* Action tools and on-screen labels stay intact on actual touch devices. */
/* V219 had an unusually specific display:flex!important. Defeat it on PCs
   even if hybrid pointer detection temporarily exposes the touch button. */
html.desktop-input #hud #quickVehicleEnter.v219QuickEnter,
html.desktop-input #hud #quickVehicleEnter.v219QuickEnter:not([hidden]){
 display:none!important;visibility:hidden!important;pointer-events:none!important;
}
