﻿/* PostNukes — Główny arkusz stylów */
/* Pixel-perfect wg PostNukes — Koncept UI.html */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@500;600;700&family=Exo+2:wght@300;400;600&display=swap');

/* ── Zmienne CSS (z prototypu UI) ── */
:root {
  --bg:      rgba(10, 10, 12, 0.80);
  --bg2:     rgba(17, 17, 22, 0.76);
  --bg3:     rgba(26, 26, 34, 0.66);
  --panel:   rgba(20, 20, 24, 0.74);
  --surface: #12121e;
  --border:  #2a2a36;
  --border2: #3a3a4a;
  --acc:    #c0392b;
  --acc2:   #e74c3c;
  --gold:   #d4a017;
  --blue:   #2980b9;
  --green:  #27ae60;
  --purple: #8e44ad;
  --text:   #c8c8d4;
  --text2:  #a8a8b8;
  --text3:  #7a7a90;
  --white:  #eeeef4;

  /* Kolory rzadkości */
  --r1: #9D9D9D;   /* Pospolity */
  --r2: #1EFF00;   /* Niezwykły */
  --r3: #0070DD;   /* Rzadki */
  --r4: #A335EE;   /* Epicki */
  --r5: #FF8000;   /* Legendarny */
  --r6: #E51515;   /* Unikatowy */

  --slot: 68px;
  --tb:   52px;
  --bb:   58px;
  --gap:  4px;
  --ph:   30px;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Blokada przeciągania obrazków (poza slotami itemów) */
img {
  -webkit-user-drag: none;
  user-drag: none;
}

body {
  background: #1c1c24;
  color: var(--text);
  font-family: 'Exo 2', sans-serif;
  font-size: 16px;
  /* Blokada zaznaczania tekstu (Electron security) */
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
}

/* Drag — kursor obsługiwany przez fake-cursor, nie przez przeglądarkę */
.drop-zone { /* definiowane per-ekran */ }

/* Scroll tylko w .scrollable (stash) */
.scrollable { overflow-y: auto; }

/* Klasy pomocnicze */
.hidden { display: none !important; }
.active { display: flex; }

/* ── Ekran autoryzacji ── */
.screen-auth {
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)),
    url('../images/backgrounds/backgroundStart.png') center / cover no-repeat;
}

.auth-panel {
  background: rgba(20,20,24,0.84);
  border: 1px solid var(--border2);
  border-top: 3px solid var(--acc);
  padding: 36px 40px;
  width: 400px;
  max-width: 95vw;
  position: relative;
}
.auth-settings-btn {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  opacity: .6; transition: opacity .15s;
}
.auth-settings-btn:hover { opacity: 1; }

.auth-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 38px;
  letter-spacing: 8px;
  color: var(--white);
  text-align: center;
  margin-bottom: 4px;
}
.auth-logo span { color: var(--acc); }

.auth-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: none;
  border: none;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: var(--text3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.auth-tab.active { color: var(--acc); border-bottom-color: var(--acc); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.hidden { display: none; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text3);
  text-transform: uppercase;
}
.form-hint { color: var(--text3); font-size: 10px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  background: var(--bg3);
  border: 1px solid var(--border2);
  color: var(--white);
  padding: 9px 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  user-select: text; -webkit-user-select: text;
}
.form-group input:focus { border-color: var(--acc); }

.form-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.form-checkbox label {
  font-size: 12px;
  text-transform: none;
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--acc); }

.form-error {
  background: rgba(192, 57, 43, .15);
  border: 1px solid rgba(192, 57, 43, .4);
  color: var(--acc2);
  padding: 8px 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
}

/* ── Przyciski ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  padding: 10px 20px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: background .18s, filter .18s, color .18s, border-color .18s;
}
/* Shimmer na hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
  pointer-events: none;
  transition: left .5s ease;
}
.btn:not(:disabled):hover::before { left: 160%; }

/* Czerwony — akcja główna */
.btn-r {
  background: rgba(192,57,43,.6);
  border: 1px solid rgba(192,57,43,.8);
  color: #fff;
  box-shadow: none;
}
.btn-r:not(:disabled):hover {
  background: rgba(192,57,43,.78);
  border-color: rgba(231,76,60,1);
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(192,57,43,.5)) drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* Zielony — potwierdzenie */
.btn-g {
  background: rgba(39,174,96,.6);
  border: 1px solid rgba(39,174,96,.8);
  color: #fff;
  box-shadow: none;
}
.btn-g:not(:disabled):hover {
  background: rgba(39,174,96,.78);
  border-color: rgba(46,204,113,1);
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(39,174,96,.5)) drop-shadow(0 2px 6px rgba(0,0,0,.4));
}

/* Wtórny / ghost */
.btn-s {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border2);
  color: var(--text2);
  box-shadow: none;
}
.btn-s:not(:disabled):hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(200,200,212,.45);
  color: var(--white);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.btn-s.btn-danger { border-color: rgba(192,57,43,.7); color: var(--acc2); }
.btn-s.btn-danger:not(:disabled):hover {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--white);
  filter: drop-shadow(0 0 8px rgba(192,57,43,.5));
}

.btn-full { width: 100%; }
.btn:disabled { opacity: .35; cursor: not-allowed; }

/* ── Główna gra ── */
.screen-game {
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  /* Tło dopasowuje się do całego okna/ekranu — podmień ścieżkę na właściwy obrazek */
  background-color: #0d0d10;
  /* background-image: url('../img/background.jpg'); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Okno gry — stała rozdzielczość 1280×720 */
.gw {
  width: 1280px;
  height: 720px;
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0,0,0,.9);
  cursor: default;
}
/* Jednolity kursor na całym obszarze gry — systemowa strzałka */
.gw,
.gw * {
  cursor: default !important;
}
/* ── Dynamiczne tło ekranu gry ── */
#game-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#game-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.40);
  pointer-events: none;
}

/* Efekt skanlines */
.gw::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,.025) 3px,
    rgba(0,0,0,.025) 6px
  );
  pointer-events: none;
  z-index: 999;
}

/* ── TOP BAR ── */
.tb {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--tb);
  background: linear-gradient(180deg, rgba(10,10,13,0.93), rgba(17,17,22,0.91));
  border-bottom: 1px solid var(--border2);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  z-index: 50;
}
.tb-sep { width: 1px; height: 28px; background: var(--border2); flex-shrink: 0; }
.tb-curr { display: flex; align-items: center; gap: 6px; }
.tb-curr-ico { font-size: 16px; line-height: 1; }
.tb-curr-ico img { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; }
.tb-curr-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--white);
  font-weight: 600;
}
.tb-hp { display: flex; align-items: center; gap: 7px; }
.tb-hp-ico { font-size: 15px; line-height: 1; }
.tb-hp-ico img { width: 30px; height: 30px; object-fit: contain; vertical-align: middle; }
.tb-hp-bar { width: 90px; height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.tb-hp-f { height: 100%; background: linear-gradient(90deg, #27ae60, #2ecc71); border-radius: 4px; transition: width .3s; }
.tb-hp-f.low { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.tb-hp-txt { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--text2); white-space: nowrap; }
.tb-lvlxp { display: flex; align-items: center; gap: 8px; }
.tb-lvl-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--gold);
  background: rgba(212,160,23,.12);
  border: 1px solid rgba(212,160,23,.3);
  padding: 2px 10px;
  border-radius: 2px;
  white-space: nowrap;
}
.tb-xp-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.tb-xp-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.tb-xp-f { height: 100%; background: var(--gold); border-radius: 3px; transition: width .3s; }
.tb-xp-txt { font-family: 'Share Tech Mono', monospace; font-size: 10px; color: var(--text3); text-align: center; white-space: nowrap; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tb-gear {
  width: 34px; height: 34px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: border-color .15s;
}
.tb-gear:hover { border-color: var(--acc); }
/* Wskaźnik nowych aktualności */
#btn-news { position: relative; }
#btn-news.has-news::after {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 7px; height: 7px;
  background: var(--acc);
  border-radius: 50%;
}

/* ── Pojedynki ── */
.du-loading      { padding: 40px; text-align: center; color: var(--text3); font-size: 13px; }
.du-empty        { padding: 14px 16px; color: var(--text3); font-family: 'Share Tech Mono', monospace; font-size: 11px; }
.du-pos          { color: #2ecc71; }
.du-neg          { color: #e74c3c; }

/* Layout 70/30 */
.du-layout       { display: flex; gap: 10px; padding: 10px; width: 100%; height: 100%; min-height: 0; box-sizing: border-box; }
.du-col-left     { flex: 7; min-width: 0; display: flex; flex-direction: column; }
.du-col-right    { flex: 3; min-width: 0; display: flex; flex-direction: column; }
.du-opp-panel    { display: flex; flex-direction: column; flex: 1; }
.du-hist-panel   { display: flex; flex-direction: column; height: 100%; }
.du-hist-body    { flex: 1; overflow-y: auto; padding: 6px 0; }

/* 3 kafelki obok siebie */
.du-tiles            { display: flex; gap: 10px; padding: 10px 16px 10px; flex: 1; }
.du-tile             { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px 10px; }
.du-tile-avatar-wrap { flex-shrink: 0; }
.du-tile-avatar      { width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
                       background: var(--bg3); display: flex; align-items: center; justify-content: center;
                       font-size: 30px; overflow: hidden; border: 2px solid var(--border2);
                       transition: border-color .2s, box-shadow .2s; }
.du-tile-avatar--empty { background: var(--bg2); }
.du-tile-nick        { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 18px; color: var(--text);
                       text-align: center; cursor: pointer; }
.du-tile-nick:hover  { color: var(--acc); }
.du-tile-team        { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--gold); text-align: center; }
.du-tile-meta        { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--text3); text-align: center; }
.du-tile-stats       { display: flex; flex-direction: column; gap: 3px; width: 100%; margin-top: 4px; }
.du-tile-stats-lbl   { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--text3);
                       text-transform: uppercase; letter-spacing: .06em; text-align: center; margin-bottom: 2px; }
.du-srow         { display: flex; justify-content: space-between; font-family: 'Share Tech Mono', monospace; font-size: 13px; }
.du-slbl         { color: var(--text3); }
.du-sval         { color: var(--text2); font-weight: 700; }

/* Dół panelu */
.du-bottom-bar   { display: flex; justify-content: center; padding: 6px 16px 10px; }
.du-cost         { color: var(--gold); }
.du-attack-disabled { opacity: .4; }
.du-tile .btn    { width: 100%; margin-top: auto; }

/* Pasek energii */
.du-energy-section { padding: 0 16px 14px; }
.du-energy-label   { display: flex; justify-content: space-between; font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--text3); margin-bottom: 5px; }
.du-energy-track   { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.du-energy-fill    { height: 100%; border-radius: 4px; transition: width .4s, background .4s; }
.du-energy-regen   { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--text3); text-align: center; }

/* Klikalne nicki */
.du-nick-link    { cursor: pointer; }
.du-nick-link:hover { color: var(--acc); text-decoration: underline; }

