/* ============================================================
   THE SCRAP YARD — site.css
   Palette: Option 7 "Electric Cyan"
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Stencil+Display:wght@700;900&family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --black:  #0F1316;   /* Scrap Black  */
  --slate:  #233039;   /* Dark Slate   */
  --steel:  #6E7B83;   /* Steel Gray   */
  --cyan:   #11C7D9;   /* Electric Cyan*/
  --teal:   #0E8FA3;   /* Signal Teal  */
  --ice:    #E7F0F2;   /* Ice White    */

  --slate-2: #1A252C;
  --line: rgba(110,123,131,.25);
  --cyan-glow: rgba(17,199,217,.28);

  --f-display: 'Big Shoulders Stencil Display', 'Impact', sans-serif;
  --f-body: 'Barlow', system-ui, sans-serif;
  --f-cond: 'Barlow Condensed', 'Barlow', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max: 1180px;
  --hazard: repeating-linear-gradient(-45deg, var(--cyan) 0 10px, transparent 10px 20px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--ice);
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--ice); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--wide { max-width: 1800px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15,19,22,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ice); }
.brand img { height: 42px; width: auto; max-width: 46vw; object-fit: contain; display: block; }
.brand b { font-family: var(--f-display); font-weight: 900; font-size: 26px; letter-spacing: .04em; line-height: 1; }
.brand small { display: block; font-family: var(--f-cond); font-weight: 600; font-size: 11px; letter-spacing: .28em; color: var(--steel); text-transform: uppercase; }
.nav__links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__links a {
  font-family: var(--f-cond); font-weight: 600; font-size: 17px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel); padding: 8px 14px; border-radius: 3px;
}
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ice); }
.nav__links a[aria-current] { box-shadow: inset 0 -2px 0 var(--cyan); }
.nav__burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ice); width: 42px; height: 42px; border-radius: 3px; font-size: 20px; cursor: pointer; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-cond); font-weight: 700; font-size: 18px; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 3px; border: 1px solid var(--teal); color: var(--ice);
  background: linear-gradient(180deg, var(--slate) 0%, var(--slate-2) 100%);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { transform: translateY(-2px); border-color: var(--cyan); box-shadow: 0 8px 24px -8px var(--cyan-glow); color: var(--ice); }
