/* ═══════════════════════════════════════════════
   NOSTALGIA BR · style.css (High Readability)
   ═══════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --bg:           #0b111e;
  --bg-card:      #121b2d;
  --bg-hover:     #19273f;
  --bg-raised:    #182337;
  --bg-input:     #0e1626;

  --border:       #22344f;
  --border-hi:    #3b82f6;
  --border-light: #2c4263;

  --txt:   #ffffff;
  --txt-2: #cbd5e1;
  --txt-3: #8da0b8;

  --gold:   #f59e0b;
  --silver: #cbd5e1;
  --bronze: #d97706;
  --green:  #10b981;
  --blue:   #3b82f6;
  --red:    #f43f5e;
  --orange: #f97316;
  --cyan:   #06b6d4;
  --purple: #c084fc;

  --r:  8px;
  --rl: 14px;

  --ease: cubic-bezier(.16,1,.3,1);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a      { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
select { font-family: inherit; }
code   { font-family: 'JetBrains Mono', monospace; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }

/* ─── NAV ────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,17,30,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 58px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
  height: 100%;
  display: flex; align-items: center; gap: 12px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 800; letter-spacing: -.4px;
  flex-shrink: 0;
}
.brand b { color: var(--gold); }
.brand-dot {
  width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}
.nav-status {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 100px; padding: 5px 14px;
  font-size: 13px; font-weight: 600; color: var(--txt-2);
  margin-left: auto;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 320px;
}
.status-led {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .3; } }

.btn-play {
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 7px 16px; border-radius: var(--r);
  display: flex; align-items: center; gap: 6px;
  transition: opacity .15s, transform .1s;
  flex-shrink: 0;
}
.btn-play:hover { opacity: .9; transform: translateY(-1px); }

/* ─── HERO ───────────────────────────────────── */
.hero {
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(37,99,235,.15) 0%, transparent 70%);
  padding: 44px 16px 36px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 340px; gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: inline-block;
}

.hero-title {
  font-size: 44px; font-weight: 900; line-height: 1.1;
  letter-spacing: -.8px; margin-bottom: 10px;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  font-size: 15px; color: var(--txt-2); max-width: 520px;
  margin-bottom: 18px; line-height: 1.5;
}

.connect-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r);
  padding: 6px 6px 6px 14px;
  margin-bottom: 16px;
  max-width: 100%;
}
.connect-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
}
.btn-copy {
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
}
.btn-copy:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.badge {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  color: var(--txt-2);
}
.badge-yellow { color: #fde68a; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.1); }
.badge-blue   { color: #bfdbfe; border-color: rgba(59,130,246,.4); background: rgba(59,130,246,.1); }
.badge-green  { color: #a7f3d0; border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.1); }
.badge-red    { color: #fecdd3; border-color: rgba(244,63,94,.4);  background: rgba(244,63,94,.1); }


/* SERVER CARD */
.server-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--rl); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.sc-row { display: flex; justify-content: space-between; align-items: center; }
.sc-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--txt-3); flex-shrink: 0;
}
.sc-val { font-size: 14px; font-weight: 700; color: var(--txt); text-align: right; word-break: break-all; }
.sc-val.mono { font-family: 'JetBrains Mono', monospace; color: var(--cyan); }
.sc-ok { color: var(--green); }
.sc-divider { height: 1px; background: var(--border); }

/* ─── MAIN ───────────────────────────────────── */
.main {
  max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px;
}

/* SEARCH */
.search-wrap { margin-bottom: 20px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border: 1.5px solid var(--border-light);
  border-radius: var(--r); padding: 0 14px;
  transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--border-hi); }
.search-ico { width: 18px; height: 18px; color: var(--txt-3); flex-shrink: 0; }
.search-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--txt); font-size: 15px; padding: 13px 0;
  min-width: 0;
}
.search-box input::placeholder { color: var(--txt-3); }
.search-clear { color: var(--txt-3); font-size: 14px; padding: 4px; display: none; }
.search-clear:hover { color: var(--txt); }

