:root {
  --bg: #0a0d13;
  --bg2: #10151f;
  --panel: rgba(12, 16, 24, 0.9);
  --panel2: rgba(26, 33, 47, 0.95);
  --line: rgba(255, 255, 255, 0.13);
  --text: #eef2f8;
  --dim: #9aa6b8;
  --accent: #ffb23a;
  --accent2: #ffe98f;
  --t: #ff7a5f;
  --ct: #6aa8ff;
  --tb: #c4472f;
  --ctb: #3f7fd8;
  --good: #5be07a;
  --bad: #ff5147;
  --font: var(--ui);
  --ui: "Bahnschrift", "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  --shadow: 0 4px 0 rgba(0, 0, 0, 0.55);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; user-select: none; }
button, input, select { font-family: inherit; color: inherit; }
.hidden { display: none !important; }
#game3d { position: fixed; inset: 0; display: block; background: #05060a; pointer-events: none; }
#game { position: fixed; inset: 0; display: block; background: transparent; }
body.ingame #game { cursor: none; }
body.ingame.menu-open #game, body.ingame.deploying #game { cursor: default; }
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; font-weight: 800; font-family: var(--ui); text-transform: uppercase; letter-spacing: 0.04em; }
#hud > * { position: absolute; }
#topbar { top: 10px; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch; gap: 0; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.45)); }
.tk { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 236px; padding: 6px 12px 5px; background: rgba(9, 13, 20, 0.82); border: 1px solid rgba(255, 255, 255, 0.16); position: relative; }
.tk.friend { border-right: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-right: 22px; }
.tk.enemy { border-left: 0; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); padding-left: 22px; text-align: right; }
.tk-num { font-size: 26px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.tk.friend .tk-num { color: #6fb0ff; }
.tk.enemy .tk-num { color: #ff7a63; }
.tk-bar { height: 7px; background: rgba(255, 255, 255, 0.1); }
.tk-bar i { display: block; height: 100%; width: 100%; transition: width .3s linear; }
.tk.friend .tk-bar i { background: linear-gradient(90deg, #2f6fd0, #59a0ff); }
.tk.enemy .tk-bar i { background: linear-gradient(270deg, #c93c28, #ff6a52); margin-left: auto; }
.tk-name { font-size: 9px; letter-spacing: 0.22em; color: var(--dim); }
.tk-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 150px; padding: 4px 10px; background: rgba(9, 13, 20, 0.92); border-top: 1px solid rgba(255, 255, 255, 0.16); border-bottom: 1px solid rgba(255, 255, 255, 0.16); gap: 4px; }
.tb-time { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: 0.08em; }
.tb-time.low { color: var(--bad); }
#flagRow { display: flex; gap: 4px; justify-content: center; min-height: 18px; }
.fchip { width: 20px; height: 20px; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; color: #0b0e14; background: #d8dce0; clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); padding-bottom: 3px; }
.fchip.r { background: #e0523a; color: #fff; }
.fchip.b { background: #3f86e8; color: #fff; }
.fchip.c { animation: pulse .5s infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.tb-round { top: 76px; left: 50%; transform: translateX(-50%); font-size: 10px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.24em; text-shadow: 1px 1px 0 #000; }
#compass { top: 92px; left: 50%; transform: translateX(-50%); width: 520px; max-width: 60vw; height: 34px; filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8)); }
#objective { top: 130px; left: 50%; transform: translateX(-50%); padding: 4px 14px; background: rgba(0, 0, 0, 0.5); border-left: 3px solid var(--accent); font-size: 12px; letter-spacing: 0.1em; white-space: nowrap; }
#left-col { bottom: 14px; left: 14px; display: flex; flex-direction: row; align-items: flex-end; gap: 10px; }
#radar-wrap { background: rgba(9, 13, 20, 0.85); border: 1px solid rgba(255, 255, 255, 0.28); padding: 3px; overflow: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); position: relative; }
#radar { display: block; image-rendering: pixelated; }
#squadbox { min-width: 176px; }
#mates { display: flex; flex-direction: column; gap: 2px; }
.sqhead { font-size: 11px; letter-spacing: 0.24em; color: #ffb23a; padding: 2px 6px; background: rgba(9, 13, 20, 0.8); border-left: 3px solid #ffb23a; text-shadow: 1px 1px 0 #000; }
.mate { display: flex; align-items: center; gap: 6px; padding: 3px 7px; background: rgba(9, 13, 20, 0.72); font-size: 11px; border-left: 3px solid #3f86e8; }
.mate.me { background: rgba(40, 70, 120, 0.72); }
.mate.dead { opacity: 0.5; }
.mate .cl { width: 15px; height: 15px; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; color: #0b0e14; font-weight: 900; flex: none; }
.mate .hpbar { width: 34px; height: 4px; background: rgba(255, 255, 255, 0.18); margin-left: auto; flex: none; }
.mate .hpbar i { display: block; height: 100%; background: #e8f0ff; }
.mate .nm { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0.02em; }
.mate .rl { font-size: 8px; color: var(--dim); letter-spacing: 0.1em; }
.mate .rv { color: var(--good); font-size: 10px; }
.mate .vh { color: var(--dim); font-size: 10px; }
#killfeed { top: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.kf { display: flex; gap: 8px; align-items: center; padding: 3px 10px; background: rgba(9, 13, 20, 0.66); font-size: 12.5px; animation: kfin .2s ease-out; border-right: 3px solid transparent; }
.kf.me { border-right-color: var(--accent); background: rgba(70, 50, 8, 0.7); }
.kf.dead { border-right-color: var(--bad); }
.kf .w { color: #d9dfec; font-size: 10px; font-weight: 900; padding: 1px 6px; background: rgba(255, 255, 255, 0.16); letter-spacing: 0.05em; }
.kf .kw { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.kf .hs { color: #ff5a4a; font-size: 11px; margin-left: -4px; }
.kf .f, .cl b.f { color: #6fb0ff; }
.kf .e, .cl b.e { color: #ff7a63; }
.kf .s { color: #c8ccd2; }
.kf .as { color: var(--dim); font-size: 11px; }
@keyframes kfin { from { transform: translateX(30px); opacity: 0; } }
.sf { font-size: 15px; color: #ffe36a; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85); animation: sfin 1.6s forwards; }
@keyframes sfin { 0% { transform: scale(1.5); opacity: 0; } 12% { transform: scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(-16px); opacity: 0; } }
#banner { top: 20%; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; }
.banner-in { animation: bannerIn .3s cubic-bezier(.2, 1.4, .4, 1); padding: 12px 42px; background: linear-gradient(90deg, transparent, rgba(6, 9, 14, 0.85) 18%, rgba(6, 9, 14, 0.85) 82%, transparent); border-top: 1px solid rgba(255, 255, 255, 0.22); border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.banner-in h2 { font-size: clamp(22px, 3.2vw, 38px); font-weight: 900; letter-spacing: 0.14em; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6); }
.banner-in p { color: var(--dim); font-size: 13px; margin-top: 4px; letter-spacing: 0.08em; text-transform: none; }
.banner-in.e h2 { color: #ff7a63; }
.banner-in.f h2 { color: #6fb0ff; }
.banner-in.g h2 { color: var(--accent); }
@keyframes bannerIn { from { transform: scale(0.7); opacity: 0; } }
#prompt { bottom: 27%; left: 50%; transform: translateX(-50%); text-align: center; font-size: 14px; padding: 6px 16px 6px 8px; background: rgba(9, 13, 20, 0.78); border-left: 3px solid var(--accent); display: none; letter-spacing: 0.06em; }
#prompt kbd { background: var(--accent); color: #1a1200; border: 0; border-radius: 2px; margin: 0 6px 0 0; }
#progress { bottom: 33%; left: 50%; transform: translateX(-50%); width: 260px; text-align: center; }
#progress .bar { height: 8px; background: rgba(255, 255, 255, 0.2); margin-top: 6px; }
#progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); }
#progressLabel { font-size: 12px; letter-spacing: 0.14em; text-shadow: 2px 2px 0 #000; }
#statusbox { bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vitals { display: flex; flex-direction: column; gap: 4px; width: 340px; }
.vrow { display: flex; align-items: center; gap: 8px; }
.vrow .vic { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: rgba(9, 13, 20, 0.85); font-size: 18px; font-weight: 900; }
.vrow.hp .vic { color: #7dffa0; }
.vrow.ar .vic { color: #6fb0ff; }
.vrow .vbar { flex: 1; height: 11px; background: rgba(9, 13, 20, 0.7); border: 1px solid rgba(255, 255, 255, 0.25); padding: 1px; }
.vrow .vbar i { display: block; height: 100%; width: 100%; }
.vrow.hp .vbar i { background: linear-gradient(180deg, #e8ffee, #5fdd82); }
.vrow.hp .vbar i.mid { background: linear-gradient(180deg, #fff2c0, #f0b840); }
.vrow.hp .vbar i.low { background: linear-gradient(180deg, #ffc8c2, #ff5147); }
.vrow.ar .vbar i { background: linear-gradient(180deg, #d0e4ff, #4a88e8); }
.vrow b { width: 44px; text-align: right; font-size: 22px; font-variant-numeric: tabular-nums; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7); }
.vrow.ar b { font-size: 16px; color: #b8d4ff; }
#hpNum.low { color: var(--bad); animation: pulse .6s infinite; }
.clsname { font-size: 10px; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.55); text-shadow: 1px 1px 0 #000; }
#vehbox { bottom: 14px; left: 260px; width: 230px; padding: 7px 10px; background: rgba(9, 13, 20, 0.85); border-left: 3px solid var(--accent); font-size: 12px; }
#vehbox h4 { font-size: 13px; letter-spacing: 0.1em; margin-bottom: 5px; }
#vehbox .vhp { height: 8px; background: rgba(255, 255, 255, 0.16); margin-bottom: 6px; }
#vehbox .vhp i { display: block; height: 100%; background: var(--good); }
#vehbox .seat { display: flex; gap: 6px; padding: 2px 0; color: var(--dim); font-size: 11px; }
#vehbox .seat.me { color: var(--accent); }
#vehbox .seat b { color: #fff; }
#vehbox .hint { color: var(--dim); font-size: 10.5px; margin-top: 4px; }
#weaponbox { bottom: 14px; right: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.wpanel { width: 300px; padding: 8px 12px 7px; background: rgba(9, 13, 20, 0.78); border: 1px solid rgba(255, 255, 255, 0.2); border-right: 3px solid var(--accent); }
.wtop { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; letter-spacing: 0.14em; }
#fireMode { font-size: 10px; color: var(--accent); letter-spacing: 0.2em; }
.wmid { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; }
#weaponImg { height: 46px; max-width: 150px; object-fit: contain; filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, 0.6)); }
#ammoRow { font-size: 38px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.75); margin-left: auto; white-space: nowrap; }
#reserve { font-size: 18px; color: rgba(255, 255, 255, 0.62); margin-left: 4px; }
#clip.low { color: var(--bad); }
#weaponAtt { font-size: 9px; color: var(--dim); letter-spacing: 0.1em; min-height: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#slots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 520px; }
.tile { display: flex; align-items: center; gap: 5px; padding: 4px 8px; background: rgba(9, 13, 20, 0.7); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 11px; color: rgba(255, 255, 255, 0.7); }
.tile.sel { border-color: var(--accent); color: #fff; background: rgba(80, 58, 8, 0.7); }
.tile.empty { opacity: 0.4; }
.tile kbd { font-size: 10px; min-width: 16px; padding: 0 4px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 2px; }
.tile b { color: #fff; }
.tile .gr { display: inline-flex; gap: 2px; }
.tile .gr i { width: 7px; height: 7px; display: inline-block; border: 1px solid rgba(0, 0, 0, 0.7); }
#chatlog { left: 14px; bottom: 236px; width: min(420px, 40vw); display: flex; flex-direction: column; gap: 3px; font-size: 13px; text-shadow: 1px 1px 0 #000; text-transform: none; letter-spacing: 0; }
.cl { padding: 3px 9px; background: rgba(9, 13, 20, 0.55); animation: kfin .2s; word-break: break-word; }
.cl b.t { color: #ff7a63; }
.cl b.ct { color: #6fb0ff; }
.cl b.s { color: #c0c7d4; }
.cl .tag { color: var(--dim); font-size: 10px; margin-right: 4px; }
.cl.sys { color: var(--dim); font-style: italic; }
#chatbox { left: 14px; bottom: 236px; width: min(420px, 60vw); display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(0, 0, 0, 0.8); border: 2px solid var(--accent); pointer-events: auto; }
#chatTag { font-size: 10px; font-weight: 900; letter-spacing: 0.1em; color: var(--accent); }
#chatInput { flex: 1; background: transparent; border: 0; outline: 0; font-size: 14px; user-select: text; }
#specbar { bottom: 26px; left: 50%; transform: translateX(-50%); padding: 9px 20px; background: rgba(9, 13, 20, 0.85); border-left: 3px solid var(--accent); text-align: center; }
#specbar b { font-size: 16px; }
#specbar small { display: block; color: var(--dim); margin-top: 3px; font-weight: 600; }
#deathcard { top: 30%; left: 50%; transform: translateX(-50%); text-align: center; padding: 12px 34px; background: linear-gradient(90deg, transparent, rgba(70, 8, 8, 0.8) 15%, rgba(70, 8, 8, 0.8) 85%, transparent); animation: bannerIn .3s; }
#deathcard h3 { font-size: 18px; letter-spacing: 0.2em; color: #ff8a82; }
#deathcard p { margin-top: 4px; color: #ddd; text-transform: none; letter-spacing: 0.04em; }
#netstat { bottom: 3px; left: 50%; transform: translateX(-50%); font-size: 10px; color: rgba(255, 255, 255, 0.4); font-weight: 600; }
@media (max-height: 760px) {
#ammoRow { font-size: 32px; }
#compass { top: 88px; }
}
#radar-wrap.radar-big { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 20; padding: 6px; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7); background: rgba(8, 11, 17, 0.94); }
button:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hintbar { position: absolute; left: 50%; top: 168px; transform: translateX(-50%); display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 9px 16px; background: rgba(8, 11, 17, 0.86); border: 2px solid var(--line); font-size: 12px; color: #cfd6e4; max-width: 92vw; animation: kfin .3s; }
.hintbar kbd { margin-right: 3px; }
:root { --accent: #edb66a; --accent2: #ffdaa2; --dim: #aeb9c4; --shadow: 0 8px 24px rgba(0, 0, 0, .18); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #ffdaa2; outline-offset: 4px; }
#radar-wrap, .wpanel { border-radius: 3px; border-color: rgba(209, 226, 236, .25); background: rgba(9, 18, 25, .78); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.tk { width: 200px; background: rgba(9, 18, 25, .75); }
.tk-num { font-size: 23px; }
.tk-bar { height: 4px; }
.tk-mid { min-width: 165px; background: rgba(9, 18, 25, .85); }
.wpanel { width: 270px; padding: 12px 15px; border-right-width: 2px; }
.wtop { font-size: 12px; letter-spacing: .09em; }
#ammoRow { font-size: 34px; text-shadow: none; }
#reserve { font-size: 16px; }
.vitals { width: 240px; }
.vrow .vbar { height: 7px; border: none; padding: 0; }
.vrow b { font-size: 18px; }
.tb-round { letter-spacing: .16em; }
.hintbar { top: 166px; width: max-content; max-width: 90vw; border-width: 1px; border-radius: 3px; font-size: 10px; gap: 12px; padding: 8px 12px; letter-spacing: .02em; }
@media (max-width: 760px) {
.tk { width: 115px; }
.tk-mid { min-width: 140px; }
#left-col { left: 10px; bottom: 10px; }
#squadbox { display: none; }
#statusbox { left: 10px; bottom: 210px; transform: none; }
.vitals { width: 165px; }
#weaponbox { right: 10px; bottom: 10px; }
.wpanel { width: 225px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body.deploying #hud { visibility: hidden; }