/* Counter-Strike (alexxchen.com/cs) — UI styles. 1.6 look: orange-yellow translucent HUD,
   black/orange in-game VGUI menus, olive "Steam" panels for the server browser and options. */

:root {
  --hud: rgb(255, 172, 20);
  --hud-a: 0.82;
  --hud-low: rgb(250, 36, 30);
  --ct: rgb(153, 204, 255);
  --t: rgb(255, 80, 70);
  --spec: rgb(204, 204, 204);
  --vg-bg: rgba(0, 0, 0, 0.78);
  --vg-line: rgba(255, 176, 0, 0.75);
  --vg-text: rgb(255, 186, 60);
  --vg-dim: rgba(255, 186, 60, 0.45);
  --st-bg: #4c5844;
  --st-panel: #3e4637;
  --st-dark: #292c21;
  --st-light: #889180;
  --st-text: #dedfd6;
  --st-dim: #a0aa95;
  --st-sel: #958831;
  --font: Tahoma, Verdana, "DejaVu Sans", "Segoe UI", sans-serif;
  --hud-h: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--st-text); overflow: hidden; }
body { font: 12px/1.35 var(--font); -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none; }
input, select, button, textarea { font: inherit; color: inherit; }
input, textarea { user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }

#game { position: fixed; inset: 0; overflow: hidden; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; background: #1a1712; }
#ui, .ui-root { position: absolute; inset: 0; pointer-events: none; }
.ui-root > * { pointer-events: none; }

