/* Milo-gotchi 3.80 — HUD nuovo di GTA Milo, in stile GTA per telefono.
   Si appoggia sopra agli stili di prima (che restano tutti): radar rotondo in alto a sinistra,
   riquadro di stato in alto a destra, obiettivo sotto il radar e scritta grande quando cambia,
   pulsanti con icone vicino al pollice. Lo attiva assets/hud-380.js aggiungendo la classe h380.
   Le modalità speciali (gigante, barca, volo, cinematica) tengono i loro comandi. */
@font-face{font-family:'Oswald HUD';src:url('fonts/oswald-latin.woff2') format('woff2');font-weight:200 700;font-style:normal;font-display:swap}

html body #gta.h380{
 --h-pl:rgba(12,14,18,.62);--h-ln:rgba(255,255,255,.16);--h-ac:#FFC93C;--h-red:#E5484D;--h-grn:#7EE081;
 --h-t:env(safe-area-inset-top,0px);--h-b:env(safe-area-inset-bottom,0px);--h-l:env(safe-area-inset-left,0px);--h-r:env(safe-area-inset-right,0px);
 --i-pause:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='6' y='5' width='4' height='14' rx='1'/><rect x='14' y='5' width='4' height='14' rx='1'/></svg>");
 --i-eye:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/><circle cx='12' cy='12' r='3'/></svg>");
 --i-top:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 6.5l6-2.5 6 2.5 6-2.5v13.5l-6 2.5-6-2.5-6 2.5z'/><path d='M9 4v13.5M15 6.5V20'/></svg>");
 --i-back:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M9 14L4 9l5-5'/><path d='M4 9h10a6 6 0 0 1 0 12h-3'/></svg>");
 --i-target:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='12' cy='12' r='8'/><circle cx='12' cy='12' r='3'/><path d='M12 1v4M12 19v4M1 12h4M19 12h4'/></svg>");
 --i-car:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'><path d='M3.5 15.5l1.6-5A2 2 0 0 1 7 9h10a2 2 0 0 1 1.9 1.5l1.6 5V19H3.5z'/><circle cx='7.5' cy='16' r='1.4' fill='black'/><circle cx='16.5' cy='16' r='1.4' fill='black'/></svg>");
 --i-door:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M13 4H6v16h7'/><path d='M10 12h11M18 9l3 3-3 3'/></svg>");
 --i-plane:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'><path d='M22 2L11 13'/><path d='M22 2l-7 20-4-9-9-4z'/></svg>");
 --i-camera:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'><rect x='3' y='7' width='18' height='13' rx='2'/><circle cx='12' cy='13.5' r='3.5'/><path d='M8 7l2-3h4l2 3'/></svg>");
 --i-up:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 20V5M6 11l6-6 6 6'/></svg>");
 --i-down:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 4v15M6 13l6 6 6-6'/></svg>");
 --i-chev:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 15.5l7-7 7 7'/></svg>");
 --i-drop:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'><path d='M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11z'/></svg>");
 --i-bow:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'><path d='M7 3c6 3 6 15 0 18'/><path d='M7 3v18'/><path d='M4 12h15M16 9l3 3-3 3'/></svg>");
 --i-flame:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'><path d='M12 3c1 4 5 6 5 11a5 5 0 0 1-10 0c0-3 2-4 2-7 1 1 2 2 3 2 0-2-1-4 0-6z'/></svg>");
 --i-grenade:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='14' r='6'/><path d='M11 8V5h3M14 5l3-2'/></svg>");
 --i-rocket:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'><path d='M14 4h6v6L10 20l-6-6z'/><path d='M4 20l3-3M13 8l3 3'/></svg>");
 --i-gun:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linejoin='round'><path d='M3 8h16l2 2v2H12l-2 7H6.5l1.5-7H3z'/></svg>");
 --i-radio:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='8' width='18' height='12' rx='2'/><circle cx='15.5' cy='14' r='2.5'/><path d='M7 12h3M7 16h3M8 8l9-5'/></svg>");
 --i-sun:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='12' cy='12' r='4'/><path d='M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/></svg>");
 --i-moon:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'><path d='M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z'/></svg>");
 --i-dot:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6'><circle cx='12' cy='12' r='8'/><circle cx='12' cy='12' r='3'/></svg>");
}
html body #gta.h380 :is(.h-radar,.h-status,.h-sub,.h-speed,.gt-mis,.gt-helpstrip,.gt-btns button,.gt-radio,.gt-mapv){font-family:'Oswald HUD','Arial Narrow',sans-serif}
/* i messaggi a schermo intero restano sopra all'HUD */
html body #gta.h380 .gt-card{z-index:20}
html body #gta.h380.cine :is(.h-radar,.h-status,.h-sub,.h-speed){visibility:hidden!important}

