/* SIROCCO: mecz i trening — ten sam styl co lobby („nocne płyty”): fioletowa noc, ramki 2 px,
   twarde cienie, pikselowa czcionka w nagłówkach, liczbach i przyciskach, dynia jako akcent. */
:root {
  --night-a: rgba(34, 21, 48, 0.94);
  --night-b: rgba(14, 9, 21, 0.96);
  --plate: rgba(20, 12, 30, 0.72);
  --night-line: rgba(241, 231, 210, 0.11);
  --night-line-2: rgba(241, 231, 210, 0.2);
  --pumpkin: #ff8f2e;
  --pumpkin-hi: #ffc070;
  --pumpkin-lo: #d9600f;
  --pumpkin-sh: #6e2e06;
  --pumpkin-line: rgba(255, 143, 46, 0.34);
  --pumpkin-bg: linear-gradient(180deg, #ffd384, #ff9d3e 50%, #d9600f);
  --toxic: #7dffa8;
  --toxic-lo: #1d5a34;
  --bone: #f1e7d2;
  --bone-2: rgba(241, 231, 210, 0.72);
  --bone-3: rgba(241, 231, 210, 0.48);
  --red: #ff7a5c;
  --red-hi: #ffa48d;
  --t: #ff9a3c;
  --ct: #6fb3ff;
  --hard: rgba(4, 2, 8, 0.72);
  --well: rgba(5, 2, 10, 0.45);
  --cream: linear-gradient(180deg, #fff6e3 0%, #f1e3c4 58%, #e2cda5 100%);
  --cream-sh: inset 0 -3px 0 rgba(140, 96, 52, 0.38), inset 0 2px 0 rgba(255, 255, 255, 0.75), 0 3px 0 #1a0f08;
  --pixel: "Press Start 2P", "Courier New", monospace;
  --ui: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  /* zgodność ze starszymi nazwami */
  --sun: var(--pumpkin-hi);
  --dust: var(--bone);
  --alert: var(--red);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; }
body { background: #0c0812; color: var(--bone); font: 500 17px/1.4 var(--ui); -webkit-font-smoothing: antialiased; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pumpkin-hi); outline-offset: 2px; }
kbd {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 1px 5px 0; font: 400 8px/1 var(--pixel); color: var(--bone-2);
  background: rgba(255, 255, 255, 0.05); border: 2px solid var(--night-line-2); border-radius: 3px; box-shadow: 0 3px 0 var(--hard);
}

/* płytka HUD: półprzezroczysta noc z ramką */
.mapname, .feed li, .vitals, .weapon, .duel .duel-score, .esc {
  background: linear-gradient(180deg, rgba(34, 21, 48, 0.72), rgba(14, 9, 21, 0.78)); border: 2px solid var(--night-line-2); border-radius: 4px;
  box-shadow: 0 3px 0 rgba(4, 2, 8, 0.45); backdrop-filter: blur(6px);
}

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; pointer-events: none; text-shadow: 0 1px 3px rgba(8, 4, 12, 0.85); }
.hud::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 60%, rgba(10, 5, 18, 0.34) 100%); }

/* celownik: kolor, długość, grubość i obrys z ustawień gracza */
.cross {
  --c: #9dff8a; --len: 7px; --th: 2px; --ol: 1px; --gap: 5px;
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transition: opacity .12s;
}
.cross.off { opacity: 0; }
.cross i, .cross b { position: absolute; background: var(--c); box-shadow: 0 0 0 var(--ol) rgba(10, 7, 5, 0.65); }
.cross i:nth-child(1), .cross i:nth-child(2) { width: var(--th); height: var(--len); left: calc(var(--th) / -2); }
.cross i:nth-child(3), .cross i:nth-child(4) { height: var(--th); width: var(--len); top: calc(var(--th) / -2); }
.cross i:nth-child(1) { top: calc(-1 * var(--len) - var(--gap)); }
.cross i:nth-child(2) { top: var(--gap); }
.cross i:nth-child(3) { left: calc(-1 * var(--len) - var(--gap)); }
.cross i:nth-child(4) { left: var(--gap); }
.cross b { display: none; width: var(--th); height: var(--th); left: calc(var(--th) / -2); top: calc(var(--th) / -2); }
.cross .circ {
  position: absolute; display: none; text-decoration: none;
  width: calc(var(--gap) * 2 + var(--len)); height: calc(var(--gap) * 2 + var(--len));
  left: calc((var(--gap) * 2 + var(--len)) / -2); top: calc((var(--gap) * 2 + var(--len)) / -2);
  border: var(--th) solid var(--c); border-radius: 50%; box-sizing: border-box;
  box-shadow: 0 0 0 var(--ol) rgba(10, 7, 5, 0.6), inset 0 0 0 var(--ol) rgba(10, 7, 5, 0.6);
}
.cross.st-cross b { display: block; }
.cross.st-dot i { display: none; }
.cross.st-dot b { display: block; width: calc(var(--th) * 2); height: calc(var(--th) * 2); left: calc(var(--th) * -1); top: calc(var(--th) * -1); border-radius: 50%; }
.cross.st-circle i { display: none; }
.cross.st-circle .circ, .cross.st-circle b { display: block; }
.cross .ring {
  position: absolute; display: none; width: calc(var(--gap, 4px) * 2); height: calc(var(--gap, 4px) * 2);
  left: calc(var(--gap, 4px) * -1); top: calc(var(--gap, 4px) * -1);
  border: 1.5px solid rgba(255, 244, 220, 0.85); border-radius: 50%; box-shadow: 0 0 0 1px rgba(20, 13, 9, 0.3);
}
.cross.shotgun .ring { display: block; }
.cross.shotgun i, .cross.shotgun .circ { display: none; }