.btn--cyan { background: linear-gradient(180deg, var(--cyan) 0%, var(--teal) 100%); color: var(--black); border-color: var(--cyan); }
.btn--cyan:hover, .nav__links a.btn--cyan, .nav__links a.btn--cyan:hover { color: var(--black); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.nav .btn { padding: 9px 18px; font-size: 15px; margin-left: 8px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 96px 24px 72px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(17,199,217,.14), transparent 70%),
    linear-gradient(180deg, #141b20 0%, var(--black) 100%);
}
.hero::before { /* hex mesh */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v32L28 63 2 48V16zM28 65l26 15v32M28 65 2 80v32' fill='none' stroke='%23233039' stroke-width='1.5'/%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 75%);
}
.hero::after { /* grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero > * { position: relative; }
.hero__eyebrow {
  font-family: var(--f-cond); font-weight: 600; font-size: 14px; letter-spacing: .4em; text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 16px; margin-bottom: 6px;
}
.hero__eyebrow::before, .hero__eyebrow::after { content: ""; width: 64px; height: 6px; background: var(--hazard); opacity: .7; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(760px, 88vw); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 16px 32px rgba(0,0,0,.7)); }
.hero p { color: var(--steel); font-size: 18px; margin: 20px auto 0; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.connect {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--f-mono); font-size: 14px; color: var(--steel); background: none; border: 1px dashed var(--line); padding: 8px 14px; border-radius: 3px;
}
.connect:hover { color: var(--ice); border-color: var(--steel); }
.connect::after { content: "copy"; font-family: var(--f-cond); letter-spacing: .15em; text-transform: uppercase; font-size: 11px; color: var(--cyan); }
.connect.copied::after { content: "copied ✓"; }

/* ---------- PAGE HEADER (stats/clans) ---------- */
.page-head { padding: 56px 24px 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #141b20, var(--black)); }
.page-head h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 8vw, 96px); line-height: .9; margin: 0; letter-spacing: .02em; }
.page-head p { color: var(--steel); margin: 10px 0 0; max-width: 620px; }

/* ---------- SECTIONS ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section__head h2 {
  font-family: var(--f-display); font-weight: 900; font-size: 44px; line-height: 1; margin: 0; letter-spacing: .02em;
  padding-left: 18px; position: relative;
}
.section__head h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; background: var(--hazard); }
.section__head .sub { font-family: var(--f-cond); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--steel); margin: 6px 0 0 18px; }
.section__head .more { font-family: var(--f-cond); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: 14px; }
.section__head .more::after { content: " →"; }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 0 40px; }
.summary div { background: var(--slate-2); padding: 18px 22px; }
.summary b { display: block; font-family: var(--f-mono); font-size: clamp(18px, 2.4vw, 30px); color: var(--cyan); line-height: 1.05; white-space: nowrap; }
.summary span { font-family: var(--f-cond); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--steel); }

/* ---------- PANEL (riveted) ---------- */
.panel {
  position: relative; background: var(--slate-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 60px -40px #000;
}
.panel::before, .panel::after, .panel > .rv::before, .panel > .rv::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8d9aa2, #2a363e 70%); box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.panel::before { top: 8px; left: 8px; } .panel::after { top: 8px; right: 8px; }
.panel > .rv::before { bottom: 8px; left: 8px; } .panel > .rv::after { bottom: 8px; right: 8px; }

.toolbar { display: flex; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; position: relative; }
.search input {
  width: 100%; background: var(--black); border: 1px solid var(--line); color: var(--ice); font: inherit;
  padding: 10px 14px 10px 40px; border-radius: 3px;
}
.search input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px var(--cyan-glow); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--steel); stroke-width: 2; }
.count { font-family: var(--f-mono); font-size: 13px; color: var(--steel); }
.count b { color: var(--cyan); font-weight: 700; }
.rule { font-family: var(--f-cond); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--steel); }
.rule b { font-family: var(--f-mono); letter-spacing: 0; color: var(--cyan); }
.rule b.neg { color: #e0665a; }

/* ---------- TABLE ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 12px 18px; text-align: left; white-space: nowrap; }
.tbl th {
  font-family: var(--f-cond); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--steel);
  background: var(--slate); border-bottom: 1px solid var(--line); user-select: none;
}
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--ice); }
.tbl th.asc::after { content: " ▲"; color: var(--cyan); font-size: 9px; }
.tbl th.desc::after { content: " ▼"; color: var(--cyan); font-size: 9px; }
.tbl tbody tr { border-bottom: 1px solid rgba(110,123,131,.12); transition: background .1s; }
.tbl tbody tr:last-child { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(17,199,217,.05); }
.tbl .num, .tbl th.num { text-align: right; font-family: var(--f-mono); font-size: 14px; }
.tbl .num--kda, .tbl .num--pts { color: var(--cyan); font-weight: 700; }
.td-name { width: 100%; font-weight: 600; font-size: 16px; }
.td-name a { color: var(--ice); display: inline-flex; align-items: center; gap: 10px; }
.td-name a:hover { color: var(--cyan); }
.rank { font-family: var(--f-mono); color: var(--steel); font-size: 14px; display: inline-block; min-width: 24px; }
.rank--top { color: var(--cyan); font-weight: 700; }
.tag {
  display: inline-block; font-family: var(--f-cond); font-weight: 700; font-size: 12px; letter-spacing: .12em;
  padding: 2px 7px; border: 1px solid var(--teal); color: var(--cyan); border-radius: 2px; line-height: 1.4;
}
.tag--none { border-color: var(--line); color: var(--steel); }
.empty { text-align: center; color: var(--steel); padding: 40px 18px !important; white-space: normal !important; }

.scroll-x { overflow-x: auto; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 24px; color: var(--steel); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 20px; font-family: var(--f-cond); letter-spacing: .15em; text-transform: uppercase; font-size: 13px; }
.footer nav a { color: var(--steel); } .footer nav a:hover { color: var(--cyan); }
.footer__stripe { height: 6px; background: var(--hazard); opacity: .35; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--black); border-bottom: 1px solid var(--line); padding: 12px; align-items: stretch; }
  .nav__links a { text-align: center; padding: 14px; }
  .nav .btn { margin: 8px 0 0; }
  body.nav-open .nav__links { display: flex; }
  .nav__burger { display: block; }
  .hero { padding: 48px 20px 40px; }
    .brand img { height: 30px; max-width: 52vw; }
  .summary { grid-template-columns: 1fr; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .section__head h2 { font-size: 36px; }
}

/* ---------- ACCOUNT ---------- */
.nav__links a.is-user { color: var(--cyan); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--danger { border-color: #7a3a34; }
.btn--danger:hover { border-color: #e0665a; box-shadow: 0 8px 24px -8px rgba(224,102,90,.35); }
.acct-cta { padding: 36px 28px; text-align: center; }
.acct-cta p { color: var(--steel); max-width: 520px; margin: 0 auto 22px; }
.acct-note { color: #e0665a; min-height: 1.5em; margin-top: 16px !important; }
.acct-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.acct-profile { display: flex; gap: 16px; align-items: center; padding: 22px 22px 8px; }
.acct-profile img { border-radius: 4px; background: var(--slate); border: 1px solid var(--line); }
.acct-name { font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; }
.acct-meta { font-family: var(--f-cond); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--steel); }
.summary--tight { margin: 14px 22px; }
.summary--tight div { padding: 12px 16px; } .summary--tight b { font-size: 22px; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.acct-row b { display: block; font-family: var(--f-cond); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.acct-h2 { font-family: var(--f-display); font-weight: 900; font-size: 30px; margin: 0; line-height: 1; }
.form { display: grid; gap: 12px; padding: 22px; }
.form label { display: grid; gap: 6px; font-family: var(--f-cond); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--steel); }
.form input { background: var(--black); border: 1px solid var(--line); color: var(--ice); font: inherit; padding: 10px 14px; border-radius: 3px; }
.form input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px var(--cyan-glow); }
.form .row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; } .form .row label { flex: 1; }
.form-note { color: var(--steel); font-size: 14px; margin: 0; }
.form-err { color: #e0665a; font-size: 14px; min-height: 1.2em; margin: 0; }
.roster { list-style: none; margin: 0; padding: 0; }
.roster li { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); }
.roster .who { flex: 1; font-weight: 600; } .roster .who small { display: block; color: var(--steel); font-weight: 400; font-family: var(--f-mono); font-size: 12px; }
.roster .role { font-family: var(--f-cond); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--cyan); }
.roster .acts { display: flex; gap: 6px; }
.roster .acts button { background: none; border: 1px solid var(--line); color: var(--steel); font-family: var(--f-cond); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; padding: 4px 8px; border-radius: 2px; cursor: pointer; }
.roster .acts button:hover { color: var(--ice); border-color: var(--cyan); }
.roster .acts button.danger:hover { color: #e0665a; border-color: #e0665a; }
.sub-h { font-family: var(--f-cond); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--steel); padding: 16px 22px 6px; border-top: 1px solid var(--line); }
.sub-h:first-child { border-top: 0; }
.acct-actions { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; }
.suggest { position: relative; }
.suggest ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 4px 0 0; padding: 0; list-style: none; background: var(--slate); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.suggest li { padding: 8px 12px; cursor: pointer; font-family: var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ice); }
.suggest li:hover { background: var(--slate-2); color: var(--cyan); }
@media (max-width: 900px) { .acct-grid { grid-template-columns: 1fr; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: .2s; z-index: 50;
  background: var(--slate); border: 1px solid var(--cyan); color: var(--ice); padding: 10px 18px; border-radius: 3px; font-family: var(--f-cond); letter-spacing: .08em; }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.bad { border-color: #e0665a; }
[hidden] { display: none !important; }

/* ---------- FACTIONS ---------- */
.fac { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--fac); box-shadow: 0 0 8px var(--fac); flex: none; }
.lf-who .fac, .tbl .fac { margin-right: 5px; }
.fac-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 22px 16px; }
.fac-btn { background: none; border: 1px solid var(--line); color: var(--steel); cursor: pointer; border-radius: 3px; padding: 7px 14px;
  font-family: var(--f-cond); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.fac-btn::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--fac, var(--steel)); }
