/* Orbitron — © The Orbitron Project Authors, лицензия SIL OFL 1.1 (assets/fonts/Orbitron-OFL.txt). Только латиница и цифры. */
@font-face { font-family: "Orbitron"; src: url("/assets/fonts/Orbitron.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
/* Тактический интерфейс: тёмные панели со срезанными углами, золотой акцент, узкие жирные заголовки */
:root {
  --glass: rgba(14, 23, 32, .58);
  --glass-deep: rgba(14, 18, 23, .8);
  --line: rgba(140, 205, 245, .36);
  --line-soft: rgba(140, 205, 245, .15);
  --ink: #f3f6f8;
  --dim: #98a3ad;
  --acc: #f2c230;
  --acc-soft: rgba(242, 194, 48, .16);
  --warn: #ff5340;
  --t0: #ffa24a;
  --t1: #6bbcff;
  --font: "Bahnschrift", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #06090c; }
body { font-family: var(--font); color: var(--ink); font-size: 14px; user-select: none; font-variant-numeric: tabular-nums; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.t0 { color: var(--t0); }
.t1 { color: var(--t1); }
h2, h3, .logo b, #timer, #mag, #top .side b, button.primary { font-stretch: 80%; }

/* ---------- панель со срезанными углами ---------- */
.glass {
  --c: 12px;
  --d: calc(var(--c) * .7071);
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent calc(var(--d) - .7px), var(--line) calc(var(--d) - .7px) calc(var(--d) + .7px), transparent calc(var(--d) + .7px)),
    linear-gradient(315deg, transparent calc(var(--d) - .7px), var(--line) calc(var(--d) - .7px) calc(var(--d) + .7px), transparent calc(var(--d) + .7px)),
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .012) 46%),
    var(--glass);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.lowq .glass { -webkit-backdrop-filter: none; backdrop-filter: none; --glass: var(--glass-deep); }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.wic { width: 56px; height: 21px; flex: none; fill: rgba(255, 255, 255, .07); stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
kbd { display: inline-block; min-width: 22px; padding: 2px 6px; text-align: center; font: 600 11px var(--font); color: var(--ink);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .07); border-radius: 2px; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
#hud > .glass { position: absolute; }

#xhair { position: absolute; left: 50%; top: 50%; --gap: 6px; transition: opacity .12s; }
#xhair.off { opacity: 0; }
#stam { position: absolute; left: 50%; top: calc(50% + 46px); width: 96px; height: 2px; transform: translateX(-50%);
  background: rgba(140, 205, 245, .16); opacity: 0; transition: opacity .35s; }
#stam.on { opacity: 1; }
#stam i { display: block; height: 100%; background: var(--ink); box-shadow: 0 0 6px rgba(140, 205, 245, .6); transition: width .12s linear; }
#stam.low i { background: var(--warn); box-shadow: none; }
#xhair i { position: absolute; background: var(--ink); box-shadow: 0 0 2px rgba(0, 0, 0, .9); }
#xhair i:nth-child(1), #xhair i:nth-child(2) { width: 1.5px; height: 9px; left: -.75px; }
#xhair i:nth-child(3), #xhair i:nth-child(4) { height: 1.5px; width: 9px; top: -.75px; }
#xhair i:nth-child(1) { top: calc(-9px - var(--gap)); }
#xhair i:nth-child(2) { top: var(--gap); }
#xhair i:nth-child(3) { left: calc(-9px - var(--gap)); }
#xhair i:nth-child(4) { left: var(--gap); }
#xhair b { position: absolute; width: 2px; height: 2px; left: -1px; top: -1px; background: var(--acc); box-shadow: 0 0 3px rgba(0, 0, 0, .9); }

#hitm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; color: var(--ink); }
#hitm::before, #hitm::after {
  content: ""; position: absolute; left: -12px; top: -.75px; width: 24px; height: 1.5px;
  background: linear-gradient(90deg, currentColor 32%, transparent 32% 68%, currentColor 68%);
}
#hitm::before { transform: rotate(45deg); }
#hitm::after { transform: rotate(-45deg); }
#hitm.on { animation: hit .28s ease-out; }
#hitm.hs { color: var(--warn); }
@keyframes hit { from { opacity: 1; transform: scale(1.35); } to { opacity: 0; transform: scale(1); } }

#scope { position: absolute; inset: 0; display: none;
  background:
    linear-gradient(var(--line), var(--line)) 50% 50% / 100% 1px no-repeat,
    linear-gradient(var(--line), var(--line)) 50% 50% / 1px 100% no-repeat,
    radial-gradient(circle at 50% 50%, transparent 0 34vh, rgba(225, 235, 245, .5) 34vh calc(34vh + 1px), #000 calc(34vh + 2px)); }
#scope.on { display: block; }

#dmg { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; box-shadow: inset 0 0 140px 30px rgba(255, 60, 40, .55); }
#dmg.on { opacity: 1; transition: none; }

/* компас */
#compass { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 560px; height: 40px; }

/* слева вверху: счёт, мини-карта, отряд */
#tl { position: absolute; left: 18px; top: 14px; width: 214px; display: flex; flex-direction: column; gap: 10px; }
#top { display: flex; align-items: center; gap: 10px; }
.emblem { width: 40px; height: 40px; flex: none; fill: rgba(140, 205, 245, .12); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.sc { flex: 1; min-width: 0; }
#roundinfo { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.srow { display: flex; align-items: center; gap: 7px; height: 22px; }
.srow b { min-width: 20px; font-size: 24px; font-weight: 700; font-stretch: 80%; line-height: 1; }
.tname { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
#timer { align-self: flex-end; font-size: 17px; font-weight: 600; font-stretch: 80%; line-height: 22px; }
#timer.low { color: var(--warn); }
.pips { display: flex; gap: 2px; }
.pips i { width: 9px; height: 5px; border: 1px solid currentColor; transform: skewX(-24deg); opacity: .32; }
.pips i.on { background: currentColor; opacity: 1; }

#radarbox { width: 190px; height: 190px; padding: 6px; --c: 16px; --glass: rgba(12, 22, 32, .5); }
#radar { display: block; width: 176px; height: 176px; }
#floor { position: absolute; right: 10px; bottom: 6px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }

#mates { display: flex; flex-direction: column; gap: 4px; width: 190px; }
.mrow { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; row-gap: 2px; padding: 3px 8px 4px; font-size: 13px;
  background: linear-gradient(90deg, rgba(12, 20, 28, .62), transparent); border-left: 2px solid currentColor; }
.mrow em { font-style: normal; font-weight: 700; color: var(--acc); }
.mrow span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow i { grid-column: 1 / 3; height: 3px; background: repeating-linear-gradient(90deg, currentColor 0 18%, transparent 18% 20.5%); }
.mrow.dead { opacity: .4; }
.mrow.dead i { background: rgba(225, 235, 245, .25); }
.mrow.dead span { text-decoration: line-through; }

/* справа вверху: задание и лента */
#tr { position: absolute; right: 18px; top: 14px; width: 270px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
#goals { width: 100%; padding: 0 0 8px; }
#goals h4 { margin: 0 0 6px; padding: 7px 14px 6px 18px; font-size: 15px; font-weight: 700; font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(90deg, rgba(140, 205, 245, .16), transparent); border-bottom: 1px solid var(--line-soft); box-shadow: inset 3px 0 0 var(--acc); }
.goal { display: flex; align-items: center; gap: 9px; padding: 4px 14px; font-size: 13px; }
.goal i { width: 13px; height: 13px; flex: none; border: 1px solid var(--dim); position: relative; }
.goal span { flex: 1; }
.goal b { font-weight: 600; color: var(--dim); white-space: nowrap; }
.goal.done { color: var(--acc); }
.goal.done i { border-color: var(--acc); }
.goal.done i::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid var(--acc); border-width: 0 2px 2px 0; transform: rotate(45deg); }

#feed { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
#feed > div { display: flex; align-items: center; gap: 8px; padding: 2px 10px; font-size: 14px; font-weight: 600;
  background: linear-gradient(270deg, rgba(12, 20, 28, .6), transparent); }
#feed .wic { width: 42px; height: 16px; color: var(--ink); fill: var(--ink); stroke: none; }
#feed em { font-style: normal; font-size: 10px; letter-spacing: .08em; color: #14110a; background: var(--acc); padding: 0 5px; text-shadow: none; }

#center { position: absolute; left: 50%; top: 21%; transform: translateX(-50%); padding: 10px 40px; opacity: 0; transition: opacity .3s;
  font-size: 19px; font-weight: 700; font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(90deg, transparent, var(--glass-deep) 20% 80%, transparent);
  border-image: linear-gradient(90deg, transparent, var(--acc) 30% 70%, transparent) 1; border-style: solid; border-width: 0 0 2px; }
#center.on { opacity: 1; }
#spec { position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim); white-space: nowrap; }

/* чат */
#chat { position: absolute; left: 18px; bottom: 150px; width: 360px; }
#chatlog > div { font-size: 13px; padding: 1px 0 1px 8px; border-left: 2px solid var(--line); margin-top: 3px; transition: opacity 1.4s; overflow-wrap: anywhere; }
#chatlog > div.sys { color: var(--acc); border-left-color: var(--acc); }
#chatlog > div.old { opacity: 0; }
#chatin { pointer-events: auto; width: 100%; margin-top: 6px; }

/* слева внизу: боец */
#vitals { left: 18px; bottom: 18px; width: 330px; padding: 9px 18px 12px 20px; --c: 18px; display: flex; flex-direction: column; gap: 5px;
  box-shadow: inset 0 -2px 0 rgba(140, 205, 245, .55); }