.hitmark { position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; opacity: 0; }
.hitmark::before, .hitmark::after {
  content: ""; position: absolute; left: 12px; top: -1px; width: 2px; height: 28px;
  background: linear-gradient(#fff 0 35%, transparent 35% 65%, #fff 65%); transform: rotate(45deg);
}
.hitmark::after { transform: rotate(-45deg); }
.hitmark.on { animation: hit .25s ease-out; }
.hitmark.head::before, .hitmark.head::after { background: linear-gradient(var(--pumpkin-hi) 0 35%, transparent 35% 65%, var(--pumpkin-hi) 65%); }
.hitmark.kill::before, .hitmark.kill::after { background: linear-gradient(var(--red) 0 35%, transparent 35% 65%, var(--red) 65%); }
.hitmark.kill { animation-duration: .45s; }
@keyframes hit { from { opacity: 1; transform: scale(1.35); } to { opacity: 0; transform: scale(1); } }

.dmg span {
  position: absolute; transform: translate(-50%, -50%); font: 400 13px/1 var(--pixel); color: #fff4dc;
  text-shadow: 2px 2px 0 rgba(10, 5, 16, 0.85); white-space: nowrap;
}
.dmg span.head { color: var(--pumpkin-hi); font-size: 16px; }
.dmg span.kill { color: var(--red); }
.hpb { position: absolute; width: 50px; height: 7px; transform: translate(-50%, -50%); background: rgba(10, 5, 16, 0.75); border: 2px solid rgba(241, 231, 210, 0.25); border-radius: 2px; }
.hpb i { display: block; height: 100%; background: var(--red); transition: width .15s; }
/* czerwony grot nad trafionym przeciwnikiem (widać go przez ściany, gaśnie przez 5 s) */
.foe-mark { position: absolute; transform: translate(-50%, calc(-100% - 9px)); color: #ff3b2a; line-height: 0; pointer-events: none; filter: drop-shadow(0 0 5px rgba(255, 45, 20, 0.85)) drop-shadow(0 2px 0 rgba(20, 2, 0, 0.85)); }
.foe-mark svg { width: 20px; height: 13px; fill: currentColor; }

.prompt { position: absolute; left: 50%; top: calc(50% + 46px); transform: translateX(-50%); margin: 0; font: 400 9px/1.5 var(--pixel); text-transform: uppercase; color: var(--pumpkin-hi); }
.prompt.warn { color: var(--red); }
.prompt kbd { margin-left: 4px; }

.mapname { position: absolute; left: 20px; top: 16px; margin: 0; padding: 10px 14px 9px; font: 400 11px/1.2 var(--pixel); color: var(--pumpkin-hi); text-shadow: 2px 2px 0 rgba(110, 46, 6, 0.6); }
.mapname small { display: block; margin-top: 7px; font: 600 13px/1 var(--ui); color: var(--bone-2); text-shadow: none; }
/* bombsite pod nogami (5v5 i 2v2 z jednym site'em) */
.site-tag { position: absolute; left: 20px; top: 74px; margin: 0; padding: 8px 12px 7px; font: 400 11px/1 var(--pixel); color: #ff8a6a; letter-spacing: 1px;
  background: linear-gradient(var(--night-a, #1a1420), var(--night-b, #120d17)); border: 2px solid #b8402c; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45); }
.site-tag[hidden] { display: none; }
.feed { position: absolute; right: 20px; top: 16px; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; justify-items: end; }
.feed li { display: flex; align-items: center; gap: 9px; padding: 5px 10px; font-weight: 600; font-size: 15px; animation: feedIn .2s ease-out; }
.feed li svg { width: 46px; height: 16px; fill: var(--bone); }
.feed li .hs { font: 400 8px/1 var(--pixel); color: var(--pumpkin-hi); }
@keyframes feedIn { from { opacity: 0; transform: translateX(12px); } }

.vitals { position: absolute; left: 20px; bottom: 20px; width: 272px; padding: 12px 14px 12px; }
.vitals .side-tag { display: inline-block; margin-bottom: 9px; padding: 4px 7px 3px; font: 400 7px/1 var(--pixel); text-transform: uppercase; color: #2b1204; background: var(--t); border-radius: 2px; text-shadow: none; }
.vitals .side-tag[data-side="ct"] { color: #0b1d33; background: var(--ct); }
.vitals .who { display: inline; font: 400 11px/1.3 var(--pixel); color: var(--bone); }
.vitals .role { margin-left: 8px; font-size: 14px; font-weight: 600; color: var(--bone-3); }
.hpbar { margin-top: 10px; height: 14px; padding: 2px; background: var(--well); border: 2px solid var(--night-line-2); border-radius: 3px; }
.hpbar div { height: 100%; width: 100%; background: repeating-linear-gradient(90deg, var(--toxic) 0 10px, rgba(0, 0, 0, 0.18) 10px 12px); box-shadow: 0 0 10px rgba(125, 255, 168, 0.35); transition: width .2s; }
.hpnum { margin-top: 8px; font: 400 12px/1 var(--pixel); color: var(--bone); font-variant-numeric: tabular-nums; }
.vitals.low .hpbar > div { background: repeating-linear-gradient(90deg, var(--red) 0 10px, rgba(0, 0, 0, 0.18) 10px 12px); box-shadow: 0 0 12px rgba(255, 100, 70, 0.5); animation: lowHp 1s steps(2) infinite; }
.vitals.low .hpnum { color: var(--red-hi); }
@keyframes lowHp { 50% { opacity: 0.55; } }

.weapon { position: absolute; right: 20px; bottom: 20px; min-width: 240px; padding: 12px 14px; text-align: right; }
.w-head { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; }
.w-name { font: 400 10px/1.3 var(--pixel); color: var(--bone); text-transform: uppercase; }
.w-mode { font-size: 13px; font-weight: 600; color: var(--bone-3); }
.w-ammo { margin-top: 10px; }
.w-mag { font: 400 30px/1 var(--pixel); color: var(--pumpkin-hi); text-shadow: 3px 3px 0 rgba(110, 46, 6, 0.65); font-variant-numeric: tabular-nums; transition: color .2s; }
.w-mag.low { color: var(--red); text-shadow: 3px 3px 0 rgba(90, 20, 10, 0.7); }
.w-res { margin-left: 8px; font: 400 11px/1 var(--pixel); color: var(--bone-3); font-variant-numeric: tabular-nums; }
.w-pips { display: flex; justify-content: flex-end; gap: 2px; margin-top: 9px; height: 10px; }
.w-pips i { width: 3px; background: var(--pumpkin-hi); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }
.w-pips i.e { background: rgba(241, 231, 210, 0.14); box-shadow: none; }
.w-pips.big i { width: 8px; }
.w-pips.shell i { width: 7px; border-radius: 2px 2px 1px 1px; background: linear-gradient(#c9452e 0 70%, #c9a24a 70%); }
.w-pips.shell i.e { background: rgba(241, 231, 210, 0.14); }
.w-reload { margin-top: 8px; height: 6px; padding: 1px; background: var(--well); border: 2px solid var(--night-line-2); border-radius: 2px; }
.w-reload i { display: block; height: 100%; width: 0; background: var(--pumpkin); }
.weapon .speed { display: block; margin-top: 9px; font: 400 8px/1 var(--pixel); color: var(--bone-3); font-variant-numeric: tabular-nums; }

.slots { position: absolute; right: 18px; bottom: 182px; margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
/* jak w CS: białe sylwetki broni, wybrana świeci, reszta przygaszona; po zmianie broni cała lista na chwilę się rozjaśnia */
.slots li {
  position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 3px 4px 3px 26px;
  color: #fff; opacity: 0.32; transition: opacity .25s; isolation: isolate;
}
.slots.flash li { opacity: 0.62; }
.slots li.on { opacity: 1; }
.slots li.on::before {
  content: ''; position: absolute; inset: 0 -6px 0 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 143, 46, 0) 0%, rgba(255, 143, 46, 0.1) 55%, rgba(255, 143, 46, 0.2) 100%);
}
.slots svg {
  width: 104px; height: 35px; fill: currentColor;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.6));
  transition: filter .25s;
}
.slots li.on svg { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 6px rgba(255, 210, 160, 0.75)) drop-shadow(0 0 14px rgba(255, 150, 60, 0.45)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6)); }
.slots li.empty { color: var(--red); }
.slots li.empty svg { fill: var(--red); }
.slots b { font: 400 9px/1 var(--pixel); min-width: 10px; text-align: center; color: #fff; align-self: flex-start; margin-top: 3px; text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8); }
.slots li.on b { color: var(--pumpkin-hi); }

.wname { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); text-align: center; opacity: 0; }
.wname strong { display: block; font: 400 16px/1.3 var(--pixel); color: var(--pumpkin-hi); text-shadow: 3px 3px 0 rgba(110, 46, 6, 0.65); }
.wname span { display: block; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--bone-2); }
.wname.show { animation: wname 1.7s ease-out forwards; }
@keyframes wname { 0% { opacity: 0; transform: translate(-50%, 8px); } 12% { opacity: 1; transform: translate(-50%, 0); } 75% { opacity: 1; } 100% { opacity: 0; } }

.esc { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; padding: 6px 10px 5px; font: 400 7px/1 var(--pixel); text-transform: uppercase; color: var(--bone-3); }
.fps { position: absolute; left: 20px; top: 88px; margin: 0; font: 400 8px/1 var(--pixel); color: var(--bone-3); }

/* ---------- wskaźnik dźwięków: okrąg wokół celownika ----------
   każdy znacznik to łuk na okręgu i ikona; obrót pokazuje kierunek przeciwnika (góra = przed tobą) */
.snd-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --r: clamp(120px, 21vmin, 210px); }
.snd { --a: 0deg; --s: 1; position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; transform: rotate(var(--a)); transition: opacity .12s linear; }
.snd-arc {
  position: absolute; left: 50%; top: calc(var(--r) * -1); width: 92px; height: 22px; transform: translateX(-50%) scale(var(--s));
  border-top: 4px solid var(--sc); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  filter: drop-shadow(0 0 6px var(--sg)) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.6));
}
.snd-ic {
  position: absolute; left: 0; top: calc(var(--r) * -1 + 18px); width: 0; height: 0;
  transform: rotate(calc(var(--a) * -1)); /* ikona zawsze stoi prosto */
}
.snd-ic .pxi { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; color: var(--sc); filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.75)) drop-shadow(0 0 5px var(--sg)); }
.snd-step { --sc: #f1e7d2; --sg: rgba(241, 231, 210, 0.55); }
.snd-shot { --sc: #ff8f2e; --sg: rgba(255, 120, 30, 0.75); }
.snd-shot .snd-arc { width: 120px; border-top-width: 6px; }
.snd-reload { --sc: #ffd166; --sg: rgba(255, 200, 80, 0.6); }
.snd-reload .snd-arc { width: 70px; }
.snd.ping .snd-arc { animation: sndPing .35s ease-out; }
@keyframes sndPing { from { transform: translateX(-50%) scale(calc(var(--s) * 1.35)); filter: drop-shadow(0 0 12px var(--sg)); } }

/* ---------- luneta ---------- */
.scope { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.scope-in { position: absolute; inset: -6vmin; }
.lens {
  position: absolute; left: 50%; top: 50%; width: 88vmin; height: 88vmin; margin: -44vmin 0 0 -44vmin; border-radius: 50%;
  box-shadow: 0 0 0 200vmax #050403, inset 0 0 7vmin 3vmin rgba(0, 0, 0, 0.9), inset 0 0 1px 2px #000;
  background: radial-gradient(circle at 38% 34%, rgba(255, 245, 220, 0.06), rgba(0, 0, 0, 0) 45%);
}
.rh, .rv, .th, .tv { position: absolute; background: #0a0806; }
.rh { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; }
.rv { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -0.75px; }
.th { top: 50%; height: 5px; margin-top: -2.5px; }
.tl { left: 0; right: calc(50% + 15vmin); }
.tr { right: 0; left: calc(50% + 15vmin); }
.tv { left: 50%; width: 5px; margin-left: -2.5px; }
.tb { bottom: 0; top: calc(50% + 15vmin); }
.dots i { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: #0a0806; }

/* ---------- przyciski jak w lobby ---------- */
.play, .ghost {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 2px 22px 0;
  font: 400 11px/1 var(--pixel); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  border: 0; border-radius: 4px; cursor: pointer; transition: transform .08s, filter .15s, box-shadow .08s, color .15s, border-color .15s;
}
.play { color: #2b1204; background: var(--pumpkin-bg); box-shadow: inset 0 2px 0 rgba(255, 242, 214, 0.6), 0 4px 0 var(--pumpkin-sh), 0 10px 26px rgba(255, 110, 20, 0.25); }
.play:hover { filter: brightness(1.08); }
.play:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 242, 214, 0.6), 0 1px 0 var(--pumpkin-sh); }
.ghost { color: var(--bone); background: rgba(255, 255, 255, 0.05); border: 2px solid var(--night-line-2); box-shadow: 0 4px 0 var(--hard); }
.ghost:hover { color: var(--pumpkin-hi); border-color: rgba(255, 143, 46, 0.55); }
.ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hard); }
.play:focus-visible, .ghost:focus-visible { outline: 2px solid var(--pumpkin-hi); outline-offset: 3px; }

/* rama okna z pikselowymi narożnikami (jak okna w lobby) */
.frame {
  position: relative; color: var(--bone);
  background: linear-gradient(180deg, var(--night-a), var(--night-b)); border: 2px solid var(--pumpkin-line); border-radius: 4px;
  box-shadow: 0 6px 0 var(--hard), 0 30px 80px rgba(0, 0, 0, 0.62), 0 0 80px rgba(255, 110, 20, 0.1), inset 0 2px 0 rgba(255, 255, 255, 0.04);
}
.frame::before {
  content: ""; position: absolute; inset: -2px; pointer-events: none;
  background:
    linear-gradient(var(--pumpkin), var(--pumpkin)) left top / 14px 2px no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) left top / 2px 14px no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) right top / 14px 2px no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) right top / 2px 14px no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) left bottom / 14px 2px no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) left bottom / 2px 14px no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) right bottom / 14px 2px no-repeat,
    linear-gradient(var(--pumpkin), var(--pumpkin)) right bottom / 2px 14px no-repeat;
}