/* Historia */
.du-hist-row     { display: flex; align-items: center; gap: 10px; padding: 7px 16px; border-bottom: 1px solid var(--border2); }
.du-hist-row:last-child { border-bottom: none; }
.du-hist-win     { }
.du-hist-loss    { opacity: .7; }
.du-hist-result  { font-size: 14px; font-weight: 700; width: 18px; text-align: center; flex-shrink: 0; }
.du-hist-win .du-hist-result  { color: #2ecc71; }
.du-hist-loss .du-hist-result { color: #e74c3c; }
.du-hist-details { flex: 1; min-width: 0; }
.du-hist-nick    { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-hist-date    { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--text3); }
.du-hist-right   { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.du-hist-honor   { font-family: 'Share Tech Mono', monospace; font-size: 11px; font-weight: 700; }
.du-replay-btn   { background: none; border: 1px solid var(--border2); border-radius: 3px; color: var(--text3);
                   font-size: 12px; cursor: pointer; padding: 1px 5px; line-height: 1.4;
                   transition: color .15s, border-color .15s; }
.du-replay-btn:hover { color: var(--acc); border-color: var(--acc); }

/* Badge "Replay" na ekranie odtwarzania */
.du-replay-badge { font-family: 'Share Tech Mono', monospace; font-size: 10px; color: var(--text3);
                   text-align: right; padding: 0 0 4px; letter-spacing: .05em; flex-shrink: 0; }

/* Ekran walki */
.du-combat-wrap  { padding: 10px; width: 100%; height: 100%; display: flex; flex-direction: column; min-height: 0; box-sizing: border-box; }
.du-combat-sides { display: flex; gap: 8px; flex: 1; min-height: 0; justify-content: center; }
.du-side         { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 2px; }
.du-side-hd      { display: flex; align-items: center; gap: 8px; flex-shrink: 0; width: 100%; }
.du-side-ava     { width: 34px; height: 34px; border-radius: 50%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 16px; overflow: hidden; flex-shrink: 0; }
.du-side-ava img { width: 100%; height: 100%; object-fit: cover; }
.du-side-name    { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px; color: var(--text); }
.du-side-hp-wrap { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; flex-shrink: 0; width: 100%; }
.du-side-hp      { height: 100%; background: #2ecc71; border-radius: 3px; transition: width .25s; }
.du-side-hp--opp { background: #e74c3c; }
.du-side-hp-txt  { font-family: 'Share Tech Mono', monospace; font-size: 10px; color: var(--text3); text-align: center; flex-shrink: 0; }
/* Ekwipunek w du-side używa globalnej klasy .eq/.esl — zmniejszony slot */
.du-side .eq     { --slot: 46px; flex-shrink: 0; }
.du-stats-block  { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; width: 100%; }
.du-stats-lbl    { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; text-align: center; }

/* Przycisk przyspieszenia animacji */
.du-fast-btn     { flex-shrink: 0; width: 100%; padding: 5px 8px; font-size: 11px; font-family: 'Share Tech Mono', monospace;
                   background: rgba(52,152,219,.15); border: 1px solid #3498db; border-radius: 3px;
                   color: #3498db; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.du-fast-btn:hover   { background: rgba(52,152,219,.28); color: #5dade2; border-color: #5dade2; }
.du-fast-btn:disabled { background: rgba(255,255,255,.05); border-color: var(--border2); color: var(--text3); opacity: .5; cursor: default; }

/* Środkowa kolumna walki */
.du-combat-mid   { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.du-vs           { font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 900; color: var(--acc); text-align: center; flex-shrink: 0; text-shadow: 0 0 14px rgba(192,57,43,.6), 0 2px 6px rgba(0,0,0,.8); }
/* Arena PvP — ikony zawodników + obszar floating DMG */
.du-pvp-arena    { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 0; }
.du-arena-fig    { font-size: 44px; line-height: 1; flex-shrink: 0; position: relative; }
.du-arena-center { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 60px; }
#du-dmg-area     { position: relative; width: 100%; height: 40px; }
/* Wyśrodkowanie floating DMG/PUDŁO/UNIK w arenie PvP */
#du-dmg-area .dmg-num { left: 50%; animation: dmg-float-pvp 1s ease-out forwards; }
@keyframes dmg-float-pvp {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-30px); }
}
.du-arena-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border2); transition: border-color .2s, box-shadow .2s; }
.du-result       { background: var(--bg2); border: 1px solid var(--border2); border-radius: 4px; padding: 10px; text-align: center; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.du-result.hidden{ display: none; }
.du-rbanner      { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 900; padding: 5px; border-radius: 3px; }
.du-rwin         { background: rgba(46,204,113,.15); color: #2ecc71; }
.du-rloss        { background: rgba(231,76,60,.15); color: #e74c3c; }
.du-rhonor       { font-family: 'Share Tech Mono', monospace; font-size: 16px; color: var(--text3); }

/* ── STRONA PREMIUM ── */
#page-premium     { flex-direction: column; gap: var(--gap); }
.pr-section       { flex-shrink: 0; display: flex; flex-direction: column; }

/* Panel górny — jeden .pn z pionowym podziałem */
.pr-top-panel     { display: flex; flex-direction: row; flex-shrink: 0; overflow: hidden; }
.pr-top-left      { flex: 0 0 auto; display: flex; flex-direction: column; }
.pr-top-divider   { width: 1px; background: var(--border2); flex-shrink: 0; align-self: stretch; }
.pr-top-right     { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* Sekcja waluta (lewa) */
.pr-ctiles        { display: flex; gap: 6px; padding: 6px 10px; }
.pr-ctile         { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
                    padding: 7px 6px 6px; background: var(--bg2); border: 1px solid var(--border2);
                    border-radius: 3px; min-width: 52px; }
.pr-ctile:hover   { border-color: var(--border); }
.pr-ctile-ico     { line-height: 1; }
.pr-ctile-gems    { font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 900; color: var(--gold); }
.pr-ctile-price   { font-family: 'Rajdhani', sans-serif; font-size: 11px; color: var(--text2); }
.pr-ctile--free   { border-color: var(--acc); }
.pr-ctile--free .pr-ctile-price { color: #2ecc71; font-weight: 700; }
.pr-ctile-btn     { width: 100%; padding: 5px 2px; font-size: 10px; margin-top: 2px; }

/* Status konta premium — w nagłówku, wyrównany do prawej */
.pr-acc-status-hdr     { margin-left: auto; font-family: 'Share Tech Mono', monospace;
                          font-size: 11px; }
.pr-acc-status--active   { color: #27ae60; }
.pr-acc-status--inactive { color: var(--acc2); }

/* Sekcja konto premium (prawa) */
.pr-acc-body      { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
                    padding: 6px 12px 8px; flex: 1; align-items: stretch; }
.pr-benefits      { grid-column: span 2; display: flex; flex-direction: column; gap: 4px;
                    justify-content: center; padding: 6px 12px;
                    background: var(--bg2); border: 1px solid var(--border2); border-radius: 3px; }
.pr-brow          { font-family: 'Share Tech Mono', monospace; font-size: 10px;
                    color: var(--text2); padding: 2px 0;
                    display: flex; align-items: center; gap: 7px; }
.pr-brow::before  { content: ''; display: inline-block; width: 6px; height: 6px;
                    border-radius: 50%; background: var(--acc2); flex-shrink: 0; }
.pr-atiles        { display: contents; }
.pr-atile         { display: flex; align-items: center; gap: 10px; padding: 7px 12px;
                    background: var(--bg2); border: 1px solid var(--border2); border-radius: 3px;
                    transition: border-color .15s; }
.pr-atile:hover   { border-color: var(--border); }
.pr-atile--best   { border-color: var(--gold) !important; }
.pr-atile-crown   { font-size: 18px; line-height: 1; flex-shrink: 0; }
.pr-atile-info    { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pr-atile-days    { font-family: 'Rajdhani', sans-serif; font-size: 24px; font-weight: 600;
                    color: var(--text); line-height: 1; }
.pr-atile-sub     { font-family: 'Share Tech Mono', monospace; font-size: 8px; color: var(--text3); }
.pr-atile-buybtn  { display: flex; flex-direction: column; align-items: center; justify-content: center;
                    width: 70px; height: 70px; border-radius: 4px; flex-shrink: 0;
                    background: rgba(212,160,23,.08); border: 1px solid rgba(212,160,23,.28);
                    cursor: pointer; gap: 2px; }
.pr-atile-buybtn:disabled { cursor: not-allowed; opacity: .45; }
.pr-atile-btn-ico   { font-size: 16px; line-height: 1; }
.pr-atile-btn-ico img { width: 32px !important; height: 32px !important; vertical-align: middle; margin: 0; }
.pr-atile-btn-price { font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 700;
                      color: var(--gold); line-height: 1; }

/* Sekcja 3 — Battle Pass */
.pr-section--bp  { flex: 1; min-height: 0; }
.pr-bp-info-btn  { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
                   background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
                   color: var(--text3); font-size: 10px; font-weight: 700; line-height: 1;
                   cursor: pointer; display: flex; align-items: center; justify-content: center;
                   margin-right: 6px; transition: background .15s, color .15s; }
.pr-bp-info-btn:hover { background: var(--acc); color: #fff; border-color: var(--acc); }
.pr-bp-bar-wrap  { display: inline-block; width: 100px; height: 5px; background: var(--bg3);
                   border-radius: 3px; overflow: hidden; vertical-align: middle; margin: 0 6px; }
.pr-bp-bar       { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.pr-bp-prog      { margin-left: auto; font-family: 'Share Tech Mono', monospace;
                   font-size: 10px; color: var(--text3); display: flex; align-items: center; gap: 4px; }
.pr-bp-xp-sub    { font-size: 9px; color: var(--text-muted); margin-left: 2px; }
.pr-bp-buybtn    { flex-shrink: 0; font-size: 11px; white-space: nowrap; }
/* ── Battle Pass Track ────────────────────────────────────────── */
.pr-bptrack { overflow-x: auto; overflow-y: visible; padding-bottom: 6px;
              scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.pr-bptrack::-webkit-scrollbar        { height: 4px; }
.pr-bptrack::-webkit-scrollbar-track  { background: transparent; }
.pr-bptrack::-webkit-scrollbar-thumb  { background: rgba(255,255,255,.15); border-radius: 2px; }

.pr-bptrack-inner {
  display: flex; align-items: flex-start; position: relative;
  min-width: max-content; padding: 14px 20px;
}

/* Oś pozioma — tło + pasek postępu */
.pr-bpaxis-bg, .pr-bpaxis-fill {
  position: absolute;
  top: calc(14px + 65px + 14px + 13px); /* padding + tile + konektor + pół węzła */
  left: 20px; right: 20px; height: 2px;
  pointer-events: none; border-radius: 1px;
}
.pr-bpaxis-bg   { background: rgba(255,255,255,.08); z-index: 1; }
.pr-bpaxis-fill { background: linear-gradient(90deg, #14532d 0%, #4ade80 100%);
                  right: auto; z-index: 2; }

/* Kolumna jednego poziomu */
.pr-bpcol {
  display: flex; flex-direction: column; align-items: center;
  width: 74px; flex-shrink: 0; position: relative; z-index: 3;
}

/* Kafelek nagrody */
.pr-bptile {
  width: 65px; height: 65px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
  transition: border-color .2s, box-shadow .2s;
}
.pr-bptile--prem { background: rgba(167,139,250,.05); border-color: rgba(167,139,250,.16); }
.pr-bptile--done { background: rgba(74,222,128,.05); border-color: rgba(74,222,128,.22) !important; }
.pr-bptile--locked { opacity: .38; filter: grayscale(.55); pointer-events: none; }
.pr-bpcol--ms .pr-bptile {
  border-color: rgba(251,191,36,.28); box-shadow: 0 0 10px rgba(251,191,36,.08);
}
.pr-bpcol--ms .pr-bptile--prem {
  border-color: rgba(167,139,250,.4); box-shadow: 0 0 12px rgba(167,139,250,.13);
}

/* Konektor kafelek → oś */
.pr-bpconn {
  width: 1px; height: 14px; background: rgba(255,255,255,.1);
  flex-shrink: 0; z-index: 3;
}
.pr-bpconn--done { background: rgba(74,222,128,.38); }

/* Węzeł poziomu na osi */
.pr-bpnode {
  width: 26px; height: 26px; border-radius: 50%;
  background: #0d0d11; border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--text3);
  position: relative; z-index: 4; flex-shrink: 0; user-select: none;
}
.pr-bpnode--done { background: #14532d; border-color: #4ade80; color: #bbf7d0; font-size: 12px; }
.pr-bpnode--cur  { border-color: #4ade80; color: #4ade80;
                   animation: bpNodePulse 1.8s ease-in-out infinite; }
.pr-bpnode--ms   { width: 30px; height: 30px; font-size: 10px;
                   border-color: rgba(251,191,36,.5); color: #fbbf24; }
.pr-bpnode--ms.pr-bpnode--done { background: #78350f; border-color: #fbbf24; color: #fef08a; }
@keyframes bpNodePulse {
  0%,100% { box-shadow: 0 0 6px #4ade8044; }
  50%      { box-shadow: 0 0 16px #4ade80aa; }
}

/* Zawartość kafelka */
.pr-tile-empty { color: rgba(255,255,255,.15); font-size: 16px; line-height: 1; }
.pr-tile-currency {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 13px; font-weight: 700; line-height: 1.2; color: #e5e7eb;
}
.pr-tile-currency span { font-size: 12px; font-weight: 600; color: var(--text2); }
.pr-tile-img { width: 48px; height: 48px; object-fit: contain; }
.pr-tile-name {
  font-size: 8px; text-align: center; line-height: 1.2; padding: 2px;
  word-break: break-all; font-family: 'Share Tech Mono', monospace;
}
.pr-tile-qty {
  position: absolute; bottom: 2px; right: 3px;
  font-size: 10px; font-weight: 700; color: #e5e7eb;
  background: rgba(0,0,0,.65); padding: 1px 3px; border-radius: 2px;
}
.pr-tile-lock {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); font-size: 16px; border-radius: 7px;
}
.pr-tile-claim {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: rgba(22,163,74,.92); border: none; border-radius: 7px;
  color: #fff; font-size: 8px; font-weight: 500; letter-spacing: .5px;
  cursor: not-allowed; opacity: 0; transition: opacity .15s; padding: 0;
}
.pr-tile-claim--active {
  cursor: pointer; opacity: 0; transition: opacity .15s;
}
.pr-bptile:not(.pr-bptile--locked):hover .pr-tile-claim { opacity: 1; }
.pr-tile-claim--claimed {
  background: rgba(212,160,23,.25); color: var(--gold);
  opacity: 1 !important; cursor: default; font-size: 14px;
}

/* ── BP: brak sezonu / nadchodzący ── */
.pr-bp-empty        { display: flex; flex-direction: column; align-items: center; justify-content: center;
                      padding: 36px 24px; gap: 8px; text-align: center; }
.pr-bp-empty-ico    { font-size: 32px; line-height: 1; }
.pr-bp-empty-title  { font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700;
                      letter-spacing: 2px; color: var(--text); }
.pr-bp-empty-sub    { font-size: 11px; color: var(--text-muted); }
.pr-bp-timer        { font-family: 'Share Tech Mono', monospace; font-size: 22px;
                      color: var(--gold); letter-spacing: 2px; margin-top: 4px; }
.pr-bp-ends         { font-family: 'Share Tech Mono', monospace; font-size: 10px;
                      color: var(--text-muted); margin-left: auto; white-space: nowrap; }
.pr-bp-timer-inline { color: var(--gold); }

/* ── Popup osiągnięć ── */
.ach-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.ach-backdrop.hidden { display: none; }
.ach-modal {
  position: relative;
  width: 600px; max-width: calc(100% - 40px);
  height: 560px; max-height: calc(100% - 40px);
  background: #1a1a22;
  border: 1px solid var(--border2);
  border-top: 2px solid var(--gold);
  display: flex; flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,.9);
}
.ach-modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: #111116;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
}
.ach-modal-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--gold); text-transform: uppercase; letter-spacing: .08em;
}
.ach-modal-close {
  background: none; border: none; color: var(--text3);
  font-size: 16px; cursor: pointer; padding: 2px 6px; line-height: 1;
}
.ach-modal-close:hover { color: var(--text); }
.ach-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
  scrollbar-width: thin;
}
.ach-tabs::-webkit-scrollbar { height: 4px; }
.ach-tabs::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

.ach-tab {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 8px 10px; min-width: 68px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer; flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.ach-tab:hover { background: rgba(255,255,255,.08); border-color: var(--border2); }
.ach-tab--active {
  border-color: var(--gold);
  background: rgba(212,175,55,.08);
}
.ach-tab-img {
  width: 44px; height: 44px;
  object-fit: cover; border-radius: 3px;
  display: block;
}
.ach-tab-count {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; color: var(--text3);
  text-align: center; line-height: 1;
}
.ach-tab--active .ach-tab-count { color: var(--gold); }

.ach-tab-tooltip {
  position: absolute;
  background: #0d0d12;
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 10px; font-family: 'Rajdhani', sans-serif;
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap;
  padding: 3px 8px; border-radius: 3px;
  pointer-events: none; z-index: 300;
  box-shadow: 0 2px 10px rgba(0,0,0,.7);
  transform: translateX(-50%);
}

.ach-body {
  flex: 1; overflow-y: auto;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.ach-loading {
  padding: 40px; text-align: center;
  color: var(--text3); font-size: 13px;
}
/* Karta osiągnięcia */
.ach-card {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  opacity: .6;
  transition: opacity .2s;
}
.ach-card--done {
  opacity: 1;
  border-color: var(--gold);
  background: rgba(212,175,55,.06);
}
.ach-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  object-fit: cover; border-radius: 4px;
}
.ach-icon-empty {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); font-size: 28px;
}
.ach-info { flex: 1; min-width: 0; }
.ach-name {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 15px; color: var(--text); margin-bottom: 3px;
}
.ach-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: var(--text3); line-height: 1.5;
}
.ach-progress-wrap {
  height: 4px; background: var(--bg3); border-radius: 2px;
  margin-top: 8px; overflow: hidden;
}
.ach-progress-bar {
  height: 100%; background: var(--gold); border-radius: 2px;
  transition: width .4s;
}
.ach-progress-txt {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; color: var(--text3); margin-top: 3px;
}
.ach-status { flex-shrink: 0; text-align: center; min-width: 36px; }
.ach-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: #000;
  font-size: 14px; font-weight: 700;
}
.ach-pct {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px; color: var(--text3);
}

/* ── Nagrody za osiągnięcia ── */
@keyframes ach-blink-anim {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px 2px var(--gold); }
  50%       { opacity: .55; box-shadow: 0 0 2px 0 transparent; }
}
@keyframes ach-tab-blink-anim {
  0%, 100% { border-color: var(--gold); box-shadow: 0 0 6px 1px rgba(212,175,55,.5); }
  50%       { border-color: var(--border2); box-shadow: none; }
}

.ach-nav-blink {
  animation: ach-blink-anim 1.2s ease-in-out infinite;
}
.ach-tab--blink {
  animation: ach-tab-blink-anim 1.2s ease-in-out infinite;
}

.ach-card--claimable {
  border-color: var(--gold);
  background: rgba(212,175,55,.1);
  opacity: 1;
}

/* Kontener nagrody po prawej stronie karty */
.ach-reward {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}

/* Okrąg z zawartością nagrody */
.ach-rew-circle {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.ach-reward--claimable .ach-rew-circle {
  border-color: var(--gold);
  box-shadow: 0 0 8px 2px rgba(212,175,55,.4);
}
.ach-reward--claimed .ach-rew-circle {
  opacity: .45;
  border-color: var(--border2);
}

/* Zawartość okręgu */
.ach-rew-gem  { font-size: 22px; line-height: 1; }
.ach-rew-amt  {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 11px; color: var(--gold);
  position: absolute; bottom: -2px; right: -4px;
  background: var(--bg); border-radius: 3px; padding: 0 2px;
  line-height: 1.3;
}
.ach-rew-img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid #9D9D9D;
}
.ach-rew-qty {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; color: var(--text2);
  position: absolute; bottom: -2px; right: -6px;
  background: var(--bg); border-radius: 3px; padding: 0 2px;
  line-height: 1.3;
}

/* Przycisk odbioru nagrody */
.ach-claim-btn {
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: .04em;
  color: #000; background: var(--gold);
  border: none; border-radius: 3px;
  padding: 3px 8px; cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s;
}
.ach-claim-btn:hover  { opacity: .85; }
.ach-claim-btn:disabled { opacity: .5; cursor: default; }

/* Znacznik odebranej nagrody */
.ach-rew-done {
  font-size: 14px; color: var(--gold); font-weight: 700;
}


/* ── Popup aktualności ── */
.news-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
}
.news-backdrop.hidden { display: none; }
.news-modal {
  width: 860px; max-width: calc(100% - 40px);
  height: 620px; max-height: calc(100% - 40px);
  background: #1a1a22;
  border: 1px solid var(--border2);
  border-top: 2px solid var(--acc);
  display: flex; flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,.9);
}
.news-modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: #111116;
  border-bottom: 1px solid var(--border2);
  flex-shrink: 0;
}
.news-modal-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--text); text-transform: uppercase; letter-spacing: .08em;
}
.news-modal-close {
  background: none; border: none; color: var(--text3);
  font-size: 16px; cursor: pointer; padding: 2px 6px; line-height: 1;
}
.news-modal-close:hover { color: var(--text); }
.news-lang-btns { display: flex; gap: 4px; margin-left: auto; margin-right: 10px; }
.news-lang-btn {
  background: none; border: 1px solid var(--border2); border-radius: 3px;
  color: var(--text3); font-size: 11px; font-family: 'Share Tech Mono', monospace;
  padding: 2px 8px; cursor: pointer; transition: color .15s, border-color .15s, background .15s;
  display: flex; align-items: center; gap: 5px;
}
.news-lang-btn:hover { color: var(--text); border-color: var(--acc); }
.news-lang-btn--active { color: var(--acc); border-color: var(--acc); background: rgba(200,169,81,.1); }
.news-modal-body {
  flex: 1; overflow-y: auto;
  padding: 20px 28px;
}
.news-modal-body iframe {
  width: 100%; height: 100%; border: none;
}
.news-loading {
  padding: 40px; text-align: center;
  color: var(--text3); font-size: 13px;
}
.news-iframe {
  width: 100%; height: 100%; border: none; display: block;
  background: transparent;
}

/* ── BOTTOM BAR ── */
.bb {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--bb);
  background: linear-gradient(0deg, rgba(10,10,13,0.93), rgba(17,17,22,0.91));
  border-top: 1px solid var(--border2);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  z-index: 50;
}
.bb::-webkit-scrollbar { display: none; }
.bb-btn {
  flex: 1 1 0;
  min-width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  border-right: 1px solid var(--border);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--text3);
  text-transform: uppercase;
  border-top: 2px solid transparent;
  transition: all .15s;
  padding: 0 6px;
  white-space: nowrap;
}
.bb-btn:last-child { border-right: none; }
.bb-btn:hover { background: rgba(255,255,255,.03); color: var(--text2); }
.bb-btn.active { color: var(--acc); border-top-color: var(--acc); background: rgba(192,57,43,.06); }
/* Zakładki wyszarzone podczas misji */
.bb-btn.off { opacity: .3; cursor: not-allowed; pointer-events: none; }
/* Zakładki "wkrótce" — niedostępne, subtelnie wyszarzone */
.bb-btn.soon { opacity: .35; cursor: not-allowed; pointer-events: none; }
/* Miganie zakładki misji gdy ważne zdarzenie czeka na mapie */
.bb-btn.tab-alert { animation: tab-alert-pulse 1s step-end infinite; }
@keyframes tab-alert-pulse { 0%,100% { color: var(--gold); } 50% { color: var(--text-muted); } }
.bb-btn .ico { font-size: 18px; line-height: 1; }
.bb-btn .ico img { width: 25px; height: 25px; object-fit: contain; vertical-align: middle; }

/* ── CHAT ── */
.chat-wrap { position: absolute; left: 0; right: 0; bottom: var(--bb); z-index: 48; }
.chat-tog {
  position: absolute;
  right: 14px; bottom: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-bottom: none;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  padding: 3px 12px;
  cursor: pointer;
  border-radius: 2px 2px 0 0;
  letter-spacing: 1px;
  transition: background .2s;
}
@keyframes chat-blink {
  0%,100% { background: var(--bg2); border-color: var(--border2); color: var(--text3); }
  50%      { background: rgba(192,57,43,.25); border-color: var(--acc); color: var(--acc); }
}
.chat-tog.has-new { animation: chat-blink 1.2s ease-in-out infinite; }
.chat-body { height: 0; overflow: hidden; transition: height .25s; background: rgba(17,17,22,0.92); border-top: 1px solid var(--border2); }
.chat-body.open { height: 180px; }
.chat-inner { display: flex; flex-direction: column; height: 100%; }
.chat-hd { padding: 4px 14px; background: var(--bg2); border-bottom: 1px solid var(--border); font-family: 'Share Tech Mono', monospace; font-size: 10px; color: var(--text3); letter-spacing: 1px; flex-shrink: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 4px 14px; }
.chat-msg { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--text2); padding: 2px 0; }
.chat-msg .from { color: var(--gold); }
.chat-msg.sys { color: var(--text3); font-style: italic; }
.chat-msg-time { color: var(--text3); font-size: 10px; margin-right: 4px; opacity: .7; }
.chat-row { display: flex; gap: 6px; padding: 5px 10px; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 5px 10px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--white);
  outline: none;
  user-select: text; -webkit-user-select: text;
}
.chat-send { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 12px; padding: 5px 14px; background: var(--acc); color: #fff; border: none; border-radius: 2px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }

/* ── OBSZAR TREŚCI ── */
.ct {
  position: absolute;
  top: var(--tb);
  left: 0; right: 0;
  bottom: var(--bb);
  overflow: hidden;
  padding: var(--gap);
}
.page { width: 100%; height: 100%; display: none; }
.page.active { display: flex; }

/* ── PANEL ── */
.pn { background: var(--panel); border: 1px solid var(--border); border-radius: 2px; display: flex; flex-direction: column; overflow: hidden; }
.ph {
  padding: 5px 12px;
  background: rgba(0,0,0,.40);
  border-bottom: 1px solid var(--border);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text2);
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  min-height: 30px;
}
.ph .dot { display: none; }
.ph .acc { color: var(--text2); }
.shop-reset-timer { margin-left: auto; font-size: 11px; color: var(--text3); letter-spacing: 0; font-family: 'Share Tech Mono', monospace; }

/* ── SLOTY PRZEDMIOTÓW ── */
.sg { display: grid; gap: 3px; padding: 6px; }
/* Slot bazowy — zawsze kwadrat (68×68) */
.sl {
  width: var(--slot);
  height: var(--slot);
  background: rgba(0,0,0,.5);
  border: 2px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter .12s;
}
.sl:hover { filter: brightness(1.15); }
.sl .si { font-size: 26px; line-height: 1; pointer-events: none; }
.sl.lkd { background: rgba(0,0,0,.5); cursor: default; }
.sl.lkd::after { content: '🔒'; font-size: 14px; position: absolute; }
/* Badge liczby amunicji — prawy dolny róg slotu */
.sl .ammo,
.esl .ammo {
  position: absolute;
  bottom: 3px; right: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px; color: var(--white);
  background: rgba(0,0,0,.85);
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 2;
}

/* Kolory rzadkości na slocie */
.sl.r1 { border-color: var(--r1); background: rgba(157,157,157,.09); }
.sl.r2 { border-color: var(--r2); background: rgba(30,255,0,.07); }
.sl.r3 { border-color: var(--r3); background: rgba(0,112,221,.09); }
.sl.r4 { border-color: var(--r4); background: rgba(163,53,238,.09); }
.sl.r5 { border-color: var(--r5); background: rgba(255,128,0,.09); }
.sl.r6 { border-color: var(--r6); background: rgba(229,21,21,.09); }

/* Siatka ekwipunku 3×4 */
.eq { display: grid; grid-template-columns: repeat(3, var(--slot)); grid-template-rows: repeat(4, var(--slot)); gap: 3px; padding: 6px; }
.esl {
  width: var(--slot); height: var(--slot);
  background: rgba(0,0,0,.5);
  border: 2px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: filter .12s;
}
.esl:hover { filter: brightness(1.15); }
.esl.blank { background: transparent !important; border-color: transparent !important; cursor: default; }
.esl.r1 { border-color: var(--r1); background: rgba(157,157,157,.09); }
.esl.r2 { border-color: var(--r2); background: rgba(30,255,0,.07); }
.esl.r3 { border-color: var(--r3); background: rgba(0,112,221,.09); }
.esl.r4 { border-color: var(--r4); background: rgba(163,53,238,.09); }
.esl.r5 { border-color: var(--r5); background: rgba(255,128,0,.09); }
.esl.r6 { border-color: var(--r6); background: rgba(229,21,21,.09); }

/* Drop zone ekwipunku — cały panel postaci */
.drop-zone {
  border: 2px solid transparent;
  transition: border-color .15s, background .15s;
}
.drop-zone.drag-over {
  border-color: var(--acc);
  background: rgba(192,57,43,.07);
}

/* ── STATYSTYKI ── */
.str { display: flex; align-items: center; gap: 8px; padding: 5px 12px; }
.stn { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--text3); width: 76px; flex-shrink: 0; }
.stb { flex: 1; height: 7px; background: var(--border); border-radius: 3px; overflow: hidden; }
.stf { height: 100%; border-radius: 3px; }
.stv { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--white); width: 34px; text-align: right; flex-shrink: 0; }
.stplus {
  width: 30px; height: 30px;
  background: rgba(39,174,96,.15);
  border: 1px solid rgba(39,174,96,.4);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 22px;
  color: var(--green);
  flex-shrink: 0;
  transition: all .15s;
}
.stplus:hover { background: rgba(39,174,96,.3); border-color: var(--green); }
.stplus.disabled { opacity: .3; cursor: not-allowed; pointer-events: none; }