.boot { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: #000; color: var(--vg-text); z-index: 50; }
.boot-title { font: bold 28px var(--font); letter-spacing: 1px; }
.boot-sub { color: var(--vg-dim); margin-top: 6px; }

.tc-ct { color: var(--ct); }
.tc-t { color: var(--t); }
.tc-spec { color: var(--spec); }
.dim { color: var(--st-dim); }

/* ============================== HUD ============================== */
.hud { position: absolute; inset: 0; pointer-events: none; color: var(--hud); text-shadow: 0 0 1px #000; }
.hud .ico { display: block; }

.hud-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--hud-h) * 2.2); }
.hb { position: absolute; display: flex; align-items: center; gap: calc(var(--hud-h) * 0.25); color: var(--hud); opacity: var(--hud-a); filter: drop-shadow(0 0 1px rgba(0,0,0,.55)); }
.hb .hb-ico { display: flex; }
.hb-hp { left: calc(var(--hud-h) * 0.6); bottom: calc(var(--hud-h) * 0.45); }
.hb-ar { left: calc(var(--hud-h) * 6); bottom: calc(var(--hud-h) * 0.45); }
.hb-ammo { right: calc(var(--hud-h) * 0.6); bottom: calc(var(--hud-h) * 0.45); }
.hb-money { right: calc(var(--hud-h) * 0.6); bottom: calc(var(--hud-h) * 1.75); }
.hb.low { color: var(--hud-low); opacity: 0.95; }
.hb-money.mflash { opacity: 1; filter: brightness(1.35) drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.hb-delta { display: flex; margin-right: calc(var(--hud-h) * 0.3); }
.hb-delta.up { color: rgb(60, 240, 60); }
.hb-delta.down { color: rgb(250, 50, 40); }

.status-icons { position: absolute; left: calc(var(--hud-h) * 0.6); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.si { display: none; opacity: var(--hud-a); }
.si.on { display: block; }
.si-buy { color: rgb(0, 220, 60); }
.si-c4 { color: rgb(0, 200, 0); }
.si-c4.blink { color: rgb(250, 40, 30); }
.si-kit { color: rgb(0, 160, 255); }

.pickups { position: absolute; right: calc(var(--hud-h) * 0.6); bottom: calc(var(--hud-h) * 3.1); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; opacity: var(--hud-a); }

/* crosshair */
.hud-xhair { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.xhair { position: absolute; left: 0; top: 0; pointer-events: none; image-rendering: pixelated; }

/* sniper scope */
.scope { position: absolute; inset: 0; display: none; background: radial-gradient(circle at 50% 50%, transparent 0, transparent calc(min(50vw, 50vh) - 1px), #000 min(50vw, 50vh)); }
.scope.on { display: block; }
.scope-h { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #000; }
.scope-v { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #000; }

/* damage direction (1.6 pain sprites) */
.dmg i { position: absolute; opacity: 0; background: rgba(255, 0, 0, 0.55); border-radius: 50%; filter: blur(2px); transition: opacity 0.08s; }
.dmg .d-f { left: 50%; top: 30%; width: 90px; height: 14px; margin-left: -45px; }
.dmg .d-b { left: 50%; top: 70%; width: 90px; height: 14px; margin-left: -45px; }
.dmg .d-l { left: 34%; top: 50%; width: 14px; height: 90px; margin-top: -45px; }
.dmg .d-r { right: 34%; top: 50%; width: 14px; height: 90px; margin-top: -45px; }

/* flashbang */
.flashbang { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

/* centre text */
.center-msg { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: bold 15px var(--font); color: #fff; text-shadow: 1px 1px 1px #000, 0 0 3px #000; opacity: 0; transition: opacity .2s; white-space: pre-line; }
.center-msg.show { opacity: 1; }
.hint { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); max-width: 60vw; text-align: center; padding: 5px 10px; font-size: 12px; color: rgb(255, 214, 120); background: rgba(0,0,0,.45); border: 1px solid rgba(255,176,0,.35); opacity: 0; transition: opacity .2s; }
.hint.show { opacity: 1; }
.notice { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); padding: 4px 12px; color: #fff; background: rgba(0,0,0,.55); border: 1px solid rgba(255,176,0,.5); }

/* plant / defuse bar */
.progress { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); width: min(320px, 40vw); text-align: center; }
.progress-label { color: var(--hud); margin-bottom: 3px; font-weight: bold; }
.progress-track { height: 10px; border: 1px solid var(--hud); background: rgba(0,0,0,.4); padding: 1px; }
.progress-bar { height: 100%; width: 0; background: var(--hud); }

/* radar */
.hud-radar { position: absolute; left: 8px; top: 8px; }
.radar { position: relative; width: clamp(130px, 25vh, 270px); }
.radar[data-size="small"] { width: clamp(110px, 19vh, 210px); }
.radar[data-size="large"] { width: clamp(160px, 33vh, 360px); }
.radar.large { width: clamp(220px, 46vh, 520px); }
.radar canvas { display: block; width: 100%; aspect-ratio: 1; background: rgba(8, 10, 8, 0.6); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 3px; }
.radar-loc { margin-top: 3px; text-align: center; color: rgb(110, 220, 110); font-size: 12px; font-weight: bold; text-shadow: 1px 1px 0 #000; min-height: 15px; }

/* killfeed */
.killfeed { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font: bold 12px Verdana, var(--font); }
.kf { display: flex; align-items: center; gap: 5px; padding: 1px 6px; text-shadow: 1px 1px 0 #000; transition: opacity .3s; }
.kf.me { background: rgba(0,0,0,.45); outline: 1px solid rgba(255, 60, 40, .7); }
.kf-ico { color: rgb(255, 176, 0); display: flex; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.7)); }
.kf-hs { color: rgb(255, 176, 0); display: flex; margin-left: -2px; }

/* chat */
.chat { position: absolute; left: 10px; bottom: calc(var(--hud-h) * 3.2); width: min(560px, 55vw); font: bold 12px Verdana, var(--font); text-shadow: 1px 1px 0 #000; }
.chat-line { color: #fff; padding: 1px 0; transition: opacity .3s; white-space: pre-wrap; word-break: break-word; }
.chat-line.sys .chat-text { color: rgb(255, 214, 120); }
.chat-text { color: #fff; font-weight: normal; }
.chat-input { display: flex; gap: 6px; margin-top: 4px; pointer-events: auto; }
.chat-prompt { color: #fff; }
.chat-input input { flex: 1; background: rgba(0,0,0,.5); border: 1px solid rgba(255,176,0,.5); color: #fff; padding: 1px 4px; outline: none; }

/* spectator bars */
.spec-bars .spec-bottom { position: absolute; left: 0; right: 0; height: 9vh; min-height: 40px; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: space-between; padding: 0 2vw; font-weight: bold; color: #fff; }
.spec-bars .spec-bottom { bottom: 0; flex-direction: column; justify-content: center; gap: 2px; }
.spec-help { font-weight: normal; color: var(--st-dim); font-size: 11px; }

.fps { position: absolute; right: 6px; bottom: 4px; color: #ddd; font: 11px monospace; text-shadow: 1px 1px 0 #000; }

/* ============================== in-game VGUI (black / orange) ============================== */
.menus { position: absolute; inset: 0; pointer-events: none; }
.vgui { pointer-events: auto; background: var(--vg-bg); border: 1px solid var(--vg-line); color: var(--vg-text); box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.vgui-title { padding: 8px 14px 6px; font: bold 16px var(--font); color: var(--vg-text); border-bottom: 1px solid rgba(255,176,0,.3); }
.vgui-foot { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-top: 1px solid rgba(255,176,0,.25); }
.vgui .item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 8px; margin: 0 0 3px; text-align: left; background: transparent; border: 1px solid rgba(255,176,0,.45); color: var(--vg-text); cursor: pointer; }
.vgui .item:hover:not(.off):not([disabled]) { background: rgba(255,176,0,.2); color: #fff; }
.vgui .item .num { min-width: 12px; color: #fff; }
.vgui .item.off, .vgui .item[disabled] { color: var(--vg-dim); border-color: rgba(255,176,0,.18); cursor: default; }
.vgui .item.other { font-style: italic; }
.vgui .item.cancel { margin-top: 10px; }
.vgui .price { margin-left: auto; padding-left: 10px; }


.textmenu { position: absolute; left: 12px; top: 38%; pointer-events: auto; font: bold 13px Verdana, var(--font); text-shadow: 1px 1px 0 #000; }
.tm-title { color: #fff; margin-bottom: 6px; }
.tm-item { color: rgb(255, 210, 90); padding: 1px 0; cursor: pointer; }
.tm-item .num { color: #fff; }
.tm-exit { margin-top: 8px; }

/* scoreboard */
.scoreboard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, 96vw); max-height: 92vh; overflow: hidden; background: rgba(0,0,0,.72); border: 1px solid rgba(255,176,0,.55); padding: 8px 12px 10px; font-size: 12px; color: #ddd; }
.sb-title { display: flex; justify-content: space-between; font: bold 14px var(--font); color: var(--vg-text); padding-bottom: 6px; border-bottom: 1px solid rgba(255,176,0,.35); margin-bottom: 4px; }
.sb-title span:last-child { font-size: 12px; font-weight: normal; color: var(--vg-dim); }
.scoreboard table { width: 100%; border-collapse: collapse; }
.scoreboard th { text-align: right; font-weight: normal; color: var(--vg-dim); padding: 2px 6px; }
.scoreboard td { text-align: right; padding: 1px 6px; white-space: nowrap; }
.scoreboard .sb-name { text-align: left; width: 45%; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.scoreboard .sb-status { text-align: left; width: 8%; color: inherit; }
.scoreboard .sb-money { width: 10%; }
.sb-head td { font-weight: bold; padding-top: 6px; border-bottom: 1px solid currentColor; }
.sb-head .sb-score { font-size: 15px; }
.sb-count { font-weight: normal; opacity: .75; font-size: 11px; }
.scoreboard tr.dead { opacity: .55; }
.scoreboard tr.local td { background: rgba(255,255,255,.1); }
.scoreboard .bot { font-size: 10px; opacity: .7; }
.sb-gap td { height: 8px; }
.sb-spec { margin-top: 8px; color: var(--spec); }

/* ============================== screens ============================== */
.screens { position: absolute; inset: 0; pointer-events: auto; background: rgba(0,0,0,.35); }
.screens[data-screen="browser"] { background: radial-gradient(ellipse at 50% 30%, #2a2a22 0%, #0d0d0a 70%); }
.modal-wrap, .browser-wrap { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.browser-wrap { align-content: center; gap: 8px; }
.br-help { text-align: center; font-size: 11px; }
.screen { width: min(860px, 96vw); max-height: 92vh; display: flex; flex-direction: column; }
.screen-body { padding: 12px 14px; overflow: auto; min-height: 0; }
.grow { flex: 1; }

/* team select (CS VGUI) */
.teamsel { width: min(620px, 96vw); }
.team-grid { display: grid; grid-template-columns: minmax(230px, 1fr) 1fr; gap: 16px; }
.team-btn { flex-wrap: wrap; row-gap: 1px; }
.team-btn .tb-name { font-weight: bold; }
.vgui .item .tb-count { margin-left: auto; color: #fff; font-size: 11px; }
.vgui .item .tb-note { flex-basis: 100%; padding-left: 20px; font-size: 11px; color: var(--vg-dim); }
.vgui .item:not(.team-btn) .tb-note { flex-basis: auto; margin-left: auto; }
.vgui .item.current { border-color: #fff; }
.team-info { color: var(--vg-text); line-height: 1.5; }
.team-info .dim { color: var(--vg-dim); }
/* Steam-style panels: server browser, game menu, options */
.vgui.steam { background: var(--st-bg); color: var(--st-text); border: 1px solid; border-color: var(--st-light) var(--st-dark) var(--st-dark) var(--st-light); box-shadow: 0 4px 24px rgba(0,0,0,.6); }
.steam .vgui-title { color: var(--st-text); font: bold 13px var(--font); background: var(--st-bg); border-bottom: 1px solid var(--st-dark); padding: 6px 10px; }
.steam .vgui-foot { border-top: 1px solid var(--st-dark); }
.btn { pointer-events: auto; background: var(--st-bg); color: var(--st-text); border: 1px solid; border-color: var(--st-light) var(--st-dark) var(--st-dark) var(--st-light); padding: 4px 12px; cursor: pointer; }
.btn:hover:not([disabled]) { color: #fff; background: #57634e; }
.btn:active:not([disabled]) { border-color: var(--st-dark) var(--st-light) var(--st-light) var(--st-dark); }
.btn[disabled] { color: var(--st-dim); cursor: default; }
.btn.primary { font-weight: bold; }
.btn.small { padding: 1px 8px; font-size: 11px; }
.btn.wide { display: block; width: 100%; text-align: left; padding: 7px 12px; margin-bottom: 5px; }
.steam input[type=text], .steam input:not([type]), .steam select, .br-name, .br-room { background: var(--st-panel); color: var(--st-text); border: 1px solid; border-color: var(--st-dark) var(--st-light) var(--st-light) var(--st-dark); padding: 3px 5px; outline: none; }
.steam input:focus, .steam select:focus { border-color: var(--st-sel); }

.br-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.br-top label { display: flex; align-items: center; gap: 6px; }
.br-name { width: 180px; }
.br-table-wrap { background: var(--st-panel); border: 1px solid; border-color: var(--st-dark) var(--st-light) var(--st-light) var(--st-dark); min-height: 240px; max-height: 52vh; overflow: auto; }
.br-table { width: 100%; border-collapse: collapse; }
.br-table th { position: sticky; top: 0; background: var(--st-bg); text-align: left; font-weight: normal; color: var(--st-text); padding: 3px 8px; border-right: 1px solid var(--st-dark); border-bottom: 1px solid var(--st-dark); }
.br-table td { padding: 3px 8px; white-space: nowrap; cursor: default; }
.br-table tr[data-id]:hover td { background: rgba(255,255,255,.05); }
.br-table tr.sel td { background: var(--st-sel); color: #fff; }
.br-table tr.empty td { color: var(--st-dim); padding: 30px; text-align: center; }
.br-table .br-n { width: 40%; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.br-create { display: flex; gap: 6px; margin-top: 8px; }
.br-create .br-room { flex: 1; }
.br-status { margin-left: auto; }

.gamemenu { width: min(300px, 90vw); }
.menu-list { padding: 4px 0; }


.tabs { display: flex; gap: 2px; margin-bottom: -1px; }
.tab { background: var(--st-panel); color: var(--st-dim); border: 1px solid var(--st-dark); border-bottom: none; padding: 4px 12px; cursor: pointer; }
.tab.on { background: var(--st-bg); color: var(--st-text); border-color: var(--st-light) var(--st-dark) transparent var(--st-light); }
.tab-body { border: 1px solid; border-color: var(--st-light) var(--st-dark) var(--st-dark) var(--st-light); padding: 10px; }
.form { width: 100%; border-collapse: collapse; }
.form td { padding: 4px 6px; vertical-align: middle; }
.form td:first-child { width: 42%; color: var(--st-text); }
.form input[type=range] { width: 60%; vertical-align: middle; accent-color: var(--st-sel); }
.form output { display: inline-block; min-width: 40px; margin-left: 8px; color: #fff; }
.form input[type=checkbox] { accent-color: var(--st-sel); vertical-align: middle; }
.settings { width: min(600px, 96vw); }
.xh-top { display: flex; gap: 10px; align-items: stretch; margin-bottom: 6px; }
.xh-preview { width: 220px; height: 124px; flex: none; border: 1px solid var(--st-dark); background: #000; }
.xh-presets { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.xh-presets .btn { text-align: left; }
.xh-presets .btn.on, .xh-col.on { outline: 1px solid #fff; outline-offset: 1px; }
.xh-presets .btn.on { background: var(--st-sel); color: #fff; }
.xh-form td:first-child { width: 28%; }
.xh-chk { margin-right: 12px; white-space: nowrap; }
.xh-colors { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.xh-col { width: 16px; height: 16px; padding: 0; border: 1px solid #000; cursor: pointer; }
.xh-pick { width: 26px; height: 18px; padding: 0; border: 1px solid var(--st-dark); background: none; cursor: pointer; }
.xh-hex, .xh-code, .xh-import { width: 150px; font: 11px monospace; background: var(--st-panel); color: #fff; border: 1px solid var(--st-dark); padding: 2px 4px; margin-right: 6px; }
.xh-hex { width: 70px; }
.xh-status { min-height: 14px; padding: 2px 6px; font-size: 11px; }
.binds-wrap { max-height: 50vh; overflow: auto; background: var(--st-panel); }
.binds { width: 100%; border-collapse: collapse; }
.binds th { text-align: left; position: sticky; top: 0; background: var(--st-bg); font-weight: normal; padding: 3px 8px; border-bottom: 1px solid var(--st-dark); }
.binds td { padding: 2px 8px; }
.binds td.key { color: #fff; font-family: monospace; }

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
  .hb-ar { left: calc(var(--hud-h) * 4.6); }
}

/* ============================== CS2 buy menu ============================== */
.buymenu.cs2 { --bm-team: rgb(93, 160, 230); position: absolute; inset: 0; pointer-events: auto; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(8, 12, 18, .55), rgba(4, 6, 10, .78)); backdrop-filter: blur(5px) saturate(.8); -webkit-backdrop-filter: blur(5px) saturate(.8);
  font-family: "Stratum2", "Segoe UI", "Helvetica Neue", Arial, sans-serif; color: #e8ecf0; text-shadow: none; }
.buymenu.cs2[hidden] { display: none; }
.buymenu.cs2.team-t { --bm-team: rgb(232, 180, 64); }
.buymenu.cs2.bm-in { animation: bm-fade 120ms ease-out; }
.buymenu.cs2.bm-in .bm-panel { animation: bm-scale 120ms ease-out; }
@keyframes bm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bm-scale { from { transform: scale(.965); } to { transform: scale(1); } }
.bm-panel { --tile-w: clamp(150px, 16.2vw, 300px); --tile-h: clamp(74px, 11.6vh, 136px); display: flex; flex-direction: column; align-items: center; gap: clamp(10px, 2vh, 22px); }
.bm-top { display: flex; justify-content: center; }
.bm-money { font-size: clamp(26px, 4.2vh, 48px); font-weight: 700; letter-spacing: .5px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.bm-cols { display: flex; gap: clamp(8px, 1vw, 18px); align-items: flex-start; }
.bm-col { display: flex; flex-direction: column; gap: clamp(5px, .8vh, 9px); width: var(--tile-w); transition: opacity .1s; }
.bm-col.dim { opacity: .45; }
.bm-head { display: flex; align-items: center; gap: 8px; padding: 0 2px 4px; background: none; border: none; border-bottom: 2px solid rgba(255,255,255,.12); color: rgba(232,236,240,.85); font-weight: 600; font-size: clamp(12px, 1.75vh, 20px); font-family: inherit; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; text-align: left; }
.bm-col.active .bm-head { color: #fff; border-bottom-color: var(--bm-team); }
.bm-hnum { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; border-radius: 4px; background: rgba(255,255,255,.12); font-size: .85em; }
.bm-col.active .bm-hnum { background: var(--bm-team); color: #111; }
.bm-tiles { display: flex; flex-direction: column; gap: clamp(5px, .8vh, 9px); }
.bm-tiles.six .bm-tile { height: calc((var(--tile-h) * 5 - clamp(5px, .8vh, 9px)) / 6); }
.bm-tile { position: relative; display: grid; grid-template-rows: 1fr auto; height: var(--tile-h); padding: 6px 10px 6px; border-radius: 6px; cursor: pointer; text-align: left; font-family: inherit;
  background: linear-gradient(180deg, rgba(40, 46, 56, .74), rgba(22, 26, 33, .8)); border: 1px solid rgba(255,255,255,.07); color: #e8ecf0; transition: background .08s, border-color .08s, transform .08s; }
.bm-tile:hover, .bm-tile.focus { background: linear-gradient(180deg, rgba(74, 82, 96, .82), rgba(44, 50, 60, .86)); border-color: var(--bm-team); box-shadow: 0 0 0 1px var(--bm-team), 0 0 14px -4px var(--bm-team); }
.bm-col.active .bm-tile:not(.off) { border-color: rgba(255,255,255,.18); }
.bm-col.active .bm-tile.focus, .bm-col.active .bm-tile:hover { border-color: var(--bm-team); }
.bm-tile .bm-ico { display: flex; align-items: center; justify-content: center; min-height: 0; color: #fff; filter: drop-shadow(0 1px 1px rgba(0,0,0,.6)); }
.bm-tile .bm-ico svg { width: auto; max-width: 94%; height: calc(var(--tile-h) * 0.52); max-height: 100%; }
.bm-tiles.six .bm-tile .bm-ico svg { height: calc(var(--tile-h) * 0.4); }
.bm-tile .bm-name { font-size: clamp(10px, 1.45vh, 15px); color: rgba(232,236,240,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 3.6em; }
.bm-tile .bm-price { position: absolute; right: 10px; bottom: 6px; font-size: clamp(10px, 1.45vh, 15px); font-weight: 600; color: #fff; }
.bm-tile .bm-num { position: absolute; left: 7px; top: 5px; font-size: clamp(10px, 1.35vh, 14px); font-weight: 700; color: rgba(255,255,255,.55); }
.bm-tile .bm-owned { position: absolute; right: 8px; top: 5px; font-size: clamp(11px, 1.5vh, 16px); color: rgb(120, 220, 120); }
.bm-tile.poor { opacity: .55; }
.bm-tile.poor .bm-price { color: rgb(255, 82, 70); }
.bm-tile.owned, .bm-tile.off:not(.poor) { opacity: .6; }
.bm-tile.owned .bm-ico { color: rgba(255,255,255,.75); }
.bm-tile.bought { background: linear-gradient(180deg, rgba(70, 120, 70, .85), rgba(40, 80, 40, .85)); }
.bm-tile.denied { animation: bm-shake .3s; }
@keyframes bm-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.bm-hint { font-size: clamp(10px, 1.4vh, 14px); color: rgba(232,236,240,.6); letter-spacing: .3px; }
.bm-hint b { color: #fff; font-weight: 600; padding: 0 2px; border: 1px solid rgba(255,255,255,.25); border-radius: 3px; }
.bm-tip { position: fixed; width: clamp(220px, 19vw, 320px); padding: 10px 12px; border-radius: 6px; pointer-events: none; z-index: 6;
  background: rgba(14, 17, 22, .94); border: 1px solid rgba(255,255,255,.12); border-top: 2px solid var(--bm-team); box-shadow: 0 6px 24px rgba(0,0,0,.5); font-size: clamp(11px, 1.35vh, 14px); }
.bm-tip-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.bm-tip-name { font-weight: 700; font-size: 1.15em; color: #fff; }
.bm-tip-price { font-weight: 600; color: #fff; }
.bm-tip-price.poor { color: rgb(255, 82, 70); }
.bm-stats { display: grid; gap: 4px; }
.bm-stat { display: grid; grid-template-columns: 9.2em 1fr 4.6em; gap: 8px; align-items: center; }
.bm-sl { color: rgba(232,236,240,.7); }
.bm-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.bm-bar i { display: block; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,.7), #fff); border-radius: 3px; }
.bm-sv { text-align: right; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-desc { margin: 0; color: rgba(232,236,240,.8); line-height: 1.4; }
.bm-reason { margin-top: 8px; color: rgb(255, 110, 90); }

/* CS2 grenade slots above the ammo */
.hb-nades { right: calc(var(--hud-h) * 0.6); bottom: calc(var(--hud-h) * 3.0); gap: 4px; }
.hb-nades .hn { display: flex; opacity: .55; }
.hb-nades .hn.on { opacity: 1; filter: brightness(1.3); }
.kf-wb { display: flex; }

/* loadout tab */
.lo-help { margin-bottom: 8px; }
.lo-row { display: grid; grid-template-columns: 34% 1fr; align-items: center; padding: 4px 0; border-bottom: 1px solid rgba(0,0,0,.15); }
.lo-opts { display: flex; align-items: center; gap: 6px; }
.lo-or { color: var(--st-dim); font-size: 11px; }
.lo-opt { display: flex; align-items: center; gap: 6px; padding: 3px 8px; background: var(--st-panel); color: var(--st-text); border: 1px solid var(--st-dark); cursor: pointer; }
.lo-opt:hover { background: #57634e; }
.lo-opt.on { background: var(--st-sel); color: #fff; outline: 1px solid #fff; }
.lo-ico { display: flex; color: #fff; }
.lo-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.lo-side h4 { margin: 0 0 4px; font-size: 12px; }
.lo-group { margin-bottom: 6px; }
.lo-group .lo-gname { color: var(--st-dim); font-size: 11px; margin-bottom: 2px; }
.lo-group select { width: 100%; margin-bottom: 2px; font-size: 11px; }
.spotted { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); padding: 6px 14px; border-radius: 4px; background: rgba(120, 10, 10, .72); border: 1px solid rgba(255, 90, 70, .8); color: #fff; font: bold 15px var(--font); text-shadow: 0 1px 2px #000; opacity: 0; transition: opacity .25s; pointer-events: none; }
.spotted.show { opacity: 1; animation: spot-pulse .5s ease-out; }
@keyframes spot-pulse { from { transform: translateX(-50%) scale(1.15); } to { transform: translateX(-50%) scale(1); } }

.usehint { position: absolute; left: 50%; top: 56%; transform: translateX(-50%); padding: 4px 10px; font-size: 13px; color: #fff; background: rgba(0,0,0,.5); border-radius: 3px; opacity: 0; transition: opacity .12s; pointer-events: none; white-space: nowrap; }
.usehint.show { opacity: 1; }
.usehint b { display: inline-block; min-width: 16px; padding: 0 4px; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; font-weight: 700; text-align: center; }

/* ============================== CS2 top bar ============================== */
/* --tb-u = tile size (set from JS: ~5.4% of the viewport height). Your team left, enemies right. */
.hud { --tb-u: 39px; --tb-ct: #5d8ed7; --tb-t: #e0b04c; }
.hud-top { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); }
.topbar { display: flex; align-items: flex-start; gap: calc(var(--tb-u) * 0.16); font-family: "Stratum2", "Segoe UI", "Helvetica Neue", Arial, sans-serif; text-shadow: none; color: #fff; }
.tb-side { display: flex; gap: calc(var(--tb-u) * 0.14); min-width: calc(var(--tb-u) * 5 + var(--tb-u) * 0.14 * 4); }
.tb-left { justify-content: flex-end; }
.tb-right { justify-content: flex-start; }

.tb-tile { position: relative; width: var(--tb-u); display: flex; flex-direction: column; align-items: center; }
.tb-face { position: relative; width: var(--tb-u); height: var(--tb-u); border-radius: calc(var(--tb-u) * 0.14); overflow: hidden; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 1px 4px rgba(0,0,0,.55); }
.tb-tile.team-ct .tb-face { background: linear-gradient(160deg, #8db4ec 0%, #4a78bf 45%, #1d3459 100%); }
.tb-tile.team-t .tb-face { background: linear-gradient(160deg, #f4d37e 0%, #c9952f 45%, #5a3d0e 100%); }
.tb-init { font-weight: 800; font-size: calc(var(--tb-u) * 0.42); letter-spacing: -.5px; line-height: 1; color: rgba(255,255,255,.95); text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.tb-bot { position: absolute; left: 2px; top: 2px; display: flex; padding: 1px; border-radius: 3px; background: rgba(0,0,0,.5); color: #dfe6ee; }
.tb-bot svg { width: max(8px, calc(var(--tb-u) * 0.2)); height: max(8px, calc(var(--tb-u) * 0.2)); }
.tb-badge { position: absolute; right: 1px; bottom: 1px; display: flex; padding: 1px 2px; border-radius: 3px; background: rgba(0,0,0,.62); }
.tb-c4 { color: #ff5a4a; }
.tb-kit { color: #6fb6ff; }
.tb-dead { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; opacity: .9; background: rgba(0,0,0,.35); }
.tb-tile.dead .tb-face { filter: grayscale(1) brightness(.55); }
.tb-tile.dead { opacity: .62; }
.tb-tile.hl .tb-face { border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 0 10px rgba(255,255,255,.45); }
.tb-hp { width: 100%; height: max(3px, calc(var(--tb-u) * 0.075)); margin-top: 2px; border-radius: 2px; background: rgba(0,0,0,.55); overflow: hidden; }
.tb-hp i { display: block; height: 100%; background: #f2f2f2; }
.tb-hp i.low { background: #ff4a3a; }
.tb-info { display: flex; flex-direction: column; align-items: center; gap: 1px; margin-top: 2px; width: calc(var(--tb-u) * 1.06); padding: 2px 0 3px; border-radius: 3px; background: rgba(0,0,0,.42); }
.tb-money { font-size: max(10px, calc(var(--tb-u) * 0.27)); font-weight: 700; line-height: 1.1; color: #7ee07a; font-variant-numeric: tabular-nums; letter-spacing: -.2px; white-space: nowrap; }
.tb-gun { display: flex; justify-content: center; align-items: center; min-height: calc(var(--tb-u) * 0.32); color: #fff; max-width: 100%; }
.tb-gun svg { max-width: calc(var(--tb-u) * 1.0); height: auto; }
.tb-eq { display: flex; justify-content: center; align-items: center; gap: 0; min-height: calc(var(--tb-u) * 0.24); color: #e8e8e8; }
.tb-eq .tb-ar { display: flex; color: #cfd8e3; margin-right: 1px; }
.tb-eq .tb-nd { display: flex; margin: 0 -1px; }

.tb-centre { display: flex; align-items: flex-start; }
.tb-score { min-width: calc(var(--tb-u) * 1.05); height: calc(var(--tb-u) * 0.98); padding: 0 calc(var(--tb-u) * 0.12); display: grid; place-items: center; font-weight: 800; font-size: calc(var(--tb-u) * 0.62); line-height: 1; font-variant-numeric: tabular-nums; background: rgba(0,0,0,.55); }
.tb-score.team-ct { color: var(--tb-ct); box-shadow: inset 0 -3px 0 var(--tb-ct); }
.tb-score.team-t { color: var(--tb-t); box-shadow: inset 0 -3px 0 var(--tb-t); }
.tb-sl { border-radius: calc(var(--tb-u) * 0.12) 0 0 calc(var(--tb-u) * 0.12); }
.tb-sr { border-radius: 0 calc(var(--tb-u) * 0.12) calc(var(--tb-u) * 0.12) 0; }
.tb-mid { min-width: calc(var(--tb-u) * 2.3); display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,.7); border-radius: 0 0 calc(var(--tb-u) * 0.12) calc(var(--tb-u) * 0.12); padding-bottom: calc(var(--tb-u) * 0.06); }
.tb-clock { height: calc(var(--tb-u) * 0.72); display: grid; place-items: center; font-weight: 700; font-size: calc(var(--tb-u) * 0.6); line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.tb-centre.red .tb-clock { color: #ff4a3a; }
.tb-bomb { height: calc(var(--tb-u) * 0.72); display: grid; place-items: center; }
.tb-centre.mode-bomb .tb-bomb { color: #ff3b30; animation: tb-blink 1s steps(1) infinite; }
.tb-centre.mode-defuse .tb-bomb { color: #4aa3ff; animation: tb-pulse .6s ease-in-out infinite alternate; }
@keyframes tb-blink { 50% { opacity: .35; } }
@keyframes tb-pulse { from { opacity: .45; filter: drop-shadow(0 0 0 #4aa3ff); } to { opacity: 1; filter: drop-shadow(0 0 6px #4aa3ff); } }
.tb-win { height: calc(var(--tb-u) * 0.72); display: grid; place-items: center; padding: 0 6px; font-weight: 800; font-size: calc(var(--tb-u) * 0.36); letter-spacing: .5px; white-space: nowrap; color: #fff; }
.tb-win.tc2-ct { color: var(--tb-ct); }
.tb-win.tc2-t { color: var(--tb-t); }
.tb-round { font-size: max(9px, calc(var(--tb-u) * 0.22)); line-height: 1.2; color: rgba(255,255,255,.7); white-space: nowrap; }
.tb-pill { margin-top: 2px; padding: 0 6px; border-radius: 3px; font-size: max(9px, calc(var(--tb-u) * 0.22)); font-weight: 800; letter-spacing: 1px; line-height: 1.35; background: rgba(255,255,255,.14); color: #fff; }
.tb-pill-buy { background: rgba(80, 200, 90, .85); color: #08200a; }
.tb-pill-half { background: rgba(255,255,255,.85); color: #111; }

/* the killfeed drops below the bar when the screen is too narrow for both side by side */
@media (max-width: 1700px) { .killfeed { top: calc(var(--tb-u) * 2.25 + 14px); } }

/* friendly fire */
.tk-warn { position: absolute; left: 50%; top: 24%; transform: translateX(-50%); padding: 5px 16px; border-radius: 4px; text-align: center; white-space: nowrap;
  background: rgba(120, 12, 12, .6); border: 1px solid rgba(255, 80, 60, .75); color: #fff; font: bold 15px var(--font); text-shadow: 0 1px 2px #000; opacity: 0; transition: opacity .2s; }
.tk-warn.show { opacity: 1; }
.tk-warn.kill, .tk-warn.kick { padding: 8px 22px; font-size: 22px; background: rgba(150, 10, 10, .78); border-color: rgb(255, 70, 50); animation: spot-pulse .5s ease-out; }
.tk-warn.kick { box-shadow: 0 0 18px rgba(255, 40, 30, .6); }
.kf.tk { background: rgba(170, 20, 20, .6); }

.tb-dot { position: absolute; left: 4px; bottom: 4px; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0,0,0,.6); }
.tb-hp-none { visibility: hidden; }

/* ready-up (freeze time) */
.readyup { position: absolute; left: 50%; bottom: calc(var(--hud-h, 48px) + 70px); transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 6px; pointer-events: auto; z-index: 5; }
.readyup.show { display: flex; }
.ru-btn { font: 700 16px/1 system-ui, sans-serif; letter-spacing: .06em; padding: 10px 26px; color: #fff; background: linear-gradient(#3e9d4f, #2a7438); border: 1px solid rgba(255,255,255,.35); border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,.4); cursor: pointer; }
.ru-btn small { font-weight: 500; opacity: .75; margin-left: 6px; font-size: 11px; }
.ru-btn.on { background: linear-gradient(#5a6470, #3d454f); }
.ru-btn:hover { filter: brightness(1.12); }
.ru-status { font: 500 12px system-ui, sans-serif; color: #ddd; background: rgba(0,0,0,.5); padding: 3px 10px; border-radius: 3px; }
.ru-status .ru-ok { color: #7ee08d; }

/* ---------- GPU farms ---------- */
.hb-farm { position: absolute; right: calc(var(--hud-h) * 0.6); bottom: calc(var(--hud-h) * 2.75); display: flex; align-items: center; gap: 5px; padding: 2px 8px; font: 700 calc(var(--hud-h) * 0.42)/1.2 system-ui, sans-serif; color: #8dff9a; background: rgba(0, 0, 0, .42); border-left: 3px solid #3ee060; border-radius: 2px; text-shadow: 0 1px 2px rgba(0,0,0,.8); font-variant-numeric: tabular-nums; }
.hb-farm .hbf-ico { display: flex; color: #3ee060; }
.hb-farm-tick { position: absolute; right: calc(var(--hud-h) * 0.9); bottom: calc(var(--hud-h) * 3.3); font: 800 calc(var(--hud-h) * 0.5)/1 system-ui, sans-serif; color: #6dff7f; text-shadow: 0 1px 3px rgba(0,0,0,.9); pointer-events: none; animation: farm-tick 1.4s ease-out forwards; }
@keyframes farm-tick { 0% { opacity: 0; transform: translateY(6px) scale(.9); } 15% { opacity: 1; transform: translateY(0) scale(1.05); } 100% { opacity: 0; transform: translateY(-26px) scale(1); } }
.farm-alert { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); padding: 6px 18px; border-radius: 4px; font: 700 17px/1.3 system-ui, sans-serif; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.farm-alert.show { opacity: 1; }
.farm-alert.warn { background: rgba(150, 20, 10, .78); border: 1px solid rgb(255, 90, 60); animation: spot-pulse .5s ease-out; }
.farm-alert.good { background: rgba(14, 90, 30, .78); border: 1px solid rgb(80, 230, 110); }
.farm-alert.info { background: rgba(0, 0, 0, .6); border: 1px solid rgba(255,255,255,.4); }
.farm-panel { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); width: 248px; padding: 10px 12px 9px; background: linear-gradient(180deg, rgba(22, 28, 34, .94), rgba(12, 16, 20, .94)); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid #3ee060; border-radius: 3px; color: rgba(232, 236, 240, .92); font: 13px/1.35 system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.55); }
.fp-head { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fp-ico { display: flex; color: #3ee060; }
.fp-title { font-weight: 800; letter-spacing: 1.5px; font-size: 12px; color: #fff; }
.fp-name { margin-left: auto; font-weight: 600; color: #8dff9a; }
.fp-row { display: flex; justify-content: space-between; padding: 1px 0; }
.fp-row span:first-child { color: rgba(200, 208, 216, .7); text-transform: uppercase; font-size: 11px; letter-spacing: .8px; }
.fp-row b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.fp-row b.fp-inc { color: #6dff7f; }
.fp-next b { color: rgba(141, 255, 154, .7); font-weight: 600; }
.fp-own.tc-ct { color: #7fb8ff; font-weight: 700; } .fp-own.tc-t { color: #f2b233; font-weight: 700; }
.fp-neutral { color: #ddd; font-weight: 700; }
.fp-cards { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin: 4px 0 6px; }
.fp-card { height: 16px; border-radius: 2px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.fp-card.on { background: linear-gradient(180deg, #47e863, #1f9a37); border-color: #8dff9a; box-shadow: 0 0 6px rgba(62, 224, 96, .55); }
.fp-hp { height: 4px; margin: 2px 0 8px; background: rgba(255,255,255,.1); }
.fp-hp i { display: block; height: 100%; background: #3ee060; }
.fp-buy { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 1px solid rgba(62, 224, 96, .7); border-radius: 2px; background: rgba(62, 224, 96, .16); color: #fff; font: 700 13px system-ui, sans-serif; cursor: pointer; text-align: left; }
.fp-buy:hover { background: rgba(62, 224, 96, .3); }
.fp-buy.off { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: rgba(255,255,255,.45); cursor: default; }
.fp-price { margin-left: auto; color: #8dff9a; }
.fp-key { display: inline-block; min-width: 16px; padding: 0 4px; border: 1px solid rgba(255,255,255,.6); border-radius: 3px; font-size: 11px; font-weight: 700; text-align: center; color: #fff; }
.fp-foot { margin-top: 7px; font-size: 11px; color: rgba(200, 208, 216, .6); }
.tb-score { position: relative; }
.tb-farmchip { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 1px 4px; font-size: calc(var(--tb-u) * 0.2); font-weight: 700; line-height: 1.2; white-space: nowrap; color: #8dff9a; background: rgba(0,0,0,.55); border-radius: 2px; }
.sb-farm { color: #8dff9a; font-size: .85em; white-space: nowrap; }
.sb-farm-in { display: inline-flex; align-items: center; gap: 4px; }

/* ---- bot GPUs + EMP (shared/botgpu.js, shared/emp.js) ---- */
.bm-tiles.seven .bm-tile { height: calc((var(--tile-h) * 5 - 2 * clamp(5px, .8vh, 9px)) / 7); padding-top: 3px; padding-bottom: 3px; }
.bm-tiles.seven .bm-tile .bm-ico svg { height: calc(var(--tile-h) * 0.33); }
.bm-tiles.eight .bm-tile { height: calc((var(--tile-h) * 5 - 3 * clamp(5px, .8vh, 9px)) / 8); padding-top: 2px; padding-bottom: 2px; }
.bm-tiles.eight .bm-tile .bm-ico svg { height: calc(var(--tile-h) * 0.28); }
.bm-tiles.nine .bm-tile { height: calc((var(--tile-h) * 5 - 4 * clamp(5px, .8vh, 9px)) / 9); padding-top: 1px; padding-bottom: 1px; }   /* Equipment + red dot + beacon */
.bm-tiles.nine .bm-tile .bm-ico svg { height: calc(var(--tile-h) * 0.25); }
/* The unlocked beacon is the tenth tile when the Targa is available. */
.bm-tiles.ten .bm-tile { height: calc((var(--tile-h) * 5 - 5 * clamp(5px, .8vh, 9px)) / 10); padding-top: 1px; padding-bottom: 1px; }
.bm-tiles.ten .bm-tile .bm-ico svg { height: calc(var(--tile-h) * 0.2); }
.bm-tiles.ten .bm-tile .bm-name { font-size: clamp(9px, 1.3vh, 13px); }
.bm-tile[data-key="targa"]:not(.off) { border-color: rgba(126, 209, 240, .65); }
.bm-tile[data-key="beacon"]:not(.off) { border-color: rgba(212, 175, 55, .75); background: linear-gradient(180deg, rgba(70, 52, 18, .85), rgba(34, 24, 8, .9)); }
.bm-tile[data-key="beacon"]:not(.off) .bm-ico, .bm-tile[data-key="beacon"]:not(.off) .bm-name { color: #f3d27a; }
.bm-picker { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; width: clamp(280px, 26vw, 420px); padding: 12px 14px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 30, 44, .96), rgba(10, 16, 24, .97)); border: 1px solid rgba(80, 220, 255, .55); box-shadow: 0 0 24px -6px rgba(60, 220, 255, .7), 0 10px 40px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 6px; }
.bm-pick-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: clamp(13px, 1.9vh, 20px); color: #e8f8ff; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 6px; border-bottom: 1px solid rgba(80, 220, 255, .25); }
.bm-pick-ico { display: flex; color: #5ee8ff; filter: drop-shadow(0 0 4px rgba(80, 230, 255, .8)); }
.bm-pick-price { margin-left: auto; color: #fff; }
.bm-free { color: #7dffb0; font-size: .8em; }
.bm-pick { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 30px; border-radius: 5px; cursor: pointer; font-family: inherit; color: #e8ecf0; text-align: left;
  background: linear-gradient(180deg, rgba(40, 52, 66, .8), rgba(24, 30, 40, .85)); border: 1px solid rgba(255,255,255,.08); font-size: clamp(12px, 1.7vh, 17px); }
.bm-pick:hover { border-color: #5ee8ff; box-shadow: 0 0 0 1px #5ee8ff, 0 0 12px -4px #5ee8ff; }
.bm-pick.off { opacity: .45; cursor: default; }
.bm-pick .bm-num { left: 9px; top: 50%; transform: translateY(-50%); }
.bm-pname { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-chips { display: flex; gap: 3px; }
.bm-chips i { width: 12px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); }
.bm-chips i.on { background: #4fe6ff; border-color: #b8f6ff; box-shadow: 0 0 6px #4fe6ff; }
.bm-pcount { min-width: 2.2em; text-align: right; color: #9feeff; font-weight: 700; font-variant-numeric: tabular-nums; }
.bm-pempty { padding: 10px; color: rgba(232,236,240,.6); text-align: center; }
.tb-gpu { position: absolute; left: 1px; bottom: 1px; display: flex; align-items: baseline; gap: 1px; padding: 0 2px; border-radius: 3px; background: rgba(0, 20, 30, .78); color: #5ef0ff;
  font: 800 max(7px, calc(var(--tb-u) * 0.2))/1.15 system-ui, sans-serif; text-shadow: 0 0 4px rgba(80, 230, 255, .9); box-shadow: 0 0 5px rgba(80, 230, 255, .55); }
.tb-gpu b { font-size: .72em; letter-spacing: .3px; }
.tb-gpu.jam { color: #8aa0aa; text-shadow: none; box-shadow: none; animation: tb-gpu-jam .35s steps(2) infinite; }
@keyframes tb-gpu-jam { 50% { opacity: .35; } }
.hb-gpu { position: absolute; left: calc(var(--hud-h) * 0.6); bottom: calc(var(--hud-h) * 2.75); display: flex; align-items: center; gap: 6px; padding: 2px 8px; font: 700 calc(var(--hud-h) * 0.4)/1.2 system-ui, sans-serif; color: #9ff2ff;
  background: rgba(0, 0, 0, .42); border-left: 3px solid #4fe6ff; border-radius: 2px; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.hb-gpu svg { color: #4fe6ff; filter: drop-shadow(0 0 3px rgba(80, 230, 255, .8)); }
.hb-gpu span { font-weight: 500; opacity: .85; }
.fp-smoke { margin-top: 5px; border-color: rgba(120, 255, 150, .45); background: rgba(120, 255, 150, .08); }
.fp-smoke-on { margin-top: 5px; padding: 6px 9px; font-weight: 700; font-size: 12px; color: #8dff9a; border: 1px dashed rgba(120, 255, 150, .45); border-radius: 2px; }
.farm-split { position: absolute; right: 2vw; bottom: 4vh; z-index: 40; width: 250px; padding: 9px 11px; background: linear-gradient(180deg, rgba(22, 28, 34, .95), rgba(12, 16, 20, .95)); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid #3ee060; border-radius: 3px; color: rgba(232, 236, 240, .92); font: 12px/1.35 system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.55); pointer-events: auto; }
.fs-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-weight: 800; letter-spacing: 1.4px; color: #fff; }
.fs-head .ico { color: #3ee060; }
.fs-row { display: flex; align-items: center; gap: 6px; }
.fs-row button { width: 24px; height: 22px; border: 1px solid rgba(62, 224, 96, .7); border-radius: 2px; background: rgba(62, 224, 96, .16); color: #fff; font: 700 15px/1 system-ui, sans-serif; cursor: pointer; }
.fs-row button:hover { background: rgba(62, 224, 96, .32); }
.fs-bar { position: relative; flex: 1; height: 22px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.fs-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #1f9a37, #47e863); }
.fs-bar b { position: relative; display: block; text-align: center; line-height: 22px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.fs-note { margin-top: 6px; color: rgba(200, 208, 216, .7); font-size: 11px; }
.fs-foot { margin-top: 6px; color: rgba(200, 208, 216, .8); }
.fs-foot b { color: #6dff7f; }

/* juggernaut armor badge on teammate top-bar tiles (shared/heavy.js) */
.tb-jug { position: absolute; left: 1px; top: 1px; display: flex; padding: 1px 2px; border-radius: 3px; background: rgba(0,0,0,.62); color: #ffb347; }
.tb-bz { color: #ffcf7a; }

.readyup.menu-open { bottom: auto; top: calc(var(--tb-u, 44px) * 2.6 + 16px); }
/* ---- Imperium Beacon (beaconui.js): parts indicator, blessing bar, Armoury of the Imperium ---- */
.beacon-parts { position: absolute; left: 8px; top: calc(clamp(130px, 25vh, 270px) + 40px); display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; background: linear-gradient(90deg, rgba(30, 22, 8, .82), rgba(30, 22, 8, .35)); border-left: 3px solid #d4af37; color: #f0e2b8; font: 600 13px/1.2 system-ui, sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,.8); pointer-events: none; }
.beacon-parts[hidden] { display: none; }
.beacon-parts .bp-ico { display: flex; color: #e8c25a; }
.beacon-parts .bp-l { color: #cdb57a; text-transform: uppercase; font-size: 11px; letter-spacing: .8px; }
.beacon-parts b.ok { color: #7dff8a; } .beacon-parts b.no { color: rgba(240, 226, 184, .55); } .beacon-parts b.carry { color: #ffd34d; }
.beacon-parts .bp-kit { margin-left: 6px; color: #ffd34d; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.beacon-parts .bp-bar { width: 46px; height: 5px; background: rgba(255,255,255,.12); }
.beacon-parts .bp-bar i { display: block; height: 100%; }
.beacon-parts .bp-bar i.sh { background: #6fc8ff; } .beacon-parts .bp-bar i.hp { background: #e8c25a; }
.beacon-parts .bp-jam { color: #4fb8ff; font-size: 11px; font-weight: 800; }
.hb-bless { position: absolute; left: 1.2vw; bottom: calc(var(--hud-h) * 1.5); display: flex; align-items: center; gap: 5px; color: #f3d27a; pointer-events: none; filter: drop-shadow(0 0 3px rgba(255, 200, 80, .6)); }
.hb-bless[hidden] { display: none; }
.hb-bless .hbb-ico { display: flex; }
.hb-bless .hbb-bar { width: calc(var(--hud-h) * 3.4); height: 4px; background: rgba(80, 60, 10, .55); border: 1px solid rgba(243, 210, 122, .5); }
.hb-bless .hbb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b88a1e, #ffe08a); }
.sm-shop { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: auto; z-index: 6; background: radial-gradient(ellipse at center, rgba(10, 6, 2, .55), rgba(0, 0, 0, .78)); }
.sm-shop[hidden] { display: none; }
.sm-frame { width: min(1040px, 92vw); max-height: 86vh; overflow: auto; padding: 14px 18px 12px; background: linear-gradient(180deg, rgba(26, 18, 10, .97), rgba(12, 9, 6, .97)); border: 2px solid #b8902c; outline: 1px solid rgba(232, 194, 90, .35); outline-offset: 4px; box-shadow: 0 0 0 1px #000, 0 10px 40px rgba(0,0,0,.7), inset 0 0 40px rgba(184, 144, 44, .12); color: #eadfc4; font: 13px/1.35 system-ui, sans-serif; }
.sm-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(232, 194, 90, .45); background: linear-gradient(90deg, transparent, rgba(184, 144, 44, .12), transparent); }
.sm-eagle { display: flex; color: #e8c25a; filter: drop-shadow(0 0 6px rgba(232, 194, 90, .55)); }
.sm-title { font: 700 24px/1.05 "UnifrakturMaguntia", "Old English Text MT", "Blackletter", "Palatino Linotype", Georgia, serif; letter-spacing: 3px; color: #f3d27a; text-shadow: 0 0 10px rgba(232, 194, 90, .35), 0 2px 0 #000; }
.sm-title small { display: block; margin-top: 4px; font: 600 11px system-ui, sans-serif; letter-spacing: 1.2px; color: rgba(234, 223, 196, .65); text-transform: uppercase; text-shadow: none; }
.sm-title em { color: #4fb8ff; font-style: normal; }
.sm-money { margin-left: auto; font: 700 26px system-ui, sans-serif; color: #fff; }
.sm-banner { margin: -2px 0 10px; padding: 6px 10px; border: 1px solid #4fb8ff; background: rgba(40, 110, 170, .25); color: #bfe4ff; font-weight: 700; text-align: center; }
.sm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.sm-colhead { margin-bottom: 6px; padding: 2px 0 4px; border-bottom: 2px solid #8a6a1e; font: 700 15px Georgia, serif; letter-spacing: 2px; text-transform: uppercase; color: #e8c25a; }
.sm-item { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico name price" "desc desc desc" "stats stats stats" "why why why"; gap: 2px 8px; width: 100%; margin-bottom: 7px; padding: 7px 9px 7px 22px; text-align: left; font: inherit; color: inherit; cursor: pointer; background: linear-gradient(180deg, rgba(60, 44, 20, .7), rgba(30, 22, 12, .8)); border: 1px solid rgba(184, 144, 44, .55); border-radius: 2px; }
.sm-item:hover { border-color: #f3d27a; box-shadow: 0 0 12px -3px rgba(243, 210, 122, .8); }
.sm-item.off { cursor: default; opacity: .5; filter: grayscale(.6); }
.sm-item.off:hover { box-shadow: none; border-color: rgba(184, 144, 44, .55); }
.sm-item.owned { opacity: .7; border-color: rgba(125, 255, 138, .45); }
.sm-item.bought { animation: sm-bought .5s ease-out; }
@keyframes sm-bought { from { background: rgba(243, 210, 122, .55); } }
.sm-num { position: absolute; left: 5px; top: 6px; font-size: 11px; font-weight: 700; color: #e8c25a; }
.sm-ico { grid-area: ico; display: flex; align-items: center; color: #f3d27a; }
.sm-name { grid-area: name; align-self: center; font-weight: 700; color: #fff; }
.sm-price { grid-area: price; align-self: center; font-weight: 700; color: #f3d27a; }
.sm-desc { grid-area: desc; font-size: 12px; color: rgba(234, 223, 196, .8); }
.sm-stats { grid-area: stats; display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 11px; color: rgba(234, 223, 196, .6); }
.sm-stats i { font-style: normal; } .sm-stats b { color: #eadfc4; }
.sm-why { grid-area: why; font-size: 11px; font-weight: 700; color: #ff9d7a; }
.sm-item.owned .sm-why { color: #7dff8a; }
.sm-empty { padding: 20px; text-align: center; color: rgba(234, 223, 196, .6); }
.sm-foot { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(232, 194, 90, .3); font-size: 12px; color: rgba(234, 223, 196, .6); display: flex; gap: 6px; }
.sm-foot b { color: #f3d27a; }
.sm-motto { margin-left: auto; font: italic 12px Georgia, serif; color: rgba(232, 194, 90, .7); }
.tb-part, .tb-halo { position: absolute; display: flex; color: #f3d27a; filter: drop-shadow(0 0 2px #000); }
.tb-part { left: 1px; bottom: 1px; }
.tb-halo { right: 1px; top: 1px; }
