/* ATM World UI screen and shared mobile action layout */
#atmGameUi{position:fixed;inset:0;isolation:isolate;z-index:4;pointer-events:none}
#atmGameUi[data-screen="landing"],body:has(#intro:not(.hidden)) #atmGameUi{display:none!important}
#atmGameUi > :where(#dialog,#atmSeatAdjustButton,#atmSeatAdjustPanel,#atmCameraPanel,#atmPosePanel,#fleetDriveUI,#fleetFlightUI,#godPanel,#godTools,#godToggle,#buildingWebsite,#atmViewCycle,#atmXRSwipe,#atmXRRecenter){pointer-events:auto}

:root{--hud-top:env(safe-area-inset-top,0px);--hud-right:env(safe-area-inset-right,0px);--hud-bottom:env(safe-area-inset-bottom,0px);--hud-left:env(safe-area-inset-left,0px)}
body.atm-hud-clean #hud .top{top:calc(8px + var(--hud-top))!important;left:calc(12px + var(--hud-left))!important;right:calc(12px + var(--hud-right))!important;gap:8px!important;align-items:center!important;z-index:8}
body.atm-hud-clean #hud .brand{min-width:0;gap:7px}
body.atm-hud-clean #hud .brand-mark{height:31px!important;width:31px!important;flex:0 0 31px;font-size:12px!important;border-radius:9px!important;box-shadow:none!important}
body.atm-hud-clean #hud .brand strong{font-size:13px!important;white-space:nowrap}
body.atm-hud-clean #hud .brand small{display:none!important}
body.atm-hud-clean #hud .status-row{gap:6px;flex-wrap:nowrap;align-items:center}
body.atm-hud-clean #hud .status-row .chip{height:34px!important;min-height:34px!important;padding:0 8px!important;border-radius:10px!important;white-space:nowrap;background:#09172dc4!important;border:1px solid #c9e7ff30!important;box-shadow:none!important;font-size:10px!important}
body.atm-hud-clean #hud .status-row .chip .coin{width:15px;height:15px;border-width:2px;box-shadow:none}
body.atm-hud-clean #hud .status-row .hide-mobile,body.atm-hud-clean #hud #animationTesterToggle,body.atm-hud-clean #hud #atmPoseToggle{display:none!important}
/* Keep the top HUD clean on foot, but expose camera switching while
   driving. The actual camera modes and saved preferences remain unchanged. */