/* ---------- radar (era la minimappa quadrata): tocchi e parte la vista mappa ---------- */
html body #gta.h380 .h-radar{position:absolute;left:calc(var(--h-l) + 12px);top:calc(var(--h-t) + 12px);width:112px;height:112px;padding:0;margin:0;border-radius:50%;overflow:hidden;border:3px solid #0d0f12;box-shadow:0 0 0 2px rgba(255,255,255,.9),0 6px 14px rgba(0,0,0,.45);background:#4d6b3a;pointer-events:auto;z-index:6;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
html body #gta.h380 .h-radar .gt-map{position:absolute!important;left:0!important;top:0!important;margin:0!important;width:276px!important;height:276px!important;max-width:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform-origin:0 0;pointer-events:none;display:block!important}
html body #gta.h380 .h-radar:active{transform:scale(.97)}

/* ---------- obiettivo in breve, sotto il radar (toccalo per leggerlo tutto) ---------- */
html body #gta.h380 .gt-mis{position:absolute!important;left:calc(var(--h-l) + 12px)!important;right:auto!important;top:calc(var(--h-t) + 134px)!important;width:auto!important;max-width:calc(100% - 172px)!important;max-height:none!important;box-sizing:border-box;overflow:hidden!important;padding:5px 11px 5px 29px!important;border-radius:16px!important;border:1px solid var(--h-ln)!important;background:var(--h-pl)!important;box-shadow:none!important;color:#e9edf2!important;font:500 12.5px/1.3 'Oswald HUD','Arial Narrow',sans-serif!important;text-align:left!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;pointer-events:auto;z-index:5}
html body #gta.h380 .gt-mis::before{content:'';position:absolute;left:9px;top:7px;width:14px;height:14px;background:var(--h-ac);-webkit-mask:var(--i-dot) center/contain no-repeat;mask:var(--i-dot) center/contain no-repeat}
html body #gta.h380 .gt-mis b{color:#fff;font-weight:600}
html body #gta.h380 .gt-mis span{color:var(--h-ac);font-weight:700;margin-left:4px}
html body #gta.h380 .gt-mis.h-open{display:block;-webkit-line-clamp:unset}
html body #gta.h380 .gt-mult{display:none!important}

/* ---------- pausa e visuale: due icone piccole accanto al radar; la ✕ è nella pausa ("Torna da Milo") ---------- */
html body #gta.h380 .gt-x{display:none!important}
html body #gta.h380 .gt-pause{position:absolute!important;left:calc(var(--h-l) + 134px)!important;right:auto!important;top:calc(var(--h-t) + 12px)!important;bottom:auto!important;transform:none!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.2)!important;background:var(--h-pl)!important;color:transparent!important;font-size:0!important;box-shadow:none!important;overflow:hidden}
html body #gta.h380 .gt-pause::before{content:'';position:absolute;left:13px;top:13px;width:18px;height:18px;background:#fff;-webkit-mask:var(--i-pause) center/contain no-repeat;mask:var(--i-pause) center/contain no-repeat}
html body #gta.h380 .gt-view{left:calc(var(--h-l) + 134px)!important;top:calc(var(--h-t) + 62px)!important;width:44px!important;height:44px!important;min-height:44px!important;max-width:none!important;padding:0!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.2)!important;background:var(--h-pl)!important;font-size:0!important;justify-content:center!important;box-shadow:none!important}
html body #gta.h380 .gt-view>*{display:none!important}
html body #gta.h380 .gt-view::before{content:'';width:21px;height:21px;background:#fff;-webkit-mask:var(--i-eye) center/contain no-repeat;mask:var(--i-eye) center/contain no-repeat}
html body #gta.h380.fp .gt-view{border:2px solid var(--h-ac)!important}
html body #gta.h380.fp .gt-view::before{-webkit-mask-image:var(--i-top);mask-image:var(--i-top);background:var(--h-ac)}
/* la vista mappa parte dal radar; il pulsante compare solo per tornare (TORNA / ATTERRA) */
html body #gta.h380 .gt-mapv{display:none!important}
html body #gta.h380.mapfly .gt-mapv{display:flex!important;left:calc(var(--h-l) + 184px)!important;top:calc(var(--h-t) + 12px)!important;width:auto!important;max-width:none!important;height:44px!important;padding:0 15px 0 11px!important;gap:7px;border-radius:999px!important;border:2px solid var(--h-ac)!important;background:var(--h-pl)!important;color:#fff!important;font:600 14px/1 'Oswald HUD','Arial Narrow',sans-serif!important;letter-spacing:.04em;justify-content:center!important}
html body #gta.h380.mapfly .gt-mapv i{display:none!important}
html body #gta.h380.mapfly .gt-mapv::before{content:'';width:18px;height:18px;background:var(--h-ac);-webkit-mask:var(--i-back) center/contain no-repeat;mask:var(--i-back) center/contain no-repeat}

