/* ICEBOX -- noir minimalism. Black, bone white, one hot red. Wide caps for names, mono for data. */
@property --sweep { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
:root {
  --ink: #040404; --ink2: #0b0b0c; --paper: #efefea; --dim: #86867f; --line: rgba(255, 255, 255, .17); --line2: rgba(255, 255, 255, .08);
  --hot: #ff3d3d; --red: #ff4a58; --blue: #4aa0ff; --ok: #b9b9b2; --ease: cubic-bezier(.2, .8, .2, 1); --ui: 1; --team: var(--blue);
  --gold: #efefea; --gold2: #b3b3ac; --cyan: #efefea; --pink: #efefea; --glass: rgba(4, 4, 4, .74); --glass2: rgba(255, 255, 255, .05); --txt: #efefea;
  --f-disp: 'Syncopate', 'Segoe UI', sans-serif; --f-mono: 'JetBrains Mono', ui-monospace, monospace; --f-hud: 'Manrope', 'JetBrains Mono', sans-serif;
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px); --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; background: var(--ink); color: var(--paper); font-family: var(--f-hud); font-weight: 500; -webkit-font-smoothing: antialiased; user-select: none; }
body.playing { cursor: none; }
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: miter; stroke-linecap: square; }
.hidden { display: none !important; }
.fx-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 3; background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .62) 100%); }
.fx-grain { position: fixed; inset: -50%; pointer-events: none; z-index: 3; opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -3%) } 60% { transform: translate(-2%, -1%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) } }
body.is-splash .fx-vignette, body.is-splash .fx-grain { opacity: 0; }

