/* One light, consistent HUD above the game. Native font stack needs no download. */
#low-health{position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;background:radial-gradient(ellipse at center,transparent 52%,#9d102d30 76%,#b20e2eaa 100%);box-shadow:inset 0 0 28px #a309294d;opacity:var(--danger,.6);animation:danger-breathe 2.4s ease-in-out infinite}
@keyframes danger-breathe{0%,100%{opacity:calc(var(--danger,.6)*.8)}50%{opacity:var(--danger,.6)}}
@media(prefers-reduced-motion:reduce){#low-health{animation:none}}
html[data-motion=reduced] #low-health{animation:none}
#empty-ammo,#sniper-hit{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%);z-index:2;pointer-events:none;white-space:nowrap;color:#fff1e8;font:600 clamp(14px,2.1vw,18px)/1.25 'Avenir Next','Segoe UI',sans-serif;letter-spacing:.015em;text-shadow:0 2px 5px #16080bea,0 0 14px #16080b80;background:none;border:0;padding:0}
#inventory-dismiss{position:fixed;inset:0;z-index:3;touch-action:none}
#app #inventory{z-index:4}
#app .match-hud,#app #vitals,#app #notice,#app .actions{font-family:'Avenir Next','Segoe UI',sans-serif}
#app .match-hud{top:16px;left:16px;right:auto;gap:18px;align-items:start;filter:drop-shadow(0 1px 3px #061710)}
#app .match-hud>.pill{position:relative;display:grid;grid-template-columns:15px auto;grid-template-rows:23px 13px;gap:2px 7px;background:none;border:0;border-radius:0;box-shadow:none;padding:0;width:auto;min-width:0;color:#f2f1df}
#app .match-hud>.pill svg{grid-column:1;grid-row:1;width:15px;height:20px;align-self:center;fill:none;stroke:#d7e1cc;stroke-width:1.5;stroke-linecap:round}
#app .match-hud>.pill b{grid-column:2;grid-row:1;font:600 23px/23px 'Avenir Next','Segoe UI',sans-serif;letter-spacing:-.045em}
#app .match-hud>.pill small{grid-column:1/3;grid-row:2;font:600 8px/12px 'Avenir Next','Segoe UI',sans-serif;letter-spacing:.12em;white-space:nowrap;color:#d2dbc7}
#app .match-hud #floor-state{position:absolute;top:49px;left:0;right:auto;display:block;width:max-content;min-width:0;padding:0;background:none;border:0;box-shadow:none}
#app #floor-state b{font-size:13px;line-height:17px;letter-spacing:0}
#app #floor-state small{display:none}
#app #radar{width:112px;height:112px;top:12px;right:12px;box-sizing:border-box;border:1px solid #e0e9ce40;border-radius:16px;box-shadow:0 4px 13px #04150e44;opacity:1}
#app #vitals{top:18px;width:228px;gap:8px;filter:drop-shadow(0 2px 3px #04180fd9)}
#app #vitals .health{gap:9px;height:21px}
#app #vitals .health>span{font-size:15px;color:#eeb0ad}
#app #vitals #health{height:8px;filter:none;border-radius:10px;overflow:hidden}
#app #vitals #health::-webkit-meter-bar{background:#092117aa;box-shadow:inset 0 1px 2px #0009;border:1px solid #d2e0ba33;border-radius:10px}
#app #vitals #health::-webkit-meter-optimum-value{background:linear-gradient(90deg,#87b797,#d0e5b7);border-radius:10px;box-shadow:inset 0 1px #f3ffe855}
#app #vitals #hp{font:600 14px/20px 'Avenir Next','Segoe UI',sans-serif;min-width:23px;color:#f2f1dd}
#app #vitals #equipment-status{gap:14px;justify-content:center}
#app #vitals #equipment-status img{width:20px;height:20px}
#app #vitals #equipment-status b{font:600 11px/18px 'Avenir Next','Segoe UI',sans-serif;color:#e5ead5}
#app #stick::before,#app #fire::before{background:radial-gradient(circle at 42% 35%,#d7e9c315,#071e195c);border-color:#e7efce50;box-shadow:inset 0 1px 1px #f2ffdc29,inset 0 -3px 8px #05120e55,0 5px 12px #03130d40}
#app #stick i,#app #fire i{border:1px solid #e1ebcf80;background:radial-gradient(circle at 35% 25%,#d3e5c466,#78968b44 65%,#2b504677);box-shadow:inset 0 1px 2px #fff7,0 3px 7px #021d1970}
#app #fire i{background-color:#796b4433;background-image:none;background-size:88px auto;background-position:center;background-repeat:no-repeat;border-color:#e4d5ac88}
#app #stick[data-active=true] i{background:radial-gradient(circle at 35% 25%,#d3e5c48c,#78968b66 65%,#2b504699)}
#app #fire[data-active=true] i{background-image:none;background-size:88px auto;background-position:center;background-repeat:no-repeat}
html[data-input=touch][data-orientation=portrait] #app #radar{width:102px;height:102px;top:12px;right:12px}
html[data-input=touch][data-orientation=portrait] #app #vitals{top:116px;width:min(238px,calc(100% - 60px))}
html[data-input=touch][data-orientation=portrait] #app #notice{top:174px;font-size:9px;max-width:150px}
html[data-input=touch][data-orientation=landscape] #app #vitals{top:16px;width:180px}
html[data-input=touch][data-orientation=landscape] #app #radar{width:102px;height:102px}
html[data-input=touch] #app #zone-alert{top:164px}
html[data-input=touch] #app #kill-feed{top:190px}
html[data-input=touch][data-mode=training][data-orientation=portrait] #app #radar{width:86px;height:86px}
html[data-input=touch][data-mode=training][data-orientation=portrait] #app #vitals{top:82px;width:120px}
html[data-input=touch][data-mode=training][data-orientation=portrait] #app #training-bar{top:106px}
html[data-input=touch][data-mode=training][data-orientation=landscape] #app #vitals{top:62px;width:160px}
@media(max-width:370px) and (orientation:portrait){#app .match-hud{left:14px;gap:13px}#app .match-hud>.pill b{font-size:21px}#app .match-hud>.pill small{font-size:7px}}
@media(max-width:370px) and (orientation:portrait){
 html[data-input=touch]:not([data-mode=training]) #app #radar{width:92px;height:92px}
 html[data-input=touch]:not([data-mode=training]) #app #vitals{top:106px}
}

#app #fire i .aim-reticle{position:absolute;inset:6px;width:20px;height:20px;stroke:#f2ecd6;stroke-width:1.2;fill:none;opacity:.95;pointer-events:none}
#app #fire i .aim-reticle circle:last-child{fill:#f2ecd6;stroke:none}
#app #radar{border-radius:50%;border:1px solid #d9e5ce66;box-shadow:0 3px 12px #04150e44;cursor:pointer;touch-action:manipulation}
#app #radar:focus-visible{outline:2px solid #eedaa4;outline-offset:3px}
#app .health-heart{width:19px;height:19px;flex:none;fill:#efb8b1;stroke:none;filter:drop-shadow(0 1px 2px #09201688)}
html[data-input=touch][data-orientation=landscape] #app #vitals{width:clamp(210px,34vw,340px);gap:5px;top:14px}
html[data-input=touch][data-orientation=landscape] #app #vitals .health{height:28px;gap:10px}
html[data-input=touch][data-orientation=landscape] #app #vitals #health{height:13px}
html[data-input=touch][data-orientation=landscape] #app #vitals #hp{font-size:18px;min-width:31px}
html[data-input=touch][data-orientation=landscape] #app #vitals .health-heart{width:22px;height:22px}
html[data-input=touch][data-mode=training][data-orientation=landscape] #app #vitals{top:62px;width:170px}
html[data-input=touch][data-mode=training][data-orientation=landscape] #app #vitals .health{height:22px}
#map-open{position:absolute;top:12px;right:14px;width:58px;height:65px;padding:0;border:0;background:none;box-shadow:none;z-index:2;display:grid;place-items:center;filter:drop-shadow(0 3px 4px #071e1855);touch-action:manipulation}
#map-open img{position:absolute;inset:2px 3px 12px;width:52px;height:51px;object-fit:cover;border:1px solid #dcd6b780;border-radius:9px;transform:rotate(5deg);filter:saturate(.65) brightness(.75)}
#map-open svg{position:relative;width:28px;height:28px;fill:#203d3166;stroke:#f4e7bf;stroke-width:1.5;stroke-linejoin:round;margin-bottom:10px}
#map-open span{position:absolute;bottom:0;font:700 8px 'Avenir Next',sans-serif;letter-spacing:.15em;color:#e9e6d0}
html[data-screen=menu] #map-open{display:none}
#atlas-panel{width:min(94vw,1000px);height:min(91dvh,800px);max-height:94dvh;padding:14px;border:1px solid #b6c9a64d;border-radius:18px;background:#13271ff7;color:#f0ead4;box-shadow:0 20px 80px #0009;overflow:hidden}
#atlas-panel[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px}
#atlas-panel::backdrop{background:#04130eb8;backdrop-filter:blur(4px)}
#atlas-panel header{display:flex;align-items:center;justify-content:space-between;padding:0 4px}
#atlas-panel header small{font:600 9px 'Avenir Next',sans-serif;letter-spacing:.18em;color:#b3c4a5}
#atlas-panel h2{font:600 22px 'Avenir Next',sans-serif;letter-spacing:-.03em;margin:2px 0}
#atlas-close{width:38px;height:38px;font-size:25px;padding:0;border-radius:50%;background:#304737;border:1px solid #d2ddbf33;color:#f4ead1}
#atlas{width:100%;height:100%;min-height:0;object-fit:contain;display:block;border-radius:8px}
#atlas-panel footer{display:flex!important;justify-content:center;gap:18px;padding:4px;font:600 10px 'Avenir Next',sans-serif;color:#d9dfc8}
#atlas-panel footer span{display:flex;align-items:center;gap:5px}
#atlas-panel footer i{display:inline-block;width:8px;height:8px;border-radius:50%}
.map-you{background:#ffe7a3}.map-safe{border:1px solid #fff3da}.map-next{border:1px dashed #f5c773}
#atlas-panel[open]{grid-template-rows:minmax(0,1fr) 22px;gap:3px;padding:8px}
#atlas-panel header{position:absolute;top:12px;left:16px;right:16px;z-index:1;pointer-events:none;gap:10px}
#atlas-panel header>div:first-child{margin-right:auto;text-shadow:0 2px 4px #071b16}
#atlas-panel header button{pointer-events:auto}
#atlas-panel h2{font-size:18px}
#atlas-panel .atlas-tools{display:flex;gap:5px}
#atlas-panel .atlas-tools button{width:32px;height:32px;border:1px solid #d0dcb93d;border-radius:50%;padding:0;background:#203e2fe8;color:#ede7ca;font:500 23px system-ui}
#atlas-panel #atlas-close{width:34px;height:34px;font-size:23px}
#atlas{touch-action:none;cursor:grab}
#atlas:active{cursor:grabbing}

#sniper-hit{top:37%;color:#fff3cb}

/* Vehicle controls reuse the movement pad and keep the field of view clear. */
#vehicle-action{position:absolute;right:18px;bottom:152px;z-index:2;min-width:92px;min-height:42px;padding:9px 12px;border:1px solid #e8dfb48c;border-radius:9px;background:#213a30dc;color:#f4ecd0;font:650 12px 'Avenir Next','Segoe UI',sans-serif;touch-action:none}
#vehicle-brake{position:absolute;right:28px;bottom:30px;z-index:2;width:82px;height:82px;border-radius:50%;border:1px solid #eee2bd77;background:#213a3099;color:#f3e4bf;font:700 11px 'Avenir Next','Segoe UI',sans-serif;touch-action:none}
#vehicle-status{position:absolute;left:50%;bottom:25px;transform:translateX(-50%);z-index:2;width:150px;display:grid;grid-template-columns:1fr auto;gap:5px 8px;color:#f1e8cd;text-shadow:0 1px 3px #14231e;font:600 10px 'Avenir Next','Segoe UI',sans-serif;pointer-events:none}
#vehicle-status span{grid-column:1/-1;letter-spacing:.08em}#vehicle-status b{float:right;font-variant-numeric:tabular-nums}#fuel-meter{width:100%;height:8px;align-self:center}#vehicle-speed{font-size:10px;font-variant-numeric:tabular-nums}
html[data-driving=true] #app :is(#bottom,#fire,#scope,#scope-desktop,#sprint,#pickup,#grenade,#reload){display:none!important}
html[data-input=touch] #vehicle-action{right:12px;bottom:232px;min-width:82px;font-size:11px}
html[data-input=touch] #vehicle-status{bottom:76px;width:124px}
html[data-input=touch] #vehicle-brake{right:20px;bottom:30px}
html[data-input=touch][data-orientation=landscape] #vehicle-action{bottom:142px}
html[data-input=touch][data-orientation=landscape] #vehicle-status{bottom:22px}
#app #zone-alert{top:85px;background:none;border:0;padding:0;text-shadow:0 2px 4px #12271f;white-space:nowrap}
html[data-input=touch][data-orientation=portrait] #app #zone-alert{top:164px}
html[data-input=touch][data-orientation=landscape] #app #zone-alert{top:84px}
#kill-feed{overflow-wrap:anywhere;max-width:190px}
html[data-input=touch][data-driving=true] #vehicle-brake{bottom:calc(var(--control-bottom) + 15px)}
html[data-input=touch][data-orientation=portrait] #vehicle-status{bottom:36px}

#sniper-hit[data-kill=true]{color:#ffda75;font-weight:800}
html[data-input=touch][data-mode=training][data-orientation=portrait] #app #notice{top:auto;height:auto}