/* ---------- menu treningu ---------- */
.menu { position: fixed; inset: 0; display: flex; align-items: stretch; padding: 18px; background: linear-gradient(to right, rgba(12, 6, 20, 0.7) 0%, rgba(12, 6, 20, 0.32) 40%, rgba(12, 6, 20, 0) 62%); }
.panel { width: min(480px, 100%); padding: 22px 22px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.panel { background: linear-gradient(180deg, var(--night-a), var(--night-b)); border: 2px solid var(--pumpkin-line); border-radius: 4px; box-shadow: 0 6px 0 var(--hard), 0 30px 80px rgba(0, 0, 0, 0.55); }
.panel h1 { margin: 0; font: 400 22px/1.2 var(--pixel); color: var(--pumpkin-hi); text-shadow: 3px 3px 0 rgba(110, 46, 6, 0.6); }
.lead { margin: -2px 0 0; max-width: 46ch; font-size: 16px; color: var(--bone-2); }
.sub { margin: 4px 0 -2px; font: 400 8px/1.3 var(--pixel); text-transform: uppercase; color: var(--bone-3); }

.tabs { display: flex; gap: 3px; padding: 3px; background: var(--well); border: 2px solid var(--night-line); border-radius: 4px; }
.tabs button { flex: 1; height: 38px; padding: 1px 10px 0; font: 400 9px/1 var(--pixel); text-transform: uppercase; color: var(--bone-2); background: none; border: 0; border-radius: 3px; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--bone); background: rgba(255, 143, 46, 0.08); }
.tabs button[aria-selected="true"] { color: #2b1204; background: var(--cream); box-shadow: var(--cream-sh); }
.tab { display: grid; gap: 10px; }

.chars, .guns { display: grid; gap: 8px; }
.char, .gun, .skin {
  width: 100%; text-align: left; color: var(--bone); font: inherit; cursor: pointer;
  background: rgba(255, 255, 255, 0.035); border: 2px solid var(--night-line); border-radius: 4px; box-shadow: 0 3px 0 rgba(4, 2, 8, 0.5);
  transition: border-color .15s, background .15s;
}
.char:hover, .gun:hover, .skin:hover { border-color: rgba(255, 143, 46, 0.5); background: rgba(255, 143, 46, 0.06); }
.char[aria-checked="true"], .gun[aria-checked="true"], .skin[aria-checked="true"] { border-color: var(--pumpkin); background: radial-gradient(120% 120% at 0% 50%, rgba(255, 143, 46, 0.16), transparent 65%), rgba(255, 255, 255, 0.04); }

.char { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 14px; }
.char .name { font: 400 10px/1.3 var(--pixel); color: var(--bone); }
.char[aria-checked="true"] .name { color: var(--pumpkin-hi); }
.char .role { font-size: 14px; font-weight: 600; color: var(--bone-3); }
.char .chips { grid-row: 1 / 3; grid-column: 2; display: flex; gap: 3px; }
.char .chips span { width: 12px; height: 28px; border-radius: 2px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25); }
.char .stats, .gstats { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--bone-2); }
.bar { align-self: center; height: 12px; padding: 2px; background: var(--well); border: 2px solid var(--night-line); border-radius: 2px; }
.bar i { display: block; height: 100%; background: var(--pumpkin); transition: width .25s; }
.char .desc { grid-column: 1 / -1; margin: 4px 0 0; font-size: 15px; color: var(--bone-2); }
.char[aria-checked="false"] .desc { display: none; }