/* ---------- riquadro di stato in alto a destra ---------- */
html body #gta.h380 .h-status{position:absolute;right:calc(var(--h-r) + 12px);top:calc(var(--h-t) + 12px);display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:92px;box-sizing:border-box;padding:8px 12px 9px 14px;border-radius:14px;background:rgba(12,14,18,.55);border:1px solid rgba(255,255,255,.12);color:#fff;pointer-events:none;z-index:5}
html body #gta.h380 .h-status .gt-clock{display:flex!important;order:1;align-items:center;gap:5px;width:auto;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
html body #gta.h380 .h-status .gt-clock::before{content:'';width:15px;height:15px;background:var(--h-ac);-webkit-mask:var(--i-sun) center/contain no-repeat;mask:var(--i-sun) center/contain no-repeat}
html body #gta.h380 .h-status .gt-clock.nt::before{-webkit-mask-image:var(--i-moon);mask-image:var(--i-moon);background:#b8c8ff}
html body #gta.h380 .h-status .gt-clock i,html body #gta.h380 .h-status .gt-clock small{display:none!important}
html body #gta.h380 .h-status .gt-clock b{font:600 14px/1 'Oswald HUD','Arial Narrow',sans-serif!important;color:#e8ebef;letter-spacing:.02em}
html body #gta.h380 .h-status .gt-cash{order:2;font:700 34px/1 'Oswald HUD','Arial Narrow',sans-serif!important;color:#fff!important;-webkit-text-stroke:0!important;text-shadow:none!important;letter-spacing:.02em;white-space:nowrap}
html body #gta.h380 .h-status .gt-cash small{font:600 12px/1 'Oswald HUD','Arial Narrow',sans-serif!important;letter-spacing:.1em;color:var(--h-ac);margin-left:3px}
html body #gta.h380 .h-status .gt-lives{order:3;margin:0!important;font:400 19px/1 system-ui,sans-serif!important;color:#FF4D5E!important;letter-spacing:2px;text-shadow:0 0 1px #0d0f12,0 1px 0 #0d0f12,1px 0 0 #0d0f12,-1px 0 0 #0d0f12,0 -1px 0 #0d0f12!important}
html body #gta.h380 .h-status .gt-wanted{order:4;font:400 20px/1 system-ui,sans-serif!important;color:var(--h-ac)!important;letter-spacing:1px!important;text-shadow:0 0 1px #0d0f12,0 1px 0 #0d0f12,1px 0 0 #0d0f12,-1px 0 0 #0d0f12,0 -1px 0 #0d0f12!important;text-align:right}
html body #gta.h380 .h-status .gt-wanted i{color:rgba(0,0,0,.28)!important;-webkit-text-stroke:1.2px rgba(255,255,255,.75);text-shadow:none!important}
html body #gta.h380 .h-status .gt-hide{order:5;margin:2px 0 0!important;font:600 12px/1 'Oswald HUD','Arial Narrow',sans-serif!important;letter-spacing:.06em}
html body #gta.h380 .h-status .gt-inv{order:6;margin:2px 0 0!important;font:600 12px/1 'Oswald HUD','Arial Narrow',sans-serif!important;pointer-events:auto}