/* ── TOOLTIP ── */
.tt {
  position: absolute;
  background: rgba(10,10,14,0.97);
  border: 1px solid var(--border2);
  border-top: 2px solid var(--tt-top, var(--acc));
  padding: 11px 14px;
  border-radius: 2px;
  min-width: 210px;
  box-shadow: 0 6px 28px rgba(0,0,0,.9);
  z-index: 500;
  pointer-events: none;
  display: none;
}
.tt.visible { display: block; }
.tt-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 19px; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.tt-name .badge-img { width: 22px; height: 22px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.tt-type { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--text3); margin-bottom: 8px; }
.tt-row { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--text2); line-height: 1.8; }
.tt-row .pos { color: #2ecc71; }
.tt-row .neg { color: #e74c3c; }
.tt-div { height: 1px; background: var(--border); margin: 7px 0; }
.tt-val { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--text3); }

/* ── MODAL ── */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 900; display: none; align-items: center; justify-content: center; }
.modal-bg.open { display: flex; }
.modal { background: #141418; border: 1px solid var(--border2); border-top: 2px solid var(--acc); border-radius: 3px; width: 380px; max-width: 90%; overflow: hidden; }
.modal-head {
  padding: 12px 16px;
  background: #111116;
  border-bottom: 1px solid var(--border);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-close { font-size: 18px; cursor: pointer; color: var(--text3); background: none; border: none; padding: 0 4px; transition: color .15s; }
.modal-close:hover { color: var(--acc); }
.modal-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.srow { display: flex; align-items: center; gap: 10px; }
.srow-label { flex: 1; font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--text2); }
.srow-mute { display: flex; align-items: center; cursor: pointer; user-select: none; }
.srow-mute input[type="checkbox"] { display: none; }
.srow-mute-ico { font-size: 16px; opacity: 0.35; transition: opacity .15s; }
.srow-mute input[type="checkbox"]:checked + .srow-mute-ico { opacity: 1; }
.setting-select {
  background: var(--bg3); color: var(--text); border: 1px solid var(--border2);
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
  padding: 3px 6px; border-radius: 2px; cursor: pointer; outline: none;
}
.setting-select:focus { border-color: var(--acc); }
/* Custom language picker */
.lang-flag { width: 18px; height: 13px; object-fit: cover; border-radius: 1px; flex-shrink: 0; vertical-align: middle; }
.lang-picker { position: relative; display: inline-block; }
.lang-picker-sel {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg3); color: var(--text); border: 1px solid var(--border2);
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
  padding: 3px 8px 3px 6px; border-radius: 2px; cursor: pointer;
  user-select: none; min-width: 130px;
}
.lang-picker-sel:hover { border-color: var(--acc); }
.lang-picker-sel.open { border-color: var(--acc); }
.lang-picker-arrow { margin-left: auto; font-size: 9px; color: var(--text3); }
.lang-picker-drop {
  display: none; position: fixed; z-index: 1100;
  background: rgb(26, 26, 34); border: 1px solid var(--acc); border-radius: 2px;
  min-width: 150px; box-shadow: 0 4px 12px rgba(0,0,0,.5); overflow: hidden;
}
.lang-picker-drop.open { display: block; }
.lang-picker-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px; cursor: pointer; font-size: 12px;
  font-family: 'Share Tech Mono', monospace; color: var(--text2);
  transition: background .1s, color .1s;
}
.lang-picker-opt:hover { background: rgba(200,169,81,.12); color: var(--text); }
.lang-picker-opt.selected { color: var(--acc); }
.btn-danger { background: #5a1a1a !important; color: #e88 !important; }
.btn-danger:hover { background: #7a2020 !important; }
.tt-srow { color: var(--text2); display:flex; justify-content:space-between; gap:16px; }
/* ── Wybór języka z flagami ── */

/* ── LINK W FORMULARZU ── */
.terms-link {
  color: var(--acc);
  text-decoration: underline;
  cursor: pointer;
}
.terms-link:hover { color: var(--acc2); }

/* ── MODAL REGULAMINU ── */
.terms-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.terms-overlay.hidden { display: none; }

.terms-modal {
  background: var(--panel);
  border: 1px solid var(--border2);
  border-top: 3px solid var(--acc);
  width: 520px;
  max-width: 92vw;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  border-radius: 2px;
  box-shadow: 0 12px 48px rgba(0,0,0,.9);
}

.terms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
}

.terms-close {
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color .15s;
}
.terms-close:hover { color: var(--acc); }

.terms-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1;
  color: var(--text2);
  font-size: 13.5px;
  line-height: 1.7;
  user-select: text;
  -webkit-user-select: text;
}
.terms-body h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin: 18px 0 6px;
}
.terms-body h3:first-child { margin-top: 0; }
.terms-body p { margin-bottom: 6px; }

