/* TORRES NO LIMITS V221 — compact, non-overlapping HUD on phones.
   Desktop game status reads real model state, not placeholder money/health.
   No changes to driving inputs, world meshes or quality settings. */
#hud #desktopGameStatus{display:none;pointer-events:none;}
html.desktop-input #hud #desktopGameStatus{
 display:flex!important;position:fixed;right:max(16px,env(safe-area-inset-right));
 top:max(13px,env(safe-area-inset-top));z-index:31;align-items:flex-start;gap:9px;
 color:#f7effa;font:800 15px/1.14 system-ui,sans-serif;
 text-shadow:0 1px 4px #020711c9;
}
#desktopGameStatus .desktopMeta{display:flex;flex-direction:column;align-items:flex-end;gap:5px;padding-top:2px;min-width:92px;}
#desktopGameStatus time{color:#f9f3ed;font-size:16px;font-variant-numeric:tabular-nums;}
#desktopGameStatus #desktopGameCash{color:#48eab9;font-size:17px;font-variant-numeric:tabular-nums;}
#desktopGameStatus .desktopLife{display:flex;gap:5px;align-items:center;font-size:11px;color:#f49bd5;}
#desktopGameStatus .desktopLifeTrack{width:78px;height:5px;background:#1b1e2db8;border:1px solid #fff3;border-radius:5px;overflow:hidden;}
#desktopGameStatus #desktopLifeFill{display:block;width:100%;height:100%;background:linear-gradient(90deg,#ed71b4,#ffd1eb);border-radius:5px;}
#desktopGameStatus #desktopLifeAmount{color:#f9e7f0;font-size:11px;}
#desktopGameStatus .desktopEquipIcon{
 width:74px;height:74px;border:2px solid #a97bd7;border-radius:14px;
 background:linear-gradient(135deg,#7dc3f5,#996de4 60%,#f2afd9);
 display:grid;place-items:center;box-shadow:0 4px 13px #0008,inset 0 1px 4px #fff9;
 color:#161638;}
#desktopGameStatus .desktopEquipIcon svg{width:52px;height:52px;filter:drop-shadow(1px 2px 0 #fff8);}
#desktopGameStatus .desktopEquipGun,#desktopGameStatus .desktopEquipIcon.isArmed .desktopEquipFist{display:none;}
#desktopGameStatus .desktopEquipIcon.isArmed .desktopEquipGun{display:block;}
/* Brand stays visible as a modest build marker, no collision with status card. */
html.desktop-input #hud .brand,
html.desktop-input #hud.driving.v205-active .brand{
 left:max(16px,env(safe-area-inset-left))!important;
 right:auto!important;top:max(12px,env(safe-area-inset-top))!important;
}
/* MOBILE on foot: bars live at upper left, well above the large joystick.
   Vehicle driving already hides those bars, so they cannot overlap the pedals. */
html:not(.desktop-input) #hud:not(.driving) .stats{
 position:absolute!important;left:max(10px,env(safe-area-inset-left))!important;
 right:auto!important;top:clamp(53px,calc(var(--game-vh,1vh)*15),78px)!important;
 bottom:auto!important;display:flex!important;flex-direction:column!important;
 gap:3px!important;z-index:14!important;margin:0!important;
 max-width:130px!important;pointer-events:none!important;
}
html:not(.desktop-input) #hud:not(.driving) .stats>span{
 width:125px!important;min-width:0!important;max-width:125px!important;
 padding:3px 6px!important;font:700 9px system-ui!important;
 background:#08151ac9!important;border:1px solid #e0bf8147!important;
 border-radius:8px!important;box-sizing:border-box!important;
}
html:not(.desktop-input) #hud:not(.driving) .stats .statIcon{font-size:11px!important;margin-right:3px!important;}
html:not(.desktop-input) #hud:not(.driving) .stats .track{height:4px!important;margin-top:2px!important;}
html:not(.desktop-input) #hud.driving .stats{display:none!important;}
/* MOBILE car top-right: divide panel into a compact text/speed column and RPM
   gauge; never place "Skyline 100%" in the same row over the dial. */
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster{
 width:clamp(210px,29vw,288px)!important;
 height:clamp(75px,calc(var(--game-vh,1vh)*21),92px)!important;
 overflow:hidden!important;
}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-carName{
 position:absolute!important;top:7%!important;left:5%!important;
 width:51%!important;max-width:51%!important;height:25%!important;
 gap:3px!important;overflow:visible!important;
}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-carName strong{
 width:calc(100% - 15px)!important;max-width:calc(100% - 15px)!important;
 font-size:clamp(8px,1vw,10px)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-carHealth{
 position:absolute!important;top:calc(100% + 1px)!important;left:2px!important;
 font-size:9px!important;color:#80efb8!important;
}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-carValue{
 top:53%!important;left:6%!important;gap:3px!important;
}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-carValue strong{font-size:clamp(29px,4.2vw,39px)!important;}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-carValue span{font-size:9px!important;}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-rpmMeter{
 right:1%!important;top:5%!important;width:42%!important;height:84%!important;
}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-gear{left:49%!important;bottom:5%!important;min-width:32px!important;height:22%!important;gap:2px!important;padding:0 3px!important;}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-gear span{display:none!important;}
#hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster .v207-gear strong{font-size:13px!important;}
@media(max-height:410px){
 html:not(.desktop-input) #hud:not(.driving) .stats{top:49px!important;}
 html:not(.desktop-input) #hud:not(.driving) .stats>span{width:110px!important;}
 #hud.v205-active.v205-mobile[data-v205-profile="car"] #v207CarCluster{height:76px!important;}
}