.who { display: flex; align-items: baseline; gap: 8px; }
.who small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.who b { flex: 1; font-size: 15px; font-weight: 700; font-stretch: 80%; letter-spacing: .04em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#money { font-size: 15px; font-weight: 700; color: var(--acc); }
.vrow { display: flex; align-items: center; gap: 9px; }
.vrow b { width: 58px; font-size: 34px; font-weight: 700; font-stretch: 80%; line-height: 1; }
.vrow .ic { color: #8fd0f5; }
#arrow b { font-size: 16px; color: var(--dim); }
#arrow .ic { width: 15px; height: 15px; margin: 0 1.500px; color: var(--dim); }
.bar { flex: 1; height: 9px; position: relative; overflow: hidden; transform: skewX(-24deg); background: rgba(225, 235, 245, .12); }
.bar.thin { height: 3px; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--ink); transition: width .18s; }
.bar:not(.thin)::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 4px), #121a22 calc(20% - 4px) 20%); }
#armorbar { background: #8fd0f5; }
#hprow.low { color: var(--warn); }
#hprow.low .bar i { background: var(--warn); }
#hprow.low .ic { color: var(--warn); }

/* по центру внизу: ячейки оружия */
#slots { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 12px; }
.slot { width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--dim); }
.slot .wic { width: 74px; height: 52px; padding: 16px 9px; border: 1px solid var(--line); background: rgba(12, 20, 28, .58);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.slot.on { color: var(--ink); }
.slot.on .wic { border-color: var(--acc); background: linear-gradient(180deg, rgba(242, 194, 48, .3), rgba(242, 194, 48, .08)); }
.slot.on kbd { color: #14110a; background: var(--acc); border-color: var(--acc); text-shadow: none; }
.slot.empty { display: none; }
.slot.nade { margin-left: 10px; color: var(--ink); }
.slot.nade .wic { color: var(--acc); }
#hint { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; }
#hint kbd { margin-right: 8px; }
#hint.warn { color: var(--warn); }

/* справа внизу: оружие */
#gun { right: 18px; bottom: 18px; width: 330px; padding: 12px 20px 12px 22px; --c: 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 4px; }
#gunpic { width: 100%; height: 44px; color: var(--ink); fill: var(--ink); stroke: none; }
.ammo { display: flex; align-items: baseline; gap: 7px; }
#mag { font-size: 44px; font-weight: 700; line-height: 1; }
#mag.low { color: var(--warn); }
#mag.text { font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--acc); line-height: 44px; }
#res { font-size: 20px; color: var(--dim); }
#res::before { content: "| "; opacity: .6; }
#res:empty::before { content: ""; }
#wname { grid-column: 1 / 3; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
#magbar { grid-column: 1 / 3; height: 5px; transform: skewX(-24deg); background: rgba(225, 235, 245, .12); position: relative; overflow: hidden; }
#magbar i { position: absolute; inset: 0 auto 0 0; background: #8fd0f5; transition: width .1s; }
#magbar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 6px, #121a22 6px 8px); }

/* закупка */
#buy { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(980px, 96vw); padding: 16px 18px 12px; --glass: var(--glass-deep); }
#buy h2 { margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline;
  font-size: 24px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
#buymoney { color: var(--acc); font-size: 20px; }
#buylist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.item { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px 8px; min-width: 0; border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015)); }
.item .nm { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; min-height: 34px; line-height: 1.15; }
.item .wic { width: 100%; height: 44px; margin: 4px 0; }
.item small { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.item b { font-size: 17px; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.item.no { opacity: .4; }
.item.own { border-color: var(--acc); background: linear-gradient(180deg, var(--acc-soft), rgba(242, 194, 48, .03)); }
.item.own b { color: var(--acc); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
#buy p { margin: 11px 0 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* таблица счёта */
#board { left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(700px, 94vw); padding: 16px 18px; display: flex; gap: 22px; --glass: var(--glass-deep); }
#board .col { flex: 1; }
#board h3 { margin: 0 0 8px; padding-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline;
  font-size: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 2px solid currentColor; }
#board h3 span:last-child { font-size: 26px; }
#board table { width: 100%; border-collapse: collapse; }
#board th { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-align: right; padding: 3px 8px; }
#board td { padding: 6px 8px; text-align: right; border-top: 1px solid var(--line-soft); }
#board th:first-child, #board td:first-child { text-align: left; }
#board tr.dead td { color: var(--dim); opacity: .55; }
#board tr.me td { background: var(--acc-soft); }
#board tr.me td:first-child { box-shadow: inset 2px 0 0 var(--acc); }

/* ---------- лобби ---------- */
#menu { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(90deg, rgba(6, 9, 12, .82), rgba(6, 9, 12, .12) 38% 62%, rgba(6, 9, 12, .82)),
    linear-gradient(180deg, rgba(6, 9, 12, .5), transparent 30% 75%, rgba(6, 9, 12, .7)); }

#nav { display: flex; align-items: stretch; height: 62px; padding: 0 28px; gap: 26px;
  background: linear-gradient(180deg, rgba(8, 11, 14, .9), rgba(8, 11, 14, .5)); border-bottom: 1px solid var(--line-soft); }
.logo { display: flex; flex-direction: column; justify-content: center; line-height: 1; }
.logo b { font-size: 30px; font-weight: 700; letter-spacing: .08em; font-style: italic; }
.logo span { margin-top: 3px; font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--acc); }
#tabs { display: flex; flex: 1; }
#tabs button { height: 100%; padding: 0 24px; border: 0; font-size: 15px; font-weight: 600; letter-spacing: .08em; color: var(--dim);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
#tabs button:hover { color: var(--ink); }
#tabs button.on { color: var(--ink); background: linear-gradient(180deg, rgba(255, 255, 255, .03), var(--acc-soft)); box-shadow: inset 0 -3px 0 var(--acc); }
.profile { display: flex; align-items: center; gap: 10px; }
.ava { width: 38px; height: 38px; fill: var(--acc-soft); stroke: var(--acc); stroke-width: 1.2; stroke-linejoin: round; }
.profile b { display: block; font-size: 15px; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { font-size: 11px; color: var(--acc); }

.tab { display: flex; justify-content: space-between; gap: 20px; padding: 22px 28px 14px; min-height: 0; }
.col { width: min(350px, 46vw); display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden auto; scrollbar-width: none; }
.col.right { justify-content: flex-end; }
.col > * { flex: none; }
.title small { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.title h2, .stage h2 { margin: 2px 0 0; font-size: 36px; font-weight: 700; line-height: 1; text-transform: uppercase; }
.title p { margin: 8px 0 0; font-size: 13px; line-height: 1.35; color: var(--dim); }

.card { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { margin: 0; display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.card h3 span { color: var(--dim); font-weight: 400; }
.card label, .card .lbl, .card small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.card label span { color: var(--acc); float: right; font-weight: 600; }
.card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--dim); }
.card.wide { width: min(720px, 100%); margin: 0 auto; align-self: flex-start; max-height: 100%; overflow: hidden auto; scrollbar-width: none; }

/* нумерованный список */
.nlist { display: flex; flex-direction: column; gap: 6px; }
.nlist button { display: flex; align-items: center; height: 48px; padding: 0 14px 0 0; text-align: left; text-transform: none; letter-spacing: 0;
  color: var(--ink); border: 1px solid var(--line-soft); background: linear-gradient(90deg, rgba(30, 37, 44, .78), rgba(22, 28, 34, .5)); }
.nlist button > * { pointer-events: none; }
.nlist i { width: 56px; align-self: stretch; display: flex; align-items: center; justify-content: center; margin-right: 14px;
  font-style: normal; font-size: 20px; font-weight: 700; font-stretch: 80%; color: var(--dim); background: rgba(255, 255, 255, .05);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.nlist span { flex: 1; font-size: 17px; font-weight: 600; }
.nlist small { font-size: 11px; color: var(--dim); }
.nlist button:hover { border-color: var(--line); }
.nlist button.on { border-color: var(--acc); background: linear-gradient(90deg, rgba(242, 194, 48, .34), rgba(242, 194, 48, .07)); box-shadow: 0 0 18px rgba(242, 194, 48, .14); }
.nlist button.on i { color: var(--acc); background: rgba(242, 194, 48, .16); }
.nlist button.on small { color: var(--ink); }
.nlist button.t0 span { color: var(--t0); }
.nlist button.t1 span { color: var(--t1); }

input:not([type]) { width: 100%; margin-top: 6px; padding: 8px 10px; font: 600 15px var(--font); color: var(--ink);
  background: rgba(6, 9, 12, .6); border: 1px solid var(--line); outline: none; user-select: text; }
input:not([type]):focus { border-color: var(--acc); }
input:disabled { opacity: .6; }
input::placeholder { color: var(--dim); opacity: .7; font-weight: 400; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 4px 0 0; background: none; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: rgba(225, 235, 245, .2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 8px; height: 17px; margin-top: -7px; background: var(--acc); border: 0; cursor: pointer; }
input[type=range]::-moz-range-track { height: 3px; background: rgba(225, 235, 245, .2); }
input[type=range]::-moz-range-thumb { width: 8px; height: 17px; background: var(--acc); border: 0; border-radius: 0; cursor: pointer; }

button { font: 600 12px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); padding: 9px 10px; transition: border-color .12s, color .12s, background .12s; }
button:hover { color: var(--ink); border-color: var(--line); }
.seg { display: flex; gap: 5px; margin-top: 6px; }
.seg button { flex: 1; }
.seg button.on { color: var(--ink); border-color: var(--acc); background: var(--acc-soft); box-shadow: inset 0 -2px 0 var(--acc); }
button.primary { height: 66px; font-size: 24px; font-weight: 700; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  border: 1px solid #ffe07a; background: linear-gradient(180deg, rgba(246, 204, 70, .92), rgba(176, 128, 14, .86));
  box-shadow: 0 0 26px rgba(242, 194, 48, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
button.primary::before { content: "▶"; margin-right: 14px; font-size: 18px; vertical-align: 2px; }
button.primary:hover { color: #fff; filter: brightness(1.12); }
button.primary:disabled { font-size: 13px; color: var(--dim); text-shadow: none; background: var(--glass-deep); border-color: var(--line-soft); box-shadow: none; cursor: default; filter: none; }
button.primary:disabled::before { content: none; }

#linklist div { padding: 7px 10px; font-size: 15px; font-weight: 600; color: var(--acc); background: rgba(6, 9, 12, .5); border: 1px solid var(--line-soft); user-select: text; }
#linklist div + div { margin-top: 5px; }
#squad { display: flex; flex-direction: column; gap: 3px; max-height: 190px; overflow: hidden auto; scrollbar-width: none; }
.mate { display: flex; align-items: center; gap: 9px; padding: 5px 9px; background: rgba(255, 255, 255, .045); }
.mate i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mate span { flex: 1; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mate small { display: inline; color: inherit; }
.mate b { width: 46px; text-align: right; color: var(--dim); font-weight: 400; }
.mate.me { box-shadow: inset 2px 0 0 var(--acc); background: var(--acc-soft); }

/* арсенал */
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stage small { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stage h2 { font-size: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { padding: 4px 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); background: rgba(14, 18, 23, .5); }
.chips span:first-child { color: var(--acc); border-color: var(--acc); }
#armpic { flex: 1; min-height: 0; width: 100%; fill: rgba(225, 235, 245, .09); stroke: var(--ink); stroke-width: .2; max-height: 46vh; stroke-linejoin: round;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .7)); }
.stat { display: grid; grid-template-columns: 1fr auto; row-gap: 4px; margin-bottom: 9px; font-size: 13px; }
.stat b { font-weight: 700; }
.sbar { grid-column: 1 / 3; height: 3px; background: rgba(225, 235, 245, .16); }
.sbar i { display: block; height: 100%; background: var(--ink); transition: width .25s; }
.fact { display: flex; justify-content: space-between; padding: 6px 9px; margin-top: 4px; font-size: 12px; color: var(--dim);
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line-soft); }
.fact b { color: var(--ink); }

table.keys { width: 100%; border-collapse: collapse; font-size: 13px; }
table.keys td { padding: 6px 4px; border-top: 1px solid var(--line-soft); color: var(--dim); }
table.keys td:nth-child(odd) { white-space: nowrap; }

#foot { display: flex; align-items: center; gap: 26px; height: 42px; padding: 0 28px; font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); border-top: 1px solid var(--line-soft); background: rgba(8, 11, 14, .5); }
#foot kbd { margin-right: 8px; }
#foot .net { margin-left: auto; display: flex; align-items: flex-end; gap: 2px; }
#foot .net i { width: 3px; background: #4fd66a; margin-bottom: 2px; }
#foot .net i:nth-child(1) { height: 4px; } #foot .net i:nth-child(2) { height: 7px; }
#foot .net i:nth-child(3) { height: 10px; } #foot .net i:nth-child(4) { height: 13px; margin-right: 8px; }

/* небольшие окна: уменьшаем HUD и лобби */
@media (max-width: 1180px), (max-height: 700px) {
  #hud { zoom: .72; }
  #xhair { zoom: 1.39; }
  #nav { padding: 0 14px; gap: 12px; height: 50px; }
  .logo b { font-size: 22px; }
  #tabs button { padding: 0 14px; font-size: 13px; }
  .tab { padding: 12px 14px 8px; }
  .title h2 { font-size: 26px; }
  .title p, .nlist small { display: none; }
  .nlist button { height: 38px; }
  button.primary { height: 50px; font-size: 19px; }
  #foot { height: 32px; padding: 0 14px; }
  #armpic { display: none; }
  .stage h2 { font-size: 24px; }
}
@media (max-height: 760px) { #mates { display: none; } }

/* изображения оружия, отрисованные из игровых моделей */
.pic { object-fit: contain; }
#slots .pic, #feed .pic, #gunpic { filter: brightness(0) invert(1); }
#slots .slot:not(.on) .pic { opacity: .55; }
#feed .pic { width: 46px; height: 18px; }
.item .pic { height: 62px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
#armpic { object-fit: contain; object-position: 50% 45%; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .75)); }
.nlist .pic { width: 74px; height: 28px; margin-right: 6px; }

/* Цифры интерфейса — Orbitron */
#money { font-family: "Orbitron", var(--font); letter-spacing: 0.02em; }