body.atm-hud-clean #atmViewCycle{display:none!important}
body.atm-hud-clean.driving #atmViewCycle:not([hidden]){
 display:flex!important;align-items:center!important;justify-content:center!important;
 position:fixed!important;top:calc(151px + var(--hud-top))!important;
 right:calc(12px + var(--hud-right))!important;bottom:auto!important;
 z-index:10!important;min-height:34px!important;min-width:94px!important;
 padding:6px 9px!important;font-size:10px!important;white-space:nowrap!important
}
body.atm-hud-clean #hud #controlsMenu{height:35px!important;width:37px!important;min-width:37px!important;background:#09172dd4!important;border:1px solid #c9e7ff48!important;border-radius:10px!important;box-shadow:none!important}
body.atm-hud-clean #hud #hudOnline{display:flex;align-items:center;gap:6px;justify-content:center;min-width:59px;height:34px;padding:0 8px;color:#ecfaff;border-radius:10px;border:1px solid #c9e7ff30;background:#09172dc4;font-size:10px;font-weight:850;white-space:nowrap;pointer-events:auto;touch-action:manipulation}
body.atm-hud-clean #hud #hudOnline:focus-visible{outline:2px solid #6ff1ff;outline-offset:2px}
body.atm-hud-clean #hud #hudOnline .statusDot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#f2b465}
body.atm-hud-clean #hud #hudOnline[data-online="true"] .statusDot{background:#77ffc2;box-shadow:0 0 7px #77ffc2}
body.atm-hud-clean #playerVitals{position:fixed!important;top:calc(9px + var(--hud-top))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:134px!important;height:34px!important;padding:5px 9px!important;background:#09172dd4!important;border:1px solid #c9e7ff30!important;border-radius:10px!important;box-shadow:none!important;font-size:9px!important;z-index:6!important}
body.atm-hud-clean #playerVitals[hidden]{display:none!important}
body.atm-hud-clean #playerVitals .vitalsRow{margin-bottom:4px!important;font-size:9px!important}
body.atm-hud-clean #playerVitals .vitalsRow span:first-child{opacity:.70}
body.atm-hud-clean #playerVitals .healthTrack{height:5px!important}
body.atm-hud-clean #hud>.quest,body.atm-hud-clean #hud>#matchHud{display:none!important}
body.atm-hud-clean #controlsPanel .quest{display:block!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0 0 7px!important;padding:11px!important;border-radius:11px!important;border:1px solid #bfdcf337!important;background:#1b2e46d4!important;box-shadow:none!important}
body.atm-hud-clean #controlsPanel .quest .eyebrow{display:block!important}
body.atm-hud-clean #controlsPanel .quest h3{font-size:14px!important;white-space:normal}
body.atm-hud-clean #controlsPanel .quest p{display:block!important;font-size:11px!important}
body.atm-hud-clean #controlsPanel .quest .progress{display:block!important;height:5px!important}
body.atm-hud-clean #controlsPanel #matchHud[hidden]{display:none!important}
body.atm-hud-clean #controlsPanel #matchHud:not([hidden]){display:block!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;max-width:none!important;width:100%!important;margin:0 0 8px!important;padding:9px!important;background:#1b2e46d4!important;border:1px solid #bfdcf337!important;border-radius:11px!important;z-index:auto!important;font-size:11px!important;box-shadow:none!important}
body.atm-hud-clean #controlsPanel #matchHud summary{white-space:normal;text-align:left}
body.atm-hud-clean #controlsPanel #matchHud table{font-size:10px}
body.atm-hud-clean #controlsPanel .mobileHudShortcut{display:block!important}
body.atm-hud-clean #hud #controlsPanel{top:calc(49px + var(--hud-top))!important;right:calc(11px + var(--hud-right))!important;left:auto!important;width:min(310px,calc(100vw - 24px))!important;min-width:0!important;max-height:calc(100dvh - 62px - var(--hud-bottom))!important;z-index:20!important;gap:7px!important;border-radius:15px!important;padding:13px!important}
body.atm-hud-clean #hud #controlsPanel:not(.open){display:none!important}
body.atm-hud-clean #hud #controlsPanel .action{white-space:normal}
body.atm-hud-clean #worldConnectionStatus{top:calc(48px + var(--hud-top))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;max-width:min(68vw,240px)!important;width:max-content!important;font-size:10px!important;line-height:1.35!important;border-radius:9px!important;z-index:5!important}
body.atm-hud-clean #worldConnectionStatus[hidden],body.atm-hud-clean #worldConnectionStatus.hud-muted-status{display:none!important}
body.atm-hud-clean #lookHint,body.atm-hud-clean #touchSprint{display:none!important}
body.atm-hud-clean #hud #reticle{z-index:2}
body.atm-hud-clean #hud #toast{top:24%!important;max-width:min(65vw,300px)!important;font-size:11px!important;padding:8px 12px!important;border-radius:9px!important}
body.atm-hud-clean #touchUse.round.use:not(.available){display:none!important}
body.atm-hud-clean #hud #joystick{border:1px solid #d9f8ff65!important;background:#d9f8ff0a!important;opacity:.73;box-shadow:none!important}
body.atm-hud-clean #hud #joystick.active{opacity:.98}
body.atm-hud-clean #hud #joystick.sprinting{opacity:1!important;border:2px solid #9fffa2!important;box-shadow:0 0 0 3px #a3ff8c29!important}
body.atm-hud-clean #hud #joystick.sprinting:before{content:'SPRINT';position:absolute;top:-19px;left:50%;transform:translateX(-50%);font-size:9px;color:#c1ffb6;font-weight:900;letter-spacing:.10em;white-space:nowrap}
body.atm-hud-clean #hud #stick{background:#e5ffff4e!important;border:2px solid #efffffc1!important;box-shadow:0 2px 8px #0003!important}
body.atm-hud-clean #hud #hudExtras{display:none;position:absolute;right:calc(16px + var(--hud-right));bottom:calc(178px + var(--hud-bottom));width:35px;height:35px;border:1px solid #f6ffffa8;background:#112541bc;color:white;border-radius:50%;font-size:19px;font-weight:800;pointer-events:auto;touch-action:manipulation;z-index:5}
body.atm-hud-clean #hud #hudExtras[aria-expanded="true"]{border-color:#8ef3ff;background:#17576cdb}
body.atm-hud-clean #hud #touchRoll:not([hidden]),body.atm-hud-clean #hud #touchCrouch:not([hidden]){display:grid!important}
body.atm-hud-clean #hud #mobileActions .round.roll,body.atm-hud-clean #hud #mobileActions .round.crouch{position:absolute!important;top:auto!important;display:grid;margin:0!important;width:45px!important;height:45px!important}
body.atm-hud-clean #hud #mobileActions .round.roll{right:80px!important;bottom:112px!important}
body.atm-hud-clean #hud #mobileActions .round.crouch{right:20px!important;bottom:130px!important}
body.atm-hud-clean #hud #mobileActions .round.roll svg,body.atm-hud-clean #hud #mobileActions .round.crouch svg{width:26px!important;height:26px!important}
body.atm-hud-clean #hud #mobileActions .control-label{font-size:8px}
@media(any-pointer:coarse),(max-width:900px){
 body.atm-hud-clean #hud #hudExtras{display:grid;place-items:center}
 body.atm-hud-clean #hud #joystick{width:112px!important;height:112px!important;left:calc(22px + var(--hud-left))!important;bottom:calc(27px + var(--hud-bottom))!important}
 body.atm-hud-clean #hud #stick{width:45px!important;height:45px!important;left:calc(50% - 22.5px)!important;top:calc(50% - 22.5px)!important}
 body.atm-hud-clean #hud{
  --action-size:clamp(48px,13vw,60px);
  --action-gap:12px;
  --action-step:calc(var(--action-size) + var(--action-gap));
  --action-right:calc(16px + var(--hud-right));
  --action-bottom:calc(34px + var(--hud-bottom));
  --action-secondary:44px;
  --action-inset:calc((var(--action-size) - var(--action-secondary)) / 2);
  --action-row:calc(var(--action-size) + 26px);
 }
 body.atm-hud-clean #hud #mobileActions{right:var(--action-right)!important;bottom:var(--action-bottom)!important;width:var(--action-size)!important;height:var(--action-size)!important}
 body.atm-hud-clean #hud #mobileActions .round.jump{right:0!important;bottom:0!important;top:auto!important;width:var(--action-size)!important;height:var(--action-size)!important}
 body.atm-hud-clean #hud #firePenny{right:calc(var(--action-right) + var(--action-step))!important;bottom:var(--action-bottom)!important;width:var(--action-size)!important;height:var(--action-size)!important;border:1.5px solid #eeb98cc4!important;background:#55351d80!important;font-size:11px!important;box-shadow:none!important}
 body.atm-hud-clean #hud #firePenny[hidden]{display:none!important}
 body.atm-hud-clean #hud #mobileActions .round.roll,body.atm-hud-clean #hud #mobileActions .round.crouch{width:var(--action-secondary)!important;height:var(--action-secondary)!important;bottom:var(--action-row)!important}
 body.atm-hud-clean #hud #mobileActions .round.roll{right:calc(var(--action-step) + var(--action-inset))!important}
 body.atm-hud-clean #hud #mobileActions .round.crouch{right:var(--action-inset)!important}
 body.atm-hud-clean #hud #touchADS{right:calc(var(--action-right) + 2 * var(--action-step) + var(--action-inset))!important;bottom:calc(var(--action-bottom) + var(--action-row))!important;width:var(--action-secondary)!important;height:var(--action-secondary)!important;box-shadow:none!important}
 /* Keep inventory above the combat rows in portrait: the movement stick owns the lower left. */
 body.atm-hud-clean #hud #touchADS small{font-size:8px!important}
}
@media(orientation:portrait) and (max-width:750px){
 body.atm-hud-clean #hud #atmPalmToggle{
  position:fixed!important;top:auto!important;left:auto!important;
  right:calc(var(--action-right) + var(--action-inset))!important;
  bottom:calc(var(--action-bottom) + var(--action-row) + var(--action-secondary) + 22px)!important;
  width:var(--action-secondary)!important;height:var(--action-secondary)!important;
  min-width:var(--action-secondary)!important;max-width:var(--action-secondary)!important;
  min-height:var(--action-secondary)!important;max-height:var(--action-secondary)!important;
  flex:none!important;aspect-ratio:1;box-sizing:border-box;padding:0!important;
  border-radius:50%!important;font-size:25px!important;z-index:11!important
 }
 body.atm-hud-clean.driving #hud #atmPalmToggle{display:none!important}
}
@media(max-width:550px){
 body.atm-hud-clean #playerVitals{top:calc(50px + var(--hud-top))!important;left:calc(12px + var(--hud-left))!important;transform:none!important;width:137px!important}
 body.atm-hud-clean #hud .brand strong{font-size:12px!important}
 body.atm-hud-clean #hud .status-row{gap:4px}
 body.atm-hud-clean #hud .status-row .chip{padding:0 6px!important}
 body.atm-hud-clean #hud #hudOnline{min-width:54px;padding:0 6px;font-size:9px}
 body.atm-hud-clean #worldConnectionStatus{top:calc(90px + var(--hud-top))!important;max-width:210px!important}
 body.atm-hud-clean #hud #hudExtras{bottom:calc(168px + var(--hud-bottom))}
}
@media (orientation:landscape) and (max-height:520px), (orientation:landscape) and (any-pointer:coarse){
 body.atm-hud-clean #hud{
  --landscape-action-size:clamp(46px,9vw,56px);
  --landscape-action-gap:clamp(10px,2.8vw,18px);
  --landscape-action-step:calc(var(--landscape-action-size) + var(--landscape-action-gap));
  --landscape-action-right:calc(15px + var(--hud-right));
  --landscape-action-bottom:calc(18px + var(--hud-bottom));
  --landscape-secondary-size:44px;
  --landscape-secondary-inset:calc((var(--landscape-action-size) - var(--landscape-secondary-size)) / 2);
  --landscape-secondary-bottom:calc(var(--landscape-action-size) + 24px);
 }
 body.atm-hud-clean #hud #joystick{width:93px!important;height:93px!important;left:calc(23px + var(--hud-left))!important;bottom:calc(13px + var(--hud-bottom))!important}
 body.atm-hud-clean #hud #stick{width:39px!important;height:39px!important;left:calc(50% - 19.5px)!important;top:calc(50% - 19.5px)!important}
 body.atm-hud-clean #hud #mobileActions{
  right:var(--landscape-action-right)!important;bottom:var(--landscape-action-bottom)!important;
  width:var(--landscape-action-size)!important;height:var(--landscape-action-size)!important
 }
 /* Bottom row, from right to left: Jump, Fire, Inventory. */
 body.atm-hud-clean #hud #mobileActions .round.jump,
 body.atm-hud-clean #hud #firePenny,
 body.atm-hud-clean #hud #atmPalmToggle{
  width:var(--landscape-action-size)!important;height:var(--landscape-action-size)!important
 }
 body.atm-hud-clean #hud #mobileActions .round.jump{right:0!important;bottom:0!important;top:auto!important}
 body.atm-hud-clean #hud #firePenny{
  right:calc(var(--landscape-action-right) + var(--landscape-action-step))!important;
  bottom:var(--landscape-action-bottom)!important
 }
 body.atm-hud-clean #hud #atmPalmToggle{
  position:fixed;top:auto;left:auto;
  right:calc(var(--landscape-action-right) + 2 * var(--landscape-action-step));
  bottom:var(--landscape-action-bottom);
  border-radius:50%;font-size:25px;z-index:9
 }
 body.atm-hud-clean.driving #hud #atmPalmToggle{display:none}
 body.atm-hud-clean #hud #touchUse.round.use{
  width:var(--landscape-action-size);height:var(--landscape-action-size);
  left:calc(50% - var(--landscape-action-size) / 2);
  bottom:var(--landscape-action-bottom)
 }
 body.atm-hud-clean #hud #touchUse .control-label{bottom:-16px;padding:2px 6px}
 /* Align Crouch, Roll and ADS above the three primary buttons. */
 body.atm-hud-clean #hud #mobileActions .round.roll,
 body.atm-hud-clean #hud #mobileActions .round.crouch,
 body.atm-hud-clean #hud #touchADS{
  width:var(--landscape-secondary-size)!important;height:var(--landscape-secondary-size)!important
 }
 body.atm-hud-clean #hud #mobileActions .round.roll,
 body.atm-hud-clean #hud #mobileActions .round.crouch{bottom:var(--landscape-secondary-bottom)!important}
 body.atm-hud-clean #hud #mobileActions .round.crouch{right:var(--landscape-secondary-inset)!important}
 body.atm-hud-clean #hud #mobileActions .round.roll{right:calc(var(--landscape-action-step) + var(--landscape-secondary-inset))!important}
 body.atm-hud-clean #hud #touchADS{
  right:calc(var(--landscape-action-right) + 2 * var(--landscape-action-step) + var(--landscape-secondary-inset))!important;
  bottom:calc(var(--landscape-action-bottom) + var(--landscape-secondary-bottom))!important
 }
 body.atm-hud-clean #hud #mobileActions .control-label{left:50%;bottom:-16px;transform:translateX(-50%);white-space:nowrap}
 /* Put VIEW immediately left of CENTER VIEW, in the same top row of
    vehicle controls, including all buggies, trucks, and hover cars. */
 body.atm-hud-clean.driving #atmViewCycle:not([hidden]){
  top:auto!important;bottom:calc(103px + var(--hud-bottom))!important;
  right:calc(270px + var(--hud-right))!important;min-height:29px!important;
  min-width:96px!important;padding:5px 8px!important;
 }
 body.atm-hud-clean #hud #hudExtras{right:calc(18px + var(--hud-right));bottom:calc(96px + var(--hud-bottom));width:34px;height:34px}
 body.atm-hud-clean #hud #hudOnline{height:31px}
 body.atm-hud-clean #hud .status-row .chip{height:31px!important;min-height:31px!important}
 body.atm-hud-clean #playerVitals{width:121px!important;height:32px!important;top:calc(9px + var(--hud-top))!important;left:50%!important;transform:translateX(-50%)!important;padding:4px 8px!important}
}
@media(max-width:640px) and (min-width:551px) and (orientation:landscape){
 body.atm-hud-clean #hud .brand strong{display:none!important}
 body.atm-hud-clean #playerVitals{width:107px!important}
}
@media(prefers-reduced-motion:reduce){body.atm-hud-clean #hud .round{transition:none!important}}

/* Hidden state takes precedence over the small actions expander display. */
body.atm-hud-clean #hud #hudExtras[hidden]{display:none!important}
body.atm-hud-clean #hud #hudExtras{display:none!important}