/* PLAYER DRAWER */
.player-drawer {
  background: linear-gradient(135deg, var(--bg-raised) 0%, var(--bg-card) 100%);
  border: 1.5px solid var(--border-hi);
  border-radius: var(--rl); padding: 22px;
  margin-bottom: 20px;
  animation: slideIn .2s var(--ease);
}
@keyframes slideIn { from { opacity:0; transform:translateY(-6px); } }

.pd-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 16px;
  gap: 12px;
}
.pd-info { display: flex; align-items: flex-start; gap: 12px; }
.pd-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-raised); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.pd-name { font-size: 19px; font-weight: 800; color: #fff; word-break: break-word; }
.pd-id {
  font-size: 12px; color: var(--txt-3);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 3px;
  word-break: break-all;
  white-space: normal;
}
.pd-close {
  background: var(--bg-raised); border: 1px solid var(--border-light);
  color: var(--txt-2); font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 6px; flex-shrink: 0;
}
.pd-close:hover { color: #fff; }

.pd-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }
.pd-stat {
  background: var(--bg-input); border: 1px solid var(--border-light);
  border-radius: var(--r); padding: 14px 10px; text-align: center;
}
.pd-stat-lbl { font-size: 11px; font-weight: 700; color: var(--txt-3); letter-spacing: .05em; text-transform: uppercase; }
.pd-stat-val { font-size: 26px; font-weight: 900; font-family: 'JetBrains Mono', monospace; margin-top: 4px; }

.pd-history { margin-top: 14px; }
.pd-history-title { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.pd-history-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-hist-chip {
  background: var(--bg-input); border: 1px solid var(--border-light);
  border-radius: 6px; padding: 6px 12px; font-size: 12px; color: var(--txt-2);
}
.pd-hist-chip b { color: #fff; }

/* TABS */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-size: 14px; font-weight: 700; color: var(--txt-2);
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  white-space: nowrap; flex-shrink: 0;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-bottom-color: var(--blue); }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .18s var(--ease); }
@keyframes fadeUp { from { opacity:0; transform:translateY(5px); } }

/* ── RANK TOOLBAR ── */
.rank-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--rl);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-bottom: 20px;
}
.rank-toolbar-left {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.toolbar-hint {
  font-size: 12px; font-weight: 700; color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em;
}
.season-label {
  font-size: 16px; font-weight: 800; color: var(--gold);
}
.rank-toolbar-right {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.season-select-label {
  font-size: 12px; font-weight: 700; color: var(--txt-3);
}
.season-select {
  background: var(--bg-raised); border: 1.5px solid var(--border-light);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 8px 14px; border-radius: var(--r);
  outline: none; cursor: pointer;
  transition: border-color .15s;
}
.season-select:focus { border-color: var(--border-hi); }
.season-select optgroup {
  background: var(--bg-card); color: var(--gold); font-weight: 800;
}
.season-select option {
  background: var(--bg-input); color: var(--txt); font-weight: 600; padding: 6px;
}

/* PODIUM */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px; align-items: flex-end;
  margin-bottom: 24px;
}
.podium-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--rl); padding: 22px 14px 18px;
  text-align: center; cursor: pointer; position: relative;
  transition: transform .2s var(--ease), border-color .15s;
}
.podium-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.podium-1 { border-color: rgba(245,158,11,.5); background: linear-gradient(180deg,rgba(245,158,11,.12) 0%,var(--bg-card) 100%); }
.podium-2 { border-color: rgba(203,213,225,.3); }
.podium-3 { border-color: rgba(217,119,6,.35); }
.podium-crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 24px; }
.podium-medal { font-size: 34px; margin-bottom: 8px; display: block; }
.podium-place {
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px; display: inline-block; margin-bottom: 8px;
}
.place-1 { background: var(--gold);   color: #000; font-weight: 900; }
.place-2 { background: var(--silver); color: #000; font-weight: 900; }
.place-3 { background: var(--bronze); color: #fff; font-weight: 900; }
.podium-name {
  font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.podium-score { font-size: 28px; font-weight: 900; font-family: 'JetBrains Mono', monospace; }
.podium-unit  { font-size: 11px; color: var(--txt-3); font-weight: 700; text-transform: uppercase; margin-top: 2px; }

/* CARD */
.card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--rl); overflow: hidden; margin-bottom: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 8px;
  background: var(--bg-raised);
}
.card-title { font-size: 16px; font-weight: 800; color: #fff; }
.card-count { font-size: 13px; font-weight: 700; color: var(--txt-3); font-family: 'JetBrains Mono', monospace; flex-shrink: 0; }
.live-refresh-tag { font-size: 12px; color: var(--txt-3); font-weight: 600; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--txt-2);
  background: #152033;
  white-space: nowrap;
}

.data-table th.ta-r,
.data-table td.ta-r { text-align: right; }

.data-table tbody tr {
  transition: background .12s; cursor: pointer;
}
.data-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,0.015);
}
.data-table tbody tr:hover td {
  background: rgba(59,130,246,0.14) !important;
}
.data-table tbody tr:last-child td { border-bottom: none; }

