/* FRONTVONAL – felület (modern katonai stílus) */
:root {
  --bg: #0b0c0a;
  --panel: rgba(14, 15, 13, 0.8);
  --panel2: rgba(24, 25, 22, 0.92);
  --glass: rgba(12, 13, 11, 0.55);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.2);
  --text: #ece9e1;
  --muted: #9a968a;
  --accent: #f2a83b;
  --accent2: #ffd28a;
  --red: #e5503c;
  --green: #9ad35a;
  --blue: #4a9be0;
  --head: 'Barlow Condensed', 'Arial Narrow', 'Segoe UI', sans-serif;
  --body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; user-select: none; -webkit-user-select: none; }
canvas#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
button { font-family: var(--head); cursor: pointer; }
input, select { font-family: var(--body); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
h1, h2 { font-family: var(--head); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 12px; line-height: 1; }
h1 { font-size: 46px; }
h2 { font-size: 24px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.kicker::before { content: ''; width: 18px; height: 2px; background: var(--accent); }
kbd { display: inline-block; min-width: 24px; text-align: center; padding: 2px 7px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-bottom-width: 2px; font-family: var(--head); font-weight: 600; font-size: 13px; color: var(--text); }

/* ---------- képernyők ---------- */
.screen { position: absolute; inset: 0; display: none; }
.screen.show { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.brand { font-family: var(--head); line-height: 0.88; user-select: none; }
.brand em { display: flex; align-items: center; gap: 10px; font-style: normal; font-weight: 600; font-size: 14px; letter-spacing: 0.34em; color: var(--accent); margin-bottom: 10px; }
.brand em::before { content: ''; width: 34px; height: 3px; background: var(--accent); }
.brand b { display: block; font-weight: 800; letter-spacing: 0.02em; color: #f4f1ea; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55); }
.brand.big b { font-size: clamp(56px, 8.4vw, 118px); }

/* betöltés */
#loading { display: none; background: radial-gradient(ellipse at 30% 40%, #1b1a16 0%, #0a0a09 70%); }
#loading.show { display: flex; align-items: flex-end; }
.load-inner { width: min(640px, 88vw); margin: 0 0 11vh clamp(24px, 7vw, 110px); }
.load-bar { margin-top: 34px; width: 100%; height: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px rgba(242, 168, 59, 0.6); transition: width 0.25s; }
.load-row { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--head); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.load-row #loadPct { color: var(--text); }
.load-tip { margin-top: 26px; padding-left: 12px; border-left: 2px solid var(--accent); color: #c9c5b8; font-size: 14px; max-width: 520px; min-height: 20px; }

/* főmenü */
#title { background: linear-gradient(90deg, rgba(8, 8, 7, 0.9) 0%, rgba(8, 8, 7, 0.62) 30%, rgba(8, 8, 7, 0.08) 58%, rgba(8, 8, 7, 0) 75%); }
.letterbox { position: absolute; left: 0; right: 0; height: 7vh; background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0)); pointer-events: none; }
.letterbox.top { top: 0; }
.letterbox.bot { bottom: 0; transform: scaleY(-1); }
.title-left { position: absolute; left: clamp(24px, 6vw, 96px); top: 50%; transform: translateY(-52%); width: min(470px, 88vw); }
.menu { display: flex; flex-direction: column; gap: 2px; margin-top: 44px; }
.mbtn { position: relative; text-align: left; padding: 12px 18px 12px 22px; border: 0; background: transparent; color: var(--text); transition: background 0.15s, padding 0.15s; animation: slideIn 0.45s ease both; }
.mbtn:nth-child(2) { animation-delay: 0.05s; } .mbtn:nth-child(3) { animation-delay: 0.1s; } .mbtn:nth-child(4) { animation-delay: 0.15s; } .mbtn:nth-child(5) { animation-delay: 0.2s; }
.mbtn span { display: block; font-size: 30px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; color: #d8d4c9; transition: color 0.15s; }
.mbtn small { display: block; font-family: var(--body); color: var(--muted); font-size: 13px; margin-top: 4px; opacity: 0; max-height: 0; transition: opacity 0.18s, max-height 0.18s; overflow: hidden; }
.mbtn::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform 0.18s; }
.mbtn:hover { background: linear-gradient(90deg, rgba(242, 168, 59, 0.14), rgba(242, 168, 59, 0)); padding-left: 28px; }
.mbtn:hover span { color: #fff; }
.mbtn:hover small { opacity: 1; max-height: 20px; }
.mbtn:hover::before { transform: scaleY(1); }
.mbtn.primary span { color: var(--accent); font-size: 38px; }
.mbtn.primary small { opacity: 1; max-height: 20px; }
.mbtn.primary::before { transform: scaleY(1); }
.title-right { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(16px, 3vh, 34px); }
.pcard { display: flex; gap: 12px; align-items: center; padding: 10px 18px 10px 10px; background: var(--glass); border: 1px solid var(--line); border-left: 3px solid var(--accent); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background 0.15s; }
.pcard:hover { background: rgba(30, 30, 26, 0.75); }
.pc-sw { width: 44px; height: 44px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.pc-lbl { font-family: var(--head); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); }
.pc-name { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: 0.03em; line-height: 1.05; }
.pc-char { font-size: 12.5px; color: var(--muted); }
.title-intel { position: absolute; right: clamp(16px, 3vw, 40px); bottom: calc(7vh + 10px); display: flex; flex-direction: column; gap: 10px; text-align: right; max-width: 380px; }
.title-intel div { display: flex; flex-direction: column; gap: 2px; }
.title-intel b { font-family: var(--head); font-size: 12px; letter-spacing: 0.3em; color: var(--accent); font-weight: 600; }
.title-intel span { font-family: var(--head); font-size: 17px; letter-spacing: 0.04em; color: #e5e1d6; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.foot { position: absolute; bottom: 18px; left: clamp(24px, 6vw, 96px); font-family: var(--head); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(236, 233, 225, 0.45); }

/* panelek, gombok, űrlapok */
.panel { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid rgba(242, 168, 59, 0.75); padding: 22px 24px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); }
.btn { position: relative; padding: 11px 20px; border-radius: 0; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.04); color: var(--text); font-weight: 700; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.15s; }
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #17130b; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.btn.primary:hover { background: #ffbb52; }
.btn.danger { background: rgba(229, 80, 60, 0.14); border-color: rgba(229, 80, 60, 0.55); color: #ffb3a6; }
.btn.danger:hover { background: rgba(229, 80, 60, 0.28); }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 13px; font-size: 13.5px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.7); }
.lbl { display: block; font-family: var(--head); font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin: 16px 0 7px; font-weight: 600; }
.lbl b { color: var(--text); }
input[type=text], input:not([type]), select { width: 100%; padding: 10px 12px; border-radius: 0; border: 1px solid var(--line2); background: rgba(0, 0, 0, 0.35); color: var(--text); font-size: 15px; outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(242, 168, 59, 0.18); }
select option { background: #1b1c19; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.seg { display: flex; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line2); padding: 3px; gap: 3px; }
.seg button { flex: 1; padding: 7px 8px; border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent); color: #17130b; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* profil */
#profile { background: linear-gradient(90deg, rgba(8, 8, 7, 0.9) 0%, rgba(8, 8, 7, 0.55) 40%, rgba(8, 8, 7, 0) 62%); }
.prof-panel { position: absolute; left: clamp(16px, 4vw, 64px); top: 50%; transform: translateY(-50%); width: min(540px, 92vw); max-height: 94vh; overflow: auto; }
.p-head h2 { font-size: 30px; }
.char-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.char-card { border: 1px solid var(--line); padding: 11px 12px; background: rgba(0, 0, 0, 0.28); cursor: pointer; transition: all 0.15s; position: relative; }
.char-card:hover { border-color: var(--line2); background: rgba(255, 255, 255, 0.04); }
.char-card.on { border-color: var(--accent); background: rgba(242, 168, 59, 0.1); }
.char-card.on::after { content: ''; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 16px 16px 0; border-color: transparent var(--accent) transparent transparent; }
.cc-name { font-family: var(--head); font-weight: 700; font-size: 21px; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; }
.cc-role { font-family: var(--head); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 3px 0 8px; }
.cc-stat { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin: 3px 0; }
.cc-stat i { flex: 1; height: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.cc-stat i b { display: block; height: 100%; background: var(--text); }
.colors { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.cpick { display: flex; flex-direction: column; align-items: center; gap: 5px; font-family: var(--head); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cpick input { width: 58px; height: 40px; border: 1px solid var(--line2); background: none; padding: 2px; cursor: pointer; }
.cbtns { display: flex; gap: 6px; margin-left: auto; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 20px; }
.preset { width: 46px; height: 24px; border: 1px solid var(--line2); cursor: pointer; display: flex; overflow: hidden; transition: transform 0.12s; }
.preset i { flex: 1; }
.preset:hover { transform: translateY(-2px); border-color: var(--accent); }
.prof-info { position: absolute; right: clamp(16px, 5vw, 80px); bottom: 9vh; text-align: right; max-width: 400px; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }
.pi-role { font-family: var(--head); letter-spacing: 0.32em; font-size: 14px; text-transform: uppercase; color: var(--accent); }
.pi-name { font-family: var(--head); font-weight: 800; font-size: 64px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.95; }
.pi-ab { margin: 14px 0 10px; font-size: 14.5px; color: #d6d2c6; line-height: 1.5; }
.pi-ab b { color: #fff; }
.pi-hint { font-family: var(--head); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* lobbi */
#lobby { background: linear-gradient(rgba(8, 8, 7, 0.72), rgba(8, 8, 7, 0.82)); }
.lobby-head { position: absolute; left: 3vw; top: 4vh; }
.lobby-head h1 { margin: 0; }
.lobby-wrap { position: absolute; inset: calc(4vh + 78px) 3vw 72px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; max-width: 1320px; }
.rooms, .create { overflow: auto; display: flex; flex-direction: column; }
.room-list { flex: 1; min-height: 160px; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.room { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 14px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-left: 3px solid rgba(242, 168, 59, 0.5); align-items: center; transition: background 0.15s; }
.room:hover { background: rgba(255, 255, 255, 0.04); border-left-color: var(--accent); }
.room .rn { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }
.room .rm { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.room .rm b { color: var(--text); font-weight: 600; }
.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); line-height: 1.6; }
.status { min-height: 20px; font-size: 13px; color: var(--accent2); margin: 8px 0; }
.join-code { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 8px; }
.join-code input { text-transform: uppercase; letter-spacing: 0.3em; font-family: var(--head); font-weight: 700; font-size: 18px; }
.create .btn.wide { margin-top: 22px; }
.lobby-foot { position: absolute; left: 3vw; bottom: 18px; }

/* ---------- HUD ---------- */
#hud { position: absolute; inset: 0; display: none; pointer-events: none; font-family: var(--head); }
#hud.show { display: block; }
#hud * { pointer-events: none; }
.hud-tl { position: absolute; left: 22px; top: 22px; }
.mm-wrap { position: relative; width: 196px; height: 196px; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.35); }
.mm-wrap::before, .mm-wrap::after { content: ''; position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); z-index: 2; }
.mm-wrap::before { left: -4px; top: -4px; border-right: 0; border-bottom: 0; }
.mm-wrap::after { right: -4px; bottom: -4px; border-left: 0; border-top: 0; }
#minimap { width: 196px; height: 196px; display: block; background: rgba(10, 11, 9, 0.55); }
.mm-n { position: absolute; left: 50%; top: 3px; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--accent); text-shadow: 0 1px 3px #000; display: none; }
.room-tag { font-size: 12px; color: rgba(236, 233, 225, 0.7); margin-top: 8px; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 1px 4px #000; }
.hud-top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
#compass { width: 560px; height: 42px; display: block; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.score-top { display: flex; align-items: center; gap: 12px; padding: 4px 16px; background: linear-gradient(90deg, rgba(10, 10, 9, 0), rgba(10, 10, 9, 0.62) 20%, rgba(10, 10, 9, 0.62) 80%, rgba(10, 10, 9, 0)); font-weight: 700; text-shadow: 0 1px 3px #000; }
.score-top .tm { font-size: 26px; letter-spacing: 0.08em; min-width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.score-top .ts { font-size: 30px; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.score-top .lead { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.score-top .lead b { color: var(--text); }
.banner { font-size: 15px; letter-spacing: 0.08em; padding: 5px 16px; background: rgba(242, 168, 59, 0.16); border-left: 3px solid var(--accent); color: var(--accent2); display: none; text-shadow: 0 1px 3px #000; text-transform: uppercase; }
.bomb-bar { display: none; font-size: 16px; padding: 6px 18px; background: rgba(229, 80, 60, 0.22); border-left: 3px solid var(--red); color: #ffc0b4; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 1px 3px #000; }
.bomb-bar.carry { background: rgba(242, 168, 59, 0.2); border-left-color: var(--accent); color: var(--accent2); }
.killfeed { position: absolute; right: 22px; top: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.kf { background: linear-gradient(90deg, rgba(10, 10, 9, 0), rgba(10, 10, 9, 0.66) 18%); padding: 4px 12px 4px 26px; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; display: flex; gap: 8px; align-items: center; animation: kfIn 0.25s ease; text-shadow: 0 1px 2px #000; }
.kf.me { background: linear-gradient(90deg, rgba(242, 168, 59, 0), rgba(242, 168, 59, 0.28) 18%); }
.kf .w { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.kf .hs { color: var(--accent); font-size: 13px; }
@keyframes kfIn { from { transform: translateX(30px); opacity: 0; } }
.announce { position: absolute; top: 21%; left: 50%; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity 0.3s; }
.announce.show { opacity: 1; }
.announce .a1 { font-size: 46px; font-weight: 800; letter-spacing: 0.1em; color: #fff; text-transform: uppercase; text-shadow: 0 0 24px rgba(242, 168, 59, 0.55), 0 2px 8px #000; }
.announce .a2 { font-size: 17px; color: var(--accent2); margin-top: 2px; letter-spacing: 0.1em; text-transform: uppercase; text-shadow: 0 1px 4px #000; }
#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
#crosshair i { position: absolute; background: var(--xh, #f4f1ea); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55); }
#crosshair .ring { position: absolute; border: 2px solid var(--xh, #f4f1ea); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.5); }
#adsDot { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--xh, #f4f1ea); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7); display: none; }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
#hitmarker i { position: absolute; width: 11px; height: 2px; background: #fff; box-shadow: 0 0 2px rgba(0, 0, 0, 0.9); left: 0; top: -1px; transform-origin: 0 50%; }
#hitmarker i:nth-child(1) { transform: rotate(45deg) translateX(6px); }
#hitmarker i:nth-child(2) { transform: rotate(135deg) translateX(6px); }
#hitmarker i:nth-child(3) { transform: rotate(225deg) translateX(6px); }
#hitmarker i:nth-child(4) { transform: rotate(315deg) translateX(6px); }
#hitmarker.head i { background: var(--accent); }
#hitmarker.kill i { background: var(--red); height: 3px; width: 14px; }
#dmgDirs { position: absolute; left: 50%; top: 50%; }
.dd { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; }
.dd::before { content: ''; position: absolute; left: 50%; top: -4px; width: 70px; height: 14px; margin-left: -35px; background: radial-gradient(ellipse at 50% 100%, rgba(229, 60, 40, 0.95), rgba(229, 60, 40, 0) 70%); }
#scope { position: absolute; inset: 0; display: none; background: radial-gradient(circle at center, transparent 0, transparent 34vh, rgba(0, 0, 0, 0.985) calc(34vh + 3px)); }
#scope.show { display: block; }
.scope-ring { position: absolute; left: 50%; top: 50%; width: 68vh; height: 68vh; margin: -34vh 0 0 -34vh; border-radius: 50%; box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.85), inset 0 0 6px rgba(0, 0, 0, 0.9); }
.scope-ret { position: absolute; left: 50%; top: 50%; width: 68vh; height: 68vh; margin: -34vh 0 0 -34vh;
  background:
    linear-gradient(#000, #000) center / 1.5px 100% no-repeat,
    linear-gradient(#000, #000) center / 100% 1.5px no-repeat,
    linear-gradient(#000, #000) 50% 0 / 5px 36% no-repeat,
    linear-gradient(#000, #000) 50% 100% / 5px 36% no-repeat,
    linear-gradient(#000, #000) 0 50% / 36% 5px no-repeat,
    linear-gradient(#000, #000) 100% 50% / 36% 5px no-repeat; }
.scope-ret::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #ff3b2a; box-shadow: 0 0 6px rgba(255, 60, 40, 0.9); }
.prompt { position: absolute; left: 50%; top: 61%; transform: translateX(-50%); text-align: center; display: none; }
.prompt .pt { background: rgba(10, 10, 9, 0.72); border-left: 3px solid var(--accent); padding: 7px 16px; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; }
.prompt .pbar { margin-top: 6px; height: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; display: none; }
.prompt .pbar i { display: block; height: 100%; width: 0; background: var(--accent); }
.kill-notice { position: absolute; left: 50%; top: 64%; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity 0.2s; }
.kill-notice.show { opacity: 1; }
.kill-notice .kn1 { font-size: 28px; font-weight: 800; letter-spacing: 0.16em; color: #fff; text-transform: uppercase; text-shadow: 0 0 16px rgba(229, 80, 60, 0.7), 0 2px 5px #000; }
.kill-notice .kn2 { font-size: 15px; color: var(--accent2); letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 1px 3px #000; }
.hud-bl { position: absolute; left: 22px; bottom: 22px; width: 400px; }
.chat-log { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; font-family: var(--body); font-size: 13.5px; max-height: 200px; overflow: hidden; justify-content: flex-end; }
.chat-log div { background: rgba(10, 10, 9, 0.5); padding: 3px 9px; width: fit-content; max-width: 100%; text-shadow: 0 1px 2px #000; transition: opacity 1s; }
.chat-log .sys { color: #cdc8b8; font-style: italic; }
.chat-log b { font-weight: 700; }
.chat-in { display: none; margin-bottom: 8px; pointer-events: auto !important; }
.chat-in.show { display: block; }
.vitals { display: flex; gap: 12px; align-items: flex-end; }
.hp-box { width: 250px; padding: 6px 0 0; }
.hp-top { display: flex; align-items: baseline; gap: 10px; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.hp-num { font-size: 44px; font-weight: 700; line-height: 0.9; font-variant-numeric: tabular-nums; }
.hp-num.low { color: var(--red); animation: pulse 0.8s infinite; }
.hp-lbl { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.ar-lbl { margin-left: auto; font-size: 13px; letter-spacing: 0.1em; color: #9fc7ec; }
@keyframes pulse { 50% { opacity: 0.5; } }
.bar { height: 5px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin-top: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.bar i { display: block; height: 100%; transition: width 0.15s; }
.bar.hp i { background: #efece4; }
.bar.ar { height: 3px; margin-top: 3px; }
.bar.ar i { background: var(--blue); }
.abil { position: relative; width: 58px; height: 58px; background: rgba(10, 10, 9, 0.6); border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; flex-direction: column; }
.abil svg { position: absolute; inset: 4px; width: 48px; height: 48px; transform: rotate(-90deg); }
.ab-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2.5; }
.ab-fg { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 94.25; stroke-dashoffset: 0; transition: stroke-dashoffset 0.1s; }
.abil.ready { border-color: var(--accent); box-shadow: 0 0 14px rgba(242, 168, 59, 0.3); }
.ab-key { font-size: 22px; font-weight: 700; line-height: 1; position: relative; }
.ab-name { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; line-height: 1; position: relative; max-width: 54px; }
.hud-br { position: absolute; right: 22px; bottom: 22px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.credits { font-size: 24px; font-weight: 700; color: var(--accent2); position: relative; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); display: flex; align-items: baseline; gap: 8px; }
.credits span { font-size: 12px; letter-spacing: 0.24em; color: var(--muted); }
.credits em { position: absolute; right: 0; top: -24px; font-style: normal; font-size: 18px; color: var(--accent); opacity: 0; }
.credits em.go { animation: credUp 1.2s ease; }
@keyframes credUp { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.weap { min-width: 240px; padding-right: 14px; border-right: 3px solid var(--accent); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85); }
.w-name { font-size: 15px; color: #d9d5ca; letter-spacing: 0.16em; text-transform: uppercase; }
.ammo { line-height: 0.95; }
.ammo b { font-size: 56px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ammo b.low { color: var(--red); }
.ammo span { color: var(--muted); font-size: 22px; margin-left: 4px; font-weight: 600; }
.slots, .nades { display: flex; gap: 12px; justify-content: flex-end; font-size: 13px; letter-spacing: 0.08em; color: rgba(236, 233, 225, 0.45); text-transform: uppercase; margin-top: 3px; }
.slots .on { color: var(--accent); }
.nades .has { color: var(--text); }
.hint { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(236, 233, 225, 0.4); }
.fps { position: absolute; right: 22px; top: 50%; font-size: 12px; color: var(--muted); letter-spacing: 0.1em; }
#namePlates { position: absolute; inset: 0; overflow: hidden; }
.np { position: absolute; transform: translate(-50%, -100%); font-size: 14px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; text-shadow: 0 1px 3px #000, 0 0 2px #000; text-align: center; }
.np .hpb { width: 48px; height: 3px; background: rgba(0, 0, 0, 0.55); margin: 2px auto 0; overflow: hidden; }
.np .hpb i { display: block; height: 100%; background: #efece4; }
.np.icon { font-size: 18px; }
.np.zone { font-size: 22px; color: var(--accent); width: 34px; height: 34px; line-height: 30px; border: 2px solid var(--accent); background: rgba(10, 10, 9, 0.35); }
.np.zone small { position: absolute; left: 50%; top: 36px; transform: translateX(-50%); font-size: 12px; color: var(--accent2); line-height: 1; }
.np.bomb { color: #ff8a5a; font-size: 14px; }

/* halál */
.death { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); text-align: center; display: none; font-family: var(--head); pointer-events: none !important; text-shadow: 0 2px 10px #000; }
.death.show { display: block; animation: fadeIn 0.5s; }
.death .d0 { font-size: 14px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--red); }
.death .d1 { font-size: 56px; font-weight: 800; letter-spacing: 0.14em; color: #fff; }
.death .d2 { font-size: 20px; margin-top: 4px; letter-spacing: 0.04em; }
.death .d3 { font-size: 18px; margin-top: 16px; color: var(--accent2); letter-spacing: 0.1em; text-transform: uppercase; }
.death .d4 { font-size: 14px; margin-top: 8px; font-family: var(--body); color: #cfcabc; }

/* overlay-ek */
.overlay, .modal { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(5, 5, 4, 0.55); }
.overlay.show, .modal.show { display: flex; animation: fadeIn 0.2s; }
.overlay.pass { background: transparent; pointer-events: none !important; }
.modal { z-index: 20; background: rgba(5, 5, 4, 0.72); }
.shop-panel { width: min(1080px, 94vw); max-height: 90vh; display: flex; flex-direction: column; gap: 8px; }
.shop-head h2 { margin: 0; font-size: 32px; }
.shop-cred { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--head); }
.shop-cred span { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }
.shop-cred b { font-size: 30px; color: var(--accent2); line-height: 1; }
.shop-body { overflow: auto; padding-right: 4px; }
.shop-cat { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.24em; color: var(--accent); margin: 16px 0 8px; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.shop-cat::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.item { border: 1px solid var(--line); padding: 12px 13px; background: rgba(0, 0, 0, 0.3); cursor: pointer; transition: all 0.12s; display: flex; flex-direction: column; gap: 5px; position: relative; }
.item:hover { border-color: var(--accent); background: rgba(242, 168, 59, 0.07); }
.item .in { font-family: var(--head); font-weight: 700; font-size: 19px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
.item .id { font-size: 12.5px; color: var(--muted); line-height: 1.4; flex: 1; }
.item .ip { font-family: var(--head); font-weight: 700; color: var(--accent2); font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.item .lv { display: flex; gap: 3px; }
.item .lv i { width: 14px; height: 4px; background: rgba(255, 255, 255, 0.14); }
.item .lv i.on { background: var(--accent); }
.item.poor { opacity: 0.5; }
.item.owned { border-color: rgba(154, 211, 90, 0.5); }
.item.owned .ip { color: var(--green); }
.item.maxed { opacity: 0.55; cursor: default; }
.item .stats { font-size: 11.5px; color: #b9b4a6; display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--head); letter-spacing: 0.06em; text-transform: uppercase; }
.score-panel { width: min(920px, 94vw); }
.sb-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sb-table th { text-align: left; font-family: var(--head); color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.sb-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.sb-table tr.me td { background: rgba(242, 168, 59, 0.13); }
.sb-table tr.dead td { opacity: 0.5; }
.sb-table .num { text-align: right; font-family: var(--head); font-weight: 700; font-size: 16px; }
.sb-sw { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: middle; }
.sb-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.sb-head .t { font-family: var(--head); font-size: 24px; font-weight: 700; text-transform: uppercase; }
.sb-team { font-family: var(--head); font-weight: 700; font-size: 18px; margin: 14px 0 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.pause-panel { width: min(380px, 92vw); display: flex; flex-direction: column; gap: 8px; }
.pause-panel h2 { margin: 0 0 4px; font-size: 32px; }
.pause-info { font-size: 13.5px; color: #d3cfc3; background: rgba(0, 0, 0, 0.3); border-left: 2px solid var(--accent); padding: 10px 12px; line-height: 1.6; margin-bottom: 6px; }
.pause-info .code { font-family: var(--head); font-size: 28px; letter-spacing: 0.3em; color: var(--accent); font-weight: 700; }
.end-panel { width: min(780px, 94vw); text-align: center; }
.end-title { font-family: var(--head); font-size: 15px; letter-spacing: 0.44em; text-transform: uppercase; color: var(--accent); }
.end-winner { font-family: var(--head); font-size: 46px; font-weight: 800; margin: 8px 0 22px; text-transform: uppercase; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.pod { width: 180px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-top: 3px solid var(--line2); padding: 12px; }
.pod .pn { font-family: var(--head); font-weight: 700; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .ps { font-size: 13px; color: var(--muted); }
.pod .pp { font-family: var(--head); font-size: 40px; font-weight: 800; line-height: 1; }
.pod.p1 { height: 176px; border-top-color: #f2c14e; } .pod.p1 .pp { color: #f2c14e; }
.pod.p2 { height: 146px; border-top-color: #cfd3da; } .pod.p2 .pp { color: #cfd3da; }
.pod.p3 { height: 124px; border-top-color: #c98a55; } .pod.p3 .pp { color: #c98a55; }
.modal-panel { width: min(780px, 94vw); max-height: 88vh; display: flex; flex-direction: column; gap: 12px; }
.modal-panel h2 { margin: 0; font-size: 30px; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs button { padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-body { overflow: auto; flex: 1; padding-right: 6px; }
.set-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row .sl { font-size: 14.5px; }
.set-row .sl small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.set-row .sv { display: flex; gap: 10px; align-items: center; }
.set-row .sv output { min-width: 46px; text-align: right; font-family: var(--head); font-weight: 700; font-size: 16px; }
.help-body { font-size: 14.5px; line-height: 1.6; color: #d9d5ca; }
.help-body h3 { font-family: var(--head); font-size: 19px; margin: 16px 0 6px; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; }
.help-body p { margin: 6px 0; }
.help-body ul { margin: 6px 0; padding-left: 20px; }
.help-body li { margin: 3px 0; }
.help-body li::marker { color: var(--accent); }
.help-body code { background: rgba(255, 255, 255, 0.08); padding: 1px 6px; font-size: 13px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; align-items: center; }
.conn-panel { display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(420px, 90vw); text-align: center; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.1); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#toasts { position: absolute; left: 50%; bottom: 130px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none !important; z-index: 30; }
.toast { background: rgba(14, 15, 13, 0.92); border-left: 3px solid var(--line2); padding: 8px 18px; font-size: 14px; animation: fadeIn 0.2s; }
.toast.ok { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); }
.click-play { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-family: var(--head); font-size: 18px; letter-spacing: 0.18em; text-transform: uppercase; padding: 10px 24px; background: rgba(10, 10, 9, 0.8); border-left: 3px solid var(--accent); display: none; pointer-events: none !important; }
.click-play.show { display: block; animation: pulse 1.6s infinite; }

@media (max-width: 900px) {
  .lobby-wrap { grid-template-columns: 1fr; overflow: auto; }
  .grid2 { grid-template-columns: 1fr; }
  .prof-info, .title-intel { display: none; }
  #compass { width: 320px; }
}