/* ---------- scritta grande dell'obiettivo: compare 4 secondi quando cambia ---------- */
html body #gta.h380 .h-sub{position:absolute;left:50%;bottom:calc(var(--h-b) + 262px);transform:translate(-50%,10px);display:flex;flex-direction:column;align-items:center;gap:3px;box-sizing:border-box;max-width:calc(100% - 32px);padding:8px 16px 9px;border-radius:14px;background:rgba(10,12,16,.6);color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.8);opacity:0;transition:opacity .35s,transform .35s;pointer-events:none;z-index:6}
html body #gta.h380 .h-sub.on{opacity:1;transform:translate(-50%,0)}
html body #gta.h380 .h-sub b{font:600 19px/1.2 'Oswald HUD','Arial Narrow',sans-serif;letter-spacing:.01em}
html body #gta.h380 .h-sub small{font:500 12px/1 'Oswald HUD','Arial Narrow',sans-serif;letter-spacing:.07em;text-transform:uppercase;color:var(--h-ac)}
html body #gta.h380 .h-sub small[hidden]{display:none}
html body #gta.h380.drive .h-sub{bottom:calc(var(--h-b) + 280px)}

/* suggerimenti, mantello e vita del gigante: in colonna sotto l'obiettivo */
html body #gta.h380 .gt-helpstrip{top:calc(var(--h-t) + 186px)!important;left:calc(var(--h-l) + 12px)!important;right:auto!important;transform:none!important;max-width:min(320px,calc(100% - 24px))!important;padding:7px 11px!important;border-radius:12px!important;border:1px solid var(--h-ln);background:var(--h-pl)!important;color:#fff!important;font:500 13px/1.35 'Oswald HUD','Arial Narrow',sans-serif!important}
html body #gta.h380:not(.fly):not(.mapfly):not(.giant) .gt-cape{top:calc(var(--h-t) + 186px)!important;left:calc(var(--h-l) + 12px)!important}
html body #gta.h380.giant .gt-ghp{top:calc(var(--h-t) + 134px)!important;left:calc(var(--h-l) + 12px)!important}
html body #gta.h380.giant .gt-cape{top:calc(var(--h-t) + 210px)!important;left:calc(var(--h-l) + 12px)!important}
html body #gta.h380:is(.fly,.para,.mapfly) .gt-fhud{left:calc(var(--h-l) + 12px)!important;top:calc(var(--h-t) + 186px)!important}
html body #gta.h380:is(.fly,.para,.mapfly) .gt-helpstrip{top:calc(var(--h-t) + 270px)!important}

/* ---------- joystick a piedi (compare dove appoggi il pollice) con l'anello del fiato ---------- */
html body #gta.h380:not(.giant):not(.boat-mode) .gt-joy{background:rgba(255,255,255,.08)!important;border:2px solid rgba(255,255,255,.4)!important;box-shadow:none!important}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-knob{background:rgba(255,255,255,.92)!important;box-shadow:0 4px 10px rgba(0,0,0,.4)!important}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-joy::after{content:'';position:absolute;inset:-8px;border-radius:50%;background:conic-gradient(var(--h-fc,#7EE081) calc(var(--h-fv,1) * 360deg),rgba(0,0,0,.35) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4.5px),#000 calc(100% - 4px));mask:radial-gradient(farthest-side,transparent calc(100% - 4.5px),#000 calc(100% - 4px));opacity:var(--h-fo,0);transition:opacity .3s;pointer-events:none}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-stam{display:none!important}