/* ── LOADER ── */
.loading-overlay {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 9999;
  pointer-events: none;
}
.loading-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border2);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Wyśrodkowany spinner w panelach / zakładkach */
.pn-spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  flex: 1;
}
.pn-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border2);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── TABELA MISJI ── */
.mtbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.mtbl th { font-family: 'Rajdhani', sans-serif; font-size: 12px; letter-spacing: 1px; color: var(--text3); padding: 5px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.mtbl td { padding: 5px 8px; border-bottom: 1px solid rgba(42,42,54,.5); color: var(--text2); }
.mtbl td:first-child { color: var(--text); }

/* Kafelek misji */
.mc { background: var(--bg3); border: 1px solid var(--border2); border-radius: 2px; padding: 11px 13px; margin: 7px; position: relative; cursor: pointer; transition: border-color .15s; }
.mc:hover { border-color: var(--acc); }
.mc.cur::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); border-radius: 2px 0 0 2px; }
.mt { font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: 16px; color: var(--white); margin-bottom: 4px; }
.md { font-size: 13px; color: var(--text2); margin-bottom: 7px; line-height: 1.4; }

/* ── WALKA ── */
.hp-bar { width: 130px; height: 11px; background: var(--border); border-radius: 5px; overflow: hidden; }
.hp-f { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #27ae60, #2ecc71); transition: width .3s; }
.hp-f.low { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.clog { margin: 6px 10px; background: var(--bg3); border: 1px solid var(--border); border-radius: 2px; padding: 7px 10px; overflow-y: auto; }
.cl { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--text2); padding: 3px 0; }
.cl.hit { color: var(--acc2); } .cl.dodge { color: var(--blue); } .cl.miss { color: var(--text3); }

/* Animacje walki */
@keyframes atk-r { 0%{transform:translateX(0)} 30%{transform:translateX(28px)} 60%{transform:translateX(-8px)} 100%{transform:translateX(0)} }
@keyframes atk-l { 0%{transform:translateX(0)} 30%{transform:translateX(-28px)} 60%{transform:translateX(8px)} 100%{transform:translateX(0)} }
@keyframes hit-flash { 0%,100%{filter:brightness(1)} 20%{filter:brightness(2.5) saturate(3)} }
@keyframes dmg-float { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(-30px)} }
.anim-atk-r { animation: atk-r .55s ease-in-out; }
.anim-atk-l { animation: atk-l .55s ease-in-out; }
.anim-hit   { animation: hit-flash .4s ease-out; }
.dmg-num {
  position: absolute; top: 0;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 26px;
  color: #e74c3c; pointer-events: none;
  text-shadow: 0 0 10px rgba(231,76,60,.8);
  animation: dmg-float 1s ease-out forwards;
}
/* Wyśrodkowanie floating DMG/PUDŁO/UNIK w walce misjowej i strzelniczej */
#combat-dmg-area .dmg-num,
#sr-dmg-area .dmg-num {
  left: 50%;
  animation: dmg-float-pvp 1s ease-out forwards;
}