.screen { position: fixed; inset: 0; z-index: 10; display: none; padding: calc(28px + var(--safe-t)) calc(40px + var(--safe-r)) calc(28px + var(--safe-b)) calc(40px + var(--safe-l)); opacity: 0; }
.screen.active { display: block; animation: scrIn .6s var(--ease) forwards; }
.screen.leaving { animation: scrOut .3s var(--ease) forwards; }
@keyframes scrIn { from { opacity: 0; transform: translateY(10px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes scrOut { to { opacity: 0; filter: blur(4px); } }

/* ---- splash ---- */
#splash { background: #000; display: none; }
#splash.active { display: grid; place-items: center; align-content: center; gap: 26px; text-align: center; }
.sp-line { width: 0; height: 1px; background: #fff; animation: spLine 1.6s var(--ease) .1s forwards; }
@keyframes spLine { to { width: min(46vw, 420px); } }
.sp-studio { font: 400 11px var(--f-mono); letter-spacing: .7em; color: var(--dim); opacity: 0; animation: rise 1s var(--ease) .5s forwards; padding-left: .7em; }
.sp-title { font: 700 clamp(34px, 7vw, 92px) var(--f-disp); letter-spacing: .9em; padding-left: .9em; color: #fff; opacity: 0; filter: blur(14px); animation: spIn 2.2s var(--ease) .9s forwards; }
@keyframes spIn { to { opacity: 1; letter-spacing: .28em; padding-left: .28em; filter: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
.press { position: absolute; bottom: 9vh; font: 400 11px var(--f-mono); letter-spacing: .5em; color: var(--dim); opacity: 0; animation: rise .8s 2.6s forwards, blink 1.8s 3.4s infinite; padding-left: .5em; }
@keyframes blink { 50% { opacity: .3; } }

/* ---- loading ---- */
#loading { background: #000; }
.ld-top { display: flex; justify-content: space-between; font: 400 11px var(--f-mono); letter-spacing: .4em; color: var(--dim); text-transform: uppercase; }
.ld-pct { position: absolute; left: calc(40px + var(--safe-l)); bottom: 22vh; font: 400 clamp(72px, 15vh, 160px)/.85 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.04em; color: #fff; }
.ld-pct small { font-size: .22em; margin-left: 8px; color: var(--dim); letter-spacing: 0; }
.ld-tip { position: absolute; left: calc(44px + var(--safe-l)); bottom: 12vh; width: min(460px, 70vw); font: 400 13px/1.7 var(--f-hud); color: var(--dim); }
.ld-tip::before { content: 'NOTE'; display: block; font: 400 10px var(--f-mono); letter-spacing: .5em; color: #fff; margin-bottom: 8px; }
.ld-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .1); }
.ld-bar i { display: block; height: 100%; width: 0; background: #fff; transition: width .25s var(--ease); }

/* ---- title ---- */
#title { pointer-events: none; } #title > * { pointer-events: auto; }
.title-top { display: flex; justify-content: space-between; align-items: center; }
.tag { font: 400 11px var(--f-mono); letter-spacing: .4em; color: var(--dim); } .tag b { color: #fff; margin: 0 .5em; font-weight: 400; }
.top-actions { display: flex; gap: 8px; }
/* sign in (js/signin.js, Reown AppKit): title header, top-right, right edge aligned with the gamertag card (#pCard) */
#signInSlot { margin: 0 16px 0 auto; }
.signin { position: relative; display: flex; }
.signin-out, .signin-in { display: flex; position: relative; }
.signin [hidden] { display: none !important; }
.signin-btn, .signin-chip { height: 40px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; font: 500 11px var(--f-mono); letter-spacing: .24em; color: var(--paper); background: rgba(0, 0, 0, .45); border: 1px solid var(--line); cursor: pointer; transition: .2s var(--ease); white-space: nowrap; }
.signin-btn:hover:not(:disabled), .signin-btn:focus-visible, .signin-chip:hover, .signin-chip:focus-visible { background: #fff; color: #000; outline: none; }
.signin-btn:disabled { opacity: .5; cursor: default; }
.signin-ini { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid currentColor; font: 700 11px var(--f-mono); }
.signin-name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
.signin-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 220px; background: #0a0a0c; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.signin-who { padding: 12px 14px; border-bottom: 1px solid var(--line2); font: 400 10px var(--f-mono); letter-spacing: .2em; color: var(--dim); }
.signin-logout { display: block; width: 100%; padding: 12px 14px; text-align: left; font: 500 10px var(--f-mono); letter-spacing: .2em; color: #ff8a8a; background: none; border: 0; cursor: pointer; }
.signin-logout:hover, .signin-logout:focus-visible { background: rgba(255, 138, 138, .08); outline: none; }
.signin-msg { position: absolute; right: 0; top: calc(100% + 6px); width: max-content; max-width: 260px; margin: 0; font: 400 10px var(--f-mono); letter-spacing: .08em; line-height: 1.5; color: #ff8a8a; text-align: right; }
.chip { width: 40px; height: 40px; display: grid; place-items: center; color: var(--paper); background: rgba(0, 0, 0, .45); border: 1px solid var(--line); cursor: pointer; transition: .2s var(--ease); }
.chip:hover, .chip:focus-visible { background: #fff; color: #000; outline: none; } .chip svg { width: 18px; height: 18px; }
.title-main { position: absolute; left: calc(56px + var(--safe-l)); top: 50%; translate: 0 -50%; width: min(560px, 48vw); }
.eyebrow { font: 400 11px var(--f-mono); letter-spacing: .42em; color: var(--dim); margin-bottom: 20px; } .eyebrow b { color: #fff; margin: 0 .5em; font-weight: 400; }
.logo { font: 700 clamp(46px, 11vh, 118px)/.95 var(--f-disp); letter-spacing: .06em; display: flex; flex-direction: column; margin: 0 0 40px -3px; color: #fff; text-shadow: 0 10px 40px rgba(0, 0, 0, .7); }
.logo span { display: block; } .logo .l2 { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.menu { display: grid; gap: 0; border-top: 1px solid var(--line); }
.menu-item { position: relative; display: flex; align-items: center; gap: 20px; width: 100%; padding: 17px 4px; font: 500 13px var(--f-disp); letter-spacing: .32em; text-transform: uppercase; color: var(--dim); text-align: left; cursor: pointer; background: none; border: 0; border-bottom: 1px solid var(--line2); transition: color .25s, padding .35s var(--ease); }
.menu-item .n { font: 400 10px var(--f-mono); letter-spacing: .1em; color: var(--dim); width: 26px; }
.menu-item::before { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: #fff; transition: width .55s var(--ease); }
.menu-item.focus, .menu-item:hover { color: #fff; padding-left: 16px; } .menu-item.focus::before, .menu-item:hover::before { width: 100%; }
.menu-item .arrow { margin-left: auto; width: 16px; height: 16px; opacity: 0; transition: .3s var(--ease); } .menu-item.focus .arrow, .menu-item:hover .arrow { opacity: 1; translate: 4px 0; }
.hero-card { position: absolute; right: calc(56px + var(--safe-r)); bottom: 15vh; text-align: right; }
.hc-role { font: 400 10px var(--f-mono); letter-spacing: .5em; color: var(--dim); }
.hc-name { font: 700 clamp(30px, 6vh, 60px)/1.05 var(--f-disp); letter-spacing: .12em; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .8); margin-top: 4px; }
.hc-blurb { max-width: 280px; margin-left: auto; font: 400 13px var(--f-hud); color: var(--paper); opacity: .75; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); margin-top: 6px; }
.prompts { position: absolute; left: calc(56px + var(--safe-l)); right: calc(56px + var(--safe-r)); bottom: calc(24px + var(--safe-b)); display: flex; gap: 26px; font: 400 10px var(--f-mono); letter-spacing: .28em; color: var(--dim); }
.pr { display: inline-flex; align-items: center; gap: 8px; }

/* glyphs: key caps + pad buttons, all bone white */
.glyph { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; font: 500 10px/1 var(--f-mono); color: var(--paper); border: 1px solid rgba(255, 255, 255, .45); border-radius: 2px; letter-spacing: 0; }
.glyph.pad { border-radius: 50%; min-width: 24px; padding: 0; } .glyph.pad.wide { border-radius: 4px; padding: 0 8px; }

/* ---- panels ---- */
.panel { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(560px, 92vw); max-height: 88vh; overflow: auto; padding: 34px 36px 28px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); scrollbar-width: none; }
.panel::before { content: ''; position: absolute; left: -1px; top: -1px; width: 22px; height: 22px; border-left: 2px solid #fff; border-top: 2px solid #fff; }
.panel::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 22px; height: 22px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
.panel.wide { width: min(1080px, 94vw); } .panel.narrow { width: min(420px, 92vw); }
.panel-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.panel-head .idx { font: 400 11px var(--f-mono); color: var(--dim); letter-spacing: .3em; }
.panel-head h2 { font: 700 22px var(--f-disp); letter-spacing: .24em; color: #fff; }
.panel-head .sub { flex-basis: 100%; font: 400 13px var(--f-hud); color: var(--dim); margin-top: -8px; }
.panel-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 15px 34px; font: 500 12px var(--f-disp); letter-spacing: .3em; text-transform: uppercase; color: var(--paper); background: transparent; border: 1px solid var(--line); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn.focus, .btn:hover { background: #fff; color: #000; border-color: #fff; }
.btn.primary { background: #fff; color: #000; border-color: #fff; padding: 17px 52px; font-weight: 700; } .btn.primary.focus, .btn.primary:hover { background: transparent; color: #fff; }
.btn i { width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; }

/* option rows */
.opts { display: grid; gap: 0; }
.opt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line2); transition: .2s var(--ease); cursor: pointer; }
.opt.focus, .opt:hover { background: rgba(255, 255, 255, .06); padding-left: 12px; }
.opt .lbl { font: 400 11px var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: var(--dim); } .opt.focus .lbl { color: #fff; }
.opt .val { display: flex; align-items: center; gap: 10px; font: 500 13px var(--f-mono); min-width: 190px; justify-content: flex-end; }
.opt .val button { width: 24px; height: 24px; color: var(--paper); background: none; border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center; } .opt .val button:hover { background: #fff; color: #000; }
.opt .val svg { width: 11px; height: 11px; stroke-width: 2; } .opt .txt { min-width: 110px; text-align: center; color: #fff; letter-spacing: .12em; }
.opt .bar { flex: 1; min-width: 110px; height: 2px; background: rgba(255, 255, 255, .16); position: relative; } .opt .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #fff; }

/* operator cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.card { position: relative; padding: 16px 16px 14px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: .3s var(--ease); overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); }
.card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%); pointer-events: none; }
.card .cn { position: relative; font: 700 19px var(--f-disp); letter-spacing: .12em; color: #fff; } .card .cr { position: relative; font: 400 10px var(--f-mono); letter-spacing: .34em; color: var(--dim); margin-bottom: 4px; }
.card .cb { position: relative; font: 400 12px/1.4 var(--f-hud); color: var(--dim); margin-top: 8px; }
.card.sel { border-color: #fff; background: rgba(255, 255, 255, .07); transform: translateY(-4px); } .card.sel .cr { color: #fff; }
.opt.cardsrow { display: block; padding: 0; border: 0; } .opt.cardsrow.focus { padding-left: 0; background: none; } .opt.cardsrow.focus .card.sel { outline: 1px solid #fff; outline-offset: 4px; }

/* controls */
.ctrl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ctrl-col h3 { font: 400 10px var(--f-mono); letter-spacing: .5em; color: #fff; margin-bottom: 12px; }
.ctrl-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line2); font: 400 12px var(--f-hud); letter-spacing: .06em; color: var(--dim); } .ctrl-row > span:last-child { display: flex; gap: 5px; }

/* ---- HUD: cool cyan glass, thin lines, low-opacity chrome ---- */
#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; font-family: var(--f-hud); --hc: #f1f1ec; --hc2: #ffffff; --hd: rgba(6, 16, 30, .45); }
#hud > * { position: absolute; }
.h-top { left: 50%; top: calc(14px + var(--safe-t)); translate: -50% 0; width: min(560px, 46vw); }
.compass { position: relative; height: 22px; overflow: hidden; margin: 0 8% 5px; -webkit-mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); opacity: .85; }
.cmp-track { position: absolute; left: 50%; top: 0; height: 100%; width: 0; will-change: transform; }
.cmp-track i { position: absolute; top: 14px; width: 1px; height: 5px; background: var(--hc); opacity: .55; } .cmp-track i.mj { height: 8px; top: 11px; opacity: .9; }
.cmp-track b { position: absolute; left: 50%; top: -12px; translate: -50% 0; font: 500 9px var(--f-mono); color: var(--hc); font-style: normal; } .cmp-track b.cd { color: #fff; font-weight: 700; font-size: 11px; top: -14px; }
.cmp-hd { position: absolute; left: 50%; top: 0; translate: -50% 0; font: 700 11px var(--f-mono); color: #fff; background: rgba(6, 16, 30, .6); padding: 0 6px; z-index: 2; letter-spacing: .1em; } .cmp-tick { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; border: 4px solid transparent; border-bottom-color: #fff; border-top: 0; translate: -50% 0; }
.trap { position: relative; height: 26px; background: rgba(240, 240, 236, .85); clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%); }
.trap-in { position: absolute; inset: 1.5px; background: var(--hd); backdrop-filter: blur(6px); clip-path: polygon(0 0, 100% 0, 97.4% 100%, 2.6% 100%); overflow: hidden; }
.sh-ghost, .sh-fill, .sh-over { position: absolute; left: 4px; top: 4px; bottom: 4px; -webkit-mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 12px); mask: repeating-linear-gradient(90deg, #000 0 10px, transparent 10px 12px); max-width: calc(100% - 8px); }
.sh-ghost { background: rgba(255, 255, 255, .55); transition: width .9s .4s var(--ease); }
.sh-fill { background: linear-gradient(90deg, #cfcfca, var(--hc2)); transition: width .1s linear; }
.sh-over { background: linear-gradient(90deg, #b28cff, #f0d4ff); top: 1px; bottom: 1px; opacity: .95; }
.hp-row { display: flex; justify-content: center; gap: 4px; margin-top: 5px; } .hp-row i { width: 30px; height: 4px; background: rgba(255, 255, 255, .16); transition: .2s; } .hp-row i.on { background: #ff7a86; }
body.low-shield .sh-fill { animation: shieldwarn .5s infinite; } @keyframes shieldwarn { 50% { background: #ff6b7a; } }

.h-weapon { right: calc(30px + var(--safe-r)); top: calc(26px + var(--safe-t)); text-align: right; color: var(--hc2); opacity: .92; }
.wp-top { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.wp-icon { display: flex; gap: 10px; align-items: center; padding-bottom: 8px; } .wp-icon svg { width: 54px; height: 26px; stroke-width: 1.3; color: var(--hc); } .wp-icon svg.sec { opacity: .45; width: 34px; height: 16px; }
.wp-mag { font: 600 54px/.9 var(--f-hud); font-variant-numeric: tabular-nums; color: var(--hc2); text-shadow: 0 0 14px rgba(240, 240, 236, .55); letter-spacing: -.01em; }
.wp-res { font: 500 20px var(--f-mono); color: var(--hc); opacity: .75; padding-bottom: 5px; }
.wp-name { font: 500 11px var(--f-mono); letter-spacing: .3em; color: var(--hc); opacity: .8; margin-top: 4px; }
.wp-mag.low { color: #ff7a86; text-shadow: 0 0 14px rgba(255, 90, 100, .6); animation: shieldwarn .5s infinite; } .wp-reload { font: 700 11px var(--f-mono); letter-spacing: .3em; color: #ffffff; height: 14px; }
.gr-row { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; font: 600 14px var(--f-mono); }
.gr { display: flex; align-items: center; gap: 6px; opacity: .5; padding: 2px 8px; border: 1px solid transparent; } .gr.on { opacity: 1; border-color: rgba(240, 240, 236, .55); background: var(--hd); } .gr svg { width: 20px; height: 20px; color: var(--hc); }

.h-radar { left: calc(26px + var(--safe-l)); bottom: calc(46px + var(--safe-b)); width: 210px; height: 150px; }
.rd-tilt { position: absolute; inset: 0; transform: perspective(520px) rotateX(58deg); transform-origin: 50% 60%; border-radius: 50%; background: radial-gradient(circle, rgba(240, 240, 236, .22), rgba(80, 170, 220, .12) 65%, rgba(240, 240, 236, .0) 72%); border: 2px solid rgba(240, 240, 236, .55); box-shadow: 0 0 22px rgba(240, 240, 236, .2), inset 0 0 26px rgba(240, 240, 236, .18); }
.rd-tilt canvas { width: 100%; height: 100%; border-radius: 50%; }
.rd-place { position: absolute; left: 4px; bottom: -22px; font: 500 12px var(--f-mono); letter-spacing: .3em; color: var(--hc); opacity: .8; }
.feed { left: calc(30px + var(--safe-l)); bottom: calc(230px + var(--safe-b)); width: 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.feed-item { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 10px; font: 600 12px var(--f-hud); letter-spacing: .1em; background: var(--hd); border-left: 3px solid var(--tc); backdrop-filter: blur(6px); animation: feedIn .35s var(--ease), feedOut .5s 5s forwards; }
.feed-item svg { width: 18px; height: 18px; opacity: .85; color: var(--hc); } .feed-item .red { color: #ff9aa2; } .feed-item .blue { color: #9dccff; } .feed-item.me { background: rgba(255, 216, 74, .18); }
@keyframes feedIn { from { transform: translateX(-30px); opacity: 0; } } @keyframes feedOut { to { opacity: 0; transform: translateY(-6px); } }

.h-score { right: calc(30px + var(--safe-r)); bottom: calc(30px + var(--safe-b)); width: 240px; }
.sc-meta { display: flex; justify-content: space-between; font: 500 12px var(--f-mono); letter-spacing: .16em; color: var(--hc2); margin-bottom: 4px; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); } .sc-clock { font-variant-numeric: tabular-nums; }
.sc-row { display: grid; grid-template-columns: 18px 1fr 46px; align-items: center; gap: 8px; margin-bottom: 3px; padding: 4px 8px; background: var(--hd); backdrop-filter: blur(6px); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px); }
.sc-row .sq { width: 14px; height: 14px; background: var(--tcol); } .sc-row.red { --tcol: var(--red); } .sc-row.blue { --tcol: var(--blue); }
.sc-bar { height: 3px; background: rgba(255, 255, 255, .14); position: relative; } .sc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--tcol); transition: width .4s var(--ease); }
.sc-n { font: 600 22px/1 var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; color: #fff; } .sc-row.mine { outline: 1px solid rgba(240, 240, 236, .55); }

.h-markers { inset: 0; overflow: hidden; }
.mk { position: absolute; left: 0; top: 0; will-change: transform; } .mk i { position: absolute; left: -6px; top: 0; width: 0; height: 0; border: 6px solid transparent; border-top: 9px solid var(--hc); border-bottom: 0; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .8)); }
.mk span { position: absolute; left: 0; top: -16px; translate: -50% 0; font: 600 10px var(--f-mono); letter-spacing: .14em; color: var(--hc2); text-shadow: 0 1px 4px #000, 0 0 6px #000; white-space: nowrap; }
.mk.ally b { position: absolute; left: -22px; top: -5px; width: 44px; height: 3px; background: rgba(0,0,0,.55); box-shadow: 0 0 4px #000; } .mk.ally u { display: block; height: 100%; background: #6ab8ff; }
.mk.ally i { border-top-color: #6ab8ff; } .mk.pick i { border-top-color: #ffffff; } .mk.pick span { color: #ffffff; }
/* enemy plates: apex-style name + shield bar over health bar */
.mk.foe i { border-top-color: #ff4a58; } .mk.foe span { color: #ff9aa1; }
.mk.foe b { position: absolute; left: -22px; width: 44px; height: 3px; background: rgba(0,0,0,.55); box-shadow: 0 0 4px #000; }
.mk.foe b.sh { top: -9px; } .mk.foe b.hp { top: -5px; }
.mk.foe b u { display: block; height: 100%; background: #ff4a58; transition: width .12s linear; } .mk.foe b.sh u { background: #6ab8ff; }
.h-reticle { left: 50%; top: 50%; width: 84px; height: 84px; translate: -50% -50%; color: #fff; transition: color .1s; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .8)); }
.h-reticle svg { width: 100%; height: 100%; overflow: visible; stroke-width: 2.2; } .h-reticle.enemy { color: #ff4a58; } .h-reticle .tk { transition: transform .08s; }
.h-reticle.none { opacity: 0; }
.h-hit { left: 50%; top: 50%; width: 46px; height: 46px; translate: -50% -50%; opacity: 0; color: #fff; } .h-hit svg { width: 100%; height: 100%; stroke-width: 3; }
.h-hit.on { animation: hit .25s var(--ease); } .h-hit.head { color: #ff4a58; } .h-hit.kill { color: #ffd48a; }
@keyframes hit { 0% { opacity: 1; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.3); } }
.h-announce { left: 50%; top: 20%; translate: -50% 0; text-align: center; font: 700 30px var(--f-hud); font-style: italic; letter-spacing: .3em; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); opacity: 0; }
.h-announce.on { animation: ann 2.6s var(--ease) forwards; } .h-announce small { display: block; font: 500 12px var(--f-mono); letter-spacing: .5em; color: var(--dim); font-style: normal; margin-top: 6px; }
@keyframes ann { 0% { opacity: 0; transform: translateY(-14px) scale(.9); letter-spacing: .6em; } 12% { opacity: 1; transform: none; letter-spacing: .3em; } 80% { opacity: 1; } 100% { opacity: 0; } }
.h-medals { left: 50%; top: 62%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.medal { display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 10px; background: linear-gradient(90deg, rgba(240, 240, 236, .3), rgba(6, 12, 24, .6)); border: 1px solid rgba(240, 240, 236, .6); backdrop-filter: blur(8px); clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); font: 700 15px var(--f-hud); letter-spacing: .25em; animation: medalIn .5s var(--ease), medalOut .5s 2.4s forwards; }
.medal svg { width: 30px; height: 30px; color: var(--gold); padding: 4px; border: 1px solid var(--gold); }
@keyframes medalIn { from { opacity: 0; transform: scale(.6) translateY(20px); } } @keyframes medalOut { to { opacity: 0; transform: translateY(-10px); } }
.h-prompt { left: 50%; top: 74%; translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: rgba(6, 12, 24, .6); border: 1px solid var(--line); backdrop-filter: blur(8px); font: 600 13px var(--f-mono); letter-spacing: .2em; opacity: 0; transition: opacity .15s; } .h-prompt.on { opacity: 1; }
.h-count { left: 50%; top: 38%; translate: -50% -50%; font: 700 clamp(120px, 24vh, 260px)/1 var(--f-hud); font-style: italic; text-shadow: 0 10px 50px rgba(0, 0, 0, .6); opacity: 0; } .h-count.on { animation: cnt .95s var(--ease); }
@keyframes cnt { 0% { opacity: 0; transform: scale(1.8); } 25% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.9); } }
.h-mode { left: 50%; top: 56%; translate: -50% 0; text-align: center; font: 600 13px var(--f-mono); letter-spacing: .5em; color: var(--dim); opacity: 0; } .h-mode.on { animation: ann 3.2s var(--ease) forwards; }
.h-dmg { inset: 0; overflow: hidden; } .dmg-arc { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-origin: 0 0; } .dmg-arc i { position: absolute; left: -90px; top: -230px; width: 180px; height: 70px; background: radial-gradient(ellipse at 50% 100%, rgba(255, 74, 88, .95), transparent 70%); clip-path: polygon(0 100%, 50% 0, 100% 100%); animation: dmg 1s forwards; } @keyframes dmg { to { opacity: 0; } }
.h-flash { inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(240, 240, 236, .5)); opacity: 0; } .h-flash.on { animation: flash .35s; } .h-flash.hurt { background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 60, 70, .55)); }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.h-warn { inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 40, 60, .5)); opacity: 0; transition: opacity .3s; } body.low-shield .h-warn { opacity: .5; animation: warnpulse 1s infinite; } @keyframes warnpulse { 50% { opacity: .18; } }
.h-over { inset: 0; box-shadow: inset 0 0 90px rgba(178, 140, 255, .55); opacity: 0; transition: opacity .4s; } body.overshield .h-over { opacity: 1; }
.h-death { inset: 0; display: none; place-items: center; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); } .h-death.on { display: grid; }
.dd { position: absolute; bottom: 18%; text-align: center; } .dd .k { font: 500 12px var(--f-mono); letter-spacing: .5em; color: var(--dim); } .dd .nm { font: 700 44px var(--f-hud); font-style: italic; letter-spacing: .1em; } .dd .rs { font: 500 14px var(--f-mono); letter-spacing: .3em; color: var(--gold); margin-top: 6px; }
.h-cam { left: calc(260px + var(--safe-l)); bottom: calc(60px + var(--safe-b)); font: 500 11px var(--f-mono); letter-spacing: .2em; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.h-fps { left: 50%; bottom: 8px; translate: -50% 0; font: 500 10px var(--f-mono); color: rgba(255, 255, 255, .4); }

/* scoreboard */
.h-board { left: 50%; top: 50%; translate: -50% -50%; width: min(760px, 90vw); padding: 24px 28px; background: linear-gradient(160deg, rgba(20, 30, 52, .7), rgba(8, 13, 26, .8)); border: 1px solid var(--line); backdrop-filter: blur(20px); display: none; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.h-board.on { display: block; animation: scrIn .25s var(--ease); }
.tbl { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 13px; } .tbl th { text-align: left; font-weight: 500; letter-spacing: .25em; color: var(--dim); padding: 6px 8px; font-size: 10px; } .tbl td { padding: 8px; border-top: 1px solid rgba(255, 255, 255, .07); font-variant-numeric: tabular-nums; }
.tbl td.nm { font-family: var(--f-hud); font-weight: 600; letter-spacing: .12em; font-size: 15px; } .tbl tr.red td.nm { color: #ff9aa2; } .tbl tr.blue td.nm { color: #9dccff; } .tbl tr.me td { background: rgba(240, 240, 236, .14); } .tbl tr.dead td { opacity: .5; } .tbl th:not(:first-child), .tbl td:not(.nm) { text-align: right; }
.h-board h4 { font: 700 13px var(--f-mono); letter-spacing: .35em; margin: 8px 0 4px; } .h-board h4.red { color: var(--red); } .h-board h4.blue { color: var(--blue); }

/* results */
.results { padding-top: 0; }
.res-banner { margin: 0 -32px 20px; padding: 34px 32px 24px; background: linear-gradient(100deg, color-mix(in srgb, var(--team) 55%, transparent), transparent 75%); border-bottom: 1px solid var(--line); }
.res-kicker { font: 500 12px var(--f-mono); letter-spacing: .5em; color: var(--txt); opacity: .8; } .res-title { font: 700 clamp(48px, 9vh, 96px)/1 var(--f-hud); font-style: italic; letter-spacing: -.02em; } .res-score { font: 600 18px var(--f-mono); letter-spacing: .25em; color: var(--gold); margin-top: 6px; }
.res-table { max-height: 34vh; overflow: auto; scrollbar-width: none; } .res-medals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; } .rm { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid rgba(240, 240, 236, .5); font: 600 12px var(--f-mono); letter-spacing: .15em; color: var(--gold); } .rm svg { width: 18px; height: 18px; }

.toast { position: fixed; left: 50%; bottom: 10vh; translate: -50% 0; z-index: 30; padding: 10px 20px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); font: 500 12px var(--f-mono); letter-spacing: .2em; opacity: 0; pointer-events: none; transition: opacity .3s; } .toast.on { opacity: 1; }
.orient { display: none; position: fixed; inset: 0; z-index: 40; background: var(--ink); place-items: center; align-content: center; gap: 14px; font: 600 14px var(--f-mono); letter-spacing: .3em; } .orient svg { width: 60px; height: 60px; color: var(--gold); }
@media (orientation: portrait) and (max-width: 700px) { .orient { display: grid; } }
@media (max-width: 900px) { .title-main { width: 80vw; } .hero-card { display: none; } .cards { grid-template-columns: repeat(2, 1fr); } .ctrl-grid { grid-template-columns: 1fr; } .h-top { width: 60vw; } .wp-mag { font-size: 40px; } .h-radar { width: 150px; height: 108px; } }
@media (prefers-reduced-motion: reduce) { .fx-grain, .logo span, .h-radar::after { animation: none; } .screen.active { animation-duration: .01s; } }

/* setup keeps the operator visible on the right */
#setup .panel { left: calc(48px + var(--safe-l)); translate: 0 -50%; width: min(720px, 58vw); }
#setup .card { min-height: 150px; padding: 12px; } #setup .card .cn { font-size: 28px; } #setup .card .cb { font-size: 11px; }
#setup .panel.wide { width: min(720px, 58vw); }

/* ---- online lobby ---- */
.lobby-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin-bottom: 18px; }
.lobby-code { padding: 18px 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.lc-label { font: 500 11px var(--f-mono); letter-spacing: .35em; color: var(--gold); margin-bottom: 8px; }
.lc-code { font: 700 clamp(44px, 9vh, 84px)/1 var(--f-hud); font-style: italic; letter-spacing: .14em; background: linear-gradient(105deg, #fff, #ffe6b8 50%, #9fe8ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.lc-link { font: 400 12px var(--f-mono); color: var(--dim); word-break: break-all; margin: 8px 0 14px; user-select: text; }
.lc-btns { display: flex; gap: 10px; flex-wrap: wrap; } .lc-btns .btn { padding: 11px 20px; font-size: 14px; }
.lobby-roster { padding: 18px 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); min-height: 150px; }
.lp { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 600 16px var(--f-hud); letter-spacing: .12em; }
.lp i { width: 10px; height: 10px; background: var(--c, var(--ok)); box-shadow: 0 0 10px var(--c, var(--ok)); } .lp em { margin-left: auto; font: 500 11px var(--f-mono); letter-spacing: .25em; color: var(--dim); font-style: normal; }
.lp.wait { opacity: .45; }
.online-status { min-height: 22px; margin-top: 14px; font: 500 12px var(--f-mono); letter-spacing: .18em; color: var(--gold); }
.online-status.err { color: #ff8b95; }
.join-input { width: 150px; padding: 10px 12px; text-align: center; font: 700 22px var(--f-mono); letter-spacing: .3em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); outline: none; }
.join-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 240, 236, .2); }
@media (max-width: 900px) { .lobby-grid { grid-template-columns: 1fr; } }

/* ---- touch controls ---- */
#touch { display: none; position: fixed; inset: 0; z-index: 8; pointer-events: none; touch-action: none; }
body.touch-on.playing #touch, body.touch-on.online-play #touch { display: block; }
.tz { position: absolute; top: 0; bottom: 0; pointer-events: auto; touch-action: none; }
.tz-move { left: 0; width: 42%; } .tz-look { right: 0; width: 58%; }
.stick { position: fixed; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: rgba(240, 240, 236, .12); backdrop-filter: blur(4px); pointer-events: none; }
.stick[hidden] { display: none; } .stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255, 255, 255, .5); border: 2px solid rgba(255, 255, 255, .8); }
.tb { position: absolute; pointer-events: auto; touch-action: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: rgba(8, 16, 30, .5); border: 2px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px); -webkit-tap-highlight-color: transparent; }
.tb svg { width: 26px; height: 26px; stroke-width: 1.8; } .tb.on { background: rgba(240, 240, 236, .55); border-color: var(--gold); transform: scale(.94); }
.t-fire { right: calc(26px + var(--safe-r)); bottom: calc(52px + var(--safe-b)); width: 88px; height: 88px; border-color: rgba(255, 90, 100, .8); background: rgba(255, 60, 60, .14); } .t-fire svg { width: 38px; height: 38px; }
.t-jump { right: calc(128px + var(--safe-r)); bottom: calc(36px + var(--safe-b)); }
.t-melee { right: calc(22px + var(--safe-r)); bottom: calc(160px + var(--safe-b)); }
.t-gren { right: calc(96px + var(--safe-r)); bottom: calc(126px + var(--safe-b)); }
.t-reload { right: calc(168px + var(--safe-r)); bottom: calc(98px + var(--safe-b)); width: 50px; height: 50px; }
.t-swap { right: calc(236px + var(--safe-r)); bottom: calc(40px + var(--safe-b)); width: 46px; height: 46px; }
.t-zoom { right: calc(22px + var(--safe-r)); bottom: calc(238px + var(--safe-b)); width: 50px; height: 50px; }
.t-crouch { left: calc(24px + var(--safe-l)); bottom: calc(24px + var(--safe-b)); width: 48px; height: 48px; }
.t-blink { right: calc(160px + var(--safe-r)); bottom: calc(156px + var(--safe-b)); width: 56px; height: 56px; border-color: rgba(92, 225, 255, .75); background: rgba(92, 225, 255, .14); }
.t-blink svg { width: 28px; height: 28px; }
.t-nova { right: calc(96px + var(--safe-r)); bottom: calc(198px + var(--safe-b)); width: 66px; height: 66px; border-color: rgba(255, 209, 91, .85); background: rgba(255, 209, 91, .18); box-shadow: 0 0 16px rgba(255, 209, 91, .3); }
.t-nova svg { width: 34px; height: 34px; }
.t-pause { right: calc(14px + var(--safe-r)); top: calc(10px + var(--safe-t)); width: 40px; height: 40px; } .t-pause svg { width: 20px; height: 20px; }
.t-score { right: calc(64px + var(--safe-r)); top: calc(10px + var(--safe-t)); width: 40px; height: 40px; } .t-score svg { width: 20px; height: 20px; }
@media (max-height: 520px) {
  .compass, .feed, .h-cam { display: none; } .h-top { top: 8px; width: 46vw; } .wp-mag { font-size: 34px; } .wp-icon { display: none; } .gr-row { margin-top: 4px; }
  .h-radar { left: 10px; top: 8px; bottom: auto; width: 116px; height: 80px; } .rd-place { display: none; } .h-score { width: 138px; right: 114px; bottom: auto; top: 8px; } .sc-n { font-size: 15px; } .sc-meta { font-size: 9px; } .sc-row { padding: 2px 6px; }
  .h-weapon { right: auto; left: 50%; translate: -50% 0; top: auto; bottom: 6px; text-align: center; } .wp-top { gap: 6px; justify-content: center; } .gr-row { justify-content: center; } .wp-name { display: none; } .h-reticle { width: 64px; height: 64px; } .h-medals { top: 55%; } .h-announce { font-size: 20px; top: 16%; } .h-prompt { top: 66%; }
  .h-death .dd .nm { font-size: 28px; } .h-board { width: 88vw; padding: 12px; } .tbl td { padding: 4px 6px; }
  .panel { padding: 18px 20px; } .panel-head h2 { font-size: 22px; } .menu-item, .btn { padding: 11px 16px; font-size: 14px; }
  .logo { font-size: 20vh; } .title-main { width: 60vw; } .eyebrow { font-size: 10px; }
}

.map-tag { margin-top: 10px; font: 500 12px var(--f-mono); letter-spacing: .12em; color: var(--dim); min-height: 18px; }
/* deployment map preview (js/main.js paintMap) */
.map-prev { margin-top: 12px; position: relative; border: 1px solid var(--line, #242a3d); border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; max-height: 200px; background: #0a0c12; }
.map-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-prev .mp-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; background: linear-gradient(0deg, rgba(4,6,10,.92), transparent); display: grid; }
.map-prev .mp-cap b { font: 600 14px var(--f-hud, sans-serif); letter-spacing: .08em; color: #e8ecf6; }
.map-prev .mp-cap span { font: 400 11px var(--f-mono); color: var(--dim, #9aa4be); }

/* ---- noir HUD extras: elimination banner, headshot skull, power-up chips ---- */
.h-elim { left: 50%; top: 58%; translate: -50% 0; text-align: center; opacity: 0; }
.h-elim.on { animation: elimIn 2.6s var(--ease) forwards; }
.eb { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.eb-line { height: 1px; width: 0; background: #fff; animation: ebLine .7s var(--ease) forwards; }
.eb-k { font: 400 10px var(--f-mono); letter-spacing: .7em; padding-left: .7em; color: #cfcfca; }
.eb-n { display: flex; align-items: center; gap: 16px; font: 700 clamp(18px, 3.4vh, 30px) var(--f-disp); letter-spacing: .22em; color: #fff; text-shadow: 0 4px 24px rgba(0, 0, 0, .8); }
.eb-n svg { width: 28px; height: 28px; stroke-width: 1.6; } .eb-n .sk { color: var(--hot); }
.eb-m { font: 400 10px var(--f-mono); letter-spacing: .5em; color: #b5b5af; padding-left: .5em; }
@keyframes ebLine { to { width: min(38vw, 360px); } }
@keyframes elimIn { 0% { opacity: 0; transform: translateY(10px); } 10% { opacity: 1; transform: none; } 82% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.h-skull { left: 50%; top: 46%; translate: -50% -50%; width: 110px; height: 110px; opacity: 0; color: #fff; filter: drop-shadow(0 0 18px rgba(255, 60, 60, .7)); }
.h-skull svg { width: 100%; height: 100%; stroke-width: 1.3; } .h-skull.on { animation: skullIn 1.1s var(--ease); }
@keyframes skullIn { 0% { opacity: 0; transform: scale(.4); } 14% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.4) translateY(-34px); } }
.pu-row { display: flex; justify-content: center; gap: 8px; margin-top: 7px; min-height: 0; }
.pu { display: flex; align-items: center; gap: 6px; padding: 2px 9px; border: 1px solid rgba(255, 255, 255, .55); background: var(--hd); font: 500 11px var(--f-mono); letter-spacing: .1em; } .pu svg { width: 14px; height: 14px; }
.feed-item .sk { color: var(--hot); }
.h-hit.head svg { stroke-width: 1.4; } .h-hit.head { width: 40px; height: 40px; }
/* legacy gradients out */
.lc-code { background: none; -webkit-text-fill-color: #fff; color: #fff; font-style: normal; font-family: var(--f-disp); letter-spacing: .2em; }
.res-title { font-family: var(--f-disp); font-style: normal; letter-spacing: .1em; } .res-banner { background: linear-gradient(100deg, color-mix(in srgb, var(--team) 40%, transparent), transparent 70%); }
.h-announce, .h-count { font-family: var(--f-disp); font-style: normal; } .h-count { letter-spacing: .1em; }
.medal { background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .6); clip-path: none; font-family: var(--f-mono); letter-spacing: .3em; font-weight: 500; }
.medal svg { color: #fff; border-color: #fff; }
.toast { background: rgba(0, 0, 0, .8); border-color: var(--line); }

#title::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.88) 0, rgba(0,0,0,.6) 34%, rgba(0,0,0,0) 60%), linear-gradient(0deg, rgba(0,0,0,.7) 0, transparent 22%); }
#title > * { z-index: 1; }

/* widescreen sniper scope */
.h-scope { inset: 0; display: none; pointer-events: none; color: #fff; }
.h-scope.on { display: block; animation: scopeIn .28s var(--ease); }
@keyframes scopeIn { from { opacity: 0; } to { opacity: 1; } }
.h-scope .sb { position: absolute; left: 0; right: 0; background: #000; height: 24vh; }
.h-scope .sb.t { top: 0; animation: bandT .34s var(--ease); } .h-scope .sb.b { bottom: 0; animation: bandB .34s var(--ease); }
@keyframes bandT { from { translate: 0 -100%; } } @keyframes bandB { from { translate: 0 100%; } }
.h-scope::before { content: ''; position: absolute; inset: 24vh 0; box-shadow: inset 0 0 22vh 6vh rgba(0, 0, 0, .78); }
.h-scope .sh { position: absolute; left: 6vw; right: 6vw; top: 50%; height: 2px; translate: 0 -1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .0) 0 calc(2vw - 1px), rgba(255, 255, 255, .85) calc(2vw - 1px) 2vw);
  mask: linear-gradient(90deg, transparent, #000 12%, transparent 45%, transparent 55%, #000 88%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, transparent 45%, transparent 55%, #000 88%, transparent); height: 14px; translate: 0 -7px; }
.h-scope .sv { position: absolute; left: 50%; top: 24vh; bottom: 24vh; width: 1px; translate: -.5px 0;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 68%, #fff); opacity: .9; }
.h-scope .sv2 { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; translate: -50% -50%; border: 1px solid #fff; border-radius: 50%; }
.h-scope .zt { position: absolute; left: 7vw; top: calc(50% - 30px); font: 700 clamp(22px, 3.4vh, 34px) var(--f-disp); letter-spacing: .14em; }
.h-scope .rg, .h-scope .am { position: absolute; right: 7vw; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.h-scope .rg { top: calc(50% - 44px); } .h-scope .am { top: calc(50% + 8px); }
.h-scope small { font: 400 9px var(--f-mono); letter-spacing: .5em; color: #b5b5af; }
.h-scope b { font: 700 clamp(18px, 2.8vh, 26px) var(--f-mono); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.h-scope.lock .sv2 { border-color: var(--hot); box-shadow: 0 0 14px var(--hot); background: rgba(255, 61, 61, .25); } .h-scope.lock .rg b { color: var(--hot); }
.join-input.tag { width: 230px; font-size: 15px; letter-spacing: .14em; }
.roll { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 1px solid var(--line); color: #fff; cursor: pointer; } .roll svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; } .roll:hover { border-color: #fff; }

/* modes: score names, objective status, markers, crown, perfect */
.sc-row { grid-template-columns: 14px 78px 1fr 46px; } .sc-nm { letter-spacing: .1em; }
.sc-nm { font: 500 9px var(--f-mono); font-style: normal; letter-spacing: .18em; color: #cfcfca; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-obj { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.ob { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; padding: 3px 8px; background: var(--hd); backdrop-filter: blur(6px); font: 500 10px var(--f-mono); letter-spacing: .16em; color: #cfcfca; }
.ob i { width: 8px; height: 8px; background: var(--c, #fff); } .ob.red { --c: var(--red); } .ob.blue { --c: var(--blue); } .ob.ball { --c: #ffd84a; }
.ob b { font-weight: 700; color: #fff; } .ob.away b { color: var(--hot); animation: obPulse 1s infinite; } @keyframes obPulse { 50% { opacity: .35; } }
.sc-lead { display: none; align-items: center; gap: 8px; margin-top: 4px; padding: 3px 8px; background: var(--hd); font: 500 10px var(--f-mono); letter-spacing: .18em; color: #ffd84a; }
.sc-lead.on { display: flex; } .sc-lead svg { width: 14px; height: 14px; fill: currentColor; stroke: none; } .sc-lead b { margin-left: auto; color: #fff; }
.mk.objm i { border-top-color: #fff; } .mk.objm span { color: #fff; font-weight: 700; letter-spacing: .2em; } .mk.objm.t-red i { border-top-color: var(--red); } .mk.objm.t-blue i { border-top-color: var(--blue); }
.mk.objm.t-red span { color: #ffb3b9; } .mk.objm.t-blue span { color: #b3d6ff; } .mk.objm.base i { opacity: .55; }
.mk.leadm i { border-top-color: #ffd84a; } .mk.leadm span { color: #ffd84a; display: flex; align-items: center; gap: 6px; top: -30px; } .mk.leadm svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.medal.perfect { border-color: #ffd84a; background: linear-gradient(90deg, rgba(255, 216, 74, .28), rgba(0, 0, 0, .7)); box-shadow: 0 0 40px rgba(255, 216, 74, .35); animation: perfectIn .5s var(--ease); }
.medal.perfect svg { color: #ffd84a; border-color: #ffd84a; fill: #ffd84a; stroke: #ffd84a; } .medal.perfect span { color: #ffd84a; letter-spacing: .5em; }
@keyframes perfectIn { from { transform: scale(1.5); opacity: 0; } }
.feed-item .pf { color: #ffd84a; }
.tbl td.nm svg.cr { width: 14px; height: 14px; fill: #ffd84a; stroke: none; margin-right: 6px; vertical-align: -2px; }
.tbl tr[style] td.nm { color: var(--tc); } .h-board h4.ffa { color: #fff; }
@media (max-height: 520px) { .sc-nm { display: none; } .sc-row { grid-template-columns: 14px 1fr 46px; } .h-obj, .sc-lead { display: none; } }

/* ---- armory / record / progression ---- */
#armory .panel, #record .panel { left: calc(48px + var(--safe-l)); translate: 0 -50%; width: min(880px, 62vw); }
.arm-wallet { margin-left: auto; display: flex; align-items: baseline; gap: 14px; font: 500 11px var(--f-mono); letter-spacing: .22em; color: var(--dim); }
.arm-wallet b { color: #fff; font-weight: 700; } .arm-wallet em { font-style: normal; color: #ffd84a; }
.arm-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; padding-bottom: 10px; }
.at { background: none; border: 1px solid transparent; color: var(--dim); font: 500 10px var(--f-mono); letter-spacing: .26em; padding: 8px 12px; cursor: pointer; transition: color .2s, border-color .2s; }
.at:hover { color: #fff; } .at.on { color: #000; background: #fff; }
.arm-tabs.focus .at.on { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.arm-body { display: grid; grid-template-columns: 1fr 250px; gap: 22px; min-height: 340px; }
.arm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; align-content: start; max-height: 46vh; overflow-y: auto; scrollbar-width: none; padding: 3px; }
.at-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); color: #fff; cursor: pointer; text-align: center; transition: transform .2s var(--ease), border-color .2s, background .2s; }
.at-tile:hover { background: rgba(255, 255, 255, .07); }
.at-tile.sel { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.arm-grid.focus .at-tile.sel { outline: 1px solid #fff; outline-offset: 3px; }
.at-tile.locked { opacity: .45; } .at-tile.buy .ts { color: #ffd84a; } .at-tile.eq { border-color: var(--c, #fff); box-shadow: inset 0 -3px 0 var(--c, #fff); }
.at-tile .tv { height: 56px; display: grid; place-items: center; }
.at-tile .tn { font: 700 12px var(--f-disp); letter-spacing: .14em; } .at-tile .ts { font: 400 9px var(--f-mono); letter-spacing: .22em; color: var(--dim); }
.at-tile .lk { position: absolute; right: 7px; top: 7px; width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 1.6; }
.tv .sw { width: 42px; height: 42px; background: conic-gradient(from 210deg, var(--c), #fff 25%, var(--c) 55%, #0a0a0a); border-radius: 50%; }
.tv .hl { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--c); box-shadow: 0 0 18px var(--c), inset 0 0 12px var(--c); }
.tv .tt svg, .tv svg.wi { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 1.5; }
.emb { display: inline-grid; place-items: center; border-radius: 50%; border: 2px solid var(--tc, #fff); color: var(--tc, #fff); box-shadow: 0 0 14px color-mix(in srgb, var(--tc, #fff) 45%, transparent), inset 0 0 10px color-mix(in srgb, var(--tc, #fff) 22%, transparent); background: rgba(0, 0, 0, .5); }
.emb svg.nuart { width: 62%; height: 62%; stroke: none; fill: currentColor; }
.emb svg { width: 56%; height: 56%; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.arm-detail { border-left: 1px solid var(--line); padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.ad-k { font: 400 9px var(--f-mono); letter-spacing: .34em; color: var(--dim); } .ad-n { font: 700 22px var(--f-disp); letter-spacing: .12em; }
.arm-detail p { font: 400 13px/1.5 var(--f-hud); color: #cfcfca; } .ad-hint { font: 500 10px var(--f-mono); letter-spacing: .22em; color: #ffd84a; }
.stat-tbl { display: grid; gap: 4px; } .stat-tbl div { display: flex; justify-content: space-between; font: 400 10px var(--f-mono); letter-spacing: .16em; border-bottom: 1px solid var(--line); padding: 4px 0; } .stat-tbl b { color: #fff; }
.ad-act { align-self: flex-start; margin-top: 4px; }
/* record */
.rc-top { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-bottom: 18px; }
.rc-head { display: flex; gap: 20px; align-items: center; } .rc-tag { font: 700 30px var(--f-disp); letter-spacing: .14em; } .rc-title { font: 500 11px var(--f-mono); letter-spacing: .34em; color: #ffd84a; margin: 4px 0; } .rc-rank { font: 400 11px var(--f-mono); letter-spacing: .26em; color: var(--dim); }
.xp-bar { height: 6px; background: rgba(255, 255, 255, .12); } .xp-bar i { display: block; height: 100%; background: #fff; box-shadow: 0 0 14px #fff; transition: width .8s var(--ease); }
.xp-n { display: flex; justify-content: space-between; margin-top: 8px; font: 500 10px var(--f-mono); letter-spacing: .22em; color: var(--dim); } .xp-n span { color: #ffd84a; }
.rc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 18px 0 8px; }
.rs { padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); } .rs b { display: block; font: 700 22px var(--f-mono); font-variant-numeric: tabular-nums; } .rs span { font: 400 9px var(--f-mono); letter-spacing: .26em; color: var(--dim); }
.rc-h { font: 500 10px var(--f-mono); letter-spacing: .4em; color: var(--dim); margin: 18px 0 10px; }
.rc-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 20vh; overflow-y: auto; scrollbar-width: none; }
.bd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); opacity: .5; text-align: center; } .bd.got { opacity: 1; border-color: rgba(255, 216, 74, .5); }
.bd .emb { width: 38px; height: 38px; } .bd b { font: 700 9px var(--f-disp); letter-spacing: .1em; } .bd em { font: 400 8px var(--f-mono); letter-spacing: .18em; font-style: normal; color: var(--dim); }
/* title-screen player card */
.pcard { position: absolute; left: calc(56px + var(--safe-l)); bottom: calc(96px + var(--safe-b)); display: flex; align-items: center; gap: 14px; }
.pcard .rc-tag { font-size: 16px; } .pcard .rc-title { margin: 2px 0; font-size: 9px; } .pcard .xp-bar { width: 190px; margin-top: 6px; }
/* results xp */
.res-xp { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
.res-xp .rx-h { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; font: 700 13px var(--f-disp); letter-spacing: .2em; } .res-xp .rx-h b { color: #ffd84a; font-family: var(--f-mono); }
.res-xp .rx-r { display: flex; justify-content: space-between; font: 400 10px var(--f-mono); letter-spacing: .16em; color: #cfcfca; } .res-xp .rx-r b { color: #fff; }
.res-xp .xp-bar { grid-column: 1 / -1; } .res-xp .rx-up { grid-column: 1 / -1; font: 700 12px var(--f-disp); letter-spacing: .3em; color: #ffd84a; animation: obPulse 1.2s 4; }
.res-xp .rx-new { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; } .rx-new .rm { border-color: rgba(255, 216, 74, .6); }
#setup .cards { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; } #setup .card { min-height: 78px; padding: 10px 12px; } #setup .card .cb { display: none; } #setup .card .cn { font-size: 20px; }
.card.locked { opacity: .4; } .card .lk { position: relative; font: 400 9px var(--f-mono); letter-spacing: .24em; color: #ffd84a; margin-top: 4px; }
@media (max-width: 900px) { #armory .panel, #record .panel { left: 50%; translate: -50% -50%; width: 94vw; } .arm-body { grid-template-columns: 1fr; } .arm-detail { border-left: 0; padding-left: 0; } .rc-stats { grid-template-columns: repeat(2, 1fr); } .pcard { display: none; } }
.pcard { left: auto; right: calc(56px + var(--safe-r)); top: 96px; bottom: auto; flex-direction: row-reverse; text-align: right; }
.pcard .xp-bar { margin-left: auto; }
@media (max-height: 760px) { .menu-item { padding-top: 9px !important; padding-bottom: 9px !important; } .rc-stats { margin-top: 8px; } .rc-h { margin: 10px 0 6px; } .rc-badges { max-height: 16vh; } .rs { padding: 6px 10px; } .rs b { font-size: 17px; } }
.arm-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); } .arm-body { grid-template-columns: 1fr 230px; }
.ch-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ch { padding: 10px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); display: grid; gap: 6px; } .ch.wk { border-color: rgba(255, 216, 74, .35); } .ch.done { opacity: .6; }
.ch-t { display: flex; align-items: baseline; gap: 10px; font: 500 11px var(--f-mono); letter-spacing: .1em; } .ch-t em { font-style: normal; font-size: 8px; letter-spacing: .3em; color: var(--dim); } .ch-t span { flex: 1; color: #fff; } .ch-t b { color: #ffd84a; font-weight: 700; }
.ch-p { font: 400 9px var(--f-mono); letter-spacing: .22em; color: var(--dim); } .ch .xp-bar { height: 4px; } .rc-h span { color: #ffd84a; margin-left: 12px; letter-spacing: .3em; }
@media (max-width: 900px) { .ch-list { grid-template-columns: 1fr; } }
.h-reticle:not(.enemy) { color: var(--ret, #fff); }
.h-tut { display: none; left: calc(30px + var(--safe-l)); top: 34%; width: 220px; padding: 14px 16px; background: var(--hd, rgba(0, 0, 0, .55)); border-left: 2px solid #fff; backdrop-filter: blur(8px); }
.h-tut.on { display: block; animation: scrIn .7s var(--ease) both; }
.tt-h { font: 700 11px var(--f-disp); letter-spacing: .34em; margin-bottom: 10px; } .tt-r { display: flex; align-items: center; gap: 12px; padding: 3px 0; font: 500 10px var(--f-mono); letter-spacing: .22em; color: #cfcfca; }
.tt-f { margin-top: 10px; font: 400 11px/1.4 var(--f-hud); color: var(--dim); }
@media (max-height: 520px), (pointer: coarse) { .h-tut { display: none !important; } }
.tv .wimg { width: 100%; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); } .wbig { width: 100%; max-height: 92px; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); margin: 2px 0 4px; }
.at-tile .tv { width: 100%; }
.wp-icon { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.wsil { height: 34px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); opacity: .95; } .wsil.sec { height: 20px; opacity: .45; }

/* ---- warlock kit tray ---- */
.h-abil { position: absolute; right: calc(30px + var(--safe-r)); bottom: calc(46px + var(--safe-b)); display: flex; align-items: flex-end; gap: 26px; pointer-events: none; --vo: #b98cff; }
.ab { position: relative; display: grid; justify-items: center; gap: 6px; color: var(--paper); }
.ab em { white-space: nowrap; font: 500 9.5px var(--f-mono); letter-spacing: .36em; font-style: normal; color: var(--dim); text-indent: .36em; }
.ab .kd { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 6px; font: 700 10px var(--f-mono); letter-spacing: .12em; background: var(--ink); border: 1px solid var(--line); }
.ab.nova { width: 84px; }
.ab.nova .ring { width: 84px; height: 84px; transform: rotate(-90deg); overflow: visible; }
.ab.nova .ring circle { fill: rgba(4, 4, 4, .62); stroke: var(--line); stroke-width: 2.5; }
.ab.nova .ring .pg { fill: none; stroke: var(--vo); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: butt; transition: stroke-dashoffset .3s linear; filter: drop-shadow(0 0 5px var(--vo)); }
.ab.nova .ic { position: absolute; top: 22px; left: 50%; width: 40px; height: 40px; margin-left: -20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; opacity: .75; }
.ab.nova .pct { position: absolute; top: 61px; left: 0; right: 0; text-align: center; font: 700 10px var(--f-mono); letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--paper); text-shadow: 0 0 6px #000; }
.ab.nova.ready .ic { color: var(--vo); opacity: 1; animation: novaPulse 1s ease-in-out infinite; }
.ab.nova.ready .ring .pg { stroke-width: 4; }
.ab.nova.ready .kd { border-color: var(--vo); color: var(--vo); }
.ab.nova.cast .ic { animation: novaPulse .3s ease-in-out infinite; color: #fff; }
@keyframes novaPulse { 50% { transform: scale(1.14); filter: drop-shadow(0 0 10px var(--vo)); } }
.ab.blink { padding-bottom: 2px; }
.ab.blink .ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab.blink .pips { display: flex; gap: 6px; }
.ab.blink .pips i { --f: 0; position: relative; width: 26px; height: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; transform: skewX(-24deg); }
.ab.blink .pips i::after { content: ''; position: absolute; inset: 0; background: var(--vo); transform-origin: left; transform: scaleX(var(--f)); box-shadow: 0 0 8px var(--vo); }
.ab.blink .pips i:not(.full)::after { opacity: .45; }
@media (max-width: 900px) { .h-abil { bottom: calc(150px + var(--safe-b)); transform: scale(.8); transform-origin: right bottom; } }
.t-blink, .t-nova { display: none; }
body.is-warlock .t-blink, body.is-warlock .t-nova, body.is-spartan .t-blink, body.is-spartan .t-nova { display: grid; }
body.is-warlock .t-gren { display: none; }
.t-blink { right: calc(96px + var(--safe-r)); bottom: calc(126px + var(--safe-b)); border-color: #b98cff; }
.t-nova { right: calc(170px + var(--safe-r)); bottom: calc(150px + var(--safe-b)); width: 64px; height: 64px; border-color: #b98cff; box-shadow: 0 0 18px rgba(185, 140, 255, .45); }
/* nova incoming warning */
.h-novaw { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .15s; --u: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(150, 80, 255, calc(.18 + var(--u) * .4)) 100%); }
.h-novaw.on { opacity: 1; animation: novaWarn calc(.9s - var(--u) * .6s) ease-in-out infinite; }
.h-novaw b { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font: 700 13px var(--f-mono); letter-spacing: .5em; text-indent: .5em; color: #d9c2ff; text-shadow: 0 0 14px #9a5cff; white-space: nowrap; }
.h-novaw span { position: absolute; left: 50%; top: calc(30% + 24px); transform: translateX(-50%); font: 500 11px var(--f-mono); letter-spacing: .3em; color: var(--paper); font-variant-numeric: tabular-nums; }
@keyframes novaWarn { 50% { filter: brightness(1.5); } }

/* save data */
#saveText { width: 100%; min-height: 96px; resize: vertical; margin: 6px 0 4px; padding: 12px 14px; font: 500 11px/1.5 var(--f-mono); letter-spacing: .04em; color: var(--paper); background: rgba(0, 0, 0, .5); border: 1px solid var(--line); outline: none; word-break: break-all; }
#saveText:focus { border-color: var(--paper); }
#saveOpts { display: grid; gap: 8px; margin-top: 10px; }

/* ---- sanctum hub ---- */
#hubhud { position: fixed; inset: 0; z-index: 12; pointer-events: none; color: var(--paper); font-family: var(--f-hud); }
#hubhud.hidden { display: none; }
.hh-loc { position: absolute; left: calc(30px + var(--safe-l)); top: calc(26px + var(--safe-t)); display: grid; gap: 4px; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.hh-loc b { font: 700 12px var(--f-mono); letter-spacing: .5em; color: #ffd8b0; }
.hh-loc span { font: 700 26px var(--f-hud); font-style: italic; letter-spacing: .04em; }
.hh-disc { position: absolute; right: calc(30px + var(--safe-r)); top: calc(26px + var(--safe-t)); display: grid; gap: 6px; text-align: right; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.hh-disc span { font: 500 10px var(--f-mono); letter-spacing: .4em; color: #ffd8b0; }
.hh-disc b { font: 700 22px var(--f-mono); font-variant-numeric: tabular-nums; }
.hh-disc i { display: block; width: 180px; height: 3px; background: rgba(255, 255, 255, .2); margin-left: auto; } .hh-disc u { display: block; height: 100%; width: 0; background: #ffd8b0; box-shadow: 0 0 10px #ffb070; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.hh-prompt { position: absolute; left: 50%; bottom: calc(14% + var(--safe-b)); transform: translate(-50%, 12px); opacity: 0; display: flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; background: rgba(10, 8, 12, .62); backdrop-filter: blur(12px); border: 1px solid rgba(255, 214, 160, .5); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.hh-prompt.on { opacity: 1; transform: translate(-50%, 0); }
.hh-prompt span { font: 700 13px var(--f-mono); letter-spacing: .22em; }
.hh-toast { position: absolute; left: 50%; top: 15%; transform: translate(-50%, -10px); opacity: 0; padding: 10px 24px; font: 700 12px var(--f-mono); letter-spacing: .3em; white-space: nowrap; background: rgba(10, 8, 12, .6); backdrop-filter: blur(10px); border-top: 1px solid #ffd8b0; border-bottom: 1px solid #ffd8b0; text-shadow: 0 0 12px rgba(255, 190, 120, .8); }
.hh-toast.on { animation: hhToast 3.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hhToast { 0% { opacity: 0; transform: translate(-50%, -14px); } 10%, 82% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
.hcard { position: absolute; right: calc(5vw + var(--safe-r)); top: 50%; width: min(440px, 44vw); transform: translate(40px, -50%); opacity: 0; padding: 26px 28px 20px; background: linear-gradient(180deg, rgba(14, 11, 16, .78), rgba(8, 7, 10, .84)); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255, 214, 160, .38); clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); transition: opacity .3s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.hcard.on { opacity: 1; transform: translate(0, -50%); }
.hc-k { font: 500 10px var(--f-mono); letter-spacing: .42em; color: #ffd8b0; margin-bottom: 8px; }
.hcard h2 { font: 700 30px/1.05 var(--f-hud); font-style: italic; letter-spacing: -.01em; margin-bottom: 6px; text-wrap: balance; }
.hc-s { font: 700 11px var(--f-mono); letter-spacing: .3em; color: #ff9a8a; margin-bottom: 10px; } .hc-s:empty { display: none; }
.hc-b { font: 500 14px/1.6 var(--f-body, var(--f-hud)); color: #e8e2dc; margin-bottom: 14px; }
.hc-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); margin-bottom: 16px; } .hc-stats:empty { display: none; }
.hc-stats div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: rgba(8, 7, 10, .7); font-family: var(--f-mono); }
.hc-stats span { font-size: 10px; letter-spacing: .2em; color: var(--dim); } .hc-stats b { font-size: 13px; font-variant-numeric: tabular-nums; }
.hc-act { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hc-act span { display: flex; align-items: center; gap: 8px; } .hc-act em { font: 700 10px var(--f-mono); letter-spacing: .24em; font-style: normal; color: #d8d0c8; }
/* missions */
.missions .mc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-height: 58vh; overflow-y: auto; padding: 4px; scrollbar-width: none; }
.mcard { text-align: left; color: var(--paper); padding: 16px 18px 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); cursor: pointer; display: grid; gap: 8px; font-family: var(--f-hud); transition: background .2s, border-color .2s, transform .25s cubic-bezier(.2, .8, .2, 1); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.mcard.focus, .mcard:hover { background: rgba(255, 214, 160, .1); border-color: #ffd8b0; transform: translateY(-2px); }
.mcard.locked { opacity: .45; } .mcard.daily { border-color: rgba(255, 214, 160, .55); background: linear-gradient(120deg, rgba(255, 190, 120, .12), rgba(255, 255, 255, .03)); }
.mc-top { display: flex; align-items: baseline; gap: 10px; } .mc-top em { font: 500 10px var(--f-mono); letter-spacing: .3em; font-style: normal; color: #ffd8b0; } .mc-top b { font: 700 19px var(--f-hud); font-style: italic; flex: 1; } .mc-st { font: 700 10px var(--f-mono); letter-spacing: .2em; color: var(--dim); } .mcard.done .mc-st { color: #9aff9a; }
.mcard p { font: 500 13px/1.5 var(--f-hud); color: #cfc8c0; }
.mc-tags { display: flex; flex-wrap: wrap; gap: 6px; } .mc-tags span { font: 700 10px var(--f-mono); letter-spacing: .16em; padding: 3px 8px; border: 1px solid var(--line); color: #e8e2dc; }
.mc-rw { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 700 11px var(--f-mono); letter-spacing: .1em; color: #ffd8b0; } .mc-rw .got { color: #9aff9a; } .mc-rw span:last-child { color: var(--dim); font-weight: 500; }
.ms-res { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: baseline; padding: 12px 16px; margin-bottom: 10px; border: 1px solid #ffd8b0; background: rgba(255, 214, 160, .08); }
.ms-res em { font: 500 10px var(--f-mono); letter-spacing: .36em; font-style: normal; color: #ffd8b0; } .ms-res b { font: 700 18px var(--f-hud); font-style: italic; } .ms-res span { font: 700 11px var(--f-mono); letter-spacing: .2em; color: #9aff9a; } .ms-res.no span { color: #ff8a8a; } .ms-res i { grid-column: 1 / -1; font: 500 12px var(--f-mono); font-style: normal; color: #e8e2dc; }
@media (max-width: 900px) { .missions .mc-list { grid-template-columns: 1fr; } .hcard { right: 3vw; width: 60vw; } .hh-loc span { font-size: 18px; } .hh-disc i { width: 110px; } }
body.in-hub .fx-grain { opacity: .35; }

.hh-hints { position: absolute; left: calc(30px + var(--safe-l)); bottom: calc(28px + var(--safe-b)); display: flex; flex-wrap: wrap; gap: 8px 22px; opacity: 0; transition: opacity 1s; }
.hh-hints.on { opacity: .95; } .hh-hints span { display: flex; align-items: center; gap: 6px; } .hh-hints em { font: 700 10px var(--f-mono); letter-spacing: .24em; font-style: normal; color: #f0e6dc; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
#hubhud.photo > *:not(.hcard) { opacity: 0 !important; }

/* power weapon countdown */
.mk.ptimer span { top: -8px; font: 700 12px var(--f-mono); color: #ffd25a; letter-spacing: .1em; }
.pw-chip { position: absolute; left: 50%; top: calc(var(--safe-t, 14px) + 178px);   /* below the top vitals (h-top) and the announce banner */ translate: -50% 0; display: flex; align-items: center; gap: 10px; padding: 6px 14px; border: 1px solid rgba(255, 210, 90, .35); background: rgba(10, 12, 18, .5); backdrop-filter: blur(10px) saturate(1.4); font: 600 11px var(--f-mono); letter-spacing: .2em; color: #fff; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.pw-chip.on { opacity: 1; transform: none; } .pw-chip b { font-size: 18px; color: #ffd25a; min-width: 2ch; text-align: right; } .pw-chip em::before { content: 'INCOMING'; color: rgba(255, 255, 255, .5); font-style: normal; }
.pw-chip.soon { border-color: #ffd25a; animation: pwp 1s ease-in-out infinite; } @keyframes pwp { 50% { box-shadow: 0 0 18px rgba(255, 210, 90, .5); } }
@media (prefers-reduced-motion: reduce) { .pw-chip.soon { animation: none; } }

/* pointer lock capture overlay */
#lockOverlay{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;cursor:pointer;background:rgba(6,8,14,.55);backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);animation:loIn .18s ease-out}
#lockOverlay[hidden]{display:none}
#lockOverlay .lo-card{padding:28px 44px;text-align:center;border:1px solid rgba(255,255,255,.18);background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.03));box-shadow:0 20px 60px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.25)}
#lockOverlay .lo-k{font:600 11px/1 'Rajdhani',system-ui,sans-serif;letter-spacing:.5em;color:#d9b55f;margin-bottom:12px}
#lockOverlay .lo-t{font:700 26px/1.1 'Rajdhani',system-ui,sans-serif;letter-spacing:.18em;color:#fff}
#lockOverlay .lo-s{margin-top:10px;font:500 12px/1.4 system-ui,sans-serif;letter-spacing:.08em;color:rgba(255,255,255,.6)}
@keyframes loIn{from{opacity:0}to{opacity:1}}