/* ---------- pulsanti d'azione per il pollice destro ---------- */
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns{display:block;right:calc(var(--h-r) + 14px)!important;bottom:calc(var(--h-b) + 18px)!important;width:182px;height:200px;pointer-events:none;grid-template-columns:none!important}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button{position:absolute!important;box-sizing:border-box!important;margin:0!important;padding:0 2px!important;max-width:none!important;min-height:0!important;border:3px solid #0d0f12!important;box-shadow:0 5px 0 rgba(0,0,0,.35)!important;font:700 12px/1.05 'Oswald HUD','Arial Narrow',sans-serif!important;letter-spacing:.05em;text-transform:uppercase;text-shadow:none!important;-webkit-text-stroke:0!important;text-align:center;overflow:visible;pointer-events:auto}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button::before{content:'';display:block;margin:0 auto 3px;width:var(--ico,24px);height:var(--ico,24px);background:currentColor;-webkit-mask:var(--im,var(--i-target)) center/contain no-repeat;mask:var(--im,var(--i-target)) center/contain no-repeat}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button.on{transform:translateY(3px)!important;box-shadow:0 2px 0 rgba(0,0,0,.35)!important}
/* a piedi: TIRA grande nell'angolo, RUBA sopra, cambio arma a sinistra */
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns .gt-hb{right:0;bottom:0;width:82px!important;height:82px!important;border-radius:50%!important;background:var(--h-red)!important;color:#fff!important;font-size:13px!important;--ico:30px}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns .gt-act{right:10px;bottom:102px;width:62px!important;height:62px!important;border-radius:50%!important;background:var(--h-ac)!important;color:#15171b!important;--ico:24px;--im:var(--i-car);transition:opacity .25s}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns .gt-act.h-far{opacity:.5}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns .gt-act.h-ready:not(.on){box-shadow:0 0 0 5px rgba(255,201,60,.4),0 5px 0 rgba(0,0,0,.35)!important;animation:h380pulse 1.2s ease-in-out infinite}
@keyframes h380pulse{50%{box-shadow:0 0 0 9px rgba(255,201,60,.12),0 5px 0 rgba(0,0,0,.35)}}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns .gt-wsw{right:96px!important;bottom:38px;width:58px!important;height:58px!important;border-radius:50%!important;background:rgba(12,14,18,.78)!important;color:#fff!important;border:2px solid rgba(255,255,255,.32)!important;font:600 11px/1.05 'Oswald HUD','Arial Narrow',sans-serif!important;letter-spacing:.03em;--ico:21px;--im:var(--i-gun)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns .gt-wsw::after{content:'';position:absolute;right:-6px;top:-6px;width:22px;height:22px;box-sizing:border-box;border-radius:50%;border:2px solid #0d0f12;background:var(--h-ac) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9h14l-4-4M20 15H6l4 4'/></svg>") center/12px no-repeat}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns .gt-rkt{right:92px;bottom:112px;width:58px!important;height:58px!important;border-radius:50%!important;background:#FF9F1C!important;color:#1a1206!important;--ico:22px;--im:var(--i-rocket)}
/* icona giusta per ogni scritta che il gioco mette sui pulsanti (vince sulle icone di base) */
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=ruba]{--im:var(--i-car)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=esci]{--im:var(--i-door)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=vola]{--im:var(--i-plane)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=foto]{--im:var(--i-camera)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=freno]{--im:var(--i-down)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=acqua]{--im:var(--i-drop)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=arco]{--im:var(--i-bow)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=fiamma]{--im:var(--i-flame)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=gran]{--im:var(--i-grenade)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=razzi],html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=razzo]{--im:var(--i-rocket)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=arma]{--im:var(--i-gun)}
html body #gta.h380:not(.giant):not(.boat-mode) .gt-btns button[data-ico=fuoco]{--im:var(--i-target)}

/* in auto: GAS e FRENO come pedali, ESCI piccolo sopra, frecce grandi a sinistra */
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-btns .gt-gas{right:0;bottom:0;width:74px!important;height:124px!important;border-radius:18px!important;background:var(--h-grn)!important;color:#10240f!important;font-size:13px!important;--ico:28px;--im:var(--i-up)}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-btns .gt-hb{right:84px;bottom:0;width:74px!important;height:98px!important;border-radius:18px!important;--ico:26px}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-btns .gt-act{right:10px;bottom:138px;width:54px!important;height:54px!important;background:rgba(12,14,18,.78)!important;color:#fff!important;border:2px solid rgba(255,255,255,.32)!important;--ico:20px}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-btns .gt-rkt{right:92px;bottom:112px}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad{left:calc(var(--h-l) + 12px)!important;bottom:calc(var(--h-b) + 16px)!important;width:182px!important;height:182px!important}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad button{width:58px!important;height:58px!important;border-radius:16px!important;border:2px solid rgba(255,255,255,.32)!important;background:rgba(12,14,18,.65)!important;box-shadow:0 4px 0 rgba(0,0,0,.35)!important;color:transparent!important;font-size:0!important;transform:none}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad button::before{content:'';position:absolute;left:14px;top:14px;width:26px;height:26px;background:#fff;-webkit-mask:var(--i-chev) center/contain no-repeat;mask:var(--i-chev) center/contain no-repeat}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad .pl::before{transform:rotate(-90deg)}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad .pr::before{transform:rotate(90deg)}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad .pd::before{transform:rotate(180deg)}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad button.on{background:var(--h-ac)!important;transform:translateY(3px)}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad button.on::before{background:#15171b}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad .pu{left:62px!important;top:0!important;right:auto!important;bottom:auto!important}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad .pl{left:0!important;top:62px!important;right:auto!important;bottom:auto!important}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad .pr{left:124px!important;top:62px!important;right:auto!important;bottom:auto!important}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-pad .pd{left:62px!important;top:124px!important;right:auto!important;bottom:auto!important}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-radio{left:auto!important;right:calc(var(--h-r) + 12px)!important;top:calc(var(--h-t) + 180px)!important;bottom:auto!important;transform:none!important;min-height:44px!important;max-width:none!important;box-sizing:border-box;padding:0 14px 0 12px!important;gap:7px;border-radius:999px!important;border:1px solid rgba(255,255,255,.2)!important;background:var(--h-pl)!important;box-shadow:none!important;color:#fff!important;font:600 13px/1 'Oswald HUD','Arial Narrow',sans-serif!important;letter-spacing:.06em}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-radio i{display:none!important}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-radio::before{content:'';width:18px;height:18px;background:#fff;-webkit-mask:var(--i-radio) center/contain no-repeat;mask:var(--i-radio) center/contain no-repeat}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-radio b{font:inherit}
html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-radio small{font:600 13px/1 'Oswald HUD','Arial Narrow',sans-serif!important;color:var(--h-ac)!important;max-width:none!important}
html body #gta.h380.drive .gt-vinfo{bottom:calc(var(--h-b) + 206px)!important}
/* velocità e stato dell'auto (solo nella vista dall'alto: in prima persona c'è il cruscotto) */
html body #gta.h380 .h-speed{display:none;position:absolute;left:50%;bottom:calc(var(--h-b) + 210px);transform:translateX(-50%);flex-direction:column;align-items:center;gap:4px;padding:6px 14px 8px;border-radius:14px;background:rgba(12,14,18,.6);border:1px solid rgba(255,255,255,.12);color:#fff;pointer-events:none;z-index:4}
html body #gta.h380.drive:not(.fp):not(.vehicle-cockpit):not(.cine) .h-speed{display:flex}
html body #gta.h380 .h-speed b{font:700 28px/1 'Oswald HUD','Arial Narrow',sans-serif}
html body #gta.h380 .h-speed small{font:600 12px/1 'Oswald HUD','Arial Narrow',sans-serif;color:#d3d8df;margin-left:3px}
html body #gta.h380 .h-speed>span{display:flex;align-items:baseline}
html body #gta.h380 .h-speed i{display:block;width:84px;height:5px;border-radius:3px;background:rgba(255,255,255,.2);overflow:hidden}
html body #gta.h380 .h-speed s{display:block;height:100%;width:100%;background:#fff;text-decoration:none;transition:width .2s}
html body #gta.h380 .h-speed.low s{background:var(--h-red)}

/* ---------- telefono in orizzontale ---------- */
@media (max-height:480px) and (orientation:landscape){
 html body #gta.h380 .h-radar{width:96px;height:96px}
 html body #gta.h380 .gt-pause{left:calc(var(--h-l) + 118px)!important}
 html body #gta.h380 .gt-view{left:calc(var(--h-l) + 168px)!important;top:calc(var(--h-t) + 12px)!important}
 html body #gta.h380.mapfly .gt-mapv{left:calc(var(--h-l) + 218px)!important}
 html body #gta.h380 .gt-mis{top:calc(var(--h-t) + 118px)!important;max-width:min(330px,40%)!important;-webkit-line-clamp:1}
 html body #gta.h380 .h-status{flex-direction:row;align-items:center;gap:14px;padding:7px 14px}
 html body #gta.h380 .h-status .gt-wanted{order:1}
 html body #gta.h380 .h-status .gt-lives{order:2}
 html body #gta.h380 .h-status .gt-cash{order:3;font-size:30px!important}
 html body #gta.h380 .h-status .gt-clock{order:4}
 html body #gta.h380 .h-status .gt-hide,html body #gta.h380 .h-status .gt-inv{order:5;margin:0!important}
 html body #gta.h380 .h-sub{bottom:calc(var(--h-b) + 18px);max-width:calc(100% - 400px)}
 html body #gta.h380.drive .h-sub{bottom:calc(var(--h-b) + 92px)}
 html body #gta.h380 .h-speed{bottom:calc(var(--h-b) + 16px)}
 html body #gta.h380 .gt-helpstrip{top:calc(var(--h-t) + 154px)!important}
 html body #gta.h380:not(.fly):not(.mapfly):not(.giant) .gt-cape{top:calc(var(--h-t) + 154px)!important}
 html body #gta.h380:is(.fly,.para,.mapfly) .gt-fhud{top:calc(var(--h-t) + 154px)!important}
 html body #gta.h380.drive:not(.giant):not(.boat-mode) .gt-radio{top:calc(var(--h-t) + 64px)!important}
 html body #gta.h380.drive .gt-vinfo{left:206px!important;right:210px!important;bottom:calc(var(--h-b) + 12px)!important}
}

/* ---------- 3.89: barra della vita al posto dei cuori ---------- */
html body #gta.h380 .h-status .gt-lives{order:3;display:flex;align-items:center;gap:7px;margin:3px 0 1px!important;font:600 13px/1 'Oswald HUD','Arial Narrow',sans-serif!important;color:#e8ebef!important;letter-spacing:.03em;text-shadow:none!important}
html body #gta .gt-lives .hpb{position:relative;display:block;width:104px;height:10px;border-radius:6px;background:rgba(0,0,0,.6);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);overflow:hidden}
html body #gta .gt-lives .hpb::after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),rgba(0,0,0,.35) calc(10% - 1px) 10%);pointer-events:none}
html body #gta .gt-lives .hpb s,html body #gta .gt-lives .hpb u{position:absolute;left:0;top:0;bottom:0;text-decoration:none}
html body #gta .gt-lives .hpb u{background:#fff;opacity:.8;transition:width .6s ease .35s}
html body #gta .gt-lives .hpb s{background:linear-gradient(#8af27f,#36b443);transition:width .15s,background .3s}
html body #gta .gt-lives[data-lv=mid] .hpb s{background:linear-gradient(#ffe066,#f0a020)}
html body #gta .gt-lives[data-lv=low] .hpb s{background:linear-gradient(#ff7070,#d42a2a)}
html body #gta .gt-lives[data-lv=low] .hpb{animation:hpPulse .9s ease-in-out infinite}
html body #gta .gt-lives b{min-width:32px;text-align:right;font:inherit}
html body #gta .gt-lives[data-lv=low] b{color:#ff8080}
@keyframes hpPulse{0%,100%{box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}50%{box-shadow:inset 0 0 0 1px #ff5a5a,0 0 10px #ff3030}}
html body #gta .gt-hurtfx{position:absolute;inset:0;pointer-events:none}
html body #gta .gt-hurtfx::before,html body #gta .gt-hurtfx::after{content:'';position:absolute;inset:0;opacity:0;background:radial-gradient(ellipse at center,transparent 42%,rgba(190,0,0,.35) 72%,rgba(150,0,0,.8) 100%)}
html body #gta .gt-hurtfx.on::after{animation:hurtFx .6s ease-out}
html body #gta.hp-low .gt-hurtfx::before{animation:hpLow 1.5s ease-in-out infinite}
html body #gta.armeria-in .gt-hurtfx{display:none}
@keyframes hurtFx{0%{opacity:var(--hk,.6)}100%{opacity:0}}
@keyframes hpLow{0%,100%{opacity:.18}50%{opacity:.42}}
@media (max-height:480px) and (orientation:landscape){
 html body #gta.h380 .h-status .gt-lives{margin:0!important;gap:5px}
 html body #gta.h380 .h-status .gt-lives .hpb{width:84px}
}
@media (prefers-reduced-motion:reduce){html body #gta .gt-lives[data-lv=low] .hpb,html body #gta.hp-low .gt-hurtfx::before{animation:none}html body #gta.hp-low .gt-hurtfx::before{opacity:.25}}

/* ---------- 3.91: telefono in orizzontale, frasi di Milo e consigli in basso al centro (non più in mezzo allo schermo) ---------- */
@media (max-height:480px) and (orientation:landscape){
 html body #gta .gt-say,html body #gta.drive .gt-say,html body #gta.fly .gt-say,
 html body #gta .gt-helpstrip,html body #gta.h380 .gt-helpstrip,html body #gta.h380:is(.fly,.para,.mapfly) .gt-helpstrip{top:auto!important;bottom:calc(var(--h-b,0px) + 14px)!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:max-content!important;max-width:min(460px,calc(100% - 400px))!important;text-align:center!important;z-index:6}
 html body #gta:is(.drive,.boat-mode) .gt-say,html body #gta:is(.drive,.boat-mode) .gt-helpstrip,html body #gta.h380.drive .gt-helpstrip{bottom:calc(var(--h-b,0px) + 80px)!important}
 html body #gta .gt-lookhint{top:auto!important;right:auto!important;left:50%!important;transform:translateX(-50%);bottom:calc(var(--h-b,0px) + 16px);width:max-content;max-width:min(420px,calc(100% - 400px))}
 html body #gta:has(.gt-say.on) .gt-lookhint,html body #gta:has(.gt-helpstrip:not([hidden])) .gt-lookhint{opacity:0!important}
 html body #gta.h380:has(.gt-say.on) .h-sub,html body #gta.h380:has(.gt-helpstrip:not([hidden])) .h-sub{bottom:calc(var(--h-b,0px) + 66px)!important}
 html body #gta.h380.drive:has(.gt-say.on) .h-sub,html body #gta.h380.drive:has(.gt-helpstrip:not([hidden])) .h-sub{bottom:calc(var(--h-b,0px) + 128px)!important}
 html body #gta #boat-notice.boat-notice{top:auto!important;bottom:calc(var(--h-b,0px) + 18px)!important;max-width:min(460px,calc(100% - 360px))!important}
}

/* ---------- 3.93: barra blu del giubbotto antiproiettile sotto la vita ---------- */
html body #gta .gt-lives{position:relative}
html body #gta .gt-lives.vest{margin-bottom:8px!important}
html body #gta .gt-lives .apb{position:absolute;left:0;top:calc(100% + 3px);display:block;width:104px;height:6px;border-radius:4px;background:rgba(0,0,0,.6);box-shadow:inset 0 0 0 1px rgba(150,200,255,.3);overflow:hidden}
html body #gta .gt-lives .apb[hidden]{display:none}
html body #gta .gt-lives .apb s{position:absolute;left:0;top:0;bottom:0;text-decoration:none;background:linear-gradient(#9fd0ff,#2f7de0);transition:width .2s}
@media (max-height:480px) and (orientation:landscape){html body #gta.h380 .h-status .gt-lives .apb{width:84px}html body #gta .gt-lives.vest{margin-bottom:0!important}}

/* ---------- 3.96: colpi rimasti sul pulsante di fuoco ---------- */
html body #gta .gt-hb small.h-am{display:block;margin-top:1px;font:600 11px/1 'Oswald HUD','Arial Narrow',sans-serif;letter-spacing:.04em;color:#fff3c4;text-shadow:0 1px 2px #000a}
html body #gta .gt-hb small.h-am.low{color:#ffd23f}
html body #gta .gt-hb small.h-am.zero{color:#fff;background:#0008;border-radius:6px;padding:2px 5px}

/* ---------- 3.98: soldi raccolti dai passanti ---------- */
html body #gta .h-cashpop{position:absolute;right:calc(var(--h-r,0px) + 18px);top:calc(var(--h-t,0px) + 150px);z-index:7;pointer-events:none;font:700 22px/1 'Oswald HUD','Arial Narrow',sans-serif;letter-spacing:.03em;color:#9cff7a;text-shadow:0 2px 0 #0d3a10,0 0 10px rgba(80,255,80,.45);animation:hCashPop 1.5s ease-out forwards}
html body #gta .h-cashpop.big{font-size:30px;color:#d8ff6a}
@keyframes hCashPop{0%{opacity:0;transform:translateY(10px) scale(.8)}15%{opacity:1;transform:translateY(0) scale(1.08)}30%{transform:scale(1)}100%{opacity:0;transform:translateY(-26px)}}
@media (max-height:480px) and (orientation:landscape){html body #gta .h-cashpop{top:calc(var(--h-t,0px) + 64px);right:calc(var(--h-r,0px) + 200px)}}

html body #gta.h380 .h-radar .h-snb{position:absolute;left:0;top:0;width:18px;height:18px;display:none;pointer-events:none;z-index:2;border-radius:50%;background:rgba(18,10,10,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Ccircle r='5.6' fill='none' stroke='%23ff4a3a' stroke-width='1.8'/%3E%3Cpath d='M-9 0H-2.4M2.4 0H9M0 -9V-2.4M0 2.4V9' stroke='%23ff4a3a' stroke-width='1.8'/%3E%3Ccircle r='1.2' fill='%23ff4a3a'/%3E%3C/svg%3E") center/100% no-repeat;box-shadow:0 0 0 1.5px #fff}