.empty {
  text-align: center !important; padding: 40px 16px !important;
  color: var(--txt-3); cursor: default;
  white-space: normal !important;
  font-size: 14px;
}

/* rank # column */
.col-rank { width: 50px; text-align: center !important; }

/* Player cell */
.player-cell { min-width: 150px; }
.player-name { font-size: 14px; font-weight: 700; color: #fff; word-break: break-word; }
.player-id {
  font-size: 11px; color: var(--txt-3);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  word-break: break-all;
  white-space: normal;
}

/* rank badge */
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 12px; font-weight: 900;
}
.rk-1 { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #000; box-shadow: 0 0 8px rgba(245,158,11,.3); }
.rk-2 { background: linear-gradient(135deg, #cbd5e1, #e2e8f0); color: #000; }
.rk-3 { background: linear-gradient(135deg, #b45309, #d97706); color: #fff; }
.rk-n {
  background: #162237; border: 1px solid var(--border-light);
  color: var(--txt-2); font-size: 12px; font-weight: 700;
}

/* score values */
.score-val    { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 15px; }
.score-gold   { color: var(--gold); }
.score-red    { color: var(--red); }
.score-cyan   { color: var(--cyan); }
.score-purple { color: var(--purple); }

/* ── Sortable column headers ── */
.th-sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.th-sort:hover { color: #fff; background: var(--bg-hover); }
.sort-ico {
  font-size: 11px; margin-left: 4px;
  opacity: 0.4; transition: opacity .15s;
}

/* ── Desktop table / Mobile card switching ── */
.desktop-table { display: block; }
.rank-cards    { display: none; }

/* ── Mobile rank card items ── */
.rank-card-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; gap: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .12s;
}
.rank-card-item:nth-child(even) { background: rgba(255,255,255,0.015); }
.rank-card-item:last-child { border-bottom: none; }
.rank-card-item:hover      { background: rgba(59,130,246,0.12); }

.rci-left {
  display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1;
}
.rci-info { display: flex; flex-direction: column; gap: 2px; }
.rci-date {
  font-size: 11px; color: var(--txt-3); margin-top: 3px;
}
.rci-date b { color: var(--txt-2); }
.rci-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px; flex-shrink: 0; align-items: center;
}
.rci-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 8px; border-radius: 6px; min-width: 54px;
  background: var(--bg-raised); border: 1px solid var(--border);
}
.rci-stat-lbl {
  font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--txt-3);
}
.rci-stat b {
  font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 13px; margin-top: 1px;
}

/* ── Dual Tables (Top 10 / Bottom 10 / Annual) ── */
.dual-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* ── Annual Championship ── */
.annual-banner {
  background: linear-gradient(135deg, rgba(245,158,11,.14) 0%, rgba(37,99,235,.14) 100%);
  border: 1px solid rgba(245,158,11,.4);
  border-radius: var(--rl);
  padding: 20px 24px;
  margin-bottom: 22px;
}
.annual-banner-title {
  font-size: 19px; font-weight: 800; color: #fff; margin-bottom: 8px;
}
.annual-banner-desc {
  font-size: 13px; color: var(--txt-2);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}

.annual-podiums-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.annual-podium-card {
  margin-bottom: 0 !important;
}
.podium-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 10px;
  padding: 18px 14px;
  align-items: flex-end;
}
.podium-mini-card {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 16px 8px 14px;
  text-align: center;
  position: relative;
  transition: transform .15s;
}
.podium-mini-card:hover { transform: translateY(-3px); }
.podium-mini-1 { border-color: rgba(245,158,11,.5); background: linear-gradient(180deg, rgba(245,158,11,.14) 0%, var(--bg-input) 100%); }
.podium-mini-2 { border-color: rgba(203,213,225,.3); }
.podium-mini-3 { border-color: rgba(217,119,6,.35); }
.podium-mini-medal { font-size: 26px; margin-bottom: 4px; display: block; }
.podium-mini-name { font-size: 14px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-mini-pts { font-size: 20px; font-weight: 900; font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.podium-mini-sub { font-size: 11px; color: var(--txt-3); text-transform: uppercase; font-weight: 700; margin-top: 2px; }

/* Annual months highlights */
.annual-months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 18px;
}
.month-card {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 16px;
}
.month-card-title {
  font-size: 15px; font-weight: 800; color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.month-sec-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--txt-3); margin-top: 8px; margin-bottom: 4px;
}
.month-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 4px 0; color: var(--txt-2);
}
.month-item b { color: #fff; }

/* ── LIVE ── */
.live-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--rl); padding: 18px 22px;
  margin-bottom: 18px; flex-wrap: wrap; gap: 14px;
}
.live-info { display: flex; align-items: center; gap: 14px; }
.live-dot-wrap {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--green);
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); box-shadow: 0 0 7px var(--green);
  animation: pulse 2s infinite;
}
.live-map { font-size: 22px; font-weight: 900; font-family: 'JetBrains Mono', monospace; color: var(--cyan); word-break: break-all; }
.live-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.live-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.live-stat span { font-size: 11px; font-weight: 700; color: var(--txt-3); text-transform: uppercase; letter-spacing: .06em; }
.live-stat b { font-size: 22px; font-family: 'JetBrains Mono', monospace; font-weight: 900; color: #fff; }

/* ── WEAPONS ── */
.section-header { margin-bottom: 20px; }
.section-header h2 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.section-header p  { font-size: 14px; color: var(--txt-2); }

.weapons-note {
  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--r); padding: 12px 16px;
  font-size: 13px; color: #fde68a; margin-bottom: 20px; line-height: 1.5;
}
.weapons-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px;
}
.wep-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--r); padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .12s, border-color .15s;
}
.wep-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.wep-lv   { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.wep-name { font-size: 16px; font-weight: 800; color: #fff; }
.wep-cat  { font-size: 11px; color: var(--txt-3); font-weight: 700; text-transform: uppercase; }
.wep-desc { font-size: 12px; color: var(--txt-2); margin-top: 4px; line-height: 1.35; }
.wep-he   { border-color: rgba(249,115,22,.4); background: linear-gradient(135deg,rgba(249,115,22,.1) 0%,var(--bg-card) 100%); }
.wep-knife{ border-color: rgba(245,158,11,.5); background: linear-gradient(135deg,rgba(245,158,11,.14) 0%,var(--bg-card) 100%); }

/* ── BANS ── */
.ban-filter { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ban-pill {
  font-size: 13px; font-weight: 700; color: var(--txt-2);
  background: var(--bg-card); border: 1px solid var(--border-light);
  padding: 6px 16px; border-radius: 100px;
  transition: all .15s;
}
.ban-pill:hover { color: #fff; border-color: var(--blue); }
.ban-pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.type-tag {
  font-size: 11px; font-weight: 800; padding: 3px 9px;
  border-radius: 4px; display: inline-block; letter-spacing: .05em;
}
.tt-ban   { background: rgba(244,63,94,.18); color: #fda4af; }
.tt-mute  { background: rgba(245,158,11,.18); color: #fde68a; }
.tt-gag   { background: rgba(168,85,247,.18); color: #e9d5ff; }
.tt-unban { background: rgba(16,185,129,.18); color: #a7f3d0; }

.status-active  { font-size: 12px; font-weight: 700; color: var(--red); }
.status-expired { font-size: 12px; color: var(--txt-3); }

/* ── RULES ── */
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--rl); padding: 22px 20px;
}
.rule-num { font-size: 28px; font-weight: 900; color: var(--gold); font-family: 'JetBrains Mono', monospace; margin-bottom: 8px; }
.rule-card h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.rule-card p  { font-size: 14px; color: var(--txt-2); line-height: 1.5; }
.rule-red .rule-num    { color: var(--red); }
.rule-orange .rule-num { color: var(--orange); }
.rule-cyan .rule-num   { color: var(--cyan); }
.rule-green .rule-num  { color: var(--green); }
.rule-purple .rule-num { color: var(--purple); }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 24px 16px;
  font-size: 13px; color: var(--txt-3);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: var(--r);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Hide helpers */
@media (max-width: 1024px) { .hide-md { display: none !important; } }
@media (max-width: 640px)  { .hide-sm { display: none !important; } }

/* Tablet */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .server-card { display: grid; grid-template-columns: 1fr 1fr; }
  .sc-divider  { display: none; }
  .podium { grid-template-columns: 1fr 1fr 1fr; }
  .podium-crown { display: none; }
  .pd-stats { grid-template-columns: 1fr 1fr; }
  .dual-tables-grid { grid-template-columns: 1fr; }
  .annual-podiums-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  /* Nav */
  .nav-status { max-width: 160px; font-size: 11px; padding: 4px 9px; }
  .btn-play   { font-size: 12px; padding: 6px 12px; }

  /* Hero */
  .hero { padding: 32px 16px 28px; }
  .hero-title { font-size: 34px; }
  .hero-sub   { font-size: 14px; }
  .hero-badges { gap: 5px; }
  .badge { font-size: 10px; }

  /* Server card full-width stacked */
  .server-card { grid-template-columns: 1fr; }
  .sc-divider  { display: block; }

  /* Podium stacked */
  .podium { grid-template-columns: 1fr; gap: 10px; }
  .podium-card { padding: 16px 12px 14px; }
  .podium-medal { font-size: 26px; }
  .podium-score { font-size: 22px; }

  /* Ranking: hide table, show cards */
  .desktop-table { display: none !important; }
  .rank-cards    { display: block !important; }

  /* Player drawer */
  .pd-head   { flex-direction: column; }
  .pd-stats  { grid-template-columns: 1fr 1fr; }

  /* Rank toolbar stacks */
  .rank-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rank-toolbar-left, .rank-toolbar-right { width: 100%; justify-content: space-between; }
  .season-select { width: 100%; }

  /* Tabs smaller text */
  .tab { font-size: 13px; padding: 10px 12px; }

  /* Rules single col */
  .rules-grid { grid-template-columns: 1fr; }

  /* Weapons 2-col */
  .weapons-grid { grid-template-columns: 1fr 1fr; }

  /* Footer stack */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Live header stacks */
  .live-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .live-stats  { gap: 16px; }
  .live-stat   { align-items: flex-start; }
}

/* Very small screens */
@media (max-width: 380px) {
  .hero-title  { font-size: 28px; }
  .weapons-grid { grid-template-columns: 1fr; }
  .pd-stats    { grid-template-columns: 1fr 1fr; }
}