/* ── KAFELKI SKLEPU ── */
.stile {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  padding: 0;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.stile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  transition: background .2s;
}
.stile:hover { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.stile:hover::after { background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.28) 50%, rgba(0,0,0,.04) 100%); }
.stile .nm {
  position: relative;
  z-index: 1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 16px 18px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,.9);
  line-height: 1.15;
}
.stile .nm .nm-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  opacity: .75;
  margin-top: 3px;
  text-transform: uppercase;
}

/* ── ZAKŁADKI MAGAZYNÓW ── */
.tab-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  color: var(--text3);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: .5px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.tab-btn:hover { background: var(--bg2); color: var(--text2); }
.tab-btn.active { background: var(--panel); color: var(--white); border-color: var(--border2); }

/* ── DRAG OVER na slocie inwentarza ── */
.sl.drag-over { border-color: var(--acc) !important; background: rgba(192,57,43,.15) !important; }
.esl.drag-over { border-color: var(--acc) !important; background: rgba(192,57,43,.15) !important; }

/* ── SKLEP — strefa sprzedaży ── */
.sell-zone {
  transition: border-color .15s, background .15s;
}
.sell-zone.drag-over {
  border-color: var(--gold) !important;
  background: rgba(212,160,23,.12) !important;
}
.sell-zone-active {
  border-color: var(--gold) !important;
  background: rgba(212,160,23,.07) !important;
}

/* ── SKLEP — siatka ofert (slot z ceną pod spodem) ── */
.shop-offer-grid {
  display: grid;
  grid-template-columns: repeat(6, var(--slot));
  gap: 3px;
  padding: 6px 6px 28px;  /* miejsce na cenę */
}
.shop-offer-grid .sl {
  margin-bottom: 20px;
}

/* ── TOAST — krótkie powiadomienia w UI ── */
#toast-wrap {
  position: fixed;
  top: calc(var(--tb) + 8px);
  right: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  max-width: 320px;
}
.toast {
  background: rgba(22,22,30,0.94);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--text3);
  padding: 9px 14px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text2);
  border-radius: 2px;
  opacity: 1;
  transition: opacity 0.3s ease;
  word-break: break-word;
}
.toast.toast-error   { border-left-color: var(--acc); color: #ff8080; }
.toast.toast-success { border-left-color: #1EFF00; color: #1EFF00; }
.toast.toast-warn    { border-left-color: var(--gold); color: var(--gold); }
.toast.toast-info    { border-left-color: var(--blue); }
.toast.toast-hide    { opacity: 0; }

/* ── Modal dialogów w UI gry ── */
#pn-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#pn-modal-backdrop.hidden { display: none; }
.pn-modal {
  background: #1a1a22;
  border: 1px solid var(--border2);
  border-top: 2px solid var(--acc);
  padding: 24px 28px 20px;
  min-width: 280px;
  max-width: 420px;
  font-family: 'Share Tech Mono', monospace;
  box-shadow: 0 8px 32px rgba(0,0,0,.8);
}
.pn-modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.pn-modal-msg {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 20px;
}
.pn-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.pn-modal-btns .btn { min-width: 80px; }
.pn-modal--wide { min-width: 380px; max-width: 500px; }

/* Popup zarządzaj drużyną */
.tm-manage-field { margin-bottom: 14px; }
.tm-manage-label { display: block; font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.tm-manage-textarea {
  width: 100%; height: 90px; resize: none;
  background: var(--bg2); border: 1px solid var(--border2); color: var(--text);
  font-family: 'Share Tech Mono', monospace; font-size: 12px;
  padding: 8px; box-sizing: border-box;
}
.tm-manage-textarea:focus { outline: none; border-color: var(--acc); }
.tm-manage-check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12px; color: var(--text2); }
.tm-manage-check-row input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; accent-color: var(--acc); }

/* Popup wpłaty premium */
.tm-deposit-input-row { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; }
.tm-deposit-input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border2); color: var(--text);
  font-family: 'Share Tech Mono', monospace; font-size: 14px;
  padding: 7px 10px; text-align: center;
}
.tm-deposit-input:focus { outline: none; border-color: var(--acc); }
.tm-deposit-currency { font-size: 18px; }

/* ── Panel Profilu (Baza) ────────────────────────────────── */
.bp-avatar-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--bg2); flex-shrink: 0;
  transition: border-color .2s, box-shadow .2s;
}
.bp-avatar-img  { width: 100%; height: 100%; object-fit: cover; }
.bp-avatar-ico  { font-size: 36px; line-height: 1; }
.bp-nick        { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: .04em; text-align: center; }
.bp-stats       { display: flex; align-items: center; gap: 6px; font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--text3); }
.bp-stat b      { color: var(--text2); }
.bp-sep         { color: var(--border2); }
.bp-badge-row   { display: flex; gap: 6px; }
.bp-badge-slot  { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: default; overflow: hidden; }
.bp-badge-slot .badge-img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* ── Popup Edycji Profilu ────────────────────────────────── */
.pe-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.78);
  display: flex; align-items: center; justify-content: center;
  z-index: 201;
}
.pe-backdrop.hidden { display: none; }
.pe-modal {
  width: 480px; max-width: calc(100% - 32px);
  height: 640px; max-height: calc(100% - 32px);
  background: var(--bg3); border: 1px solid var(--border2);
  border-top: 2px solid var(--acc);
  display: flex; flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,.9);
}
.pe-modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--bg2);
  border-bottom: 1px solid var(--border2); flex-shrink: 0;
}
.pe-modal-label { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 14px; color: var(--text); text-transform: uppercase; letter-spacing: .08em; }
.pe-modal-close { background: none; border: none; color: var(--text3); font-size: 16px; cursor: pointer; padding: 2px 6px; }
.pe-modal-close:hover { color: var(--text); }
.pe-modal-body  { flex: 1; overflow-y: auto; padding: 0 20px 20px; }

.pe-loading { padding: 40px; text-align: center; color: var(--text3); font-size: 13px; }

