:root {
  --bg: #0b1016;
  --panel: #121a24;
  --panel-2: #172231;
  --line: #223044;
  --text: #e6edf3;
  --muted: #8b9bb0;
  --accent: #4ea1ff;
  --green: #3fb950;
  --red: #f85149;
  --amber: #d29922;
  --gold: #e3b341;
  --silver: #c0c8d2;
  --bronze: #d08b54;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #14304f 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 900px; margin: 0 auto; padding: 28px 16px 48px; }

header.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
header.top h1 { margin: 0; font-size: 26px; letter-spacing: .3px; }
header.top h1 a { color: inherit; }
header.top h1 a:hover { text-decoration: none; }
header.top h1 span { color: var(--accent); }
header.top .sub { color: var(--muted); font-size: 13px; }
.updated { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(63,185,80,.6); animation: pulse 2s infinite; }
.pulse.stale { background: var(--amber); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63,185,80,0); } 100% { box-shadow: 0 0 0 0 rgba(63,185,80,0); } }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; overflow: hidden; }
.card.off { opacity: .75; }
.head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: #0e151e; border: 1px solid var(--line); }
.icon img.gicon { width: 34px; height: 34px; object-fit: contain; }
.icon img.gicon-cs { width: 36px; height: 36px; }
.icon img.gicon-mc { width: 48px; height: 48px; border-radius: 12px; image-rendering: pixelated; }
.icon:has(.gicon-mc) { overflow: hidden; padding: 0; }
.wimg { height: 22px; max-width: 70px; object-fit: contain; vertical-align: middle; margin-right: 10px; }
.mimg { width: 34px; height: 26px; object-fit: contain; vertical-align: middle; margin-right: 10px; }
.wcell { display: flex; align-items: center; }
.wcell .wimgbox { width: 80px; flex: none; display: flex; justify-content: flex-start; }
.favimg { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-height: 86px; }
.favimg img.big-w { max-height: 64px; max-width: 200px; object-fit: contain; }
.favimg img.big-m { width: 107px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.favimg img.big-m.is-radar { width: auto; height: auto; max-height: 80px; max-width: 120px; object-fit: contain; border: none; }
.head.has-thumb { grid-template-columns: auto 1fr auto auto; }
.mthumbbox { height: 56px; width: 75px; display: grid; place-items: center; background: #0e151e; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mthumb { width: 100%; height: 100%; object-fit: cover; }          /* скриншот: заполняет рамку 4:3 */
.mthumb.is-radar { width: auto; height: auto; max-height: 50px; max-width: 70px; object-fit: contain; }
.title { min-width: 0; }
.title h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid; }
.pill.on { color: var(--green); border-color: rgba(63,185,80,.4); background: rgba(63,185,80,.08); }
.pill.off { color: var(--red); border-color: rgba(248,81,73,.4); background: rgba(248,81,73,.08); }
.pill.wait { color: var(--amber); border-color: rgba(210,153,34,.4); background: rgba(210,153,34,.08); }
.meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.meta b { color: var(--text); font-weight: 600; }
.addr { display: inline-flex; align-items: center; gap: 6px; }
code { font: 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); background: #0e151e; border: 1px solid var(--line); padding: 4px 7px; border-radius: 7px; }
.btn { cursor: pointer; font: inherit; font-size: 12px; color: var(--accent); background: none; border: 1px solid rgba(78,161,255,.35); border-radius: 7px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { background: rgba(78,161,255,.1); text-decoration: none; }
.btn.big { font-size: 14px; padding: 8px 14px; border-radius: 9px; }
.count { text-align: right; }
.count .num { font-size: 26px; font-weight: 700; line-height: 1; }
.count .num small { font-size: 15px; color: var(--muted); font-weight: 500; }
.bar { width: 120px; height: 6px; background: #0e151e; border-radius: 99px; margin-top: 8px; overflow: hidden; margin-left: auto; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 99px; transition: width .4s; }

.body { border-top: 1px solid var(--line); padding: 6px 18px 14px; }
.section-title { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; margin: 14px 0 6px; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 7px 8px; text-align: right; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--line); }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--text); }
th.sort.active { color: var(--accent); }
td { border-bottom: 1px solid rgba(34,48,68,.6); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(78,161,255,.04); }
th.l, td.l { text-align: left; }
td.name { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
td.name a { color: var(--text); }
td.name a:hover { color: var(--accent); }
.who { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; }
.who .nm { overflow: hidden; text-overflow: ellipsis; }
.flag { font-size: 17px; line-height: 1; }
.steam { display: inline-flex; width: 16px; height: 16px; flex: none; opacity: .75; }
.steam:hover { opacity: 1; }
.steam svg { width: 16px; height: 16px; fill: #c7d5e0; }
.kd.good { color: var(--green); } .kd.bad { color: var(--red); }
.rank { font-weight: 700; color: var(--muted); }
.rank.r1 { color: var(--gold); } .rank.r2 { color: var(--silver); } .rank.r3 { color: var(--bronze); }
.ping.hi { color: var(--amber); } .ping.vhi { color: var(--red); }
.empty { color: var(--muted); padding: 14px 0 6px; text-align: center; }
.note { color: var(--muted); font-size: 12px; margin-top: 8px; }
.more { display: flex; justify-content: center; margin: 12px 0 4px; }
.lvl { font-size: 11px; color: var(--accent); border: 1px solid rgba(78,161,255,.3); border-radius: 5px; padding: 0 5px; margin-left: 2px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { cursor: pointer; font: inherit; font-size: 14px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 7px 14px; }
.tab.active { color: var(--text); border-color: var(--accent); background: rgba(78,161,255,.08); }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; }
input.search { font: inherit; color: var(--text); background: #0e151e; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; width: 240px; max-width: 100%; }
input.search:focus { outline: none; border-color: var(--accent); }

.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px; }
.avatar { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 34px; background: #0e151e; border: 1px solid var(--line); }
.hero h2 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-word; }
.bigrank { text-align: right; }
.bigrank .num { font-size: 30px; font-weight: 800; line-height: 1; }
.bigrank .lbl { color: var(--muted); font-size: 12px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: #0e151e; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.stat .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: 12px; }
.fav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.fav .stat .v { font-size: 18px; }
.share { height: 6px; background: #0e151e; border-radius: 99px; overflow: hidden; min-width: 80px; }
.share i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.body-hits { display: grid; grid-template-columns: 110px 1fr 70px; gap: 6px 10px; align-items: center; font-size: 13px; }
.body-hits .share { height: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

footer { color: var(--muted); font-size: 12px; text-align: center; margin-top: 26px; }

@media (max-width: 640px) {
  .wrap { padding-top: 18px; }
  header.top h1 { font-size: 22px; }
  .head, .hero { grid-template-columns: auto 1fr; }
  .head.has-thumb { grid-template-columns: auto 1fr auto; }
  .mthumbbox { width: 60px; height: 46px; }
  .mthumb { max-height: 40px; max-width: 56px; }
  .count, .bigrank { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .bar { margin: 0; width: 45%; }
  .hide-sm { display: none; }
  td.name { max-width: 150px; }
  th, td { padding: 7px 6px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .two, .fav { grid-template-columns: 1fr; }
  input.search { width: 100%; }
}