.gun { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; }
.gun svg { width: 74px; height: 25px; fill: var(--bone-2); }
.gun[aria-checked="true"] svg { fill: var(--pumpkin-hi); }
.gun .gname { display: block; font: 400 9px/1.3 var(--pixel); color: var(--bone); }
.gun[aria-checked="true"] .gname { color: var(--pumpkin-hi); }
.gun .gkind { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--bone-3); }
.gstats { padding: 2px 2px 0; }

.skins { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skin { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 15px; font-weight: 600; }
.skin .sw { display: flex; gap: 2px; }
.skin .sw span { width: 10px; height: 24px; border-radius: 2px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.3); }
.skin.t1 { --tc: #6fb3ff; } .skin.t2 { --tc: #b67bff; } .skin.t3 { --tc: #ff5fa2; } .skin.t4 { --tc: #ffc24a; } .skin.t0 { --tc: #a7a2b4; }
.skin { box-shadow: inset 3px 0 0 var(--tc, transparent); }
.skin .skn { display: grid; gap: 3px; min-width: 0; text-align: left; }
.skin .skn b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skin .skn small { font-size: 12px; font-weight: 700; color: var(--tc); }
.skins-hint { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13.5px; color: rgba(241, 231, 210, 0.55); }

.settings { display: grid; gap: 10px; padding: 12px 14px; background: rgba(255, 255, 255, 0.035); border: 2px solid var(--night-line); border-radius: 4px; }
.sens { display: grid; grid-template-columns: 120px 1fr 4ch; gap: 12px; align-items: center; font-size: 15px; font-weight: 600; color: var(--bone-2); }
.sens input { accent-color: var(--pumpkin); }
.sens output { font: 400 9px/1 var(--pixel); color: var(--pumpkin-hi); text-align: right; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 10px; align-items: center; }
.actions .play { flex: 1; }
.note { margin: 0; padding: 10px 12px; font-size: 15px; color: #ffd9c8; background: rgba(162, 72, 42, 0.35); border: 2px solid rgba(208, 113, 79, 0.5); border-radius: 4px; }
.keys { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; font-size: 15px; }
.keys dt { white-space: nowrap; color: var(--bone-2); }
.keys dd { margin: 0; color: var(--bone-2); }

/* ---------- strony: terroryści / antyterroryści ---------- */
.side-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-pick button {
  display: grid; gap: 7px; padding: 11px 12px; text-align: left; color: var(--bone);
  background: rgba(255, 255, 255, 0.035); border: 2px solid var(--night-line); border-left: 6px solid var(--side); border-radius: 4px; box-shadow: 0 3px 0 rgba(4, 2, 8, 0.5);
}
.side-pick button[data-side="t"] { --side: var(--t); }
.side-pick button[data-side="ct"] { --side: var(--ct); }
.side-pick b { font: 400 9px/1.3 var(--pixel); font-weight: 400; color: var(--bone); }
.side-pick small { font-size: 13px; font-weight: 600; color: var(--bone-3); }
.side-pick button:hover { border-color: rgba(255, 143, 46, 0.5); border-left-color: var(--side); }
.side-pick button[aria-checked="true"] { border-color: var(--side); background: color-mix(in srgb, var(--side) 14%, transparent); }
.side-pick button[aria-checked="true"] b { color: var(--side); }

@media (max-width: 700px) {
  .menu { padding: 10px; background: rgba(12, 6, 20, 0.6); }
  .panel { padding: 16px 14px; }
  .panel h1 { font-size: 17px; }
  .vitals { left: 10px; bottom: 10px; width: 210px; padding: 9px 10px; }
  .weapon { right: 10px; bottom: 10px; min-width: 0; padding: 9px 10px; }
  .w-mag { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .wname.show, .hitmark.on, .feed li, .snd.ping .snd-arc { animation-duration: .01s; }
}

/* wejście prosto z lobby: jedno kliknięcie przejmuje mysz */
.click-hint {
  position: fixed; left: 50%; top: 58%; z-index: 20; transform: translateX(-50%); padding: 15px 22px 13px;
  font: 400 10px/1.3 var(--pixel); text-transform: uppercase; color: var(--pumpkin-hi); text-shadow: 2px 2px 0 rgba(110, 46, 6, 0.6);
  background: linear-gradient(180deg, var(--night-a), var(--night-b)); border: 2px solid var(--pumpkin); border-radius: 4px;
  box-shadow: 0 5px 0 var(--hard), 0 0 30px rgba(255, 130, 30, 0.25); animation: hintPulse 1.6s ease-in-out infinite;
}
.click-hint:hover { color: #fff3d6; }
@keyframes hintPulse { 50% { box-shadow: 0 5px 0 var(--hard), 0 0 0 6px rgba(255, 143, 46, 0.14), 0 0 40px rgba(255, 130, 30, 0.35); } }

/* Esc w grze: pytanie o powrót do lobby (okno jak w lobby) */
.leave { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(8, 5, 14, 0.58); backdrop-filter: blur(7px); animation: leaveIn .18s ease-out; }
.leave-box { width: min(500px, 100%); padding: 24px 22px 22px; text-align: center; animation: boxIn .28s cubic-bezier(.2, .8, .2, 1); }
.leave-box h2 { margin: 0 0 14px; font: 400 15px/1.35 var(--pixel); color: var(--pumpkin-hi); text-shadow: 3px 3px 0 rgba(110, 46, 6, 0.6); }
.leave-box p { margin: 0 0 20px; font-size: 16px; line-height: 1.45; color: var(--bone-2); }
.duel .leave-box p { padding: 10px 12px; color: #ffdcb0; background: rgba(255, 143, 46, 0.12); border: 2px solid rgba(255, 143, 46, 0.32); border-radius: 4px; }
.leave-acts { display: flex; gap: 10px; }
.leave-acts > * { flex: 1 1 0; min-width: 0; padding: 2px 12px 0; }
.duel .leave-acts #leave-yes { color: #fff; background: linear-gradient(180deg, #ff9a7c, #e2532f 55%, #a8301a); box-shadow: inset 0 2px 0 rgba(255, 220, 200, 0.5), 0 4px 0 #4a140a; }
@keyframes leaveIn { from { opacity: 0; } }
@keyframes boxIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

/* ---------- mecz 1 na 1 z botem ---------- */
.duel-score, .duel-stake, .duel-banner { display: none; }
.duel .duel-score {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px;
  padding: 8px 16px 7px; font: 400 8px/1 var(--pixel); text-transform: uppercase; color: var(--bone-2);
}
.duel-score > span { display: flex; align-items: center; gap: 9px; }
.duel-score b { font: 400 20px/1 var(--pixel); color: var(--bone); text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5); }
.duel-score .me b { color: var(--toxic); text-shadow: 3px 3px 0 var(--toxic-lo); }
.duel-score .bot b { color: var(--red); text-shadow: 3px 3px 0 rgba(90, 20, 10, 0.7); }
.duel-score .rd { padding: 5px 7px 4px; font-size: 7px; color: var(--pumpkin-hi); background: rgba(255, 143, 46, 0.14); border-radius: 2px; }
.duel .duel-stake { display: block; position: fixed; top: 62px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 13px; font-weight: 700; color: var(--toxic); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.duel .duel-banner { position: fixed; left: 50%; top: 30%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; opacity: 0; transition: opacity .25s; }
.duel .duel-banner.on { display: block; opacity: 1; animation: bannerIn .4s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes bannerIn { from { transform: translate(-50%, -50%) scale(1.25); } }
.duel-banner b { display: block; font: 400 clamp(22px, 4vw, 40px)/1.2 var(--pixel); color: var(--pumpkin-hi); text-shadow: 5px 5px 0 rgba(110, 46, 6, 0.7), 0 0 40px rgba(255, 140, 40, 0.45); }
.duel-banner small { display: block; margin-top: 12px; font: 400 clamp(14px, 2.2vw, 22px)/1 var(--pixel); color: var(--bone); text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6); }
.duel-banner.win b { color: var(--toxic); text-shadow: 5px 5px 0 var(--toxic-lo), 0 0 40px rgba(125, 255, 168, 0.4); }
.duel-banner.lose b { color: var(--red); text-shadow: 5px 5px 0 rgba(90, 20, 10, 0.75), 0 0 40px rgba(255, 90, 60, 0.4); }
.duel-banner.go b { color: #fff3d6; }
.hurt { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, rgba(160, 20, 10, 0) 45%, rgba(170, 18, 8, 0.55) 100%); }
.hurt.on { animation: hurtFlash .6s ease-out; }
@keyframes hurtFlash { 0% { opacity: 1; } 100% { opacity: 0; } }
.hurt-dir { position: fixed; left: 50%; top: 50%; width: 220px; height: 220px; pointer-events: none; opacity: 0; }
.hurt-dir::before { content: ""; position: absolute; left: 50%; top: 0; width: 70px; height: 18px; transform: translateX(-50%); border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-top: 5px solid rgba(255, 60, 40, 0.9); filter: drop-shadow(0 0 6px rgba(255, 40, 20, 0.8)); }
.hurt-dir.on { animation: hurtFlash 1.1s ease-out; }

/* ---------- mecz drużynowy z botami (2 na 2, 5 na 5) ---------- */
.team .duel-score { gap: 12px; padding: 7px 12px 6px; }
.team .duel-score .tm { display: flex; align-items: center; gap: 8px; }
.team .duel-score .tm em { padding: 4px 6px 3px; font: 400 7px/1 var(--pixel); font-style: normal; color: #2b1204; background: var(--t); border-radius: 2px; text-shadow: none; }
.team .duel-score .tm.ct em { color: #0b1d33; background: var(--ct); }
.team .duel-score .tm b { font-size: 18px; }
.team .duel-score .us b { color: var(--toxic); text-shadow: 3px 3px 0 var(--toxic-lo); }
.team .duel-score .foe b { color: var(--red); text-shadow: 3px 3px 0 rgba(90, 20, 10, 0.7); }
.team .duel-score .pips { display: flex; gap: 3px; }
.team .duel-score .pips i { width: 7px; height: 12px; background: var(--t); border-radius: 1px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.team .duel-score .ct .pips i { background: var(--ct); }
.team .duel-score .pips i.me { outline: 2px solid var(--bone); outline-offset: 1px; }
.team .duel-score .pips i.dead { opacity: 0.22; box-shadow: none; }
.team .duel-score .clock { display: flex; align-items: center; gap: 6px; min-width: 64px; justify-content: center; padding: 5px 8px 4px; font: 400 12px/1 var(--pixel); color: var(--bone); background: rgba(5, 2, 10, 0.45); border-radius: 3px; }
.team .duel-score .clock.low { color: var(--pumpkin-hi); }
.team .duel-score .clock.bomb { color: #ff5a3c; background: rgba(160, 20, 8, 0.35); animation: bombPulse 1s steps(2) infinite; }
.team .duel-score .clock svg { width: 16px; height: 13px; fill: currentColor; }
@keyframes bombPulse { 50% { box-shadow: 0 0 14px rgba(255, 70, 40, 0.55); } }
.team .duel-stake { top: 58px; }
/* komunikat po zabiciu: ilu przeciwników zostało, „Zostałeś sam!” (pod wynikiem, nad celownikiem) */
.callout { display: none; }
.team .callout { position: fixed; left: 50%; top: 96px; transform: translateX(-50%); display: block; text-align: center; pointer-events: none; opacity: 0; white-space: nowrap; }
.team .callout.on { animation: calloutIn 2.6s ease-out forwards; }
@keyframes calloutIn { 0% { opacity: 0; transform: translate(-50%, -6px) scale(1.25); } 8% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }
.callout b { display: block; font: 400 clamp(15px, 2.4vw, 24px)/1.2 var(--pixel); color: var(--bone); text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55); }
.callout small { display: block; margin-top: 8px; font: 400 11px/1 var(--pixel); color: var(--bone-2); text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6); }
.callout.good b { color: var(--toxic); text-shadow: 4px 4px 0 var(--toxic-lo), 0 0 30px rgba(125, 255, 168, 0.35); }
.callout.bad b { color: var(--pumpkin-hi); text-shadow: 4px 4px 0 rgba(110, 46, 6, 0.7), 0 0 30px rgba(255, 140, 40, 0.4); }
.duel-banner em { display: block; max-width: min(560px, 90vw); margin: 14px auto 0; font: 600 17px/1.35 var(--ui); font-style: normal; color: var(--bone-2); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.duel-banner.bomb b { color: #ff5a3c; text-shadow: 5px 5px 0 rgba(90, 14, 6, 0.75), 0 0 40px rgba(255, 70, 40, 0.5); }
.bomb-hint { position: absolute; left: 50%; bottom: 138px; transform: translateX(-50%); margin: 0; padding: 7px 12px 6px; font: 400 9px/1.6 var(--pixel); text-transform: uppercase; text-align: center; color: var(--pumpkin-hi); background: rgba(14, 9, 21, 0.62); border: 2px solid var(--pumpkin-line); border-radius: 4px; white-space: nowrap; }
.bomb-hint kbd { margin: 0 3px; color: var(--bone); }
.use-bar { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; width: 260px; font: 400 9px/1 var(--pixel); text-transform: uppercase; color: var(--bone); }
.use-bar i { display: block; width: 100%; height: 14px; padding: 2px; background: var(--well); border: 2px solid var(--night-line-2); border-radius: 3px; }
.use-bar b { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--pumpkin) 0 10px, rgba(0, 0, 0, 0.2) 10px 12px); }
.use-bar[data-act="defuse"] b { background: repeating-linear-gradient(90deg, var(--ct) 0 10px, rgba(0, 0, 0, 0.2) 10px 12px); }
.spec { position: absolute; left: 50%; bottom: 74px; transform: translateX(-50%); margin: 0; padding: 9px 14px 8px; text-align: center; background: rgba(14, 9, 21, 0.7); border: 2px solid var(--night-line-2); border-radius: 4px; }
.spec b { display: block; font: 400 10px/1.4 var(--pixel); color: var(--bone); }
.spec small { display: block; margin-top: 5px; font-size: 13px; color: var(--bone-3); }
.spectating .cross, .spectating .weapon, .spectating .slots, .spectating .wname { visibility: hidden; }
.carry { position: absolute; left: 20px; bottom: 150px; display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px 6px; font: 400 8px/1 var(--pixel); text-transform: uppercase; color: var(--pumpkin-hi); background: rgba(14, 9, 21, 0.62); border: 2px solid var(--pumpkin-line); border-radius: 4px; animation: bombPulse 1.6s steps(2) infinite; }
.carry svg { width: 22px; height: 17px; fill: var(--pumpkin); }
.ally-tag { position: absolute; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 4px; padding: 3px 5px 2px; font: 400 7px/1 var(--pixel); color: #2b1204; background: var(--t); border-radius: 2px; white-space: nowrap; text-shadow: none; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.ally-tag.ct { color: #0b1d33; background: var(--ct); }
.ally-tag::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 4px solid transparent; border-bottom: 0; border-top-color: inherit; border-top-color: var(--t); }
.ally-tag.ct::after { border-top-color: var(--ct); }
.ally-tag svg { width: 11px; height: 9px; fill: currentColor; }
.feed li.kf { gap: 7px; font-size: 14px; }
.feed .kf-n.t { color: var(--t); }
.feed .kf-n.ct { color: var(--ct); }
.feed .kf-n.me { text-decoration: underline; text-underline-offset: 3px; }
/* tryby bez stron (1 na 1, 2 na 2): twoja drużyna na zielono, przeciwnicy na czerwono */
.feed .kf-n.us { color: var(--toxic); }
.feed .kf-n.them { color: var(--red); }
.team .duel-score .tm.nt.us em { color: #06240f; background: var(--toxic); }
.team .duel-score .tm.nt.foe em { color: #2a0a04; background: var(--red); }
.team .duel-score .tm.nt.us .pips i { background: var(--toxic); }
.team .duel-score .tm.nt.foe .pips i { background: var(--red); }
.ally-tag.us { color: #06240f; background: var(--toxic); }
.ally-tag.us::after { border-top-color: var(--toxic); }
.feed .kf-boom svg { width: 20px; height: 15px; fill: #ff5a3c; }

/* koniec meczu: duży napis, wynik, pieniądze i saldo w ramie jak w lobby */
.duel-result { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: radial-gradient(70% 60% at 50% 45%, rgba(70, 26, 98, 0.72), rgba(6, 3, 10, 0.95)); backdrop-filter: blur(9px); animation: leaveIn .3s ease-out; }
.dr-box { width: fit-content; min-width: min(480px, 100%); max-width: 100%; padding: 28px 24px 22px; text-align: center; animation: boxIn .45s cubic-bezier(.2, .8, .2, 1); }
.dr-box h2 { margin: 0; font: 400 clamp(22px, 4.2vw, 36px)/1.2 var(--pixel); color: var(--pumpkin-hi); text-shadow: 6px 6px 0 rgba(110, 46, 6, 0.7), 0 0 44px rgba(255, 140, 40, 0.45); }
.duel-result[data-won="1"] h2 { color: var(--toxic); text-shadow: 6px 6px 0 var(--toxic-lo), 0 0 44px rgba(125, 255, 168, 0.4); }
.duel-result[data-won="0"] h2 { color: var(--red); text-shadow: 6px 6px 0 rgba(90, 20, 10, 0.75), 0 0 44px rgba(255, 90, 60, 0.4); }
.dr-score { margin: 20px 0 16px; font: 400 26px/1 var(--pixel); color: var(--bone); text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5); }
.dr-score:empty { display: none; }
.dr-money { display: inline-block; margin: 0; padding: 12px 16px 10px; white-space: nowrap; font: 400 18px/1 var(--pixel); color: var(--toxic); text-shadow: 3px 3px 0 var(--toxic-lo); background: rgba(29, 90, 52, 0.3); border: 2px solid rgba(125, 255, 168, 0.38); border-radius: 4px; }
.dr-money:empty { display: none; }
.duel-result[data-won="0"] .dr-money { color: var(--red-hi); text-shadow: 3px 3px 0 rgba(90, 20, 10, 0.7); background: rgba(170, 45, 20, 0.25); border-color: rgba(255, 122, 92, 0.42); }
.dr-bal { margin: 14px 0 22px; font-size: 16px; color: var(--bone-2); }
.dr-box .play { width: 100%; }

/* ---------- osiągnięcia w meczu: karty po lewej stronie (nad wynikiem meczu) ---------- */
.achn { position: fixed; left: 22px; top: 50%; z-index: 45; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 44px)); transform: translateY(-60%); pointer-events: none; }
.achn-card {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: linear-gradient(180deg, rgba(34, 21, 48, 0.94), rgba(14, 9, 21, 0.96));
  border: 2px solid rgba(255, 143, 46, 0.4); border-left-width: 5px; border-radius: 4px; box-shadow: 0 4px 0 rgba(4, 2, 8, 0.72), 0 14px 34px rgba(0, 0, 0, 0.5);
}
.achn-card.in { animation: achnIn .38s cubic-bezier(.2, .9, .3, 1.15); }
.achn-card.out { animation: achnOut .38s ease-in forwards; }
@keyframes achnIn { from { opacity: 0; transform: translateX(-36px); } }
@keyframes achnOut { to { opacity: 0; transform: translateX(-36px); } }
.achn-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; color: var(--bone-2); background: rgba(5, 2, 10, 0.45); border: 2px solid rgba(241, 231, 210, 0.2); border-radius: 3px; }
.achn-ic .pxi { width: 20px; height: 20px; }
.achn-tx { flex: 1; min-width: 0; display: grid; gap: 4px; }
.achn-tx small { font: 400 7px/1.2 var(--pixel); text-transform: uppercase; color: var(--pumpkin-hi); }
.achn-tx b { font: 400 10px/1.35 var(--pixel); color: var(--bone); overflow-wrap: anywhere; }
.achn-tx em { font: 600 13px/1.25 var(--ui); font-style: normal; color: var(--bone-2); }
.achn-pr { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.achn-pr i { flex: 1; height: 8px; padding: 1px; background: rgba(5, 2, 10, 0.55); border: 2px solid rgba(241, 231, 210, 0.2); border-radius: 2px; }
.achn-pr s { display: block; height: 100%; background: linear-gradient(90deg, #d9600f, var(--pumpkin), var(--pumpkin-hi)); text-decoration: none; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.achn-pr span { flex: none; font: 400 8px/1 var(--pixel); color: var(--bone-2); }
.achn-rw { flex: none; display: grid; justify-items: center; gap: 3px; padding: 6px 7px 5px; font: 400 10px/1 var(--pixel); color: #ffd27a; background: rgba(255, 185, 61, 0.1); border: 2px solid rgba(255, 185, 61, 0.32); border-radius: 3px; }
.achn-rw small { font-size: 6px; color: rgba(255, 210, 122, 0.75); }
.achn-card.done { border-color: rgba(255, 205, 90, 0.75); box-shadow: 0 4px 0 rgba(4, 2, 8, 0.72), 0 0 26px rgba(255, 190, 60, 0.35), 0 14px 34px rgba(0, 0, 0, 0.5); }
.achn-card.done .achn-ic { color: #2b1204; background: linear-gradient(180deg, #fff1b8, #ffc94d 55%, #d48a16); border-color: rgba(255, 220, 120, 0.8); }
.achn-card.done .achn-tx small { color: var(--toxic); }
.achn-card.done .achn-pr s { background: linear-gradient(90deg, #2f9a5a, var(--toxic)); }
@media (max-width: 700px) { .achn { left: 10px; width: min(300px, calc(100vw - 20px)); } .achn-tx em { display: none; } }

/* ---------- Strzelnica: statystyki w rogu i zakładka Trening ---------- */
.aim-stats {
  position: absolute; left: 20px; top: 84px; display: flex; gap: 4px; padding: 6px;
  background: linear-gradient(180deg, rgba(34, 21, 48, 0.72), rgba(14, 9, 21, 0.78)); border: 2px solid var(--night-line-2); border-radius: 4px;
  box-shadow: 0 3px 0 rgba(4, 2, 8, 0.45); backdrop-filter: blur(6px);
}
.aim-stats[hidden] { display: none; }
.aim-stats span { display: grid; gap: 6px; min-width: 70px; padding: 7px 10px 6px; text-align: center; background: var(--well); border-radius: 3px; }
.aim-stats small { font: 600 12px/1 var(--ui); color: var(--bone-3); }
.aim-stats b { font: 400 13px/1 var(--pixel); color: var(--pumpkin-hi); font-variant-numeric: tabular-nums; }
.tr-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tr-map {
  display: grid; gap: 6px; padding: 12px 14px; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, 0.035); border: 2px solid var(--night-line); border-radius: 4px; transition: border-color .15s, background .15s;
}
.tr-map b { font: 400 9px/1.3 var(--pixel); color: var(--bone); }
.tr-map small { font-size: 13px; font-weight: 600; color: var(--bone-3); }
.tr-map:hover { border-color: rgba(255, 143, 46, 0.5); }
.tr-map[aria-checked="true"] { border-color: var(--pumpkin); background: rgba(255, 143, 46, 0.12); }
.tr-map[aria-checked="true"] b { color: var(--pumpkin-hi); }
.tr-set { display: grid; gap: 2px; padding: 4px 14px; background: rgba(255, 255, 255, 0.035); border: 2px solid var(--night-line); border-radius: 4px; }
.tr-note { margin: 10px 0; font-size: 14px; color: var(--bone-2); }
.tr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 6px 0; border-bottom: 2px dashed rgba(241, 231, 210, 0.07); }
.tr-row:last-of-type { border-bottom: 0; }
.tr-l { display: grid; gap: 3px; font-size: 15px; font-weight: 600; color: var(--bone-2); }
.tr-l small { font-size: 12.5px; font-weight: 500; color: var(--bone-3); }
.tr-seg { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; padding: 2px; background: var(--well); border: 2px solid var(--night-line); border-radius: 4px; }
.tr-seg button { height: 28px; padding: 1px 9px 0; font: 400 7px/1 var(--pixel); text-transform: uppercase; color: var(--bone-2); background: none; border: 0; border-radius: 3px; }
.tr-seg button:hover:not([aria-checked="true"]) { color: var(--bone); background: rgba(255, 143, 46, 0.09); }
.tr-seg button[aria-checked="true"] { color: #2b1204; background: var(--cream); box-shadow: var(--cream-sh); }
.tr-rng { display: flex; align-items: center; gap: 10px; width: 190px; }
.tr-rng input { flex: 1; min-width: 0; accent-color: var(--pumpkin); }
.tr-rng output { min-width: 5ch; text-align: right; font: 400 9px/1 var(--pixel); color: var(--pumpkin-hi); }
.tr-tog { position: relative; flex: none; width: 54px; height: 26px; padding: 0; background: var(--well); border: 2px solid var(--night-line-2); border-radius: 4px; }
.tr-tog i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #8b8197; border-radius: 2px; transition: transform .18s; }
.tr-tog[aria-checked="true"] { background: rgba(255, 143, 46, 0.3); border-color: var(--pumpkin); }
.tr-tog[aria-checked="true"] i { transform: translateX(28px); background: #f6ead1; }
.tr-acts { display: flex; gap: 8px; padding: 10px 0 8px; }
.tr-acts .ghost { flex: 1; height: 38px; font-size: 8px; }
.tr-open { width: 100%; margin-top: 10px; height: 44px; }
/* napisy na tablicy ustawień w świecie gry (położenie i rozmiar liczy demo.js) */
.wb {
  position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none;
  padding: 0 0.4em; font-family: var(--pixel); line-height: 1; text-transform: uppercase; white-space: nowrap; letter-spacing: 0.02em;
  color: #e9e3d6; text-shadow: 0.12em 0.12em 0 rgba(0, 0, 0, 0.55);
}
.wb[hidden] { display: none; }
.wb-head { justify-content: flex-start; color: var(--pumpkin-hi); }
.wb-big { justify-content: center; color: #fff4dc; }
.wb-small { justify-content: flex-start; font-family: var(--ui); font-weight: 600; text-transform: none; color: #a9a4b4; text-shadow: none; }
.wb-val { color: var(--pumpkin-hi); }
.wb.on { color: #2b1204; text-shadow: none; }
.wb.hov:not(.on) { color: #fff; }

/* ============================================================
   HUD jak w CS:GO: życie w lewym dolnym rogu, amunicja w prawym, lista broni nad amunicją.
   Bez ramek i zaokrągleń: ciemny pasek, który zanika w stronę środka ekranu, duże jasne cyfry z cieniem.
   ============================================================ */
.hud { --cs-txt: #e9e7df; --cs-dim: rgba(233, 231, 223, 0.62); --cs-red: #e5452f; --cs-font: 'Barlow Semi Condensed', system-ui, sans-serif; }
.hud .vitals, .hud .weapon {
  bottom: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
  font-family: var(--cs-font); color: var(--cs-txt); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}
.hud .vitals { left: 0; width: auto; min-width: 360px; height: 78px; padding: 0 50px 0 22px; display: flex; align-items: center; background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 60%, rgba(0, 0, 0, 0) 100%); }
.hud .weapon { right: 0; min-width: 0; height: 78px; padding: 0 22px 0 56px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; background: linear-gradient(270deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 60%, rgba(0, 0, 0, 0) 100%); }
/* w CS nie ma nazwy postaci ani broni przy liczbach */
.hud .vitals .side-tag, .hud .vitals .who, .hud .vitals .role, .hud .weapon .w-head, .hud .weapon .w-pips { display: none; }
.cs-ic { flex: none; width: 32px; height: 32px; fill: var(--cs-txt); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.cs-hp { display: flex; align-items: center; gap: 14px; }
.cs-hpcol { display: grid; gap: 4px; }
.hud .hpnum { margin: 0; font: 700 52px/0.9 var(--cs-font); color: var(--cs-txt); font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.hud .hpbar { margin: 0; width: 122px; height: 5px; padding: 0; background: rgba(255, 255, 255, 0.16); border: 0; border-radius: 0; }
.hud .hpbar div { background: var(--cs-txt); box-shadow: none; }
.hud .vitals.low .hpnum, .hud .vitals.low .cs-ic { color: var(--cs-red); fill: var(--cs-red); }
.hud .vitals.low .hpbar > div { background: var(--cs-red); box-shadow: none; animation: none; }
.hud .w-ammo { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.hud .w-mag { font: 700 52px/0.9 var(--cs-font); color: var(--cs-txt); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); font-variant-numeric: tabular-nums; }
.hud .w-mag.low { color: var(--cs-red); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); }
.hud .w-res { margin: 0; font: 600 28px/1 var(--cs-font); color: var(--cs-dim); font-variant-numeric: tabular-nums; }
.cs-bullets { align-self: center; margin-left: 8px; width: 30px; height: 34px; }
.hud .w-reload { position: absolute; left: 56px; right: 22px; bottom: 7px; margin: 0; height: 4px; padding: 0; background: rgba(255, 255, 255, 0.16); border: 0; border-radius: 0; }
.hud .w-reload i { background: var(--cs-txt); }
/* radar w lewym górnym rogu jak w CS (rysuje go demo.js), pod nim nazwa mapy, statystyki i site */
.radar { position: absolute; left: 14px; top: 14px; width: 232px; height: 232px; border-radius: 6px; background: rgba(0, 0, 0, 0.42); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 4px 18px rgba(0, 0, 0, 0.35); }
.hud .mapname { left: 14px; top: 254px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; font: 700 15px/1.1 var(--cs-font); color: var(--cs-txt); text-transform: uppercase; letter-spacing: 0.04em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.hud .mapname small { margin-top: 3px; font: 600 13px/1 var(--cs-font); color: var(--cs-dim); text-transform: none; letter-spacing: 0; }
.hud .aim-stats { left: 14px; top: 298px; }
.hud .site-tag { left: 14px; top: 298px; }
.hud .fps { left: auto; right: 14px; top: 8px; font: 600 12px/1 var(--cs-font); letter-spacing: 0.04em; color: rgba(210, 210, 214, 0.62); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); white-space: pre; }
.hud .feed { top: 28px; }
/* stamina ślizgu obok życia: ikona błyskawicy i pasek z kreskami co jeden ślizg */
.cs-stam { display: flex; align-items: center; gap: 10px; margin-left: 30px; transition: opacity .3s; }
.cs-stam .cs-ic { width: 26px; height: 26px; }
.cs-stambar {
  position: relative; width: 130px; height: 10px; background: rgba(255, 255, 255, 0.14); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.cs-stambar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: #f0d36a; transition: width .08s linear, background .2s; }
/* podziałka: jeden ślizg to 34% paska */
.cs-stambar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(34% - 1px), rgba(0, 0, 0, 0.55) calc(34% - 1px) 34%, transparent 34% calc(68% - 1px), rgba(0, 0, 0, 0.55) calc(68% - 1px) 68%, transparent 68%); }
.cs-stam.low .cs-stambar i { background: rgba(240, 211, 106, 0.45); }
.cs-stam.low .cs-ic { fill: var(--cs-dim); }
.cs-stam.full { opacity: 0.55; }
.cs-stam.deny .cs-stambar { animation: stamDeny .5s steps(2) 1; }
.cs-stam.deny .cs-stambar i, .cs-stam.deny .cs-ic { background: var(--cs-red); fill: var(--cs-red); }
@keyframes stamDeny { 50% { transform: translateX(3px); } }
/* bez prędkości przy amunicji */
.hud .weapon .speed { display: none !important; }
/* lista broni po prawej, nad amunicją: białe sylwetki, wybrana jasna, reszta przygaszona, numer klawisza z boku */
.hud .slots { right: 16px; bottom: 112px; gap: 3px; }
.hud .slots li { padding: 5px 6px 5px 28px; gap: 12px; opacity: 0.38; }
.hud .slots.flash li { opacity: 0.7; }
.hud .slots li.on { opacity: 1; }
.hud .slots li.on::before { inset: 0 -14px 0 -10px; background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.32) 100%); }
.hud .slots svg { width: 124px; height: 41px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.85)); }
.hud .slots li.on svg { filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)); }
.hud .slots b { font: 700 17px/1 var(--cs-font); color: var(--cs-txt); margin-top: 1px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.hud .slots li.on b { color: var(--cs-txt); }
.hud .slots li.empty, .hud .slots li.empty b { color: var(--cs-red); }
@media (max-width: 700px) {
  .hud .vitals { min-width: 0; height: 50px; padding: 0 26px 0 10px; }
  .hud .weapon { height: 50px; padding: 0 10px 0 26px; }
  .hud .hpnum, .hud .w-mag { font-size: 30px; }
}