.pe-section { padding: 16px 0 0; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.pe-section:last-child { border-bottom: none; }
.pe-section-title {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--acc); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.pe-input {
  flex: 1; background: var(--bg2); border: 1px solid var(--border2); color: var(--text);
  font-family: 'Share Tech Mono', monospace; font-size: 12px; padding: 7px 10px;
}
.pe-input:focus    { outline: none; border-color: var(--acc); }
.pe-input:disabled { opacity: .4; cursor: not-allowed; }
.pe-row  { display: flex; align-items: center; gap: 8px; }
.pe-col  { display: flex; flex-direction: column; gap: 8px; }
.pe-label { font-size: 11px; color: var(--text3); font-family: 'Share Tech Mono', monospace; white-space: nowrap; }
.pe-value { font-size: 12px; color: var(--text2); font-family: 'Share Tech Mono', monospace; }
.pe-hint  { font-size: 11px; color: var(--text3); font-family: 'Share Tech Mono', monospace; margin-top: 6px; line-height: 1.4; }
.pe-locked-hint { font-size: 11px; color: var(--text3); font-family: 'Share Tech Mono', monospace; white-space: nowrap; }

/* Avatar upload */
.pe-avatar-row     { display: flex; align-items: center; gap: 14px; }
.pe-avatar-preview { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--border2); overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg2); flex-shrink: 0; }
.pe-avatar-img     { width: 100%; height: 100%; object-fit: cover; }
.pe-avatar-placeholder { font-size: 32px; }
.pe-avatar-controls { display: flex; flex-direction: column; gap: 6px; }
.pe-avatar-hint    { font-size: 10px; color: var(--text3); font-family: 'Share Tech Mono', monospace; }
.pe-upload-label   { cursor: pointer; display: inline-block; }

/* Badge picker */
.pe-badges-grid  { display: flex; flex-wrap: wrap; gap: 8px; }
.pe-badge-card   {
  position: relative; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  background: var(--bg2); border: 2px solid var(--border2); border-radius: 4px;
  cursor: pointer; transition: border-color .15s; overflow: hidden;
}
.pe-badge-card:hover           { border-color: var(--text3); }
.pe-badge-card.pe-badge-selected { border-color: var(--gold); background: rgba(212,175,55,.08); }
.pe-badge-icon  { font-size: 32px; line-height: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pe-badge-icon .badge-img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.pe-badge-num   {
  position: absolute; top: 3px; right: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); color: #111;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.pe-badge-counter { font-size: 12px; color: var(--text3); font-family: 'Share Tech Mono', monospace; font-weight: normal; }

/* ── Trening ─────────────────────────────────────────────── */
.tr-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px 24px;
  box-sizing: border-box;
}
.tr-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.tr-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--acc);
  text-shadow: 0 0 18px rgba(192,57,43,.6), 0 2px 6px rgba(0,0,0,.8);
}
.tr-desc {
  font-size: 11px;
  color: #b0b0c4;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 12px rgba(0,0,0,.7);
  max-width: 560px;
  line-height: 1.8;
}
.tr-tiles {
  display: flex;
  gap: 16px;
}
/* Kafelek — stały rozmiar, niezmieniony podczas treningu */
.tr-tile {
  width: 210px;
  height: 300px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-top: 3px solid var(--sc, var(--acc));
  border-radius: 2px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity .2s;
  box-sizing: border-box;
}
.tr-tile--locked { opacity: .35; pointer-events: none; }
.tr-ico  { font-size: 24px; line-height: 1; }
.tr-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text2);
}
.tr-val  {
  font-size: 26px;
  font-weight: 700;
  color: var(--sc, var(--acc));
  line-height: 1;
  flex: 1;
  display: flex;
  align-items: center;
}
/* Strefa akcji — stała wysokość, zawiera timer + przyciski */
.tr-action {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 90px;
  justify-content: flex-end;
}
.tr-timer {
  font-size: 14px;
  color: var(--acc);
  text-align: center;
  white-space: nowrap;
  height: 14px;
  line-height: 14px;
}
.tr-btn-start,
.tr-btn-cancel,
.tr-btn-boost  { width: 100%; }
.tr-boost-left {
  font-size: 9px;
  color: var(--text3);
  text-align: center;
}

/* ══════════════════════════════════════════════════════════
   DRUŻYNA (team.js)
   ══════════════════════════════════════════════════════════ */

