/* 150KX field controls: soft black glass, candy purple seams and diamond geometry. */
#hud{--control-line:#c39aef88;--control-fill:#181222dc;--control-active:#9b64d6;--control-white:#f5f0ff}#hud button{position:relative;isolation:isolate;-webkit-tap-highlight-color:transparent;color:var(--control-white);font-weight:700;letter-spacing:1px;border-radius:12px;border:1px solid var(--control-line);background:linear-gradient(145deg,#352346e6,#17111ee8);box-shadow:inset 0 1px 0 #f1dcff18,0 4px 14px #08050d30;transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease;user-select:none;-webkit-user-select:none}#hud button:active,#hud button.is-pressed{transform:scale(.94);border-color:#f0dfff;background:linear-gradient(145deg,#9258c9,#40245d);box-shadow:0 0 20px #b879ef55,inset 0 0 12px #ffffff16}#hud button:focus-visible{outline:2px solid #ecdaff;outline-offset:5px}#hud #pause{position:static;width:44px;height:44px;padding:0;font-size:16px;border-radius:12px}#hud #openEquipment{position:absolute;top:83px;right:18px;font-size:9px;padding:12px 16px 12px 32px;min-height:44px}#hud #openEquipment:before{content:'';position:absolute;left:13px;top:18px;width:8px;height:8px;border:1px solid #e2c5ff;transform:rotate(45deg);background:#b57aee55}#hud #armorStatus{top:135px;right:18px;color:#d7c5e8;font-size:8px;letter-spacing:.6px}#hud #vehicleUse{position:absolute;top:163px;right:18px;min-height:44px;font-size:8px}#hud #items{gap:7px}#hud #items button{position:relative;min-height:38px;padding:9px 12px;font-size:8px;border-radius:10px;background:#181221db}#hud #items b{color:#e0c2ff;margin-left:7px}#hud #items button.is-empty{opacity:.45}#hud #items button.is-empty:active{opacity:.8}#hud footer{border-radius:14px;border-color:#b586df40;background:linear-gradient(130deg,#1c1424ef,#100d17ee);box-shadow:0 4px 20px #0003;backdrop-filter:blur(8px)}#hud .vital i,#hud .vital em{border-radius:4px}#hud .vital em{box-shadow:0 0 7px #be8bf133}#hud aside{border:1px solid #be92e130;border-left:2px solid #c89cff;border-radius:0 14px 14px 0;background:linear-gradient(120deg,#20162be6,#1b142333)}#hud aside small:before{content:'◇';margin-right:8px;color:#dfbdff}#hud #saveStatus{letter-spacing:.4px}
@media(pointer:coarse){#hud #touch button{position:absolute;display:flex;align-items:center;justify-content:center;padding:0;font-size:9px;touch-action:none}#hud #fire,#hud #melee{background:transparent;border:0;box-shadow:none;border-radius:16px}#hud #fire:before,#hud #melee:before{content:'';position:absolute;inset:9px;z-index:-1;transform:rotate(45deg);border:1px solid #e0b9ffb3;border-radius:12px;background:linear-gradient(135deg,#684287d9,#20152ee6);box-shadow:inset 0 1px 0 #fff3,0 0 20px #bd85ff16;transition:background .14s,box-shadow .14s,border-color .14s}#hud #fire:active:before,#hud #fire.is-pressed:before,#hud #melee:active:before,#hud #melee.is-pressed:before{background:linear-gradient(135deg,#bf8cf0ed,#66388ee8);border-color:#f1dfff;box-shadow:0 0 26px #c28aff66}#hud #fire{right:23px;bottom:calc(115px + env(safe-area-inset-bottom));width:88px;height:88px;padding-top:23px;font-size:10px;letter-spacing:1.1px}#hud #fire:after{content:'⌖';position:absolute;top:18px;left:0;right:0;text-align:center;font-size:23px;font-weight:400;color:#e9d3ff;line-height:1}#hud #melee{right:33px;bottom:calc(219px + env(safe-area-inset-bottom));width:67px;height:67px;padding-top:13px;font-size:8px}#hud #melee:after{content:'◇';position:absolute;top:12px;left:0;right:0;text-align:center;font-size:13px;line-height:1}#hud #search{right:126px;bottom:calc(137px + env(safe-area-inset-bottom));width:65px;height:48px;font-size:8px;border-radius:12px;background:#20162ce8}#hud #sprint{left:49px;bottom:calc(250px + env(safe-area-inset-bottom));width:64px;height:42px;font-size:8px;border-radius:12px}#hud #sprint.on{background:linear-gradient(145deg,#925fc0,#503169);border-color:#dfc1fa;box-shadow:0 0 15px #bd85ff36}#hud #stick{left:28px;bottom:calc(117px + env(safe-area-inset-bottom));width:112px;height:112px;border:1px solid #cba2f066;border-radius:50%;background:radial-gradient(circle,#b77ce914 0%,#1d142b44 55%,#21172c55);box-shadow:inset 0 0 18px #ab74da12,0 0 0 8px #a36ed907}#hud #stick:before,#hud #stick:after{content:'';position:absolute;inset:14px;border:1px solid #ac7ac12b;border-radius:50%;pointer-events:none}#hud #stick:after{inset:28px;border-style:dashed}#hud #knob{left:36px;top:36px;background:transparent;border:0;box-shadow:none;pointer-events:none}#hud #knob:before{content:'';position:absolute;inset:3px;border:1px solid #eedbff;transform:rotate(45deg);border-radius:7px;background:linear-gradient(135deg,#c092e58a,#623f7ca1);box-shadow:0 0 18px #bb84e62e}#hud #items{bottom:calc(72px + env(safe-area-inset-bottom));left:12px;right:12px;gap:6px;justify-content:center}#hud #items button{font-size:7px;min-height:36px;padding:8px 10px;border-radius:10px}#hud footer{bottom:calc(10px + env(safe-area-inset-bottom));left:12px;right:12px;min-height:48px;padding:10px 12px;gap:12px}#hud #vehicleUse{top:auto;right:119px;bottom:calc(201px + env(safe-area-inset-bottom));font-size:8px;padding:10px;min-height:38px}#hud #openEquipment{right:12px;top:78px;font-size:8px;padding:10px 12px 10px 29px;max-width:155px;min-height:42px}#hud #openEquipment:before{top:16px;left:12px;width:7px;height:7px}#hud #armorStatus{right:13px;top:128px;font-size:7px}#hud aside{left:12px;top:78px;max-width:185px;padding:10px 12px}#hud aside h2{font-size:19px;margin:7px 0}#hud aside p{font-size:8px;line-height:1.5;margin:5px 0}#hud aside small{font-size:6px;letter-spacing:1.4px}#hud #parts{font-size:7px;letter-spacing:.4px}#hud #notice,#hud #notice.show{bottom:calc(310px + env(safe-area-inset-bottom));left:12px;max-width:230px;font-size:9px;border-radius:7px}#hud #prompt{bottom:calc(298px + env(safe-area-inset-bottom));right:12px;border-radius:8px;padding:7px 9px;max-width:190px;font-size:8px}.crosshair{font-size:18px}}
@media(max-width:370px) and (pointer:coarse){#hud aside{max-width:162px}#hud aside h2{font-size:17px}#hud #openEquipment{max-width:132px;font-size:7px}#hud #items button{padding:8px 7px;font-size:6px}#hud #search{right:116px;width:59px}}
@media(max-height:550px) and (pointer:coarse){#hud #stick{bottom:calc(65px + env(safe-area-inset-bottom));left:24px;width:104px;height:104px}#hud #knob{left:32px;top:32px}#hud #sprint{bottom:calc(180px + env(safe-area-inset-bottom));left:43px;height:35px}#hud #fire{bottom:calc(63px + env(safe-area-inset-bottom));right:23px;width:80px;height:80px}#hud #melee{bottom:calc(157px + env(safe-area-inset-bottom));right:31px;width:62px;height:62px}#hud #search{right:118px;bottom:calc(85px + env(safe-area-inset-bottom));height:42px}#hud #vehicleUse{right:112px;bottom:calc(139px + env(safe-area-inset-bottom))}#hud footer{left:153px;right:178px;bottom:calc(8px + env(safe-area-inset-bottom));padding:8px;gap:9px;min-height:41px}#hud #items{left:153px;right:178px;bottom:calc(58px + env(safe-area-inset-bottom));gap:4px}#hud #items button{font-size:6px;padding:6px;min-height:30px}#hud aside{top:62px;max-width:165px;padding:7px 10px}#hud aside h2,#hud aside p{display:none}#hud #openEquipment{top:64px;min-height:34px}#hud #openEquipment:before{top:12px}#hud #armorStatus{top:105px}#hud #notice,#hud #notice.show{bottom:calc(105px + env(safe-area-inset-bottom));left:153px}#hud #prompt{bottom:calc(89px + env(safe-area-inset-bottom));right:178px}}
@media(prefers-reduced-motion:reduce){#hud button,#hud #fire:before,#hud #melee:before{transition:none}}
@media(pointer:coarse){#hud #heavy{position:absolute;right:33px;bottom:calc(302px + env(safe-area-inset-bottom));width:67px;height:67px;pointer-events:auto;display:flex;align-items:center;justify-content:center;padding:13px 0 0;font-size:8px;isolation:isolate;background:transparent;border:0;box-shadow:none;border-radius:16px}#hud #heavy:before{content:'';position:absolute;inset:9px;z-index:-1;transform:rotate(45deg);border:1px solid #dfb4ffc7;border-radius:12px;background:linear-gradient(135deg,#785099de,#26182fe8);box-shadow:inset 0 1px 0 #fff3,0 0 18px #bd85ff15;transition:background .14s,box-shadow .14s}#hud #heavy:after{content:'↷';position:absolute;top:10px;left:0;right:0;text-align:center;font-size:18px;line-height:1}#hud #heavy:active:before,#hud #heavy.is-pressed:before{background:linear-gradient(135deg,#ca9bf3,#714492);box-shadow:0 0 25px #c28aff66}#hud #prompt{bottom:calc(388px + env(safe-area-inset-bottom))}}
@media(max-height:550px) and (pointer:coarse){#hud #heavy{right:108px;bottom:calc(186px + env(safe-area-inset-bottom));width:62px;height:62px}#hud #prompt{bottom:calc(266px + env(safe-area-inset-bottom))}}

#hud #viewMode{position:absolute;right:70px;top:13px;pointer-events:auto;min-height:36px;padding:8px 12px;font-size:9px;letter-spacing:1px;background:#261a35ed;color:#f4eaff;border:1px solid #bd85ff80;border-radius:10px;touch-action:manipulation}#hud #viewMode[aria-pressed=true]{background:#79509a;border-color:#e7cfff}#hud #compass{padding-right:125px}@media(pointer:coarse){#hud #viewMode{right:58px;top:12px;font-size:8px;min-height:33px;padding:7px 9px}#hud #compass{visibility:hidden}}