.fac-btn:hover { color: var(--ice); border-color: var(--fac, var(--steel)); }
.fac-btn.on { color: var(--ice); border-color: var(--fac, var(--cyan)); box-shadow: inset 0 0 0 1px var(--fac, var(--cyan)), 0 0 16px -6px var(--fac, var(--cyan)); }
.fac-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-cond); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--ice); }
.fac-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--fac); box-shadow: 0 0 8px var(--fac); }

/* ---------- LIVE SERVERS ---------- */
.servers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 -6px; }
.srv { border: 1px solid var(--line); background: rgba(35,48,57,.55); border-radius: 3px; padding: 10px 16px; text-align: left; min-width: 190px; }
.srv__name { display: flex; align-items: center; gap: 8px; font-family: var(--f-cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.srv__dot { width: 7px; height: 7px; border-radius: 50%; background: #46d17a; box-shadow: 0 0 8px #46d17a; margin-left: auto; }
.srv--off .srv__dot { background: var(--steel); box-shadow: none; }
.srv--off { opacity: .55; }
.srv__meta { font-family: var(--f-mono); font-size: 12px; color: var(--steel); margin-top: 3px; }
.num--cash { color: #7ad1a8; }
.summary { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* ---------- FACTION STANDINGS ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.fac-card { position: relative; background: var(--slate-2); border: 1px solid var(--line); border-top: 3px solid var(--fac); border-radius: 4px; padding: 18px 20px 8px; overflow: hidden; }
.fac-card::after { content: ""; position: absolute; inset: -40% -60% auto auto; width: 220px; height: 220px; background: radial-gradient(circle, var(--fac), transparent 65%); opacity: .13; pointer-events: none; }
.fac-card__top { display: flex; align-items: baseline; gap: 10px; }
.fac-card__rank { font-family: var(--f-mono); color: var(--fac); font-size: 13px; }
.fac-card__name { font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: .02em; }
.fac-card__pts { font-family: var(--f-mono); font-size: 32px; color: var(--fac); line-height: 1; margin: 12px 0 14px; }
.fac-card__pts small { display: block; font-family: var(--f-cond); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); margin-top: 5px; }
.fac-card__rows { margin: 0; }
.fac-card__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(110,123,131,.15); }
.fac-card__rows dt { font-family: var(--f-cond); letter-spacing: .16em; text-transform: uppercase; font-size: 11px; color: var(--steel); margin: 0; }
.fac-card__rows dd { margin: 0; font-family: var(--f-mono); font-size: 13px; }
.fac-card__badge { margin-left: auto; font-family: var(--f-cond); letter-spacing: .16em; text-transform: uppercase; font-size: 10px; padding: 3px 8px; border-radius: 2px; border: 1px solid; }
.fac-card__badge.is-open { color: #7ad1a8; border-color: rgba(122,209,168,.5); }
.fac-card__badge.is-full { color: var(--steel); border-color: var(--line); }
.fac-btn.is-full { opacity: .5; }
.fac-btn.is-full:hover { opacity: .8; }

/* ---------- PLAYER PROFILE ---------- */
.profile-head { display: flex; align-items: center; gap: 20px; }
.profile-head img { border-radius: 4px; border: 1px solid var(--line); background: var(--slate); }
.profile-head h1 { font-size: clamp(38px, 6vw, 68px); margin: 0; }
.profile-head p { margin: 8px 0 0; color: var(--steel); font-family: var(--f-cond); letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.roster .who a { color: var(--ice); } .roster .who a:hover { color: var(--cyan); }
.srv__id { font-family: var(--f-mono); font-size: 11px; color: var(--steel); opacity: .8; margin-top: 2px; }
.srv__code { margin-top: 8px; font-family: var(--f-mono); font-weight: 700; font-size: 20px; color: var(--cyan); line-height: 1; }
.srv__code span { display: block; font-family: var(--f-cond); font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-top: 3px; }
.srv__code--long { font-size: 12px; word-break: break-all; line-height: 1.35; }

/* ---------- LEADERBOARD TABS ---------- */
.lb-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.lb-tab {
  font-family: var(--f-cond); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px;
  background: var(--slate-2); border: 1px solid var(--line); color: var(--steel);
  padding: 10px 22px; border-radius: 3px; cursor: pointer; transition: color .12s, border-color .12s;
}
.lb-tab:hover { color: var(--ice); border-color: var(--steel); }
.lb-tab.is-active { color: var(--black); background: linear-gradient(180deg, var(--cyan) 0%, var(--teal) 100%); border-color: var(--cyan); }

/* ---------- PAGER ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--line); }
.pager span { font-family: var(--f-mono); font-size: 13px; color: var(--steel); }
.pager .btn--sm:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }

/* ---------- MATCH SCOREBOARDS ---------- */
.match-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.match-pickers { display: flex; gap: 12px; flex-wrap: wrap; }
.match-pickers label { display: flex; flex-direction: column; gap: 5px; font-family: var(--f-cond); letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: var(--steel); }
.match-pickers select { background: var(--slate-2); border: 1px solid var(--line); color: var(--ice); font: inherit; padding: 9px 12px; border-radius: 3px; min-width: 200px; }
.match-pickers select:focus { border-color: var(--cyan); outline: none; }

.match-summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 26px; flex-wrap: wrap; margin-bottom: 20px; }
.match-summary__map { font-family: var(--f-display); font-weight: 900; font-size: 32px; line-height: 1; }
.match-summary__meta { font-family: var(--f-mono); font-size: 13px; color: var(--steel); margin-top: 8px; }
.match-hl { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 18px 4px; border-bottom: 1px solid var(--line); }
.hl-chip { font-family: var(--f-mono); font-size: 12px; color: var(--steel); white-space: nowrap; }
.hl-chip b { color: var(--cyan); font-weight: 700; margin-left: 2px; }
.hl-label { font-family: var(--f-cond); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 10px; color: var(--fac, var(--cyan)); margin-right: 6px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0665a; box-shadow: 0 0 8px #e0665a; margin-right: 4px; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.match-scores { display: flex; gap: 14px; flex-wrap: wrap; }
.score-card { min-width: 140px; }
.score-card__name { font-family: var(--f-cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--fac); }
.score-card.is-winner .score-card__name { text-shadow: 0 0 12px var(--fac); }
.score-card__value { font-family: var(--f-mono); font-size: 28px; font-weight: 700; line-height: 1.2; }
.score-card__bar { height: 4px; background: var(--slate); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.score-card__bar span { display: block; height: 100%; background: var(--fac); }

.match-factions { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.match-faction { border-top: 3px solid var(--fac); }
.match-faction__head { display: flex; align-items: baseline; gap: 8px; padding: 16px 20px; font-family: var(--f-cond); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; border-bottom: 1px solid var(--line); }
.match-faction__head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fac); box-shadow: 0 0 6px var(--fac); }
.match-faction__sub { margin-left: auto; font-family: var(--f-mono); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; color: var(--steel); }
.match-faction .tbl th, .match-faction .tbl td { padding: 9px 14px; font-size: 13px; }

/* ---------- OFFLINE / STALE-DATA BANNER ---------- */
.offline-banner {
  background: linear-gradient(180deg, #2b2010, #1f1a0e);
  border-bottom: 1px solid #e0a35a;
  color: #e0a35a;
  font-family: var(--f-cond); font-weight: 600; letter-spacing: .06em; font-size: 13px;
  text-align: center; padding: 10px 16px;
}

/* ---------- LIVE KILL FEED + WARS ---------- */
.live-feed { padding: 6px 0; max-height: 340px; overflow-y: auto; }
.lf-row { display: flex; gap: 14px; align-items: baseline; padding: 7px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.lf-row:last-child { border-bottom: 0; }
.lf-ago { font-family: var(--f-mono); font-size: 11px; color: var(--steel); min-width: 34px; text-align: right; }
.lf-who a { color: var(--ice); text-decoration: none; }
.lf-who a:hover { color: var(--cyan); }
.lf-arrow { color: var(--steel); margin: 0 4px; }
.lf-meta { margin-left: auto; font-family: var(--f-mono); font-size: 12px; color: var(--steel); white-space: nowrap; }
.lf-hs { color: var(--cyan); }
.war-score { margin-left: auto; font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.war-score b { color: var(--cyan); }

/* ---------- PLAYER COMBAT RECORD ---------- */
.combat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; padding: 4px 2px; }
.combat-cell { min-width: 0; }
.combat-cell h3 { font-family: var(--f-cond); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; color: var(--steel); margin: 0 0 10px; }
.combat-rank { list-style: none; margin: 0; padding: 0; counter-reset: cr; }
.combat-rank li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.combat-rank li a, .cb-weapon { min-width: 0; overflow-wrap: anywhere; }
.combat-rank li:last-child { border-bottom: 0; }
.combat-rank li::before { counter-increment: cr; content: counter(cr) "."; color: var(--steel); font-family: var(--f-mono); font-size: 12px; margin-right: 4px; }
.combat-rank li a { color: var(--ice); text-decoration: none; flex: 1; }
.combat-rank li a:hover { color: var(--cyan); }
.combat-rank li span { font-family: var(--f-mono); font-size: 12px; color: var(--steel); white-space: nowrap; }
.cb-weapon { flex: 1; color: var(--ice); }
.combat-figures { display: flex; flex-direction: column; gap: 14px; }
.cb-fig { display: flex; flex-direction: column; gap: 2px; }
.cb-fig b { font-family: var(--f-mono); font-size: 22px; color: var(--cyan); line-height: 1.05; white-space: nowrap; }
.cb-fig span { font-family: var(--f-cond); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; color: var(--steel); }

/* ---------- LAST KILL ---------- */
.lastkill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.lk-cell { background: var(--slate-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 5px; }
.lk-label { font-family: var(--f-cond); letter-spacing: .12em; text-transform: uppercase; font-size: 10px; color: var(--steel); }
.lk-val { font-family: var(--f-mono); font-size: 14px; color: var(--ice); }
.lk-val a { color: var(--ice); text-decoration: none; }
.lk-val a:hover { color: var(--cyan); }