/* Widok: brak drużyny — centrowana karta ~50% szerokości */
.tm-noteam {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  max-width: 560px;
  margin: auto;
  gap: 10px;
  text-align: center;
  overflow-y: auto;
  padding: 28px 32px;
  background: rgba(10,10,14,0.80);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.tm-noteam-ico   { font-size: 48px; line-height: 1; }
.tm-noteam-title { font-size: 16px; font-weight: 700; color: var(--text1); letter-spacing: 1px; }
.tm-noteam-sub   { font-size: 12px; color: var(--text3); }
.tm-noteam-btns  { display: flex; gap: 10px; margin-top: 6px; }

/* Tworzenie i wyszukiwanie drużyny */
.tm-create-section,
.tm-search-section  { width: 100%; max-width: 420px; margin-top: 12px; }
.tm-create-title    { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--text2); text-transform: uppercase; margin-bottom: 6px; text-align: left; }
.tm-create-req      { font-size: 11px; color: var(--text3); margin-bottom: 6px; text-align: left; }
.tm-create-form,
.tm-search-form     { display: flex; flex-direction: column; gap: 6px; }
.tm-create-input    { background: var(--bg3); border: 1px solid var(--border2); color: var(--text); font-family: 'Exo 2', sans-serif; font-size: 13px; padding: 6px 10px; width: 100%; }
.tm-create-input:focus { outline: none; border-color: var(--acc); }
.tm-create-input:disabled { opacity: .4; cursor: not-allowed; }
.tm-search-results  { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.tm-search-row      { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg3); border: 1px solid var(--border); padding: 6px 10px; }
.tm-search-info     { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.tm-search-name     { color: var(--text); font-weight: 600; }
.tm-tag-link        { color: var(--gold); font-family: 'Share Tech Mono', monospace; font-size: 11px; }

/* Badge "szuka członków" / "zamknięta" */
.tm-open-badge      { margin-left: auto; font-size: 10px; padding: 2px 6px; border-radius: 2px; font-weight: 600; }
.tm-open-yes        { color: #27ae60; background: rgba(39,174,96,.12); }
.tm-open-no         { color: var(--text3); background: rgba(255,255,255,.04); }

/* Panel zarządzania drużyną (owner) */
.tm-manage-panel    { background: var(--bg3); border: 1px solid var(--border2); padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.tm-manage-title    { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }
.tm-manage-textarea { background: var(--bg2); border: 1px solid var(--border2); color: var(--text); font-family: 'Exo 2', sans-serif; font-size: 12px; padding: 6px 8px; resize: none; min-height: 60px; width: 100%; }
.tm-manage-textarea:focus { outline: none; border-color: var(--acc); }
.tm-manage-check    { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); cursor: pointer; }
.tm-manage-btns     { display: flex; gap: 6px; }

/* Premium wpłacone przez członka */
.tm-member-contrib  { font-size: 14px; color: var(--text3); font-family: 'Share Tech Mono', monospace; min-width: 52px; text-align: right; }

/* Layout główny */
.tm-layout {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Dwie równe kolumny — padding-bottom uwzględnia rozwinięty czat (180px) */
.tm-cols {
  display: flex;
  gap: 8px;
  padding: 8px 8px 188px;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.tm-col-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.tm-col-right {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* Panel informacji — rozciąga się by wypełnić dostępne miejsce */
.tm-info-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
/* Wewnętrzny padding treści paneli drużyny (po .ph) */
.tm-panel-body {
  padding: 0 12px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Tożsamość drużyny: tag + nazwa */
.tm-team-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--brd);
  margin-bottom: 8px;
}
.tm-tag-big {
  font-size: 20px;
  font-weight: 700;
  color: var(--acc);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tm-teamname {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Opis drużyny */
.tm-desc {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.5;
  padding: 5px;
  border: 1px solid var(--border2);
  border-radius: 2px;
  background: rgba(0,0,0,.10);
  white-space: pre-wrap;
  margin-bottom: 6px;
  max-height: 150px;
  overflow-y: auto;
}

/* Tabela info */
.tm-info-rows { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.tm-info-row  {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text3);
  padding: 2px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.tm-info-row span:last-child { color: var(--text1); font-weight: 600; }

/* Przyciski akcji w panelu info */
.tm-info-actions {
  display: flex;
  flex-direction: row;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
.tm-action-full { flex: 1; text-align: center; }

/* Panel ulepszeń — nie rośnie, zajmuje tylko tyle ile potrzeba */
.tm-upg-panel {
  flex-shrink: 0;
}
.tm-upgrades { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.tm-upg-row  {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: var(--bg3);
  border-radius: 4px;
}
.tm-upg-info  { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tm-upg-label { font-size: 10px; color: var(--text3); }
.tm-upg-val   { font-size: 12px; font-weight: 700; color: var(--text1); }
.tm-upg-btn   { flex-shrink: 0; font-size: 10px; padding: 2px 6px; white-space: nowrap; }
.tm-upg-cost   { color: var(--acc); }
.tm-upg-locked { font-size: 9px; color: var(--text3); white-space: nowrap; }
.tm-upg-lvl    { color: var(--acc); font-size: 11px; }
.tm-upg-premium {
  margin-left: auto;
  font-size: 11px;
  color: var(--text2);
  font-family: 'Share Tech Mono', monospace;
}
.tm-upg-deposit { font-size: 10px; padding: 1px 7px; flex-shrink: 0; }

/* Lista członków */
.tm-member-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  flex: 1;
  padding-right: 2px;
}
.tm-member-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  background: var(--bg3);
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color .15s;
}
.tm-member-row:hover { border-color: var(--brd); }
.tm-member--me { border-color: var(--acc) !important; background: rgba(192,57,43,.07); }

.tm-role-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--rc, #444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.tm-member-nick {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tm-me-tag  { font-size: 10px; color: var(--acc); font-weight: 400; }
.tm-member-sub { font-size: 9px; color: var(--text3); font-weight: 400; }
.tm-member-lvl {
  font-size: 12px;
  color: var(--text3);
  white-space: nowrap;
  font-family: 'Share Tech Mono', monospace;
}
.tm-member-honor  { font-size: 14px; white-space: nowrap; min-width: 70px; text-align: right; color: var(--text2); font-family: 'Share Tech Mono', monospace; }
.tm-member-status { font-size: 10px; white-space: nowrap; min-width: 80px; text-align: right; }
.tm-online  { color: #27ae60; }
.tm-offline { color: var(--text3); }

.tm-member-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.tm-act-btn { font-size: 10px; padding: 2px 6px; }

/* Zaproszenia oczekujące */
.tm-pending { padding: 6px 0; }
.tm-pending-empty { font-size: 11px; color: var(--text3); text-align: center; padding: 6px 0; }

/* Czat przypięty na stronie drużyny (zawsze rozwinięty, bez przycisku toggle) */
.tm-chat-pinned .chat-body { height: 180px !important; }
.tm-chat-pinned .chat-tog  { display: none !important; }

/* ══════════════════════════════════════════════════════════
   TABELA / LEADERBOARD (leaderboard.js)
   ══════════════════════════════════════════════════════════ */

.lb-layout {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 14px 8px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Wyśrodkowany kontener ~40% szerokości */
.lb-center {
  width: 42%;
  min-width: 340px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Główny panel-ramka */
.lb-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* Zakładki zintegrowane z panelem */
.lb-tabs {
  display: flex;
  border-bottom: 1px solid var(--brd);
  flex-shrink: 0;
}
.lb-tab {
  flex: 1;
  padding: 8px 4px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  color: var(--text3);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-tab:hover  { color: var(--text1); background: rgba(255,255,255,.03); }
.lb-tab.active { color: var(--acc);   border-bottom-color: var(--acc); background: rgba(192,57,43,.06); }
.lb-tab:not(:last-child) { border-right: 1px solid var(--brd); }

/* Wrapper listy — przewijalna z windą */
.lb-list-wrap {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.lb-spinner-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 50;
}
.lb-spinner {
  width: 38px;
  height: 38px;
  border-width: 3px;
}
.lb-list {
  display: flex;
  flex-direction: column;
}

/* Nagłówek kolumn */
.lb-header-row {
  display: flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--bg2);
  border-bottom: 1px solid var(--brd);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text3);
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}
.lb-header-row span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Wiersz zawodnika/drużyny */
.lb-row {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,.035);
  transition: background .1s;
  font-size: 12px;
  color: var(--text2);
  min-height: 36px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover      { background: rgba(255,255,255,.04); }

/* Aktualny gracz/drużyna */
.lb-row--me {
  background: rgba(192,57,43,.09) !important;
  box-shadow: inset 2px 0 0 var(--acc);
}

/* Top 3 — subtelne tła */
.lb-medal-1 { background: rgba(244,196,48,.08); }
.lb-medal-2 { background: rgba(192,192,192,.06); }
.lb-medal-3 { background: rgba(180,100,40,.07); }

/* Kolumny */
.lb-col-rank  { width: 34px; flex-shrink: 0; text-align: center; }
.lb-col-main  { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; }
.lb-col-tag   { width: 54px; flex-shrink: 0; text-align: center; }
.lb-col-stat  { width: 72px; flex-shrink: 0; text-align: right; }
.lb-col-extra { width: 68px; flex-shrink: 0; text-align: right; color: var(--text3); font-size: 11px; }

.lb-rank-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--text3);
  text-align: center;
  width: 34px;
  flex-shrink: 0;
}
.lb-nick {
  font-weight: 600;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Konto premium — złoty nick z poświatą */
.lb-nick.lb-premium {
  color: #f4c430;
  text-shadow: 0 0 8px rgba(244,196,48,.55), 0 0 2px rgba(244,196,48,.3);
}
.lb-tag-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--acc);
}

/* Odznaczenia (badges) */
.lb-badges {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.lb-badge {
  font-size: 13px;
  line-height: 1;
  cursor: default;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lb-badge .badge-img { width: 18px; height: 18px; object-fit: cover; border-radius: 3px; }
.lb-badge[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
  background: #0d0d12;
  border: 1px solid var(--brd);
  color: var(--text1);
  font-size: 10px;
  font-family: 'Rajdhani', sans-serif;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* Paginacja */
.lb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 10px;
  border-top: 1px solid var(--brd);
  flex-shrink: 0;
}
.lb-pagination:empty { display: none; }
.lb-page-btn {
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 2px;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lb-page-btn:hover:not([disabled]) { background: var(--bg2); color: var(--text1); }
.lb-page-btn.active  { background: var(--acc); border-color: var(--acc); color: #fff; }
.lb-page-btn[disabled] { opacity: .35; cursor: default; }
.lb-page-nav { font-size: 13px; }

/* Klikalne nicki w leaderboardzie */
.lb-nick-link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.2);
  text-underline-offset: 2px;
  transition: text-decoration-color .15s, color .15s;
}
.lb-nick-link:hover { text-decoration-color: var(--acc); color: var(--acc); }
.lb-nick.lb-premium.lb-nick-link:hover { color: #ffe066; text-decoration-color: #ffe066; }

/* ══════════════════════════════════════════════════════════
   PROFIL GRACZA (profile.js)
   ══════════════════════════════════════════════════════════ */

.pr-layout {
  width: 100%;
  height: 100%;
  display: flex;
  box-sizing: border-box;
  padding: 8px;
  overflow: hidden;
}

.pr-cols {
  display: flex;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Kolumny */
.pr-col-left  { flex: 0 0 300px; min-height: 0; }
.pr-col-right { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

/* Karta gracza */
.pr-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Awatar */
.pr-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px 10px;
  border-bottom: 1px solid var(--brd);
}
.pr-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--border2);
  display: block;
  object-fit: cover;
  margin-bottom: 6px;
  transition: border-color .2s, box-shadow .2s;
}
.pr-premium-crown {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f4c430;
  text-shadow: 0 0 6px rgba(244,196,48,.5);
  margin-top: 2px;
}

/* Nick */
.pr-nick-row {
  padding: 10px 12px 2px;
  text-align: center;
}
.pr-nick {
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
  letter-spacing: 1px;
}
.pr-nick--premium {
  color: #f4c430;
  text-shadow: 0 0 10px rgba(244,196,48,.55), 0 0 3px rgba(244,196,48,.3);
}

/* Premium — złoty obrys avatara i nick (użyj na .bp-avatar-wrap, .pr-avatar, .du-tile-avatar, .du-arena-avatar) */
.avatar-premium {
  border-color: #f4c430 !important;
  box-shadow: 0 0 14px rgba(244,196,48,.5), 0 0 5px rgba(244,196,48,.3);
}
/* Premium — złoty nick (użyj zamiast lub obok istniejących klas nicku) */
.nick-premium {
  color: #f4c430 !important;
  text-shadow: 0 0 10px rgba(244,196,48,.55), 0 0 3px rgba(244,196,48,.3);
}

/* Badges */
.pr-badges {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 4px 12px 8px;
  flex-wrap: wrap;
}
.pr-badge {
  font-size: 16px;
  cursor: default;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pr-badge .badge-img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.pr-badge[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
  background: #0d0d12;
  border: 1px solid var(--brd);
  color: var(--text1);
  font-size: 10px;
  font-family: 'Rajdhani', sans-serif;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* Drużyna */
.pr-team {
  text-align: center;
  padding: 4px 12px 10px;
  border-bottom: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pr-team-tag  { font-family: 'Share Tech Mono',monospace; color: var(--acc); font-size: 13px; font-weight: 700; }
.pr-team-name { font-size: 12px; color: var(--text2); }
.pr-team-none { font-size: 11px; color: var(--text3); font-style: italic; }

/* Statystyki */
.pr-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  gap: 0;
  border-bottom: 1px solid var(--brd);
}
.pr-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pr-stat-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text1);
  font-family: 'Share Tech Mono', monospace;
}
.pr-stat-lbl { font-size: 10px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; }
.pr-stat-sep { width: 1px; height: 30px; background: var(--brd); flex-shrink: 0; }

/* Przyciski akcji */
.pr-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  margin-top: auto;
}
.pr-action-btn { width: 100%; text-align: center; }

/* Panel galerii */
.pr-gallery-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.pr-gallery-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text3);
  font-family: 'Share Tech Mono', monospace;
}
.pr-gallery-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pr-gallery-desc {
  font-size: 11px;
  color: var(--text3);
  font-style: italic;
}

/* Siatka slotów galerii */
.pr-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.pr-slot {
  aspect-ratio: 1;
  border-radius: 3px;
  border: 2px solid var(--rc, #444);
  background: color-mix(in srgb, var(--rc, #444) 9%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: default;
  position: relative;
  transition: border-color .15s, transform .1s;
}
.pr-slot:hover { transform: scale(1.06); border-color: color-mix(in srgb, var(--rc, #888) 80%, white); }
.pr-slot--empty {
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.pr-slot[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: #0d0d12;
  border: 1px solid var(--brd);
  color: var(--text1);
  font-size: 10px;
  font-family: 'Rajdhani', sans-serif;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.pr-back-btn { font-size: 10px; padding: 2px 8px; }

/* Klikalne tagi drużyn w leaderboardzie i profilu */
.lb-team-link, .pr-team-link {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(192,57,43,.4);
  text-underline-offset: 2px;
  transition: text-decoration-color .15s, color .15s;
}
.lb-team-link:hover { text-decoration-color: var(--acc); color: var(--acc); }
.pr-team-link { text-decoration-color: rgba(192,57,43,.35); }
.pr-team-link:hover { text-decoration-color: var(--acc); color: var(--acc); }

/* ══════════════════════════════════════════════════════════
   PROFIL DRUŻYNY (team-profile.js)
   ══════════════════════════════════════════════════════════ */

.tp-layout {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.tp-cols {
  display: flex;
  gap: 8px;
  padding: 8px;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.tp-col-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.tp-col-right {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.tp-info-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.tp-back-btn { font-size: 10px; padding: 2px 8px; }

/* Klikalne nicki członków w podglądzie drużyny */
.tp-nick-link {
  cursor: pointer;
  color: var(--text1);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.15);
  text-underline-offset: 2px;
  transition: color .15s, text-decoration-color .15s;
}
.tp-nick-link:hover { color: var(--acc); text-decoration-color: var(--acc); }
.tp-nick-premium {
  color: #f4c430;
  text-shadow: 0 0 8px rgba(244,196,48,.45);
}
.tp-nick-premium:hover { color: #ffe066; text-decoration-color: #ffe066; }

/* ══════════════════════════════════════════════════════════
   PANEL WIADOMOŚCI (messages.js)
   ══════════════════════════════════════════════════════════ */

.msg-panel {
  position: absolute;
  top: calc(var(--tb) + 4px);
  right: 8px;
  width: 340px;
  max-height: 460px;
  background: #141418;
  border: 1px solid var(--brd);
  border-radius: 3px;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Nagłówek */
.msg-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #111116;
  border-bottom: 1px solid var(--brd);
  flex-shrink: 0;
}
.msg-title {
  flex: 1;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text1);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.msg-badge {
  background: var(--acc);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  line-height: 1.4;
}
.msg-close-btn {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  line-height: 1;
  transition: color .15s;
  flex-shrink: 0;
}
.msg-close-btn:hover { color: var(--text1); }
.msg-back-btn {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 0 4px 0 0;
  line-height: 1;
  transition: color .15s;
  flex-shrink: 0;
}
.msg-back-btn:hover { color: var(--text1); }
.msg-compose-btn { font-size: 10px; padding: 2px 8px; flex-shrink: 0; }

/* Widok */
.msg-view { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.msg-view.hidden { display: none; }

/* Lista wątków */
.msg-list {
  flex: 1;
  overflow-y: auto;
}
/* Powiadomienia systemowe w panelu wiadomości */
.msg-notif-row {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  background: rgba(192,57,43,.07);
}
.msg-notif-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.msg-notif-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.msg-notif-body { font-size: 12px; color: var(--text2); line-height: 1.4; }
.msg-notif-actions { display: flex; }
.msg-notif-actions .btn { font-size: 10px; padding: 3px 8px; min-width: unset; }

/* Zaproszenia do drużyn w panelu wiadomości */
.msg-invite-row {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  background: rgba(212,175,55,.06);
}
.msg-invite-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.msg-invite-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.msg-invite-title { font-size: 11px; color: var(--text); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.msg-invite-team { font-size: 12px; color: var(--gold); }
.msg-invite-from { font-size: 11px; color: var(--text3); }
.msg-invite-actions { display: flex; gap: 5px; margin-top: 5px; }
.msg-invite-actions .btn { font-size: 10px; padding: 3px 8px; min-width: unset; }

.msg-thread-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
  transition: background .1s;
}
.msg-thread-row:hover { background: rgba(255,255,255,.04); }
.msg-thread--unread { background: rgba(192,57,43,.06); }
.msg-thread-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--brd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--acc);
  flex-shrink: 0;
  text-transform: uppercase;
}
.msg-thread-info { flex: 1; min-width: 0; }
.msg-thread-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
.msg-thread-nick {
  font-size: 12px;
  font-weight: 700;
  color: var(--text1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-thread--unread .msg-thread-nick { color: #fff; }
.msg-thread-time  { font-size: 10px; color: var(--text3); white-space: nowrap; flex-shrink: 0; }
.msg-thread-preview {
  font-size: 11px;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-thread--unread .msg-thread-preview { color: var(--text2); }
.msg-unread-dot {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--acc);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  flex-shrink: 0;
}

/* Wątek / podgląd */
.msg-thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg-bubble-wrap { display: flex; flex-direction: column; gap: 2px; max-width: 82%; }
.msg-bubble-wrap--mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble-nick { font-size: 10px; color: var(--acc); font-weight: 700; padding-left: 2px; }
.msg-bubble {
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 3px 10px 10px 10px;
  padding: 7px 10px;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
}
.msg-bubble--mine {
  background: rgba(192,57,43,.18);
  border-color: rgba(192,57,43,.35);
  border-radius: 10px 3px 10px 10px;
  color: var(--text1);
}
.msg-bubble-time { font-size: 9px; color: var(--text3); padding: 0 2px; }

/* Pasek odpowiedzi */
.msg-reply-bar {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--brd);
  background: var(--bg2);
  flex-shrink: 0;
}
.msg-reply-input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 2px;
  color: var(--text1);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  padding: 4px 8px;
  outline: none;
}
.msg-reply-input:focus { border-color: var(--acc); }
.msg-send-btn { font-size: 11px; padding: 4px 10px; flex-shrink: 0; }

/* Nowa wiadomość */
.msg-compose-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
  overflow: hidden;
}
.msg-compose-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--brd);
  padding-bottom: 8px;
}
.msg-compose-label { font-size: 11px; color: var(--text3); font-weight: 700; white-space: nowrap; }
.msg-compose-to {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text1);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 4px;
  outline: none;
}
.msg-compose-text {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--brd);
  border-radius: 2px;
  color: var(--text1);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  padding: 8px;
  outline: none;
  resize: none;
  line-height: 1.5;
}
.msg-compose-text:focus { border-color: var(--acc); }
.msg-compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-top: 1px solid var(--brd);
  background: var(--bg2);
  flex-shrink: 0;
}
.msg-compose-hint { font-size: 10px; color: var(--text3); }

/* Licznik nieprzeczytanych na przycisku ✉️ */
.msg-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  background: var(--acc);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  line-height: 1;
}
.msg-empty   { padding: 20px; text-align: center; font-size: 12px; color: var(--text3); }
.msg-loading { padding: 20px; text-align: center; font-size: 12px; color: var(--text3); }

/* ── Wybór serwera ── */
.srv-panel { width: 460px; }

.srv-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text2);
  text-align: center;
  margin-bottom: 4px;
}
.srv-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.srv-user-info {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  text-align: center;
  margin-bottom: 14px;
  padding: 5px;
  border-bottom: 1px solid var(--border);
}
.srv-user-info span { color: var(--gold); }

.srv-list { display: flex; flex-direction: column; gap: 8px; }

.srv-card {
  background: rgba(26, 26, 34, 0.6);
  border: 1px solid var(--border2);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.srv-card:hover { border-color: var(--acc); background: rgba(192,57,43,.07); }
.srv-card.srv-offline { opacity: .45; cursor: not-allowed; pointer-events: none; }

.srv-card-left { flex: 1; min-width: 0; }

.srv-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.srv-card-name .srv-badge-char {
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
  background: rgba(39,174,96,.2);
  border: 1px solid rgba(39,174,96,.4);
  color: #2ecc71;
  padding: 1px 6px;
  letter-spacing: .5px;
  font-weight: 400;
}
.srv-card-name .srv-badge-pending {
  font-size: 11px;
  font-family: 'Share Tech Mono', monospace;
  background: rgba(212,160,23,.15);
  border: 1px solid rgba(212,160,23,.4);
  color: var(--gold);
  padding: 1px 6px;
  letter-spacing: .5px;
  font-weight: 400;
}

.srv-card-desc {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}
.srv-card-wipe {
  font-size: 10px;
  color: var(--acc2);
  margin-top: 2px;
}
.srv-card-char-info {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #2ecc71;
  margin-top: 3px;
}

.srv-type-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 7px;
  border: 1px solid var(--border2);
  color: var(--text3);
  text-transform: uppercase;
  white-space: nowrap;
}
.srv-type-tag.wipeon  { border-color: rgba(192,57,43,.5); color: var(--acc2); }
.srv-type-tag.wipeoff { border-color: rgba(41,128,185,.5); color: #5dade2; }
.srv-type-tag.test    { border-color: rgba(212,160,23,.5); color: var(--gold); }

.srv-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.srv-status-dot.online      { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.srv-status-dot.maintenance { background: #e74c3c; box-shadow: 0 0 5px rgba(231,76,60,.6); }
.srv-status-dot.offline     { background: var(--border2); }

/* ── Pending screen ── */
.pending-icon {
  font-size: 48px;
  margin: 18px 0 12px;
  opacity: .7;
}
.pending-msg {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 8px;
}
.pending-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  line-height: 1.5;
}
.pending-nick {
  margin-top: 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  border: 1px solid rgba(212,160,23,.3);
  padding: 6px 12px;
  background: rgba(212,160,23,.07);
}

/* ── Utility classes — extracted from repeated inline styles ── */

/* Kolory tekstu */
.c-muted   { color: var(--text2); }
.c-dim     { color: var(--text3); }
.c-gold    { color: var(--gold); }

/* Licznik slotów w nagłówkach paneli (Plecak 3/6) */
.panel-count { font-size: 12px; color: var(--text2); margin-left: 6px; }

/* Komunikat błędu ładowania panelu */
.panel-error { padding: 24px; color: var(--acc); }

/* Drobny wyciszony tekst (podpisy, meta) */
.txt-sm-dim { color: var(--text3); font-size: 11px; }

/* Etykieta pola w popupach (suwak ilości) */
.field-lbl { font-size: 11px; color: var(--text3); display: block; margin-bottom: 6px; }

/* Wartość suwaka ilości (pogrubiona, wyróżniona) */
.qty-val { color: var(--text2); font-size: 14px; font-weight: bold; }

/* Suwak range w popupach ilości */
.qty-slider { width: 100%; accent-color: var(--acc2); cursor: pointer; }

/* Flex row z odstępem 8px */
.flex-gap { display: flex; gap: 8px; }

/* Kolumna zajmująca pełną wysokość */
.col-full { height: 100%; display: flex; flex-direction: column; }

/* Ikona UI inline — 13×13px obok tekstu */
.ui-ico { width: 13px; height: 13px; object-fit: contain; vertical-align: middle; margin-left: 2px; }

/* Ikona UI inline — 14×14px (honory, specyficzne miejsca) */
.ui-ico-honor { width: 14px; height: 14px; object-fit: contain; vertical-align: middle; margin-left: 2px; }

/* Duża ikona UI — 28×28px w kafelkach premium */
.ui-ico-lg { width: 28px; height: 28px; object-fit: contain; }

/* ── Ekran błędu połączenia z serwerem ────────────────────── */
.db-err-icon  { font-size: 36px; text-align: center; margin: 8px 0 14px; }
.db-err-title { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 3px; color: var(--acc); text-align: center; margin-bottom: 12px; }
.db-err-body  { font-size: 12px; color: var(--text2); text-align: center; line-height: 1.6; margin-bottom: 18px; border: 1px solid var(--border2); border-radius: 4px; padding: 12px 16px; background: rgba(0,0,0,.3); }
.db-err-retry { font-size: 11px; color: var(--text3); text-align: center; letter-spacing: 1px; }

/* ── Missions — nagłówki kolumn z tłem ────────────────────── */
.ms-col-title-wrap { padding: 14px 10px 6px; text-align: center; }
.ms-col-title      { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 3px; color: var(--white); text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.95), 0 0 16px rgba(0,0,0,.8); }
.ms-col-sub        { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--text); letter-spacing: 1px; margin-top: 4px; text-shadow: 0 1px 6px rgba(0,0,0,.95); }
.ms-col-bottom     { margin-top: auto; padding: 10px; }

/* ── Missions — popup wyboru misji ────────────────────────── */
.ms-popup-overlay               { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 9000; display: flex; align-items: center; justify-content: center; }
.ms-popup-row                   { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border2); }
.ms-popup-row--locked           { opacity: 0.65; }
.ms-popup-mission-title         { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 15px; color: var(--white); }
.ms-popup-mission-title--locked { color: var(--text2); }
.ms-popup-mission-desc          { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: var(--text2); margin-top: 3px; line-height: 1.4; }
.ms-popup-mission-desc--locked  { color: var(--text3); }
.ms-popup-sep                   { font-family: 'Share Tech Mono', monospace; font-size: 11px; letter-spacing: 2px; color: var(--text3); display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; }
.ms-popup-none                  { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--text3); padding: 12px 0; }

/* ── Shop — popupy (ammo / buy / sell) ────────────────────── */
.shop-popup-overlay    { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.shop-popup-card       { background: var(--surface); border: 1px solid var(--border2); border-radius: 4px; padding: 22px 26px; font-family: 'Share Tech Mono', monospace; }
.shop-popup-title      { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; color: var(--text2); margin-bottom: 12px; border-bottom: 1px solid var(--border2); padding-bottom: 8px; }
.shop-popup-btn-ok     { flex: 1; padding: 8px; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1px; background: var(--acc2); border: 1px solid var(--acc2); color: #fff; border-radius: 3px; cursor: pointer; }
.shop-popup-btn-cancel { padding: 8px 16px; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1px; background: transparent; border: 1px solid var(--border2); color: var(--text3); border-radius: 3px; cursor: pointer; }

/* ── Panel Base Upgrade — kafelki ulepszeń ────────────────── */
.bu-tile       { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 4px; flex-shrink: 0; }
.bu-tile-img   { width: 52px; height: 52px; flex-shrink: 0; border-radius: 3px; overflow: hidden; background: var(--bg3); }
.bu-tile-img--icon { display: flex; align-items: center; justify-content: center; font-size: 22px; }
.bu-tile-img img   { width: 100%; height: 100%; object-fit: cover; }
.bu-tile-info  { flex: 1; min-width: 0; }
.bu-tile-name-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.bu-tile-name  { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 18px; color: var(--white); letter-spacing: 0.5px; }
.bu-tile-level { font-family: 'Share Tech Mono', monospace; font-size: 12px; white-space: nowrap; }
.bu-tile-desc  { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--text3); line-height: 1.4; margin-top: 2px; }
.bu-tile-btns  { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }

