:root{--bg:#070b1a;--card:#0f1730;--line:#1f2b52;--ink:#e8eefc;--muted:#9fb0d6;--orange:#ff7a1a;--orange2:#f25c05;--cyan:#22d3ee;--red:#ff5d5d;--green:#3fc254;--hud:1}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--ink);font:15px/1.45 Inter,system-ui,sans-serif;user-select:none}
[hidden]{display:none!important}
#stage{position:fixed;inset:0}
#stage canvas.gl{display:block;width:100%;height:100%;cursor:crosshair}
#app{position:fixed;inset:0;z-index:20;opacity:0;transition:opacity .35s}
#app.in,#app:not([hidden]){opacity:1}
.logo{font-family:'Russo One',sans-serif;font-weight:400;font-size:22px;color:#fff;text-decoration:none;letter-spacing:.06em;margin:0}
.logo b{font-weight:400;color:var(--orange)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:10px 18px;font:700 15px Inter,system-ui,sans-serif;cursor:pointer;border:0;text-decoration:none;transition:transform .08s,filter .15s}
.btn:hover:not(:disabled){filter:brightness(1.12)}.btn:active:not(:disabled){transform:translateY(1px)}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.go{background:linear-gradient(180deg,#ff8a2a,var(--orange2));color:#fff;box-shadow:0 6px 22px rgba(242,92,5,.4)}
.btn.ghost{background:rgba(7,11,26,.5);color:var(--cyan);border:1px solid #2a4a6e}
.btn.sm{padding:7px 12px;font-size:13px}
.btn.huge{font:400 34px 'Russo One',sans-serif;letter-spacing:.08em;padding:16px 64px;border-radius:16px}
.muted{color:var(--muted)}
.err{color:var(--red);font-weight:600}
kbd{display:inline-block;min-width:22px;padding:1px 6px;margin-right:4px;border-radius:6px;background:#fff;color:#0b1226;font:800 12px Inter,sans-serif;text-align:center;box-shadow:0 2px 0 #9fb0d6}
.center-card{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center;padding:24px 16px;background:linear-gradient(180deg,rgba(7,11,26,.7),rgba(7,11,26,.94)),url(/assets/shots/hero.jpg) center/cover}
.center-card .logo{font-size:40px;text-shadow:0 4px 0 rgba(0,0,0,.4)}
.center-card p{margin:0;max-width:420px;color:#cdd8f0;font-weight:600}

/* the lobby has its own sheet: lobby.css */
body .vx-logout{top:13px;right:18px;height:46px;padding:0 16px;border:2px solid #d0473a;border-radius:12px;background:rgba(70,16,16,.85);font:800 13px Inter,system-ui,sans-serif;letter-spacing:.04em}
.hv-row button{width:30px;height:30px;border-radius:8px;border:1px solid #2a4a6e;background:#0f1730;color:#fff;font-weight:800;cursor:pointer}
@keyframes lb-stripes{to{background-position:28px 0,0 0}}
@keyframes lb-kb{from{transform:scale(1.12)}to{transform:scale(1)}}
@keyframes rs-in{from{transform:translateY(18px) scale(.96);opacity:0}to{transform:none;opacity:1}}

/* ---------- loading ---------- */
.loading{position:absolute;inset:0;overflow:hidden;background:var(--bg)}
.ld-bg{position:absolute;inset:0;background:url(/assets/shots/airship.jpg) center/cover;transform-origin:55% 60%;animation:lb-kb 20s ease-out forwards}
.ld-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,11,26,.55) 0%,rgba(7,11,26,.1) 30%,rgba(7,11,26,.55) 65%,rgba(7,11,26,.96) 100%)}
.ld-center{position:absolute;left:0;right:0;top:11%;padding:0 16px;text-align:center}
.loading .logo{font-size:clamp(40px,7vw,88px);text-shadow:0 5px 0 rgba(0,0,0,.4),0 0 40px rgba(0,0,0,.35)}
.ld-mode{display:inline-block;max-width:100%;margin:12px 0 0;padding:5px 14px;border-radius:99px;background:rgba(7,11,26,.72);border:2px solid rgba(255,255,255,.22);font:800 12px Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ld-foot{position:absolute;left:50%;bottom:7%;transform:translateX(-50%);width:min(760px,calc(100% - 32px))}
.ld-tip{display:flex;align-items:center;gap:10px;min-height:30px;margin:0 0 20px;font-weight:600;color:#e8eefc}
.ld-tip span{flex:none;padding:3px 10px;border-radius:8px;background:var(--cyan);color:#05202a;font:400 13px 'Russo One',sans-serif;letter-spacing:.08em;text-transform:uppercase}
.ld-tip em{min-width:0;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:opacity .25s,transform .25s}
.ld-tip em.out{opacity:0;transform:translateY(6px)}
.ld-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.ld-step{min-width:0;font:400 17px 'Russo One',sans-serif;letter-spacing:.04em;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ld-step.err{white-space:normal;color:var(--red)}
.ld-pct{flex:none;font:400 24px 'Russo One',sans-serif;color:#ffb15c}
.lbar{height:16px;border-radius:8px;background:rgba(5,9,22,.88);border:2px solid rgba(255,255,255,.2);overflow:hidden}
.lbar i{display:block;height:100%;width:0;background:repeating-linear-gradient(-45deg,rgba(255,255,255,.2) 0 10px,transparent 10px 20px),linear-gradient(90deg,var(--orange),#ffc14d);background-size:28px 28px,100% 100%;animation:lb-stripes .8s linear infinite;transition:width .3s}

/* ---------- results ---------- */
.results{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:72px 16px 20px;overflow-x:hidden;overflow-y:auto;backdrop-filter:blur(6px)}
.results.won{background:radial-gradient(70% 55% at 50% 25%,rgba(255,193,77,.25),transparent 70%),rgba(5,8,20,.74)}
.results.lost{background:radial-gradient(70% 55% at 50% 25%,rgba(255,77,77,.2),transparent 70%),rgba(5,8,20,.78)}
.rs-card{width:min(720px,100%);margin:auto;display:flex;flex-direction:column;gap:16px;animation:rs-in .45s cubic-bezier(.2,1.3,.4,1)}
.rs-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 18px;padding:16px 20px;border-radius:14px;border:3px solid;transform:skewX(-7deg)}
.rs-banner>*{transform:skewX(7deg)}
.won .rs-banner{background:linear-gradient(180deg,#ffd76a,#f0a020 60%,#c97a00);border-color:#ffeab0;box-shadow:0 8px 0 #7a4700,0 22px 50px rgba(255,180,40,.4)}
.lost .rs-banner{background:linear-gradient(180deg,#ff6e5e,#d93a3a 60%,#a51f2a);border-color:#ffb3a8;box-shadow:0 8px 0 #5c0d14,0 22px 50px rgba(220,50,50,.35)}
.rs-banner h1{margin:0;font:400 clamp(26px,7vw,56px)/1 'Russo One',sans-serif;letter-spacing:.06em;color:#fff;text-shadow:0 4px 0 rgba(0,0,0,.28);white-space:nowrap}
.rs-banner b{padding:4px 14px;border-radius:10px;background:rgba(0,0,0,.22);font:400 clamp(26px,7vw,56px)/1 'Russo One',sans-serif;color:#fff;text-shadow:0 4px 0 rgba(0,0,0,.28);white-space:nowrap}
.won .rs-banner h1,.won .rs-banner b{color:#fffbea;text-shadow:0 4px 0 #8a5200}
.rs-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.rs-tile{min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 8px 12px;border-radius:14px;background:linear-gradient(180deg,#17244c,#0c142e);border:2px solid #24345f;box-shadow:0 5px 0 #060a18;animation:rs-in .4s both}
.rs-tile:nth-child(2){animation-delay:.07s}.rs-tile:nth-child(3){animation-delay:.14s}.rs-tile:nth-child(4){animation-delay:.21s}
.rs-tile i{width:34px;height:34px;margin-bottom:6px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(34,211,238,.14);border:1px solid rgba(34,211,238,.35);color:var(--cyan);font:400 18px/1 'Russo One',sans-serif;font-style:normal}
.rs-tile b{max-width:100%;font:400 30px/1.1 'Russo One',sans-serif;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-tile span{max-width:100%;font:800 11px Inter,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rs-reward{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;column-gap:10px;padding:14px 18px;border-radius:14px;border:2px solid;text-align:center;animation:rs-in .4s .3s both}
.rs-reward small{flex-basis:100%;font:800 11px Inter,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.rs-reward p{flex-basis:100%;margin:4px 0 0;font-weight:600}
.rs-reward.paid{background:radial-gradient(60% 120% at 50% 0%,rgba(255,140,40,.3),transparent 70%),linear-gradient(180deg,#1d1a2e,#120f1e);border-color:#ff9a3c;box-shadow:0 0 0 1px rgba(255,154,60,.2),0 12px 34px rgba(255,122,26,.25)}
.rs-reward.paid small{color:#ffb15c}
.rs-reward.paid b{font:400 clamp(40px,9vw,58px)/1 'Russo One',sans-serif;color:#ffb15c;text-shadow:0 4px 0 rgba(120,40,0,.65),0 0 30px rgba(255,140,40,.45)}
.rs-reward.paid em{font:400 22px 'Russo One',sans-serif;font-style:normal;color:#fff}
.rs-reward.paid p{font-size:13px;color:#cdd8f0}
.rs-reward.none{background:rgba(12,19,42,.88);border-color:#24345f}
.rs-reward.none small{color:var(--muted)}
.rs-reward.none p{font-size:15px;color:#e8eefc}
.rs-reward .err{color:var(--red)}
.rs-row{display:flex;gap:12px}
.rs-row .btn{flex:1;min-width:0;height:60px;padding:0 12px;border-radius:14px;font:400 22px 'Russo One',sans-serif;letter-spacing:.06em;white-space:nowrap}
.rs-row .btn.ghost{background:linear-gradient(180deg,#1d2c58,#101a38);color:#fff;border:2px solid #2f4677;box-shadow:0 5px 0 #070c1d}
.rs-row .btn.go{flex:1.5;border:3px solid #ffc27a;box-shadow:0 5px 0 #a33a00,0 12px 26px rgba(242,92,5,.4);text-shadow:0 2px 0 rgba(120,40,0,.5)}
.rs-row .btn:active:not(:disabled){transform:translateY(3px)}
.rs-card>.err{margin:0;text-align:center}
@media (max-width:560px){.rs-tiles{grid-template-columns:repeat(2,1fr)}.rs-row .btn{font-size:18px}}

/* ---------- in-match HUD ----------
   Blocks are laid out in design pixels and scaled as a whole with --hud. Panels use the pixel-stepped corners (--step): the outer box is the
   edge colour, ::before (or a child div) is the fill, so the border follows the steps. */
.hud{--step-xs:polygon(0 2px,1px 2px,1px 1px,2px 1px,2px 0,calc(100% - 2px) 0,calc(100% - 2px) 1px,calc(100% - 1px) 1px,calc(100% - 1px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 1px) calc(100% - 2px),calc(100% - 1px) calc(100% - 1px),calc(100% - 2px) calc(100% - 1px),calc(100% - 2px) 100%,2px 100%,2px calc(100% - 1px),1px calc(100% - 1px),1px calc(100% - 2px),0 calc(100% - 2px));--step-s:polygon(0 4px,2px 4px,2px 2px,4px 2px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 2px,calc(100% - 2px) 2px,calc(100% - 2px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 2px) calc(100% - 4px),calc(100% - 2px) calc(100% - 2px),calc(100% - 4px) calc(100% - 2px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 2px),2px calc(100% - 2px),2px calc(100% - 4px),0 calc(100% - 4px));--step:polygon(0 6px,3px 6px,3px 3px,6px 3px,6px 0,calc(100% - 6px) 0,calc(100% - 6px) 3px,calc(100% - 3px) 3px,calc(100% - 3px) 6px,100% 6px,100% calc(100% - 6px),calc(100% - 3px) calc(100% - 6px),calc(100% - 3px) calc(100% - 3px),calc(100% - 6px) calc(100% - 3px),calc(100% - 6px) 100%,6px 100%,6px calc(100% - 3px),3px calc(100% - 3px),3px calc(100% - 6px),0 calc(100% - 6px));--step-l:polygon(0 8px,4px 8px,4px 4px,8px 4px,8px 0,calc(100% - 8px) 0,calc(100% - 8px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 8px,100% 8px,100% calc(100% - 8px),calc(100% - 4px) calc(100% - 8px),calc(100% - 4px) calc(100% - 4px),calc(100% - 8px) calc(100% - 4px),calc(100% - 8px) 100%,8px 100%,8px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 8px),0 calc(100% - 8px));--panel:rgba(9,14,32,.84);--edge:rgba(255,255,255,.2);--hp:#49dd6b;--hp2:#23a648;--sh:#46c8ff;--sh2:#1f7fe0;--stormc:#a877ff;position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:10;font-family:Inter,system-ui,sans-serif;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.5)}
.hud b{font-weight:400}
.hud img{display:block;object-fit:contain}
.hud kbd{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin:0;padding:0 5px;border-radius:0;clip-path:var(--step-s);background:#eef3ff;color:#0b1226;font:800 11px/1 Inter,sans-serif;text-shadow:none;box-shadow:none;white-space:nowrap}
.hv-top,.hv-tr,.hv-feed,.hv-vitals,.hv-dock,.hv-buildbox,.hv-stack,.hv-cross,.hv-label,.hv-prompt,.hv-dirs{transition:opacity .2s}
.hud.over>.hv-top,.hud.over>.hv-tr,.hud.over>.hv-feed,.hud.over>.hv-vitals,.hud.over>.hv-dock,.hud.over>.hv-buildbox,.hud.over>.hv-stack,.hud.over>.hv-cross,.hud.over>.hv-label,.hud.over>.hv-prompt,.hud.over>.hv-progress,.hud.over>.hv-dirs{opacity:0}
.hud::before{content:'';position:absolute;inset:0;opacity:0;transition:opacity .4s;background:radial-gradient(90% 60% at 50% 36%,rgba(5,8,20,.56),rgba(5,8,20,.2) 70%,rgba(5,8,20,.5))}
.hud.over::before{opacity:1}
.hud:not([data-state=ground])>.hv-dock,.hud:not([data-state=ground])>.hv-buildbox{opacity:0}
.hud[data-state=bus]>.hv-vitals{opacity:0}

/* top: chips, compass, storm */
.hv-top{position:absolute;left:50%;top:10px;width:max-content;display:flex;align-items:flex-start;gap:6px;transform:translateX(-50%) scale(var(--hud));transform-origin:50% 0}
.hv-chip{position:relative;isolation:isolate;flex:none;display:flex;align-items:center;gap:6px;height:38px;padding:0 11px 0 7px;background:var(--edge);clip-path:var(--step)}
.hv-chip::before{content:'';position:absolute;inset:1.5px;z-index:-1;background:var(--panel);clip-path:var(--step)}
.hv-chip img{width:24px;height:24px;flex:none}
.hv-chip b{min-width:24px;font:400 21px/1 'Russo One',sans-serif;text-align:right;font-variant-numeric:tabular-nums}
.hv-storm b{min-width:50px;text-align:center}
.hv-storm.soon{--edge:rgba(255,190,90,.8)}
.hv-storm.closing{--edge:var(--stormc)}
.hv-storm.closing::before{background:rgba(58,22,110,.9)}
.hv-storm.out{--edge:#ff5d5d}
.hv-storm.out::before{background:rgba(112,18,34,.9)}
.hv-compass{position:relative;width:420px;height:38px;flex:none;margin-bottom:18px}
.hv-cview{position:absolute;inset:0;overflow:hidden;background:var(--panel);clip-path:var(--step);-webkit-mask:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);mask:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.hv-cstrip{position:absolute;left:0;top:0;height:100%;width:1620px;will-change:transform}
.hv-cstrip>*{position:absolute;font-style:normal;text-shadow:none}
.hv-cstrip i{top:13px;width:2px;height:12px;margin-left:-1px;background:rgba(255,255,255,.34)}
.hv-cstrip span{top:0;width:44px;margin-left:-22px;text-align:center;line-height:38px}
.hv-cstrip .cd{font:400 21px/38px 'Russo One',sans-serif;color:#fff}
.hv-cstrip .cd.n{color:var(--orange)}
.hv-cstrip .ic{font:400 14px/38px 'Russo One',sans-serif;color:#cdd8f0}
.hv-cstrip .dg{font:700 12px/38px Inter,sans-serif;color:rgba(205,216,240,.72)}
.hv-cptr{position:absolute;left:50%;top:-1px;width:12px;height:7px;margin-left:-6px;background:var(--orange);clip-path:polygon(0 0,100% 0,50% 100%)}
.hv-cdeg{position:absolute;left:50%;top:39px;min-width:40px;height:17px;padding:0 6px;transform:translateX(-50%);background:var(--panel);clip-path:var(--step-s);font:400 12px/18px 'Russo One',sans-serif;text-align:center;color:#fff;font-variant-numeric:tabular-nums}
.hv-csafe{position:absolute;left:50%;top:32px;width:0;height:0;will-change:transform}
.hv-csafe i{position:absolute;left:-6px;top:-6px;width:12px;height:12px;background:var(--cyan);transform:rotate(45deg);box-shadow:0 0 0 2px #06202c}
.hv-csafe.edge i{animation:hv-blink .8s steps(2,jump-none) infinite}
.hv-cdist{position:absolute;left:calc(50% + 26px);top:39px;height:17px;padding:0 6px;background:rgba(6,32,44,.92);clip-path:var(--step-s);color:var(--cyan);font:400 12px/18px 'Russo One',sans-serif;white-space:nowrap}
@keyframes hv-blink{from{opacity:1}to{opacity:.35}}

/* announcements: one column under the compass, so nothing lands on top of anything else */
.hv-stack{position:absolute;left:50%;top:calc(76px*var(--hud));width:min(640px,calc(100vw/var(--hud) - 32px));display:flex;flex-direction:column;align-items:center;gap:8px;transform:translateX(-50%) scale(var(--hud));transform-origin:50% 0}
.hv-banner{display:flex;flex-direction:column;align-items:center;gap:5px;max-width:100%}
.hv-banner b{max-width:100%;font:400 42px/1.08 'Russo One',sans-serif;letter-spacing:.07em;color:#fff;text-shadow:0 3px 0 rgba(7,11,26,.5),0 0 18px rgba(7,11,26,.4);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-banner i{display:block;width:100%;height:4px;background:linear-gradient(90deg,transparent,var(--orange) 22%,var(--orange) 78%,transparent);animation:hv-sweep .5s cubic-bezier(.2,.8,.3,1) both}
@keyframes hv-sweep{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.hv-elims{display:contents}
.hv-elim{--edge:var(--orange);position:relative;max-width:100%;padding:1.5px;background:var(--edge);clip-path:var(--step);animation:hv-elim .24s cubic-bezier(.2,1.4,.4,1)}
@keyframes hv-elim{from{transform:scale(1.3);opacity:0}to{transform:none;opacity:1}}
.hv-elim>div{display:flex;align-items:center;gap:9px;height:43px;padding:0 6px 0 9px;background:linear-gradient(90deg,rgba(88,32,6,.94),rgba(9,14,32,.94) 62%);clip-path:var(--step)}
.hv-elim img{flex:none;width:28px;height:28px}
.hv-elim span{flex:none;font:400 15px/1 'Russo One',sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#ffc089}
.hv-elim b{min-width:0;font:400 19px/1.3 'Russo One',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-elim em{flex:none;min-width:30px;height:30px;padding:0 6px;background:var(--orange);clip-path:var(--step-s);font:400 19px/31px 'Russo One',sans-serif;font-style:normal;color:#fff;text-align:center;text-shadow:0 1px 0 rgba(120,40,0,.6)}
.hv-toasts{display:flex;flex-direction:column;align-items:center;gap:5px;max-width:100%}
.hv-toast{display:flex;align-items:center;gap:7px;max-width:100%;height:32px;padding:0 13px;background:var(--panel);clip-path:var(--step-s);font:700 14px/1 Inter,sans-serif;animation:hv-drop .2s ease-out}
.hv-toast span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
.hv-toast img{flex:none;width:21px;height:21px;margin-left:-5px}
.hv-toast.storm{background:rgba(70,26,132,.92)}
@keyframes hv-drop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* kill feed */
.hv-feed{position:absolute;left:16px;top:12px;width:350px;display:flex;flex-direction:column;align-items:flex-start;gap:3px;transform:scale(var(--hud));transform-origin:0 0}
.hv-kf{max-width:100%;animation:hv-feed .18s ease-out}
.hv-kf>div{display:flex;align-items:center;gap:7px;height:28px;max-width:100%;padding:0 10px;background:rgba(9,14,32,.72);clip-path:var(--step-s)}
.hv-kf b{min-width:0;max-width:136px;font:700 14px/1.5 Inter,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#e6ecfb}
.hv-kf b.me{font-weight:800;color:#ffb15c}
.hv-kf img{flex:none;width:40px;height:22px;object-fit:cover;filter:brightness(1.9)}
.hud .hv-kf img.g{width:22px;object-fit:contain;filter:none}
.hv-kf.mine>div{background:linear-gradient(90deg,rgba(255,122,26,.62),rgba(9,14,32,.82))}
.hv-kf.dead>div{background:linear-gradient(90deg,rgba(224,48,48,.66),rgba(9,14,32,.82))}
.hv-kf.dead b.me{color:#fff}
@keyframes hv-feed{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:none}}

/* minimap */
.hv-tr{position:absolute;right:16px;top:12px;transform:scale(var(--hud));transform-origin:100% 0}
.hv-miniframe{position:relative;width:204px;height:204px;padding:2px;background:rgba(255,255,255,.72);clip-path:var(--step-l)}
.hv-mini{display:block;width:200px;height:200px;clip-path:var(--step-l)}
.hv-miniframe::after{content:'';position:absolute;inset:2px;box-shadow:inset 0 0 22px rgba(7,11,26,.5);clip-path:var(--step-l)}
.hv-north{position:absolute;left:50%;top:2px;z-index:1;width:22px;height:19px;margin-left:-11px;background:var(--orange);clip-path:polygon(0 0,100% 0,100% 62%,74% 100%,26% 100%,0 62%);font:400 13px/18px 'Russo One',sans-serif;text-align:center;color:#fff;text-shadow:0 1px 0 rgba(120,40,0,.6)}
.hv-loc{position:absolute;left:8px;right:8px;bottom:7px;z-index:1;font:400 13px/1.7 'Russo One',sans-serif;letter-spacing:.05em;text-transform:uppercase;text-align:center;color:#fff;background:rgba(7,11,26,.72);clip-path:var(--step-s);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* vitals */
.hv-vitals{position:absolute;left:16px;bottom:16px;width:326px;display:flex;flex-direction:column;gap:5px;padding:7px 8px;background:rgba(9,14,32,.62);clip-path:var(--step-l);transform:scale(var(--hud));transform-origin:0 100%}
.hv-vrow{display:flex;align-items:center;gap:7px}
.hv-vrow img{flex:none;width:30px;height:30px;margin:-3px 0}
.hv-hp img{width:34px;height:34px;margin:-4px -2px}
.hv-vrow>b{flex:none;width:48px;font:400 22px/1 'Russo One',sans-serif;text-align:right;font-variant-numeric:tabular-nums}
.hv-sh>b{font-size:18px;color:#bfeeff}
.hv-bar{position:relative;flex:1;min-width:0;height:22px;overflow:hidden;background:rgba(3,6,16,.86);clip-path:var(--step-s)}
.hv-bar i,.hv-bar u{position:absolute;inset:0;transform-origin:0 50%;text-decoration:none}
.hv-bar .fl{background:linear-gradient(180deg,#8ff5a2 0,var(--hp) 28%,var(--hp2) 100%);transform:scaleX(1);transition:transform .16s ease-out}
.hv-bar .gh{background:linear-gradient(180deg,#ffd9c9,#ff6d4a);transition:transform .42s ease-in .3s}
.hv-bar.up .gh{transition:none}
.hv-bar .pv{opacity:0;background:rgba(255,255,255,.34);transition:transform .15s}
.hv-bar.pv-on .pv{opacity:1;animation:hv-pv .8s ease-in-out infinite alternate}
@keyframes hv-pv{from{opacity:.35}to{opacity:.8}}
.hv-bar u{opacity:0;background:#fff}
.hv-sh .hv-bar{height:13px;-webkit-mask:linear-gradient(90deg,#000 calc(25% - 1.5px),transparent 0 calc(25% + 1.5px),#000 0 calc(50% - 1.5px),transparent 0 calc(50% + 1.5px),#000 0 calc(75% - 1.5px),transparent 0 calc(75% + 1.5px),#000 0);mask:linear-gradient(90deg,#000 calc(25% - 1.5px),transparent 0 calc(25% + 1.5px),#000 0 calc(50% - 1.5px),transparent 0 calc(50% + 1.5px),#000 0 calc(75% - 1.5px),transparent 0 calc(75% + 1.5px),#000 0)}
.hv-sh .fl{background:linear-gradient(180deg,#b5efff 0,var(--sh) 34%,var(--sh2) 100%)}
.hv-sh .gh{background:linear-gradient(180deg,#fff,#a9e4ff)}
.hv-sh.none>b{color:rgba(191,238,255,.5)}
.hv-sh.none img{opacity:.55}
.hv-hp.mid .fl{background:linear-gradient(180deg,#ffe68f,#f5b52e 30%,#d9860f)}
.hv-hp.low .fl{background:linear-gradient(180deg,#ff9a8a,#ff4a3a 30%,#c81e28)}
.hv-hp.low>b{color:#ff7a6a;animation:hv-beat .9s ease-in-out infinite}
@keyframes hv-beat{50%{transform:scale(1.13)}}

/* hotbar */
.hv-dock{position:absolute;left:50%;bottom:16px;width:max-content;transform:translateX(-50%) scale(var(--hud));transform-origin:50% 100%}
.hv-hot{display:flex;gap:6px}
.hv-slot{--rc:#5a6b94;position:relative;width:66px;height:66px;flex:none;transition:transform .14s cubic-bezier(.2,1.6,.4,1)}
.hv-sb{position:absolute;inset:0;padding:2px;background:color-mix(in srgb,var(--rc) 78%,#fff);clip-path:var(--step);transition:background-color .12s}
.hv-sb::before{content:'';position:absolute;inset:2px;background:linear-gradient(180deg,rgba(9,14,32,.9) 0,color-mix(in srgb,var(--rc) 22%,rgba(9,14,32,.9)) 100%);clip-path:var(--step)}
.hv-slot.rar .hv-sb::before{background:radial-gradient(72% 58% at 50% 48%,color-mix(in srgb,var(--rc) 84%,#fff),color-mix(in srgb,var(--rc) 44%,#0b1226) 100%)}
.hv-sb::after{content:'';position:absolute;left:2px;right:2px;bottom:2px;height:4px;background:var(--rc);clip-path:polygon(4px 0,calc(100% - 4px) 0,calc(100% - 4px) 1px,100% 1px,100% 100%,0 100%,0 1px,4px 1px);opacity:0}
.hv-slot.rar .hv-sb::after{opacity:1}
.hv-sb img{position:absolute;left:7%;top:7%;width:86%;height:86%;filter:drop-shadow(0 2px 1px rgba(0,0,0,.55));transition:filter .15s}
.hv-slot kbd{position:absolute;left:3px;top:3px;min-width:18px;max-width:calc(100% - 8px);height:17px;padding:0 4px;overflow:hidden;background:rgba(7,11,26,.74);color:#dfe7fa;font-size:10.5px;text-overflow:ellipsis}
.hv-slot small{position:absolute;z-index:1;right:6px;bottom:6px;font:400 15px/1 'Russo One',sans-serif;color:#fff;text-shadow:0 1px 0 #000,0 0 3px #000}
.hv-slot small.zero{color:#ff7a6a}
.hv-slot.empty .hv-sb{background:rgba(255,255,255,.14)}
.hv-slot.empty .hv-sb::before{background:rgba(9,14,32,.5)}
.hv-slot.empty kbd{background:transparent;color:rgba(255,255,255,.55)}
.hv-slot.dim img{filter:grayscale(1) brightness(.55)}
.hv-slot.dim .hv-sb::before{background:rgba(9,14,32,.82)}
.hv-slot.sel{transform:translateY(-9px) scale(1.09);z-index:1}
.hv-slot.sel .hv-sb{background:#fff}
.hv-slot.sel::after{content:'';position:absolute;left:18px;right:18px;bottom:-9px;height:4px;background:var(--orange);clip-path:var(--step-s)}
.hv-hot.building .hv-slot{opacity:.62}
.hv-slot>.hv-sb>i{position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-25px 0 0 -20px;opacity:0;border-radius:50%;background:conic-gradient(#fff calc(var(--p,0)*1turn),rgba(255,255,255,.2) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 5px),#000 calc(100% - 4.5px))}
.hv-slot.busy>.hv-sb>i{opacity:1}
.hv-slot.busy img{filter:brightness(.6)}
.hv-wname{position:absolute;left:50%;bottom:calc(100% + 16px);width:max-content;max-width:100%;margin-left:0;padding:0 11px;translate:-50% 0;opacity:0;background:rgba(9,14,32,.86);clip-path:var(--step-s);font:400 15px/26px 'Russo One',sans-serif;letter-spacing:.03em;text-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-ammo{position:absolute;left:calc(100% + 10px);bottom:0;height:66px;display:flex;align-items:center;gap:6px;padding:0 13px 0 8px;background:rgba(9,14,32,.62);clip-path:var(--step);white-space:nowrap;text-shadow:none}
.hv-ammo img{flex:none;width:36px;height:36px}
.hv-ammo b{font:400 40px/1 'Russo One',sans-serif;font-variant-numeric:tabular-nums}
.hv-ammo span{align-self:flex-end;margin-bottom:15px;font:400 16px/1 'Russo One',sans-serif;color:#cdd8f0}
.hv-ammo em{font-style:normal}
.hv-ammo em:empty{display:none}
.hv-ammo.cons span{max-width:120px;font:700 14px/1.3 Inter,sans-serif;overflow:hidden;text-overflow:ellipsis}
.hv-ammo.low b{color:#ffb15c}
.hv-ammo.out b{color:#ff6a5a}

/* pickup cards */
.hv-cards{position:absolute;left:calc(100% + 10px);bottom:74px;width:300px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.hv-pk{--rc:#7f92bd;position:relative;max-width:100%;padding:0 1.5px 0 5px;background:var(--rc);clip-path:var(--step-s);animation:hv-card .17s cubic-bezier(.2,1.2,.4,1)}
.hv-pk>div{display:flex;align-items:center;gap:7px;height:38px;padding:0 10px 0 4px;background:rgba(9,14,32,.9);clip-path:polygon(0 0,calc(100% - 3px) 0,calc(100% - 3px) 2px,100% 2px,100% calc(100% - 2px),calc(100% - 3px) calc(100% - 2px),calc(100% - 3px) 100%,0 100%)}
.hv-pk.rar>div{background:linear-gradient(90deg,color-mix(in srgb,var(--rc) 40%,rgba(9,14,32,.92)),rgba(9,14,32,.92) 72%)}
.hv-pk img{flex:none;width:34px;height:34px}
.hud .hv-pk.rar img{width:54px;object-fit:cover}
.hv-pk span{min-width:0;font:700 14px/1.4 Inter,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-pk.rar span{color:color-mix(in srgb,var(--rc) 72%,#fff)}
.hv-pk b{flex:none;font:400 15px/1 'Russo One',sans-serif;color:#7dff8a}
.hv-pk b:empty{display:none}
@keyframes hv-card{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:none}}

/* build bar and materials */
.hv-buildbox{position:absolute;right:16px;bottom:16px;width:252px;display:flex;flex-direction:column;gap:5px;transform:scale(var(--hud));transform-origin:100% 100%}
.hv-bhint{display:flex;justify-content:space-between;align-items:center;gap:8px;height:22px;font:700 13px/1 Inter,sans-serif;text-shadow:0 1px 2px rgba(7,11,26,.9)}
.hv-bhint:empty{visibility:hidden}
.hv-bhint span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.hv-mats{display:flex;align-items:center;gap:4px}
.hv-mat{--edge:rgba(255,255,255,.16);position:relative;flex:1;min-width:0;display:flex;align-items:center;gap:3px;height:34px;padding:0 7px 0 3px;background:var(--edge);clip-path:var(--step-s);transition:background-color .12s}
.hv-mat::before{content:'';position:absolute;inset:1.5px;background:var(--panel);clip-path:var(--step-s)}
.hv-mat>*{position:relative}
.hv-mat.sel{--edge:var(--cyan)}
.hv-mat.sel::before{background:linear-gradient(180deg,rgba(21,58,84,.95),rgba(9,14,32,.92))}
.hv-mat img{flex:none;width:28px;height:28px}
.hv-mat b{flex:1;min-width:0;font:400 16px/1 'Russo One',sans-serif;text-align:right;font-variant-numeric:tabular-nums}
.hv-mat.none img{opacity:.5}
.hv-mat.none b{color:#9fb0d6}
.hv-mat em{position:absolute;right:4px;top:-1px;opacity:0;font:400 14px/1 'Russo One',sans-serif;font-style:normal;color:#7dff8a;text-shadow:0 1px 0 #000}
.hv-mats .hv-matkey{flex:none;height:24px;min-width:24px}
.hv-build{display:flex;gap:4px}
.hv-bp{position:relative;flex:1;min-width:0;height:60px;padding:1.5px;background:var(--edge);clip-path:var(--step);transition:transform .13s cubic-bezier(.2,1.6,.4,1),background-color .1s}
.hv-bp::before{content:'';position:absolute;inset:1.5px;background:radial-gradient(68% 62% at 50% 56%,#46598a,rgba(9,14,32,.9));clip-path:var(--step)}
.hv-bp img{position:absolute;left:12%;top:8%;width:76%;height:76%;filter:brightness(1.3) drop-shadow(0 2px 1px rgba(0,0,0,.5))}
.hv-bp kbd{position:absolute;left:3px;top:3px;min-width:18px;max-width:calc(100% - 8px);height:17px;padding:0 4px;overflow:hidden;background:rgba(7,11,26,.74);color:#dfe7fa;font-size:10.5px;text-overflow:ellipsis}
.hv-bp.on{background:var(--orange);transform:translateY(-4px)}
.hv-bp.on::before{background:radial-gradient(68% 62% at 50% 56%,#ff9a4a,#7a3208)}
.hv-build.poor img{filter:grayscale(1) brightness(.6)}

/* crosshair and feedback */
.hv-cross{--s:8px;position:absolute;left:50%;top:50%;width:0;height:0}
.hv-cross>i{position:absolute;background:#fff;box-shadow:0 0 0 1px rgba(7,11,26,.42);transition:background-color .09s,opacity .1s}
.hv-cross>i:nth-child(1){left:-1px;top:-9px;width:2px;height:9px;transform:translateY(calc(-1*var(--s)))}
.hv-cross>i:nth-child(2){left:-1px;top:0;width:2px;height:9px;transform:translateY(var(--s))}
.hv-cross>i:nth-child(3){left:-9px;top:-1px;width:9px;height:2px;transform:translateX(calc(-1*var(--s)))}
.hv-cross>i:nth-child(4){left:0;top:-1px;width:9px;height:2px;transform:translateX(var(--s))}
.hv-cross.melee>i,.hv-cross.circle>i,.hv-cross.dotonly>i{opacity:0}
.hv-dot{position:absolute;left:-2px;top:-2px;width:4px;height:4px;background:#fff;box-shadow:0 0 0 1px rgba(7,11,26,.42);transition:transform .09s,background-color .09s}
.hv-cross.melee.reach .hv-dot{background:#ffd23f;transform:scale(1.8)}
.hv-cross.circle::before{content:'';position:absolute;left:0;top:0;width:calc(2*var(--s) + 8px);height:calc(2*var(--s) + 8px);transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px rgba(7,11,26,.3),inset 0 0 0 1px rgba(7,11,26,.3);transition:border-color .09s}
.hv-cross.enemy>i,.hv-cross.enemy .hv-dot{background:#ff4a3a}
.hv-cross.enemy.circle::before{border-color:#ff4a3a}
.hv-hit{position:absolute;left:0;top:0;width:0;height:0;opacity:0}
.hv-hit i{position:absolute;left:-1px;top:0;width:2px;height:9px;background:#fff;box-shadow:0 0 0 1px rgba(7,11,26,.5);transform-origin:1px 0}
.hv-hit i:nth-child(1){transform:rotate(45deg) translateY(9px)}
.hv-hit i:nth-child(2){transform:rotate(135deg) translateY(9px)}
.hv-hit i:nth-child(3){transform:rotate(225deg) translateY(9px)}
.hv-hit i:nth-child(4){transform:rotate(315deg) translateY(9px)}
.hv-hit.head i{height:11px;background:#ffd23f}
.hv-hit.kill i{left:-1.5px;width:3px;height:15px;background:#ff3a2a;transform-origin:1.5px 0}
.hv-cross.crack::after{content:'';position:absolute;left:-26px;top:-26px;width:52px;height:52px;border:2px solid var(--sh);border-radius:50%;animation:hv-crack .32s ease-out forwards}
@keyframes hv-crack{from{transform:scale(.45);opacity:1}to{transform:scale(1.3);opacity:0}}
.hv-block{position:absolute;left:0;top:0;width:0;height:0}
.hv-block::before,.hv-block::after{content:'';position:absolute;left:-7px;top:-1px;width:14px;height:2px;background:#ff6a4a;box-shadow:0 0 0 1px rgba(7,11,26,.4);transform:rotate(45deg)}
.hv-block::after{transform:rotate(-45deg)}
.hv-dirs{position:absolute;left:50%;top:50%;width:0;height:0}
.hv-dir{position:absolute;left:-150px;top:-150px;width:300px;height:300px;border-radius:50%;background:conic-gradient(from -30deg,rgba(255,56,44,0),rgba(255,56,44,.95) 18deg 42deg,rgba(255,56,44,0) 60deg,transparent 0);-webkit-mask:radial-gradient(closest-side,transparent calc(100% - 13px),#000 calc(100% - 12px) calc(100% - 2px),transparent);mask:radial-gradient(closest-side,transparent calc(100% - 13px),#000 calc(100% - 12px) calc(100% - 2px),transparent)}
.hv-progress{--p:0;position:absolute;left:50%;top:50%;width:0;height:0}
.hv-pring{position:absolute;left:-29px;top:-29px;width:58px;height:58px;border-radius:50%;background:conic-gradient(#fff calc(var(--p)*1turn),rgba(255,255,255,.2) 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 4px),#000 calc(100% - 3.5px))}
.hv-progress b{position:absolute;left:0;top:38px;transform:translateX(-50%);font:400 15px/1 'Russo One',sans-serif;white-space:nowrap;text-shadow:0 1px 2px rgba(7,11,26,.9)}
.hv-piece{position:absolute;left:50%;top:calc(50% + 34px);width:80px;height:6px;margin-left:-40px;background:rgba(3,6,16,.75);clip-path:var(--step-xs)}
.hv-piece i{position:absolute;inset:0;background:var(--cyan);transform-origin:0 50%;transition:transform .1s}
.hv-dmg{position:absolute;inset:0;overflow:hidden}
.hv-num{position:absolute;left:0;top:0;font:400 calc(25px*var(--hud))/1 'Russo One',sans-serif;color:#fff;text-shadow:0 2px 0 rgba(7,11,26,.9),0 0 5px rgba(7,11,26,.7);will-change:transform,opacity}
.hv-num.shield{color:#6edcff;text-shadow:0 2px 0 #06304e,0 0 5px rgba(7,11,26,.7)}
.hv-num.head{color:#ffd23f;font-size:calc(33px*var(--hud));text-shadow:0 2px 0 #7a3c00,0 0 8px rgba(255,140,30,.65)}
.hv-hurt,.hv-stormfx,.hv-lowhp,.hv-smoke{position:absolute;inset:0}
.hv-hurt{opacity:0;background:radial-gradient(ellipse at center,transparent 56%,rgba(224,24,24,.52))}
.hv-hurt.storm{background:radial-gradient(ellipse at center,transparent 58%,rgba(140,50,230,.46))}
.hv-stormfx{opacity:0;visibility:hidden;transition:opacity .5s,visibility .5s;background:radial-gradient(ellipse at center,rgba(104,30,180,.06) 30%,rgba(104,30,180,.42))}
.hv-stormfx.on{opacity:1;visibility:visible}
.hv-lowhp{opacity:0;visibility:hidden;transition:opacity .4s,visibility .4s;background:radial-gradient(ellipse at center,transparent 50%,rgba(190,0,10,.5))}
.hv-lowhp.on{opacity:1;visibility:visible;animation:hv-low 1s ease-in-out infinite alternate}
@keyframes hv-low{from{opacity:.6}to{opacity:1}}
.hv-smoke{background:#d4d8dc;opacity:0}
.hv-scope{position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,transparent 0 34vh,#03060f 34.2vh)}
.hv-scope-lens{position:absolute;left:50%;top:50%;width:68vh;height:68vh;transform:translate(-50%,-50%);border-radius:50%;box-shadow:inset 0 0 44px rgba(3,6,15,.7),0 0 0 2px rgba(255,255,255,.14)}
.hv-scope-lens::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:linear-gradient(90deg,#000 0 42%,transparent 42% 58%,#000 58%)}
.hv-scope-lens::after{content:'';position:absolute;top:0;bottom:0;left:50%;width:1px;background:linear-gradient(180deg,#000 0 42%,transparent 42% 58%,#000 58%)}
.hv-range{position:absolute;left:calc(50% + 12px);top:calc(50% + 10px);font:400 14px 'Russo One',sans-serif;color:#fff;text-shadow:0 0 3px #000}

/* what E does: the plate in the world, or the same plate centered as the fallback */
.hv-label{position:absolute;left:0;top:0;width:0;height:0;will-change:transform}
.hv-label .hv-plate{position:absolute;left:0;bottom:9px;transform:translateX(-50%) scale(var(--hud));transform-origin:50% 100%;animation:hv-plate .13s ease-out}
.hv-label::after{content:'';position:absolute;left:-1px;bottom:0;width:2px;height:9px;background:rgba(255,255,255,.75)}
.hv-prompt{position:absolute;left:50%;top:61%;width:max-content;transform:translateX(-50%) scale(var(--hud));transform-origin:50% 0;max-width:calc(100vw/var(--hud) - 24px)}
@keyframes hv-plate{from{opacity:0;margin-bottom:-6px}to{opacity:1;margin-bottom:0}}
.hv-plate{--rc:rgba(255,255,255,.3);max-width:380px;width:max-content;padding:1.5px;background:var(--rc);clip-path:var(--step)}
.hv-plate>div{display:flex;align-items:center;gap:8px;min-width:0;height:36px;padding:0 12px 0 7px;background:rgba(9,14,32,.92);clip-path:var(--step)}
.hv-plate.tint>div{background:linear-gradient(90deg,color-mix(in srgb,var(--rc) 22%,rgba(9,14,32,.94)),rgba(9,14,32,.94) 60%)}
.hv-plate b{min-width:0;font:700 15px/1.4 Inter,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-plate.tint b{color:color-mix(in srgb,var(--rc) 74%,#fff)}
.hv-plate small{flex:none;font:800 11px/1 Inter,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#b9c6e4}
.hv-plate kbd{flex:none;height:22px;min-width:22px}
.hv-hold{--p:0;position:relative;flex:none;width:30px;height:30px;display:flex;align-items:center;justify-content:center;margin-left:-2px;border-radius:50%;background:conic-gradient(#ffd23f calc(var(--p)*1turn),rgba(255,255,255,.2) 0)}
.hv-hold kbd{height:20px;min-width:20px}
.hv-center-msg{position:absolute;left:0;right:0;top:24%;display:flex;flex-direction:column;align-items:center;transform:scale(var(--hud));transform-origin:50% 0;text-align:center}
.hv-jump{padding:2px;background:var(--orange);clip-path:var(--step);animation:hv-jump 1.3s ease-in-out infinite alternate}
.hv-jump>div{display:flex;align-items:center;gap:10px;height:46px;padding:0 18px 0 11px;background:rgba(9,14,32,.92);clip-path:var(--step);font:400 20px/1 'Russo One',sans-serif;white-space:nowrap}
.hv-jump kbd{height:26px;min-width:26px;padding:0 8px;font-size:13px}
@keyframes hv-jump{to{transform:translateY(-4px)}}

/* end of match */
.hv-end{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;animation:hv-end .5s cubic-bezier(.2,1.4,.4,1)}
@keyframes hv-end{from{transform:scale(1.7);opacity:0}to{transform:none;opacity:1}}
.hv-end>b{font:400 92px/1 'Russo One',sans-serif;letter-spacing:.05em;white-space:nowrap}
.hv-end p{margin:-2px 0 2px;max-width:min(560px,calc(100vw/var(--hud) - 32px));font:700 16px/1.4 Inter,sans-serif;color:#dfe7fa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-end p em{font-style:normal;color:#ff9c8c}
.hv-place{min-width:88px;height:48px;padding:0 16px;font:400 32px/50px 'Russo One',sans-serif;clip-path:var(--step)}
.hv-end.win>b{color:#ffcd5c;text-shadow:0 5px 0 #a65a00,0 0 38px rgba(255,193,77,.75)}
.hv-end.win .hv-place{background:linear-gradient(180deg,#ffdd80,#f2a01a);color:#4a2500;text-shadow:none}
.hv-end.lose>b{color:#fff;text-shadow:0 5px 0 #7a1c1c,0 0 26px rgba(120,10,10,.6)}
.hv-end.lose .hv-place{background:linear-gradient(180deg,#ff7a6a,#cc3a3a);color:#fff}
.hv-estats{display:flex;gap:6px;margin-top:4px}
.hv-estats span{display:flex;align-items:center;gap:7px;height:46px;padding:0 15px 0 9px;background:var(--panel);clip-path:var(--step)}
.hv-estats img{width:30px;height:30px}
.hv-estats b{font:400 25px/1 'Russo One',sans-serif}
.hv-rays{position:absolute;left:50%;top:50%;width:900px;height:900px;z-index:-1;opacity:.5;background:repeating-conic-gradient(from 0deg,rgba(255,200,80,.35) 0 6deg,transparent 6deg 18deg);-webkit-mask:radial-gradient(circle,#000 0 20%,transparent 62%);mask:radial-gradient(circle,#000 0 20%,transparent 62%);transform:translate(-50%,-50%);animation:hv-spin 18s linear infinite}
@keyframes hv-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}

/* shared panels and buttons */
.vb{--bg:#1c2b56;--bg2:#121d3e;--bd:#3a4f86;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;height:42px;padding:0 18px;border:0;clip-path:var(--step);background:linear-gradient(180deg,var(--bg),var(--bg2));box-shadow:inset 0 0 0 2px var(--bd);color:#fff;font:700 15px/1 Inter,sans-serif;white-space:nowrap;cursor:pointer;pointer-events:auto;transition:filter .15s,transform .1s;text-shadow:none}
.vb:hover:not(:disabled){filter:brightness(1.22)}
.vb:active:not(:disabled){transform:translateY(1px) scale(.985);filter:brightness(.92)}
.vb:focus-visible{outline:2px solid #fff;outline-offset:-5px}
.vb:disabled{opacity:.5;cursor:not-allowed}
.vb.green{--bg:#3cc25c;--bg2:#23923f;--bd:#7ee89a}
.vb.red{--bg:#d84a42;--bg2:#a82a30;--bd:#ff9a90}
.vb.sm{height:32px;padding:0 10px 0 12px;font-size:13px}
.vb.sq{flex:none;width:34px;height:34px;padding:0;font-size:18px}
.vb.wide{width:100%}
.hv-card,.hv-inv-card{position:relative;padding:2px;background:rgba(255,255,255,.2);clip-path:var(--step-l);text-shadow:none}
.hv-card>div,.hv-inv-card>div{background:linear-gradient(180deg,#141f42,#0a1128);clip-path:var(--step-l)}
.hv-pause{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(5,8,20,.58);pointer-events:auto;animation:hv-fade .18s ease-out}
@keyframes hv-fade{from{opacity:0}to{opacity:1}}
.hv-card{width:min(460px,100%);max-height:100%;display:flex;animation:hv-rise .2s cubic-bezier(.2,1.2,.4,1)}
@keyframes hv-rise{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.hv-card>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px;padding:20px 22px 22px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#2a3a68 transparent}
.hv-card h2{display:flex;align-items:center;gap:9px;margin:0 0 2px;font:400 26px/1.1 'Russo One',sans-serif;letter-spacing:.03em}
.hv-card h2::before{content:'';flex:none;width:6px;height:22px;background:var(--orange)}
.hv-set{display:flex;align-items:center;gap:8px;min-width:0}
.hv-set span{flex:none;width:96px;font-weight:700;font-size:14px;color:#cdd8f0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-set b{flex:none;width:52px;font:400 17px/1 'Russo One',sans-serif;text-align:right}
.hv-meter{flex:1;min-width:30px;height:10px;overflow:hidden;background:#060b1c;clip-path:var(--step-xs)}
.hv-meter i{display:block;height:100%;background:linear-gradient(90deg,var(--orange),#ffc14d);transform-origin:0 50%;transition:transform .15s}
.hv-btns{display:flex;gap:10px;margin-top:4px}
.hv-btns .vb{flex:1}
.hv-btns.end{justify-content:flex-end}
.hv-btns.end .vb{flex:0 1 150px}
.hv-keyscard{width:min(900px,100%)}
.hv-keygrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:6px 14px}
.hv-keygrid h4{margin:0 0 6px;font:400 13px/1.2 'Russo One',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#ffb15c}
.hv-bind{display:flex;align-items:center;gap:8px;width:100%;height:32px;margin:0 0 4px;padding:0 5px 0 10px;border:0;clip-path:var(--step-s);background:rgba(39,56,104,.55);color:#fff;font:600 13px Inter,sans-serif;cursor:pointer;text-align:left;transition:background-color .13s}
.hv-bind:hover{background:rgba(60,84,150,.8)}
.hv-bind:active{background:rgba(44,62,116,.9)}
.hv-bind span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hud .hv-bind kbd{flex:none;min-width:42px;height:22px}
.hv-bind.wait{background:rgba(120,84,10,.75)}
.hud .hv-bind.wait kbd{background:#ffd23f}

/* inventory */
.hv-inv{position:absolute;left:50%;bottom:calc(112px*var(--hud));width:max-content;transform:translateX(-50%) scale(var(--hud));transform-origin:50% 100%;pointer-events:auto;animation:hv-fade .16s ease-out}
.hud.inv-open .hv-wname{visibility:hidden}
.hv-inv-card{width:640px;max-width:calc(100vw/var(--hud) - 16px)}
.hv-inv-card>div{display:flex;flex-direction:column;gap:10px;padding:12px 14px 14px}
.hv-inv-card header{display:flex;align-items:center;gap:10px}
.hv-inv-card h3{margin:0;font:400 20px/1 'Russo One',sans-serif;letter-spacing:.03em}
.hv-ihint{flex:1;min-width:0;font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-inv-card header kbd{height:18px;min-width:18px;background:rgba(7,11,26,.5);color:#fff}
.hv-inv-card h4{margin:0 0 5px;font:400 12px/1.2 'Russo One',sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#ffb15c}
.hv-islots{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.hv-islot{--rc:#5a6b94;position:relative;aspect-ratio:1;padding:2px;background:color-mix(in srgb,var(--rc) 70%,#fff);clip-path:var(--step);cursor:grab;transition:transform .1s,background-color .1s}
.hv-islot>div{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,color-mix(in srgb,var(--rc) 28%,#0a1128),color-mix(in srgb,var(--rc) 66%,#0b1226));clip-path:var(--step)}
.hv-islot.empty{background:rgba(255,255,255,.14);cursor:default}
.hv-islot.empty>div{background:#0a1128}
.hv-islot.fixed{cursor:pointer}
.hv-islot:hover,.hv-islot.focus{background:#dfe7fa}
.hv-islot.sel{background:var(--orange)}
.hv-islot.over{background:var(--cyan);transform:scale(1.06)}
.hv-islot.dragging{opacity:.35}
.hv-islot img{width:86%;height:86%;pointer-events:none;filter:drop-shadow(0 2px 1px rgba(0,0,0,.5))}
.hv-islot em{position:absolute;left:5px;top:3px;max-width:calc(100% - 10px);overflow:hidden;font:800 11px/1.3 Inter,sans-serif;font-style:normal;color:#dfe7fa;text-overflow:ellipsis;white-space:nowrap}
.hv-islot small{position:absolute;right:5px;bottom:3px;font:400 14px/1.2 'Russo One',sans-serif}
.hv-islot small.empty{color:#ff7a6a}
.hv-ghost{position:fixed;left:0;top:0;z-index:50;width:72px;height:72px;display:flex;align-items:center;justify-content:center;pointer-events:none;background:rgba(11,18,38,.88);box-shadow:inset 0 0 0 2px var(--cyan);clip-path:var(--step)}
.hv-ghost img{width:86%;height:86%}
.hv-ghost.drop{background:rgba(120,20,20,.85);box-shadow:inset 0 0 0 2px var(--red)}
.hv-ibody{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px}
.hv-idetw{min-width:0}
.hv-idet{--rc:#3a4566;display:flex;gap:10px;align-items:center;height:100%;min-height:112px;padding:8px 10px;background:linear-gradient(90deg,color-mix(in srgb,var(--rc) 34%,#0a1128),rgba(10,17,40,.6));clip-path:var(--step)}
.hv-idet.empty{justify-content:center;color:var(--muted);font-size:13px;font-weight:600}
.hud .hv-idet img{flex:none;width:112px;height:76px;object-fit:cover}
.hud .hv-idet.tall img{width:76px;object-fit:contain}
.hv-idet>div{min-width:0;flex:1}
.hv-idet b{display:block;font:400 17px/1.25 'Russo One',sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-idet small{display:block;font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-idet ul{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:1px}
.hv-idet li{display:flex;justify-content:space-between;gap:8px;font-size:12px;white-space:nowrap}
.hv-idet li span{color:var(--muted)}
.hv-idet li em{min-width:0;font-style:normal;font-weight:800;overflow:hidden;text-overflow:ellipsis}
.hv-icols{min-width:0;display:flex;flex-direction:column;gap:8px}
.hv-irows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.hv-irow{display:flex;align-items:center;justify-content:space-between;gap:2px;min-width:0;height:32px;padding:0 8px 0 3px;background:rgba(3,6,16,.5);clip-path:var(--step-s)}
.hv-irow.none{opacity:.45}
.hv-irow img{flex:none;width:27px;height:27px}
.hv-irow b{min-width:0;font:400 15px/1 'Russo One',sans-serif;font-variant-numeric:tabular-nums}

/* big map */
.hv-map{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(5,8,20,.5);animation:hv-fade .16s ease-out}
.hv-mapbox{display:flex;align-items:stretch;gap:8px;animation:hv-rise .2s cubic-bezier(.2,1.2,.4,1)}
.hv-mapframe{padding:3px;background:rgba(255,255,255,.72);clip-path:var(--step-l)}
.hv-mapframe canvas{display:block;width:min(calc(100vh - 56px),calc(100vw - 248px));height:min(calc(100vh - 56px),calc(100vw - 248px));clip-path:var(--step-l)}
.hv-legend{align-self:flex-start;width:176px;display:flex;flex-direction:column;gap:8px;padding:14px;background:rgba(9,14,32,.92);clip-path:var(--step-l);text-shadow:none}
.hv-legend h3{margin:0;font:400 20px/1 'Russo One',sans-serif;letter-spacing:.03em}
.hv-legend p{margin:0;font-weight:700;font-size:13px;color:#ffb15c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-legend ul{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:9px}
.hv-legend li{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#dfe7fa;white-space:nowrap}
.hv-legend footer{margin-top:8px;display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#cdd8f0}
.lg{flex:none;width:18px;height:18px;position:relative}
.lg.you{background:var(--orange);clip-path:polygon(50% 0,100% 100%,50% 76%,0 100%)}
.lg.next{border:2px solid #fff;border-radius:50%}
.lg.edge{border:2px solid #d7a8ff;border-radius:50%;background:rgba(112,40,190,.5)}
.lg.pad::before{content:'';position:absolute;inset:3px;background:#ff9a3c;transform:rotate(45deg)}
.lg.bus::before{content:'';position:absolute;inset:3px;background:#ffd34d}

/* narrow window: everything stacks round a full-width hotbar */
@media (max-width:760px){
  .hv-top{left:8px;top:8px;right:auto;width:calc((100vw - 16px - 128px)/var(--hud));display:grid;grid-template-columns:auto auto 1fr;gap:4px;transform:scale(var(--hud));transform-origin:0 0}
  .hv-compass{grid-column:1/-1;grid-row:1;width:100%;margin-bottom:18px}
  .hv-storm{justify-self:end}
  .hv-chip{height:32px;padding:0 8px 0 5px}
  .hv-chip b{font-size:17px;min-width:16px}
  .hv-storm b{min-width:40px}
  .hv-chip img{width:20px;height:20px}
  .hv-tr{right:8px;top:8px}
  .hv-miniframe{width:136px;height:136px}
  .hv-mini{width:132px;height:132px}
  .hv-loc{font-size:11px;bottom:5px;left:6px;right:6px}
  .hv-feed{left:8px;top:calc(96px*var(--hud) + 8px);width:calc((100vw - 152px)/var(--hud))}
  .hv-kf b{max-width:100px}
  .hv-kf:nth-child(n+4){display:none}
  .hv-stack{top:calc(196px*var(--hud) + 8px)}
  .hv-banner b{font-size:28px}
  .hv-dock{left:8px;right:8px;bottom:8px;width:calc((100vw - 16px)/var(--hud));transform:scale(var(--hud));transform-origin:0 100%}
  .hv-hot{justify-content:space-between;gap:4px}
  .hv-slot{flex:1;width:auto;height:64px}
  .hv-ammo{left:auto;right:0;bottom:calc(100% + 94px);height:42px;padding:0 9px 0 5px}
  .hv-ammo img{width:26px;height:26px}
  .hv-ammo b{font-size:27px}
  .hv-ammo span{margin-bottom:9px;font-size:14px}
  .hv-cards{left:0;bottom:calc(100% + 90px);width:58%}
  .hv-wname{bottom:calc(100% + 8px)}
  .hv-vitals{left:8px;bottom:calc(84px*var(--hud) + 8px);width:calc((100vw - 16px)*.62/var(--hud));padding:5px 6px}
  .hv-vrow>b{width:36px;font-size:18px}
  .hv-buildbox{right:8px;left:auto;bottom:calc(84px*var(--hud) + 8px);width:calc((100vw - 16px)*.36/var(--hud))}
  .hv-bhint{display:none}
  .hv-mats .hv-matkey{display:none}
  .hv-mat{height:26px;padding:0 3px 0 1px}
  .hv-mat img{width:20px;height:20px}
  .hv-mat b{font-size:12px}
  .hv-bp{height:38px}
  .hv-bp kbd{left:1px;top:1px;height:14px;min-width:14px;font-size:9px;padding:0 2px}
  .hv-inv{left:8px;right:8px;bottom:calc(160px*var(--hud));width:calc((100vw - 16px)/var(--hud));transform:scale(var(--hud));transform-origin:0 100%;max-height:calc((100vh - 170px*var(--hud))/var(--hud))}
  .hv-inv-card{width:100%;max-width:none}
  .hv-ibody{grid-template-columns:1fr}
  .hv-ihint{display:none}
  .hv-inv-card header .vb{margin-left:auto}
  .hv-end>b{font-size:52px}
  .hv-mapbox{flex-direction:column;align-items:center}
  .hv-mapframe canvas{width:calc(100vw - 22px);height:calc(100vw - 22px)}
  .hv-legend{align-self:auto;width:calc(100vw - 16px);flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:10px 12px}
  .hv-legend h3{display:none}
  .hv-legend p{flex-basis:100%}
  .hv-legend ul{flex-direction:row;flex-wrap:wrap;gap:6px 12px;margin:0}
  .hv-legend footer{margin:0 0 0 auto}
  .hv-keygrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}
  .hv-keyscard>div{padding:16px 12px}
  .hv-bind{gap:5px;padding:0 4px 0 8px;font-size:12.5px}
  .hud .hv-bind kbd{min-width:34px;padding:0 4px}
}
body.ingame .vx-logout{display:none}
