/* Ladder. Минимализм: спокойный тёмный (или светлый) фон, золото — для «тебя» и главных кнопок,
   синие против красных. На компьютере меню слева, на телефоне — круглые кнопки сверху. */
:root {
  --bg: #0b0b0d; --side: #0b0b0d; --surface: #141417; --surface-2: #1c1c21; --line: #26262c;
  --fg: #f5f5f7; --muted: #8b8b95;
  --gold: #f5f5f7; --gold-ink: #0b0b0d; /* главный цвет: монохром — белые кнопки (имя «gold» осталось с прошлого оформления) */
  --blue: #5590ff; --red: #f25b62; --ok: #41c98b; --orange: #ff8a3d;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: var(--f-body);
  --side-w: 228px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f4f6; --side: #ffffff; --surface: #ffffff; --surface-2: #f0f0f3; --line: #e3e3e8;
    --fg: #111114; --muted: #66666f; --gold: #111114; --gold-ink: #ffffff;
    --blue: #2463e6; --red: #d83a43; --ok: #11905a; --orange: #c25510;
    color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--fg); margin: 0; }
body { font: 450 15px/1.5 var(--f-body); font-variant-numeric: tabular-nums; min-height: 100vh; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
p { margin: 0; }

/* ---------- каркас: шапка / боковое меню ---------- */
.side { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand me"; align-items: center; column-gap: 12px;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); margin-top: env(safe-area-inset-top, 0px); }
.brand { grid-area: brand; display: flex; flex-direction: column; text-decoration: none; min-width: 0; height: 58px; justify-content: center; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -.01em; line-height: 1; }
.logo em { font-style: normal; color: var(--muted); }
.sub { display: none; }
#meChip { grid-area: me; }
.tabs { display: flex; }
.tab { position: relative; text-decoration: none; color: var(--muted); font-weight: 650; white-space: nowrap; min-width: 0; }
.tab svg { display: none; }
/* Телефон: вкладки — нижняя панель, прикреплённая к низу экрана (как в приложениях). Наверху остаются только логотип и аватарка,
   поэтому баннер профиля ничем не закрыт. */
@media (max-width: 999px) {
  .tabs { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; gap: 2px;
    padding: 5px max(6px, env(safe-area-inset-right, 0px)) calc(5px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
    background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 4px; border-radius: 12px; font-size: 11px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; }
  .tab svg { display: block; width: 23px; height: 23px; flex: none; }
  .tab[aria-current="page"] { color: var(--fg); }
  .tab[aria-current="page"] svg { color: var(--gold); }
  .tab .tl { display: inline; }
  /* Пока печатаешь (ник, причина, поиск), панель прячется — не закрывает поле и клавиатуру */
  body:has(#app :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select):focus) .tabs { display: none; }
  /* Место под панель внизу страницы */
  .sitefoot { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 359px) { .tab { font-size: 10px; } .tab svg { width: 21px; height: 21px; } }
.mechip { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mechip .mc-t { display: none; }
.page { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { display: flex; flex-direction: column; gap: 14px; padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }

/* ---------- базовые блоки ---------- */
.panel { container-type: inline-size; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.h { font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h.xl { font-size: 26px; letter-spacing: -.02em; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font-weight: 650; font-size: 15px; padding: 11px 18px; border-radius: 11px; min-height: 44px; text-align: center; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--gold); color: var(--gold-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.big { font-size: 16.5px; padding: 15px 20px; border-radius: 13px; }
.btn.blue { background: var(--blue); color: #fff; border-color: transparent; }
.btn.red { background: var(--red); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn.small { font-size: 13.5px; padding: 6px 12px; min-height: 34px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.tg { background: #2aabee; color: #fff; border-color: transparent; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.ok { color: var(--ok); } .chip.admin { color: var(--gold); border: 1px solid var(--gold); background: transparent; vertical-align: 4px; margin-left: 4px; font-size: 11.5px; } .chip.warn { color: var(--gold); } .chip.bad { color: var(--red); } .chip.live { color: var(--blue); }
.banner { border-radius: 12px; padding: 12px 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); }
.banner.bad { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.banner.warn { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font-weight: 650; }
.up { color: var(--ok); } .down { color: var(--red); }
.okline { color: var(--ok); font-weight: 650; }
.err { color: var(--red); font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); }
/* Строка про Moonton — в самом низу страницы, после всего содержимого, тихая */
.sitefoot { margin-top: auto; max-width: 640px; align-self: center; padding: 48px 16px calc(10px + env(safe-area-inset-bottom, 0px)); font-size: 10.5px; line-height: 1.45; color: var(--muted); text-align: center; opacity: .55; }
.empty { text-align: center; padding: 20px 8px; color: var(--muted); margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* уровень 1–10 */
/* Значок уровня — «шкала»: подкова из 10 делений, закрашено столько, какой уровень; цифра — цветом уровня.
   Центр прозрачный (маска), поэтому значок одинаково смотрится на любом фоне. */
.lv { --s: 22px; --lvp: .1; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); flex: none;
  font: 400 calc(var(--s) * .45)/1 "Russo One", var(--f-body); letter-spacing: -.02em; color: var(--lva); vertical-align: middle; }
.lv::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 225deg, var(--lvb) 0 calc(var(--lvp) * 270deg), color-mix(in srgb, var(--muted) 28%, transparent) 0 270deg, transparent 0);
  -webkit-mask: radial-gradient(closest-side, transparent 77%, #000 79%), repeating-conic-gradient(from 225deg, #000 0 25deg, transparent 25deg 27deg);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(closest-side, transparent 77%, #000 79%), repeating-conic-gradient(from 225deg, #000 0 25deg, transparent 25deg 27deg);
  mask-composite: intersect; }
.lv.l10::before { background: conic-gradient(from 225deg, #ffd36b, #ff5fa2 90deg, #c23cff 180deg, #5ee0ff 270deg, transparent 0); }
.lv.l10 { background: linear-gradient(135deg, #ffd36b, #ff5fa2 45%, #c23cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lv.sm { --s: 20px; } .lv.lg { --s: 30px; } .lv.xl { --s: 48px; }
.l1 { --lva: #c3cad2; --lvb: #8b95a0; --lvp: .1; } .l2 { --lva: #7fe3c0; --lvb: #1f9e74; --lvp: .2; } .l3 { --lva: #74e08f; --lvb: #1f9a45; --lvp: .3; }
.l4 { --lva: #c6ea6e; --lvb: #6ea21f; --lvp: .4; } .l5 { --lva: #ffe27a; --lvb: #c9a113; --lvp: .5; } .l6 { --lva: #ffcd6b; --lvb: #e08a0a; --lvp: .6; }
.l7 { --lva: #ffb27a; --lvb: #e5621a; --lvp: .7; } .l8 { --lva: #ff9a86; --lvb: #e0392a; --lvp: .8; } .l9 { --lva: #ff8aa4; --lvb: #d4173f; --lvp: .9; }
.l10 { --lva: #ffd36b; --lvb: #c23cff; --lvp: 1; }
@media (prefers-color-scheme: light) { .lv { color: var(--lvb); } .l1 { --lvb: #7d8792; } }

/* аватарки */
.ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; flex: none; position: relative;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--bn1, #4f6b8a), var(--bn2, #2c3b4d)); overflow: visible; }
.ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ava.me { --bn1: #f5f5f7; --bn2: #9a9aa4; color: #0b0b0d; }
.ava .odot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; margin: 0; border: 2px solid var(--bg); }
.mava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.odot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: 6px; vertical-align: 2px; flex: none; }

/* ---------- вход ---------- */
.hero { padding-block: 28px 8px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-weight: 800; font-size: clamp(30px, 8vw, 44px); line-height: 1.05; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: var(--muted); max-width: 52ch; }
.vsart { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding-block: 6px; }
.vsbar { height: 6px; border-radius: 3px; }
.vsbar.a { background: var(--blue); } .vsbar.b { background: var(--red); }
.vsart b { font-weight: 800; color: var(--gold); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; }
.feature b { display: block; font-size: 14px; }
.feature span { font-size: 13px; color: var(--muted); }

/* ---------- «Играть» ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "you" "live"; gap: 14px; align-items: start; }
.c-main { grid-area: main; } .c-you { grid-area: you; } .c-live { grid-area: live; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.center { align-items: stretch; }
.center.idle .pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pick div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.pick b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick span { color: var(--muted); font-size: 12.5px; }
.center .go { width: 100%; }
.center .hint.c { text-align: center; }
.center.search, .center.accept { align-items: center; text-align: center; padding-block: 28px; }
.ring { width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; position: relative; margin-bottom: 8px; }
.ring::before, .ring::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid var(--gold); }
.ring::before { inset: 0; opacity: .22; animation: breathe 2.4s ease-in-out infinite; } .ring::after { inset: 16px; opacity: .55; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .08; } }
.ring b { font-size: 32px; font-weight: 750; letter-spacing: -.02em; }
.center.search .go, .center.accept .acts { max-width: 380px; }
.center.search p.muted { max-width: 44ch; }
.found { color: var(--gold); font-weight: 700; }
.count { font-size: clamp(96px, 26vw, 150px); line-height: .85; font-weight: 700; letter-spacing: -.06em; margin: 6px 0 0; }
.count span { color: var(--muted); font-weight: 300; }
.count-l { font-size: 18px; }
.adots { display: flex; gap: 6px; margin-top: 8px; } .adots i { width: 22px; height: 6px; border-radius: 3px; background: var(--surface-2); } .adots i.on { background: var(--ok); }
.accept .acts { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; margin-top: 8px; }
.accept .left-t { color: var(--muted); } .accept .left-t b { color: var(--fg); }

.you-top { display: flex; align-items: center; gap: 12px; } .you-top .ava { width: 48px; height: 48px; font-size: 19px; }
.you-top b { display: block; font-size: 17px; } .you-top div span { color: var(--muted); font-size: 13px; }
.bigelo { font-size: 44px; font-weight: 750; letter-spacing: -.03em; line-height: 1; margin-top: 4px; }
.bigelo small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 6px; }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.now-h { margin: 0; }
.now .li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.now .li span { color: var(--muted); } .now .li b { font-weight: 650; }
.recent a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; }
.recent .r-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.recent .r-n span { color: var(--muted); font-weight: 450; }
.recent b { font-weight: 700; }
.lmatch { display: flex; align-items: center; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 650; font-size: 14px; white-space: nowrap; }
.lmatch:first-of-type { border-top: 0; padding-top: 0; }
.lmatch .a { color: var(--blue); } .lmatch .b { color: var(--red); } .lmatch small { margin-left: auto; color: var(--muted); font-weight: 500; }
.toprow { display: grid; grid-template-columns: 20px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; }
.toprow:first-of-type { border-top: 0; padding-top: 0; }
.toprow > span:first-child { color: var(--muted); } .toprow b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.q-status { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 1.4s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- списки ---------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; text-decoration: none; color: inherit; }
.list li:first-child .row, .row:first-child { border-top: 0; }
a.row:hover .nm { color: var(--gold); }
.row .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.row .role { color: var(--muted); font-size: 13.5px; width: 70px; }
.row .elo { font-weight: 700; width: 52px; text-align: right; }
.pos { width: 26px; text-align: right; color: var(--muted); font-weight: 600; font-size: 13.5px; flex: none; }
.pos.top { color: var(--gold); }
.row.me .nm { color: var(--gold); }
.wl { font-size: 13.5px; color: var(--muted); white-space: nowrap; width: 100px; text-align: right; }
.tag { font-size: 11px; font-weight: 650; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }

/* ---------- матч ---------- */
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stage { display: flex; flex-direction: column; gap: 10px; align-items: stretch; text-align: center; padding: 6px 0; }
.stage .left { text-align: left; }
.timer { font-size: 52px; font-weight: 750; line-height: 1; letter-spacing: -.02em; }
.timer.low, .left-t b.low { color: var(--red); }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* На узком телефоне команды друг под другом, иначе ники обрезаются до двух букв */
@media (max-width: 520px) { .teams { grid-template-columns: 1fr; } }
.team { min-width: 0; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.team.won { box-shadow: inset 0 0 0 2px var(--gold); }
.t-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.t-name { font-weight: 700; }
.t-A .t-name { color: var(--blue); } .t-B .t-name { color: var(--red); }
.team .list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); min-width: 0; font-size: 14px; }
.team .list li:first-child { border-top: 0; }
.team .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; text-decoration: none; }
.team li.me .nm { color: var(--gold); }
.cap { font-weight: 700; font-size: 10.5px; line-height: 1; color: var(--gold); border: 1px solid var(--gold); border-radius: 5px; padding: 2px 4px; flex: none; }
.acc { flex: none; width: 16px; text-align: center; color: var(--muted); font-weight: 800; }
.acc.yes { color: var(--ok); }
.dl { flex: none; font-weight: 700; font-size: 13px; }
.dl.up { color: var(--ok); } .dl.down { color: var(--red); }
.team .list li:has(.st) { flex-wrap: wrap; row-gap: 2px; }
.st { flex-basis: 100%; padding-left: 64px; font-size: 12px; color: var(--muted); }
.mvp { font-weight: 700; font-size: 10.5px; color: var(--gold); border: 1px solid var(--gold); border-radius: 5px; padding: 1px 4px; vertical-align: 1px; }
.room { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.room b { font-weight: 700; font-size: 26px; letter-spacing: .06em; }
.ids { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.idrow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.idrow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idrow code { font: 600 13px var(--f-body); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.A { background: var(--blue); } .dot.B { background: var(--red); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shots a { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); max-width: 100%; }
.shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qrcard { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qrbox { background: #fff; border-radius: 12px; padding: 6px; line-height: 0; max-width: 100%; }
.qrbox svg { width: 220px; height: auto; max-width: 100%; display: block; }
.result { display: flex; align-items: center; gap: 14px; }
.delta { font-size: 30px; font-weight: 750; line-height: 1; }
.delta.up { color: var(--ok); } .delta.down { color: var(--red); }
.mrow { display: flex; flex-direction: column; gap: 6px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.mrow:first-child { border-top: 0; }
.mline { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.vs { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; }
.vs .a { color: var(--blue); } .vs .b { color: var(--red); }
.vs .win { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.seg2 { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 3px; }
.seg2 button { border: 0; background: transparent; color: var(--muted); font-weight: 650; padding: 6px 14px; border-radius: 999px; }
.seg2 button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.mgrid { display: grid; grid-template-columns: 1fr; column-gap: 28px; }
@container (min-width: 640px) { .mgrid { grid-template-columns: 1fr 1fr; } .mgrid .mrow:nth-child(2) { border-top: 0; } }
@container (min-width: 1150px) { .mgrid { grid-template-columns: 1fr 1fr 1fr; } .mgrid .mrow:nth-child(3) { border-top: 0; } }

/* ---------- профиль (шапка + вкладки) ---------- */
.bn-gold   { --bn1: #f2b84b; --bn2: #8a4b12; }
.bn-blue   { --bn1: #4f8dff; --bn2: #13306e; }
.bn-red    { --bn1: #ff5c62; --bn2: #6c1420; }
.bn-violet { --bn1: #a679ff; --bn2: #3a1d78; }
.bn-green  { --bn1: #3ccf8a; --bn2: #0d5139; }
.bn-teal   { --bn1: #33c4d1; --bn2: #0f4952; }
.prof { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.phead { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(100deg, color-mix(in srgb, var(--bn1, var(--gold)) 22%, var(--surface)), var(--surface) 62%); }
.phead .ava { width: 92px; height: 92px; font-size: 36px; }
.phead .ava .odot { width: 18px; height: 18px; border-width: 3px; border-color: var(--surface); right: 2px; bottom: 2px; }
.phead .who { min-width: 0; }
.phead h1 { margin: 0; font-size: 30px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-word; }
.phead .meta { color: var(--muted); margin-top: 4px; }
.presence.on { color: var(--ok); font-weight: 650; }
.phead .acts { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.bnedit { display: flex; flex-direction: column; gap: 8px; padding: 14px 0 6px; border-top: 1px solid var(--line); margin-top: 14px; }
.bnedit .lbl { font-weight: 650; display: flex; align-items: center; gap: 8px; }
.zoomrow { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.zoomrow input { flex: 1; accent-color: var(--gold); }
.ptabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin: 18px 0 20px; overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { background: none; border: 0; padding: 12px 0; color: var(--muted); font-weight: 650; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptabs button[aria-pressed="true"] { color: var(--fg); border-color: var(--gold); }
.ptabs button span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.ov { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.ov-main, .ov-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.nums { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.nums div { padding: 16px 18px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 0; }
.nums div:nth-child(-n+2) { border-top: 0; } .nums div:nth-child(odd) { border-left: 0; }
.nums b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.nums span { color: var(--muted); font-size: 13px; }
.nums b.up { color: var(--ok); } .nums b.down { color: var(--red); }
.rowh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rowh h3 { margin: 0; font-size: 15px; font-weight: 650; } .rowh span { color: var(--muted); font-size: 13px; }
.chart svg { display: block; width: 100%; height: 170px; margin-top: 10px; overflow: visible; }
.ch-line { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ch-area { fill: color-mix(in srgb, var(--gold) 12%, transparent); stroke: none; }
.ch-plot { position: relative; margin-top: 10px; touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.ch-plot svg { margin-top: 0; }
.ch-pt { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--fg); box-sizing: border-box; pointer-events: none; }
.ch-pt.up { border-color: var(--ok); } .ch-pt.down { border-color: var(--red); }
.ch-vl { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: color-mix(in srgb, var(--fg) 25%, transparent); pointer-events: none; }
.ch-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 18%, transparent); pointer-events: none; }
.ch-dot.up { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.ch-dot.down { background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent); }
.ch-tip { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 14px)); min-width: 150px; max-width: 230px; padding: 9px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.35); font-size: 13px; line-height: 1.35; pointer-events: none; white-space: nowrap; }
.ch-tip.below { transform: translate(-50%, 14px); }
.ch-tip.al-l { transform: translate(-12px, calc(-100% - 14px)); } .ch-tip.al-l.below { transform: translate(-12px, 14px); }
.ch-tip.al-r { transform: translate(calc(-100% + 12px), calc(-100% - 14px)); } .ch-tip.al-r.below { transform: translate(calc(-100% + 12px), 14px); }
.ch-tip b { font-size: 15px; } .ch-tip span { color: var(--muted); }
.ch-tip small { display: block; color: var(--muted); font-size: 12px; }
.ch-tip .ch-when { margin-top: 2px; opacity: .8; }
.ch-dot { fill: var(--gold); stroke: var(--bg); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lvbar .bar { margin-top: 10px; }
.about h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pbio { white-space: pre-wrap; overflow-wrap: anywhere; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.hchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14px; }
.hchip:not(:has(img)) { padding-left: 12px; }
.socs { display: flex; flex-wrap: wrap; gap: 6px; }
.soc { padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13.5px; text-decoration: none; border: 1px solid var(--line); color: var(--fg); }
.soc::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: currentColor; }
.soc.tw::before { background: #9b6bff; } .soc.yt::before { background: #ff3b3b; } .soc.tg::before { background: #2aa3e6; }
.soc.tt::before { background: #fff; } /* TikTok: на тёмной теме белая точка, на светлой — чёрная */
@media (prefers-color-scheme: light) { .soc.tt::before { background: #000; } }
.wlf { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.wlf i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font: 700 11px/1 var(--f-body); font-style: normal; }
.wlf.wide { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; } .wlf.wide i { width: auto; height: 26px; border-radius: 5px; }
.wlf i.w { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.wlf i.l { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.lm { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; }
.lm .res { width: 5px; align-self: stretch; border-radius: 3px; flex: none; } .lm .res.w { background: var(--ok); } .lm .res.l { background: var(--red); } .lm .res.n { background: var(--line); }
.lm div { flex: 1; min-width: 0; } .lm small { color: var(--muted); display: block; font-size: 12.5px; }
.lm b { font-weight: 700; }
.admbox { border-color: var(--gold); }

.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@container (min-width: 460px) { .badges { grid-template-columns: repeat(3, 1fr); } }
@container (min-width: 760px) { .badges { grid-template-columns: repeat(4, 1fr); } }
.bdg { display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.bdg .bi { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; line-height: 1; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.bdg b { font-size: 13.5px; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.bdg > span:last-child { font-size: 12px; color: var(--muted); line-height: 1.25; }
.bdg.locked { opacity: .45; border-style: dashed; }
.bdg.locked .bi { filter: grayscale(1); background: var(--surface); color: var(--muted); }

/* Иконки героев: картинка у Moonton круглая, с тёмными углами — поэтому и рамки у иконок круглые,
   картинка видна целиком, без приближения. Размер рамки задаёт класс обёртки (hh-img, hico и т. д.). */
.hcrop { display: inline-block; overflow: hidden; vertical-align: middle; flex: none; border-radius: 50%; background: var(--surface); }
.hcrop > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hico { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface); }
.hico.tm { width: 26px; height: 26px; display: block; }
.hico.big { width: 40px; height: 40px; border-radius: 50%; }
.hico.empty { display: inline-block; }
.hpool { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hpool li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.hpool li:first-child { border-top: 0; }
.hp-n { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hp-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-n span, .hp-s span { font-size: 12.5px; color: var(--muted); }
.hp-s { display: flex; flex-direction: column; align-items: flex-end; }
.hp-s b { font-weight: 700; font-size: 15px; }
.hp-s b.up { color: var(--ok); } .hp-s b.down { color: var(--red); }

/* ---------- формы ---------- */
.form { display: flex; flex-direction: column; gap: 8px; }
.form label, .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
.form .row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.form .row2 > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form .row2.even { grid-template-columns: 1fr 1fr; }
.form .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
input, select, textarea { width: 100%; font: 500 16px var(--f-body); padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); min-width: 0; }
textarea { min-height: 80px; resize: vertical; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--fg); }
label.check input { width: 20px; height: 20px; flex: none; accent-color: var(--gold); }
.avedit { display: flex; align-items: center; gap: 14px; }
.avedit .ava { width: 76px; height: 76px; font-size: 30px; }
.avedit .hint { margin: 0 0 8px; }
.avedit label.btn { cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 40px; height: 40px; border-radius: 10px; border: 2px solid transparent; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--bn1), var(--bn2)); }
.sw.sw-auto { width: auto; padding: 0 12px; background: var(--surface-2); border-color: var(--line); color: var(--fg); font-weight: 650; font-size: 13px; }
.sw.on { border-color: var(--fg); box-shadow: 0 0 0 2px var(--surface) inset; }

/* как это работает */
details.how summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.how summary::-webkit-details-marker { display: none; }
details.how summary::after { content: "+"; font-size: 20px; color: var(--muted); }
details.how[open] summary::after { content: "−"; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.lvtable { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lvcell { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* ---------- админка ---------- */
.atabs { display: flex; flex-wrap: wrap; gap: 6px; }
.atab { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; }
.atab.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--fg); font: 700 11px/20px var(--f-body); text-align: center; }
.cnt.hot { background: var(--red); color: #fff; }
.atab.on .cnt { background: color-mix(in srgb, var(--bg) 25%, transparent); color: inherit; }
.atab.on .cnt.hot { background: var(--red); color: #fff; }
.todos { display: flex; flex-direction: column; gap: 8px; }
.todo { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); text-decoration: none; color: var(--fg); border: 1px solid var(--line); }
.todo b { font-size: 26px; font-weight: 750; line-height: 1; color: var(--red); min-width: 32px; text-align: center; }
.todo:hover { border-color: var(--muted); }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qbtn { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--fg); min-width: 0; }
.qbtn:hover { border-color: var(--muted); }
.qbtn span { font-size: 12.5px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.stat b { display: block; font-size: 22px; font-weight: 700; }
.stat span { font-size: 12.5px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.tiles.five { grid-template-columns: repeat(3, 1fr); }
details.pitem { border-top: 1px solid var(--line); }
details.pitem:first-child { border-top: 0; }
details.pitem summary { list-style: none; cursor: pointer; padding: 10px 0; display: flex; flex-direction: column; gap: 2px; }
details.pitem summary::-webkit-details-marker { display: none; }
details.pitem summary .mline::after { content: "›"; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .15s; }
details.pitem[open] summary .mline::after { transform: rotate(90deg); }
details.pitem .btns { padding-bottom: 12px; }
.item { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.item:first-of-type { border-top: 0; padding-top: 0; }
.log { font-size: 13px; color: var(--muted); }

/* режим игрока для админа */
.modebar { background: color-mix(in srgb, var(--gold) 14%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); }
.modebar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; font-size: 13.5px; }
.modebar-in .btn { flex: none; }

.toast { position: fixed; z-index: 20; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-width: 520px; margin: 0 auto; background: var(--fg); color: var(--bg);
  padding: 12px 14px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }

.shake { animation: shake .45s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@keyframes flash { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pulse, .ring::before { animation: none; } .shake { animation: flash .6s ease both; } }

/* ---------- телефон ---------- */
@media (max-width: 999px) {
  .you .you-top, .you .bigelo, .you .bar, .you .recent, .you .wlf { display: none; }
  .now .li:first-child { border-top: 0; }
  .now .li { padding: 11px 0; font-size: 15.5px; }
}
@media (max-width: 560px) {
  .phead { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .phead .ava { width: 72px; height: 72px; font-size: 28px; }
  .phead h1 { font-size: 24px; }
  .phead .acts { margin: 0; width: 100%; } .phead .acts .btn { flex: 1; }
  .chart svg { height: 130px; }
  .row .role { display: none; } .wl { width: auto; }
}
@media (max-width: 380px) { .features { grid-template-columns: 1fr; } .form .row3 { grid-template-columns: 1fr; }  }

/* ---------- компьютер: меню слева ---------- */
@media (min-width: 1000px) {
  body { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100vh; margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--side); border-bottom: 0; border-right: 1px solid var(--line); padding: 22px 16px; }
  .brand { height: auto; padding: 0 12px 22px; }
  .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
  .tabs { flex-direction: column; gap: 4px; }
  .tab { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; background: none; border: 0; text-align: left; font-size: 15px; }
  .tab svg { display: block; width: 20px; height: 20px; flex: none; }
  .tab:hover { color: var(--fg); background: var(--surface); }
  .tab[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
  .tab[aria-current="page"] svg { color: var(--gold); }
  #meChip { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 4px 0; }
  .mechip { padding: 4px 8px; border-radius: 10px; }
  .mechip:hover { background: var(--surface); }
  .mechip .mc-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .mechip .mc-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mechip .mc-t span { font-size: 12.5px; color: var(--muted); }
  .mechip .lv { display: none; }
  .now .li:first-child { display: none; }
  .now .li:nth-child(2) { border-top: 0; }
  .ava .odot { border-color: var(--side); }
  main { padding: 28px 36px 48px; gap: 18px; }
  .modebar-in { padding: 8px 36px; }
  /* формы — по центру свободного места, остальное растягивается на весь экран */
  .r-login, .r-onboard, .r-edit { max-width: 760px; margin-inline: auto; width: 100%; }
  .dash { grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "you main" "live main"; gap: 22px; }
  .dash .c-live { margin-top: 0; }
  .ov { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; }
  .nums { grid-template-columns: repeat(4, 1fr); }
  .nums div, .nums div:nth-child(odd) { border-top: 0; border-left: 1px solid var(--line); } .nums div:first-child { border-left: 0; }
  .qgrid { grid-template-columns: repeat(3, 1fr); }
  .cols { display: grid; gap: 22px; align-items: start; }
  .cols.prof { grid-template-columns: 420px minmax(0, 1fr); }
}
@media (min-width: 1360px) {
  .dash { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.7fr) minmax(300px, 1fr); grid-template-areas: "you main live"; }
}
.cols { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1000px) { .cols { display: grid; } }

/* большие мониторы: чуть крупнее отступы и цифры, чтобы место не пустовало */
@media (min-width: 1700px) {
  main { padding: 34px 48px 56px; gap: 22px; }
  .dash, .cols { gap: 26px; }
  .panel { padding: 22px; }
  .bigelo { font-size: 52px; }
  .count { font-size: 170px; }
  .phead { padding: 26px; } .phead .ava { width: 108px; height: 108px; font-size: 42px; } .phead h1 { font-size: 34px; }
  .nums b { font-size: 30px; }
  .chart svg { height: 220px; }
  .row { padding: 12px 0; } .row .role { width: 110px; } .wl { width: 140px; }
}

/* иконки ролей: тёмная плитка, светлый значок, у каждой роли свой оттенок */
.rtag { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 650; letter-spacing: .01em; }
.rsq { flex: none; display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 9.5px; font-weight: 750; letter-spacing: .03em; line-height: 1; }
.rolepick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rp { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 12px; letter-spacing: .02em; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font-weight: 600; text-align: left; }
.rp:hover { border-color: var(--muted); }
.rp.on { border-color: #4f9dff; box-shadow: inset 0 0 0 1px #4f9dff, 0 0 16px rgba(79, 157, 255, .25); background: color-mix(in srgb, #4f9dff 8%, var(--bg)); }
@media (min-width: 700px) { .rolepick { grid-template-columns: repeat(5, 1fr); } .rp { flex-direction: column; text-align: center; gap: 8px; padding: 14px 6px 12px; } }
@media (max-width: 1699px) { .row .role { width: 92px; } }

/* вкладки рейтинга */
.rtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rtabs::-webkit-scrollbar { display: none; }
.rtabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-weight: 650; font-size: 14px; }
.rtabs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.rank-me { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 2px; }
.rank-me .row { border-top: 0; }
.rank-me-note { border-top: 1px dashed var(--line); padding-top: 12px; color: var(--muted); font-size: 14px; }
.hpick { display: flex; flex-wrap: wrap; gap: 6px; }
.hp { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font-weight: 600; font-size: 13.5px; }
.hp.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.rank-hero { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.rank-hero b { display: block; font-size: 18px; } .rank-hero .hint { display: block; }
.rank-head { display: flex; gap: 12px; font-size: 12px; color: var(--muted); padding: 0 0 2px; border-bottom: 1px solid var(--line); }
.rank-head span:first-child { flex: 1; padding-left: 38px; } .rank-head span:last-child { width: 52px; text-align: right; }
/* Рейтинг: «Общий / По ролям / По героям», роли значками */
.rank-panel { display: flex; flex-direction: column; gap: 14px; }
.rank-panel > * { margin-top: 0; margin-bottom: 0; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--gold); font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.rk-back { align-self: flex-start; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 10px; padding: 8px 14px; font-weight: 650; }
.rseg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); max-width: 520px; }
.rseg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 650; font-size: 14.5px; }
.rseg button[aria-selected="true"] { background: var(--fg); color: var(--bg); font-weight: 750; }
.rroles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.rrole { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 700; }
.rrole.on { color: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 .5px var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface-2)); }
.rsub { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.rfr { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--fg); cursor: pointer; }
.rfr input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }
/* «По героям»: лента героев, карточка героя, пьедестал */
.hstrip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 4px 2px 2px; }
.hstrip::-webkit-scrollbar { display: none; }
.hs-find { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px dashed var(--line); background: var(--surface-2); color: var(--fg); display: grid; place-items: center; }
.hs-find svg { width: 20px; height: 20px; }
.hs-h { flex: none; width: 58px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; font-weight: 650; }
.hs-h span:last-child { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-h .hico { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; background: var(--surface-2); }
.hs-h .hico.more { display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--muted); border: 1px solid var(--line); box-sizing: border-box; }
.hs-h.on { color: var(--gold); }
.hs-h.on .hico { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.htop { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.htop.stale { opacity: .45; transition: opacity .15s; pointer-events: none; }
.hcard { display: flex; align-items: center; gap: 14px; }
.hcard .hico.big { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; flex: none; }
.hcard b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; } .hcard span { color: var(--muted); font-size: 13.5px; }
.podium { list-style: none; margin: 0 auto; width: 100%; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; max-width: 520px; }
.podium.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .podium.n1 { grid-template-columns: minmax(0, 1fr); max-width: 200px; }
.pd a { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--fg); min-width: 0; }
.pd .pd-ava { width: 46px; height: 46px; font-size: 18px; }
.pd.p1 .pd-ava { width: 58px; height: 58px; box-shadow: 0 0 0 3px var(--gold); }
.pd-nick { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd a.me .pd-nick { color: var(--gold); }
.pd-sub { font-size: 12px; color: var(--muted); }
.pd-bar { width: 100%; border-radius: 12px 12px 4px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.pd-bar i { font-style: normal; font-size: 22px; font-weight: 900; line-height: 1.1; }
.pd.p1 .pd-bar { height: 88px; background: var(--gold); color: var(--gold-ink); }
.pd.p2 .pd-bar { height: 66px; background: color-mix(in srgb, #b9c3cf 22%, var(--surface-2)); color: var(--fg); }
.pd.p3 .pd-bar { height: 52px; background: color-mix(in srgb, #c27a4a 28%, var(--surface-2)); color: var(--fg); }
.pd a:hover .pd-nick { text-decoration: underline; }
/* Шторка «Выбери героя» */
.hs-back { position: fixed; inset: 0; z-index: 50; background: rgba(5, 7, 9, .66); display: flex; align-items: flex-end; justify-content: center; }
.hsheet { width: 100%; max-width: 640px; max-height: 82vh; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px max(16px, env(safe-area-inset-bottom, 0px)); box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -16px 50px rgba(0, 0, 0, .35); }
.hs-top { display: flex; align-items: center; justify-content: space-between; } .hs-top h2 { margin: 0; font-size: 18px; font-weight: 800; }
.hsearch input { width: 100%; box-sizing: border-box; }
.hs-scroll { overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; }
.hgroup { margin: 12px 0 8px !important; }
.hgroup:first-child { margin-top: 2px !important; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.ht { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px 7px; border-radius: 10px; border: 1px solid transparent; background: var(--surface-2); color: var(--fg); font-size: 12px; font-weight: 600; min-width: 0; }
.ht span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ht .hico { width: 40px; height: 40px; border-radius: 50%; }
.ht small { position: absolute; top: 4px; right: 5px; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.ht:hover { border-color: var(--line); }
.ht.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.hnone { padding: 6px 0 12px; }
@media (min-width: 1000px) {
  .hs-back { align-items: center; padding: 24px; }
  .hsheet { border-radius: 18px; border-bottom: 1px solid var(--line); max-height: min(720px, 86vh); }
}
/* Твоё место — прилипает к низу, пока листаешь список */
.rank-panel .rank-me { position: sticky; bottom: var(--navh, 0px); z-index: 2; background: var(--surface); margin: 0 -4px; padding: 8px 4px 6px; box-shadow: 0 -10px 18px -12px rgba(0, 0, 0, .55); }
@media (max-width: 560px) { .hide-s { display: none; } .rank-head span:nth-child(2) { display: none; } }
.ava.rava { width: 28px; height: 28px; font-size: 12px; }
.hp-m { display: flex; flex-direction: column; align-items: flex-end; min-width: 54px; } .hp-m b { font-weight: 750; font-size: 16px; color: var(--gold); } .hp-m span { font-size: 12px; color: var(--muted); }

/* ---------- профиль: карточка слева, вкладки справа; баннер растворяется в фоне, как в TikTok ---------- */
.r-me, .r-player, .r-style { overflow-x: clip; } /* края баннера не дают горизонтальной прокрутки */
.dprof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.dmain { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; }
.dmain .ptabs { margin-top: 0; }
.dmain > .admbox { margin-bottom: 20px; }
.ov1 { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.r-me .back, .r-player .back, .r-style .back { position: relative; z-index: 3; }
.dcard { position: relative; min-width: 0; }
/* .pbn — «кадр»: та часть, которую игрок выбрал. Картинка вокруг него (.bn-ext) продолжается и плавно исчезает:
   без рамок и видимых границ. Область .bn-ext шире кадра на 16% с боков и выше на 70% сверху и снизу. */
.dcard .pbn { position: relative; z-index: 1; aspect-ratio: 4 / 1; }
.bn-ext { position: absolute; left: -16%; right: -16%; top: -70%; bottom: -70%; overflow: hidden; pointer-events: none;
  --mx: linear-gradient(to right, transparent, rgba(0,0,0,.1) 4%, rgba(0,0,0,.35) 7.5%, rgba(0,0,0,.7) 10.5%, #000 14%, #000 86%, rgba(0,0,0,.7) 89.5%, rgba(0,0,0,.35) 92.5%, rgba(0,0,0,.1) 96%, transparent);
  --my: linear-gradient(to bottom, transparent, rgba(0,0,0,.2) 9%, rgba(0,0,0,.55) 18%, rgba(0,0,0,.85) 25%, #000 31%, #000 56%, rgba(0,0,0,.85) 62%, rgba(0,0,0,.66) 68%, rgba(0,0,0,.47) 74%, rgba(0,0,0,.3) 80%, rgba(0,0,0,.16) 86%, rgba(0,0,0,.06) 92%, transparent 98%);
  -webkit-mask-image: var(--mx), var(--my); -webkit-mask-composite: source-in; mask-image: var(--mx), var(--my); mask-composite: intersect; }
.bn-ext img, .bn-ext video { display: block; user-select: none; -webkit-user-drag: none; }
/* Картинка растворяется и к своим краям (их задаёт --ml/--mr/--mt/--mb), чтобы нигде не было ровного среза */
.bn-media { --gx: linear-gradient(to right, transparent var(--m0x, 0%), #000 var(--ml), #000 var(--mr), transparent var(--m1x, 100%));
  --gy: linear-gradient(to bottom, transparent var(--m0y, 0%), #000 var(--mt), #000 var(--mb), transparent var(--m1y, 100%));
  -webkit-mask-image: var(--gx), var(--gy); -webkit-mask-composite: source-in; mask-image: var(--gx), var(--gy); mask-composite: intersect; }
.bn-amb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.2); transform: scale(1.1); }
/* Без своего баннера — мягкое свечение цвета оформления */
.bn-color { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 45%, var(--bn1, var(--gold)), color-mix(in srgb, var(--bn2, #333) 70%, transparent) 70%, transparent); opacity: .55; }
.pbn.editing { cursor: grab; touch-action: none; }
.pbn.editing::after { content: ""; position: absolute; inset: 0; border: 2px dashed rgba(255, 255, 255, .7); border-radius: 12px; pointer-events: none; z-index: 2; mix-blend-mode: difference; }
.pbn.editing.drag { cursor: grabbing; }
.dc-body { position: relative; z-index: 2; }
.dc-who { padding: 0 4px 16px; }
.dc-who .ava { width: 92px; height: 92px; font-size: 36px; margin-top: -46px; box-shadow: 0 0 0 5px var(--bg); }
.dc-who .ava .odot { width: 18px; height: 18px; border-width: 3px; border-color: var(--bg); right: 3px; bottom: 3px; }
.dc-who h1 { margin: 10px 0 0; font-size: 28px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; word-break: break-word; }
.dc-who h1, .dc-who .meta { text-shadow: 0 1px 14px var(--bg), 0 0 2px color-mix(in srgb, var(--bg) 60%, transparent); }
.dc-who .meta { color: var(--muted); margin: 6px 0 0; }
.dc-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; } .dc-acts .btn { flex: 1; }
.dc-sec { padding: 14px 4px 16px; border-top: 1px solid var(--line); min-width: 0; }
.dc-sec > .hint:only-child { margin: 0; }
.dcard h4 { margin: 0 0 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dcard .pbio { margin: 0; }
@media (min-width: 1000px) {
  .dprof { grid-template-columns: 420px minmax(0, 1fr); gap: 40px; }
  .dcard { position: sticky; top: 24px; }
  .style-pv { position: sticky; top: var(--pv-top, 24px); display: flex; flex-direction: column; gap: 12px; }
  .cols.prof.style > .col:first-child { align-self: stretch; }
  .style-pv .dcard { position: relative; top: auto; }
}
@media (min-width: 1700px) { .dprof { grid-template-columns: 460px minmax(0, 1fr); gap: 48px; } }
/* Телефон: баннер во всю ширину экрана, от самого верха; вбок уходить некуда — растворяется только вниз */
@media (max-width: 999px) {
  /* кадр — сразу под верхним меню, а картинка над ним уходит под полупрозрачное меню */
  .dcard .pbn { margin: -16px -16px 0; }
  .bn-media { --gx: linear-gradient(#000, #000); }
  .bn-ext { --mx: linear-gradient(#000, #000);
    --my: linear-gradient(to bottom, #000, #000 60%, rgba(0,0,0,.85) 65%, rgba(0,0,0,.66) 71%, rgba(0,0,0,.46) 77%, rgba(0,0,0,.28) 83%, rgba(0,0,0,.13) 89%, rgba(0,0,0,.04) 94%, transparent 99%); }
  body[data-route="me"] .side, body[data-route="player"] .side, body[data-route="style"] .side {
    background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 70%, transparent), color-mix(in srgb, var(--bg) 25%, transparent) 65%, transparent);
    background-origin: border-box; background-repeat: no-repeat; border-bottom-color: transparent; transition: background-color .2s; }
  /* прокрутили вниз — меню снова обычное, непрозрачное */
  body.scrolled[data-route] .side { background: var(--bg); border-bottom-color: var(--line); }
  .pbn.editing::after { inset: 0 2px; }
}
@media (max-width: 560px) { .dc-who .ava { width: 78px; height: 78px; font-size: 30px; margin-top: -39px; } .dc-who h1 { font-size: 24px; } }

/* ---------- арена матча: этапы сверху, команды по бокам, действие в центре ---------- */
.arena-wrap { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.arena { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ar-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ar-id { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.ar-id:hover { color: var(--fg); }
.msteps { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-width: fit-content; }
@media (max-width: 1299px) { .ms-t small { display: none; } }
.ms { display: flex; align-items: center; gap: 9px; flex: none; }
.ms-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: 13.5px; flex: none;
  border: 2px solid var(--line); color: var(--muted); box-sizing: border-box; }
.ms-t { display: flex; flex-direction: column; line-height: 1.2; }
.ms-t b { font-size: 14px; font-weight: 750; }
.ms-t small { font-size: 12px; color: var(--muted); }
.ms.next .ms-t b { color: var(--muted); }
.ms.done .ms-n { background: var(--ok); border-color: var(--ok); color: #0c1a12; }
.ms.now .ms-n { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 22%, transparent); }
.ms.now.warn .ms-n { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 22%, transparent); }
.ms-line { flex: 1; min-width: 14px; max-width: 70px; height: 2px; margin: 0 12px; background: var(--line); border-radius: 2px; }
.ms-line.on { background: var(--ok); }
.ar-timer { display: flex; align-items: baseline; gap: 8px; margin-left: auto; }
.ar-timer span { font-size: 13px; color: var(--muted); }
.ar-timer b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ar-timer b.low { color: var(--red); }
.ar-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.ar-team { border-radius: 18px; border: 1px solid; overflow: hidden; min-width: 0; }
.ar-team.t-A { border-color: color-mix(in srgb, var(--blue) 38%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 20%, transparent), transparent 130px), var(--surface); }
.ar-team.t-B { border-color: color-mix(in srgb, var(--red) 38%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--red) 18%, transparent), transparent 130px), var(--surface); }
.ar-th { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 18px 20px 12px; }
.ar-th h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.t-A .ar-th h3 { color: var(--blue); } .t-B .ar-th h3 { color: var(--red); }
.ar-th span { font-size: 13px; color: var(--muted); } .ar-th b { color: var(--fg); font-size: 17px; }
.ar-list { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.ar-p { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 13px; background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 7%, transparent); min-width: 0; }
.ar-p.me { border-color: color-mix(in srgb, var(--gold) 60%, transparent); }
.ar-p .ava { width: 42px; height: 42px; font-size: 17px; }
.t-A .ar-p .ava:not(.me) { --bn1: #5b8def; --bn2: #2b4fa8; } .t-B .ar-p .ava:not(.me) { --bn1: #ff7a7f; --bn2: #a8323a; }
.ar-pi { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ar-pi .nm { font-size: 16px; font-weight: 700; color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-p.me .nm { color: var(--gold); }
.ar-pi .sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.ar-pi .sub .lv { --s: 20px; }
.capt { font-size: 11px; font-weight: 750; color: var(--gold); border: 1px solid var(--gold); border-radius: 6px; padding: 2px 6px; flex: none; }
.ar-mid { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; min-width: 0; }
.ar-vs { font-size: 52px; font-weight: 900; letter-spacing: -.04em; line-height: 1; background: linear-gradient(90deg, var(--blue), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ar-mid .stage { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ar-mid .stage > p { margin: 0; }
.ar-mid .stage .btn.big { width: 100%; }
.ar-mid .stage .qrcard { margin: 0 auto; }
.ar-mid .stage details.left { width: 100%; text-align: left; }
@media (min-width: 760px) and (max-width: 1099px) {
  .ar-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ar-mid { grid-column: 1 / -1; grid-row: 1; }
}
@media (min-width: 1100px) { .ar-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) minmax(0, 1fr); } }
@media (max-width: 759px) {
  .ar-top { gap: 12px; }
  .ar-timer { margin-left: 0; }
  .msteps { order: 3; flex-basis: 100%; min-width: 0; }
  .ms-t small { display: none; }
  .ms-t b { font-size: 12.5px; }
  .ms { gap: 6px; } .ms-n { width: 26px; height: 26px; font-size: 12px; }
  .ms-line { margin: 0 6px; min-width: 8px; }
  .ar-mid { order: -1; padding: 18px; } .ar-vs { display: none; }
  .ar-grid { display: flex; flex-direction: column; align-items: stretch; }
}

/* ---------- история матчей ---------- */
.lm-h { position: relative; flex: none; } .lm-h .hico { width: 34px; height: 34px; border-radius: 50%; display: block; }
.lm-h.star .hico { box-shadow: 0 0 0 2px var(--gold); }
.lm-kda { font-weight: 650; color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.hlist { display: flex; flex-direction: column; gap: 8px; }
.hrow { --rc: var(--line); display: block; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; position: relative;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--rc) 16%, transparent), transparent 46%); }
.hrow.r-w { --rc: var(--ok); } .hrow.r-l { --rc: var(--red); }
.hrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--rc); }
.hrow > summary, a.hrow { list-style: none; display: grid; grid-template-columns: 52px minmax(0, 1fr) 96px 90px 56px 18px; align-items: center; gap: 14px; padding: 10px 14px 10px 16px; cursor: pointer; }
.hrow > summary::-webkit-details-marker { display: none; }
.hrow:hover { border-color: color-mix(in srgb, var(--rc) 45%, var(--line)); }
.hrow.r-n { opacity: .72; }
.hh { position: relative; width: 52px; height: 52px; display: block; }
.hh-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; background: var(--surface); }
.hh-none { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); font-weight: 800; font-size: 20px; }
.hh.star .hh-img, .hh.star .hh-none { box-shadow: 0 0 0 2px var(--gold), 0 0 14px color-mix(in srgb, var(--gold) 45%, transparent); }
.hr-mvp { display: inline-block; margin-top: 4px; font-size: 10.5px; font-weight: 850; letter-spacing: .04em; line-height: 1.45; padding: 0 6px; border-radius: 5px; background: var(--gold); color: var(--gold-ink); white-space: nowrap; }
.hr-res { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hr-res b { font-size: 15.5px; font-weight: 750; color: var(--rc); } .hrow.r-n .hr-res b { color: var(--fg); }
.hr-res small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-kda { display: flex; flex-direction: column; align-items: center; min-width: 86px; font-variant-numeric: tabular-nums; }
.hr-kda b { font-size: 16px; font-weight: 800; letter-spacing: .01em; } .hr-kda i { font-style: normal; color: var(--muted); margin: 0 3px; font-weight: 500; }
.hr-kda em { font-style: normal; color: var(--red); } .hr-kda small { color: var(--muted); font-size: 12px; }
.hr-kda.none small { font-size: 12px; text-align: center; }
.hr-md { display: flex; gap: 4px; min-width: 0; justify-content: flex-end; }
.hr-dl { text-align: right; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; } .hr-dl.up { color: var(--ok); } .hr-dl.down { color: var(--red); }
.hr-chev { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); justify-self: center; transition: transform .15s; }
details.hrow > summary .hr-chev { transform: rotate(45deg); } details.hrow[open] > summary .hr-chev { transform: rotate(-135deg); }

/* значки наград — свои простые фигуры */
.mdl { --mc: var(--muted); --mbg: var(--surface-2); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--mc) 18%, transparent); border: 1px solid color-mix(in srgb, var(--mc) 45%, transparent); }
.mdl svg { width: 15px; height: 15px; fill: var(--mc); }
.mdl.big { width: 44px; height: 44px; border-radius: 12px; } .mdl.big svg { width: 24px; height: 24px; }
.md-mvp { --mc: var(--gold); } .md-deathless { --mc: #3fc7c0; } .md-killer { --mc: var(--red); } .md-rich { --mc: var(--orange); }
.md-support { --mc: var(--ok); } .md-teamplay { --mc: var(--blue); }

.hbody { border-top: 1px solid var(--line); padding: 12px 16px 16px; background: color-mix(in srgb, var(--surface) 55%, transparent); cursor: default; }
.htabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.htabs button { font: inherit; font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.htabs button i { font-style: normal; font-size: 11px; margin-left: 2px; padding: 0 5px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); }
.htabs button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.htabs-link { margin-left: auto; font-size: 13px; color: var(--muted); text-decoration: none; } .htabs-link:hover { color: var(--fg); }
.hb-pad { margin: 4px 0; }
.hstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hstats div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.hstats b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; } .hstats span { font-size: 12px; color: var(--muted); }
.hpart { height: 6px; border-radius: 4px; background: var(--surface-2); margin-top: 10px; overflow: hidden; } .hpart span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--ok)); border-radius: 4px; }
.hmedals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.hmedal { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.hmedal > span:not(.mdl) { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .hmedal b { font-size: 14px; } .hmedal small { font-size: 12px; color: var(--muted); }
.hteams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.hteam { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.hteam .ht-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 14px; }
.hteam.t-A .ht-head { background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 22%, transparent), transparent); color: var(--blue); }
.hteam.t-B .ht-head { background: linear-gradient(90deg, color-mix(in srgb, var(--red) 22%, transparent), transparent); color: var(--red); }
.hteam .ht-head span { font-size: 12px; font-weight: 700; color: var(--ok); }
.ht-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto 40px; gap: 8px; align-items: center; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.ht-row.me { background: color-mix(in srgb, var(--gold) 10%, transparent); } .ht-row.me .ht-nm { color: var(--gold); }
.ht-ico { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: block; }
.ht-ico.none { display: grid; place-items: center; background: var(--surface-2); font-size: 10px; font-weight: 750; color: var(--muted); }
.ht-nm { color: inherit; text-decoration: none; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } a.ht-nm:hover { text-decoration: underline; }
.ht-row .mvp { grid-column: 3; } .ht-kda { grid-column: 4; font-weight: 700; font-variant-numeric: tabular-nums; } .ht-gold { grid-column: 5; text-align: right; color: var(--orange); font-size: 12.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .hrow > summary, a.hrow { grid-template-columns: 44px minmax(0, 1fr) 74px 40px 12px; gap: 9px; padding: 9px 10px 9px 13px; }
  .hr-res small { white-space: normal; font-size: 11.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .hr-kda.none small { display: none; } .hr-dl { font-size: 14px; }
  .hh, .hh-img, .hh-none { width: 44px; height: 44px; }
  .hr-md { display: none; } .hr-kda { min-width: 0; } .hr-kda b { font-size: 14.5px; } .hr-kda i { margin: 0 1px; }
  .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hteams { grid-template-columns: 1fr; }
  .hbody { padding: 10px 10px 12px; }
  .htabs { gap: 4px; } .htabs button { padding: 6px 9px; font-size: 12.5px; } .htabs-link { width: 100%; margin: 4px 0 0; }
}
.mdl.more { font-size: 11.5px; font-weight: 800; color: var(--muted); }
@media (max-width: 380px) { .hr-res b { font-size: 14px; } .hrow > summary, a.hrow { gap: 7px; } }
/* сборка */
.hbuild { display: flex; flex-direction: column; gap: 12px; }
.hb-hero { display: flex; align-items: center; gap: 12px; } .hb-hero span { display: flex; flex-direction: column; } .hb-hero b { font-size: 15px; } .hb-hero small { color: var(--muted); font-size: 12.5px; }
.hb-hico { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.hb-items { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hb-it { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; min-width: 0; }
.hb-it span:last-child { font-size: 12px; line-height: 1.25; color: var(--fg); overflow-wrap: anywhere; }
.hb-it.empty { border-style: dashed; background: transparent; } .hb-it.empty span:last-child { color: var(--muted); }
.hb-img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; display: block; background: var(--surface); }
.hb-img.none, .ht-it.none { display: block; background: var(--surface-2); border: 1px dashed var(--line); box-sizing: border-box; }
.ht-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ht-items { display: flex; gap: 2px; } .ht-it { width: 17px; height: 17px; border-radius: 4px; object-fit: cover; display: block; }
@media (max-width: 640px) { .hb-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hb-img { width: 42px; height: 42px; } }
.hr-demo { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; margin-left: 8px; vertical-align: 2px; }

/* ---------- лента «Все матчи» ---------- */
.tnum { font-variant-numeric: tabular-nums; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.fchips button { font: inherit; font-size: 13px; font-weight: 650; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.fchips button b { margin-left: 4px; color: var(--red); }
.fchips button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.fday { margin: 16px 4px 8px; font-size: 12.5px; font-weight: 750; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.feed .fday:first-child { margin-top: 8px; }
.frow { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) 128px 170px 64px 14px; align-items: center; gap: 16px; padding: 11px 18px; margin-bottom: 8px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: inherit; overflow: hidden; }
.frow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.frow.wA::before { background: var(--blue); } .frow.wB::before, .frow.live::before { background: var(--red); }
.frow.live { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.frow.cx { background: transparent; border-style: dashed; opacity: .7; }
.frow:hover { border-color: color-mix(in srgb, var(--fg) 25%, var(--line)); }
.ftm b { display: block; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; } .ftm small { font-size: 12px; color: var(--muted); }
.fvs { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); align-items: center; gap: 14px; min-width: 0; }
.fsa, .fsb { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; } .fsa { justify-content: flex-end; }
.fsa .ftn { text-align: right; }
.lose { opacity: .5; }
.ftn { font-size: 14px; font-weight: 800; white-space: nowrap; } .ftn small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ftn.t-A { color: var(--blue); } .ftn.t-B { color: var(--red); }
.crown { font-style: normal; color: var(--gold); margin: 0 4px; }
.fstack { display: flex; flex: none; }
.fs-h { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--surface-2); margin-left: -8px; background: var(--surface); }
.fs-h:first-child { margin-left: 0; } .fs-h.none { background: color-mix(in srgb, var(--fg) 10%, var(--surface)); }
.fs-h.sm { width: 26px; height: 26px; margin-left: -7px; } .fs-h.sm:first-child { margin-left: 0; }
.fsc { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 26px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fsc.big { font-size: 30px; }
.fsc i { font-style: normal; color: color-mix(in srgb, var(--fg) 25%, transparent); font-size: .75em; }
.fsc .a { color: var(--blue); } .fsc .b { color: var(--red); } .fsc .dim { color: color-mix(in srgb, var(--fg) 35%, transparent); }
.fsc-txt { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.fsc-live { text-align: center; font-size: 18px; font-weight: 800; color: var(--red); }
.livetag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--red); white-space: nowrap; }
.livetag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent); animation: lpulse 1.6s ease-in-out infinite; }
@keyframes lpulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.fbadge { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.fbadge.auto { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.fmute { font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fmvp { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; min-width: 0; white-space: nowrap; }
.fmvp span { overflow: hidden; text-overflow: ellipsis; }
.fmvp .mvp { background: var(--gold); color: var(--gold-ink); border: 0; padding: 1px 5px; font-weight: 850; }
.fm-h { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; display: block; flex: none; } .fm-h.none { background: var(--surface); }
.fdur { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fcards { display: none; flex-direction: column; gap: 10px; }
.fcard { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); overflow: hidden; text-decoration: none; color: inherit; }
.fcard.wA { background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 90px), var(--surface-2); }
.fcard.wB { background: linear-gradient(180deg, color-mix(in srgb, var(--red) 12%, transparent), transparent 90px), var(--surface-2); }
.fcard.live { border-color: color-mix(in srgb, var(--red) 50%, var(--line)); } .fcard.cx { border-style: dashed; background: transparent; }
.fc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px 0; font-size: 12.5px; color: var(--muted); }
.fc-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 12px 14px; }
.fc-s { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .fc-s.r { align-items: flex-end; text-align: right; }
.fc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: color-mix(in srgb, var(--bg) 40%, transparent); }
.fc-foot .fmvp { color: var(--fg); }

/* ---------- страница матча ---------- */
.mx-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.mx-top .back { margin: 0; }
.mx-id { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.mx-when { margin-left: auto; font-size: 13.5px; }
.mx-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 24px 32px; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 22%, transparent), color-mix(in srgb, var(--blue) 2%, transparent) 38%, color-mix(in srgb, var(--red) 2%, transparent) 62%, color-mix(in srgb, var(--red) 24%, transparent)), var(--surface); }
.mx-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; } .mx-side.r { align-items: flex-end; text-align: right; }
.mx-side h2 { margin: 0; font-size: 34px; font-weight: 850; letter-spacing: -.01em; } .mx-side h2.t-A { color: var(--blue); } .mx-side h2.t-B { color: var(--red); }
.mx-side .muted { font-size: 13px; }
.mx-side.lose h2 { opacity: .75; }
.wtag, .ltag { font-size: 11px; font-weight: 850; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.wtag { background: var(--gold); color: var(--gold-ink); } .ltag { background: color-mix(in srgb, var(--fg) 10%, transparent); color: var(--muted); }
.mx-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 36px; text-align: center; }
.mx-lab { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.mx-score { display: flex; align-items: center; gap: 12px; font-size: 72px; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mx-score i { font-style: normal; color: color-mix(in srgb, var(--fg) 22%, transparent); font-size: .6em; }
.mx-score .t-A { color: var(--blue); } .mx-score .t-B { color: var(--red); } .mx-score .dim { opacity: .45; }
.mx-word { font-size: 26px; font-weight: 850; } .mx-word.dimw { font-size: 16px; font-weight: 650; color: var(--muted); max-width: 320px; }
.mx-sub { font-size: 13.5px; }
.mx-tbl { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mx-tr { display: grid; grid-template-columns: minmax(0, 2.3fr) 92px 50px minmax(0, 1.2fr) minmax(0, 1.2fr) 162px 56px 56px; gap: 16px; align-items: center; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 14px; }
.mx-tr.ns { grid-template-columns: minmax(0, 1fr) 80px 80px; }
.mx-tr.h { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-top: 0; background: color-mix(in srgb, var(--bg) 45%, transparent); }
.mx-tr.me { background: color-mix(in srgb, var(--gold) 8%, transparent); box-shadow: inset 3px 0 0 var(--gold); }
.mx-tr.me .mx-n1 a { color: var(--gold); }
.mx-tr .r { text-align: right; } .mx-tr b.r { font-size: 16px; font-weight: 800; }
.b8 { font-weight: 800; }
.mx-tg { display: flex; justify-content: space-between; align-items: center; padding: 11px 20px; font-weight: 800; font-size: 15px; border-top: 1px solid var(--line); }
.mx-tg .muted { font-size: 12.5px; font-weight: 600; }
.mx-tg.t-A { background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 18%, transparent), transparent 60%); color: var(--blue); }
.mx-tg.t-B { background: linear-gradient(90deg, color-mix(in srgb, var(--red) 16%, transparent), transparent 60%); color: var(--red); }
.mx-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mx-hw { position: relative; flex: none; }
.mx-hero { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.mx-lvl { position: absolute; right: -5px; bottom: -5px; font-size: 10px; font-weight: 800; line-height: 15px; padding: 0 4px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }
.mx-who .ava { width: 40px; height: 40px; flex: none; }
.mx-nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mx-n1 { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; min-width: 0; }
.mx-n1 a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mx-n1 a:hover { text-decoration: underline; }
.mx-n1 .mvp { background: var(--gold); color: var(--gold-ink); border: 0; padding: 1px 5px; font-weight: 850; }
.mx-nm small { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.mx-nm small .rsq { font-size: 9.5px; padding: 1px 4px; }
.mx-mini { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.mx-mini .tnum { width: 38px; } .mx-mini .gold { color: var(--orange); }
.mx-bar { position: relative; flex: 1; height: 6px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 9%, transparent); overflow: hidden; display: flex; }
.mx-bar > span { display: block; height: 100%; }
.pb { background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 65%, #000), var(--ok)); } .gb { background: linear-gradient(90deg, color-mix(in srgb, var(--orange) 70%, #000), var(--orange)); }
.bb { background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 70%, #000), var(--blue)); } .rr { background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 70%, #000)); }
.mx-items { display: flex; gap: 3px; }
.mx-it { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; display: block; flex: none; }
.mx-it.none, .mp-it.none { background: transparent; border: 1px dashed var(--line); box-sizing: border-box; }
.mx-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.mx-sort { margin-left: auto; font-size: 12.5px; }
.mphone { display: none; flex-direction: column; gap: 12px; }
.mp-res { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.mp-res .mx-score { font-size: 52px; } .mp-res .t-A { color: var(--blue); } .mp-res .t-B { color: var(--red); }
.mp-res .mx-head.mini { grid-template-columns: 1fr; gap: 10px; padding: 0; border: 0; background: none; margin: 0; }
.mp-res .mx-head.mini .mx-side { display: none; } .mp-res .mx-head.mini .mx-mid { padding: 0; }
.mp-me { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mp-cmp { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; font-size: 13px; font-weight: 700; }
.mp-cmp .lab { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: -6px; }
.mx-bar.two { height: 8px; }
.mp-team { border-radius: 18px; border: 1px solid; overflow: hidden; padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.mp-team.t-A { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 20%, transparent), transparent 120px), var(--surface); }
.mp-team.t-B { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--red) 18%, transparent), transparent 120px), var(--surface); }
.mp-team.win { border-color: color-mix(in srgb, var(--gold) 70%, transparent); }
.mp-th { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px 6px; }
.mp-th h3 { margin: 0; font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; } .t-A .mp-th h3 { color: var(--blue); } .t-B .mp-th h3 { color: var(--red); }
.mp-th .muted { font-size: 12px; }
.mp-p { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who d" "l2 d"; column-gap: 10px; row-gap: 6px; align-items: center; padding: 9px 10px; border-radius: 13px;
  background: color-mix(in srgb, var(--fg) 4%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 7%, transparent); }
.mp-p .mx-who { grid-area: who; } .mp-l2 { grid-area: l2; display: flex; align-items: center; gap: 8px; padding-left: 50px; font-size: 12.5px; } .mp-d { grid-area: d; font-size: 15px; font-weight: 800; }
.mp-p.me { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold) 6%, transparent); } .mp-p.me .mx-n1 a { color: var(--gold); }
.mp-hero { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.mp-it { width: 15px; height: 15px; border-radius: 4px; object-fit: cover; display: block; flex: none; }
@media (max-width: 1200px) { .mx-tr { gap: 12px; } .mx-tr.fi { grid-template-columns: minmax(0, 1.8fr) 84px minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr) 92px 46px; } .mx-tr.ec { grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.1fr) 140px 46px 46px; } .mx-it { width: 19px; height: 19px; }
  .frow { grid-template-columns: 54px minmax(0, 1fr) 150px 14px; gap: 12px; } .frow .fdur, .frow .fsrc { display: none; }
  .fvs { gap: 10px; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); } .frow .fs-h { width: 24px; height: 24px; margin-left: -7px; } .frow .fs-h:first-child { margin-left: 0; } }
@media (max-width: 760px) {
  .mpc, .feed { display: none; } .mphone, .fcards { display: flex; }
  .mx-when { margin-left: 0; width: 100%; font-size: 12.5px; }
  .fchips button { font-size: 12px; padding: 6px 10px; }
  .hrow .hr-demo { display: none; }
}

/* Кто уже заходил на сайт — не показываем текст для поисковиков, страница сразу рисуется из памяти */
.returning #app > .seo { display: none; }
.bn-media { transition: opacity .45s ease; } .bn-media.wait { opacity: 0; }

/* ---------- ранг MLBB: значок «кольцо прогресса» ---------- */
.remb { width: 28px; height: 28px; flex: none; display: inline-block; vertical-align: middle; overflow: visible; }
.remb .re-n { fill: #f2f4f6; font-family: Onest, system-ui, sans-serif; font-weight: 900; }
.remb.xs { width: 27px; height: 27px; } .remb.sm { width: 26px; height: 26px; } .remb.big { width: 64px; height: 64px; }
.rk-mini { display: inline-flex; margin-left: 4px; vertical-align: -5px; }
.rk-sec h4 { margin-bottom: 10px; }
.rk-main { display: flex; align-items: center; gap: 14px; }
.rk-main div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rk-main small { font-size: 12px; color: var(--muted); } .rk-main b { font-size: 18px; font-weight: 800; line-height: 1.2; }
.rk-st { font-size: 13px; font-weight: 700; color: var(--gold); }
.rk-cur { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); } .rk-cur b { color: var(--fg); }
.rk-ok { margin: 0; color: var(--muted); }
.rk-sec .btns { margin-top: 10px; }
.rk-flow { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; } .rk-flow .hint { margin: 0; }
.rk-code { display: flex; gap: 8px; } .rk-code input { flex: 1; min-width: 0; font: inherit; font-size: 18px; font-weight: 700; letter-spacing: .2em; text-align: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); }
.rk-err { margin: 0; }
.rk-raw { margin-top: 10px; font-size: 12px; } .rk-raw summary { cursor: pointer; color: var(--muted); } .rk-raw pre { white-space: pre-wrap; word-break: break-all; background: var(--surface-2); padding: 8px; border-radius: 8px; font-size: 11.5px; }
.link[disabled] { color: var(--muted); text-decoration: none; cursor: default; }

/* Сколько человек в подборе (вкладка «Играть») */
.qlive { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 2px; font-size: 13px; color: var(--muted); }
.ql-t { display: inline-flex; align-items: center; gap: 7px; } .ql-t b { color: var(--fg); font-variant-numeric: tabular-nums; }
.ql-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); } .ql-dot.on { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.ql-r { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ql-r span { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--muted); }
.ql-r span b { color: var(--fg); margin-left: 2px; font-variant-numeric: tabular-nums; }
.ql-r span.zero b { color: var(--muted); font-weight: 600; }
.ql-r span.me { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold); }

/* Админ: сколько ботов и «хост — всегда я» */
.botn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; font-size: 13.5px; }
.botn-c { display: flex; gap: 4px; flex-wrap: wrap; }
.botn-c button { font: inherit; font-size: 13px; font-weight: 700; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.botn-c button[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.hostmode { margin-top: 12px; }
.htog-row { display: flex; justify-content: center; }
.htog { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12px; font-weight: 700; padding: 4px 10px 4px 5px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.htog i { width: 22px; height: 13px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.htog i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--fg); transition: left .15s; }
.htog.on { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); } .htog.on i { background: var(--gold); } .htog.on i::after { left: 11px; background: var(--gold-ink); }

/* Таблица матча: маленькие вкладки «Бой» / «Экономика» */
.mx-tr.fi { grid-template-columns: minmax(0, 2.1fr) 96px minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1.3fr) 108px 52px; }
.mx-tr.ec { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.3fr) 162px 52px 52px; }
.mx-tabs { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.mx-tabs button { font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.mx-tabs button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.mx-tabs .hint { margin: 0 0 0 6px; font-size: 12px; }
.db { background: linear-gradient(90deg, color-mix(in srgb, var(--red) 65%, #000), var(--red)); }
.tb { background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 65%, #000), var(--blue)); }
.dmgc { color: var(--red); } .tankc { color: var(--blue); }
.mp-l3 { grid-column: 1 / -1; display: flex; gap: 14px; padding-left: 50px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hstats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.twb { background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 65%, #000), var(--gold)); }
.mx-kda { display: flex; flex-direction: column; gap: 1px; } .mx-kda b { font-weight: 800; } .mx-kda small { font-size: 11.5px; }
.mx-mini .tnum { width: auto; min-width: 38px; white-space: nowrap; font-size: 12px; }
.mx-multi { display: flex; gap: 3px; flex-wrap: wrap; align-items: center; }
.mk { position: relative; font-size: 11px; font-weight: 850; padding: 2px 5px; border-radius: 6px; color: #fff; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mk i { font-style: normal; font-size: 9px; margin-left: 2px; opacity: .85; }
.mk-double { background: #3e7bd6; } .mk-triple { background: #8a4fe0; } .mk-maniac { background: #e0702a; } .mk-savage { background: linear-gradient(135deg, #e0304e, #f2b33a); }
.md-dmg { --mc: var(--red); } .md-tank { --mc: var(--blue); } .md-tower { --mc: var(--gold); }
.md-double { --mc: #3e7bd6; } .md-triple { --mc: #8a4fe0; } .md-maniac { --mc: #e0702a; } .md-savage { --mc: #f2b33a; }
.hstats b .mk { font-size: 12px; }

/* Какую MLBB открывать на Android */
.appsel { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; font-size: 12px; color: var(--muted); }
.appsel > span { margin-right: 2px; }
.appsel button { font: inherit; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.appsel button[aria-checked="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.appset { margin: 14px 0 6px; }
.appset .lbl { display: block; font-weight: 700; font-size: 14px; }
.appset .appsel { justify-content: flex-start; }
.appset .appsel > span { display: none; }
pre.raw { white-space: pre-wrap; word-break: break-all; font-size: 11.5px; max-height: 360px; overflow: auto; background: var(--surface-2); padding: 10px; border-radius: 10px; }
/* Предложение включить уведомления под «Найти матч» */
.pushline { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; margin: 2px 0 0; font-size: 12.5px; color: var(--muted); text-align: left; }
.pushline .pi { font-size: 14px; }
.pushline .btn.small { min-height: 30px; padding: 4px 12px; font-size: 12.5px; }

/* ---------- сезоны ---------- */
.sline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-top: -4px; }
.sline .s-tag { font-weight: 800; font-size: 12px; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.sline .hint { width: 100%; margin: 0; font-size: 12px; }
.schips { display: flex; gap: 6px; flex-wrap: wrap; }
.schips button { font: inherit; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.schips button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.smine { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.pos.p1 { color: #ffd36b; font-weight: 800; } .pos.p3 { color: var(--gold); font-weight: 800; } .pos.p10 { color: var(--fg); font-weight: 700; }
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sea { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.sea > div b { display: block; font-size: 14px; } .sea > div span { display: block; font-size: 12.5px; color: var(--muted); }
.sea.p1 { border-color: #ffd36b; background: linear-gradient(135deg, rgba(255,211,107,.18), transparent 70%), var(--surface-2); }
.sea.p3 { border-color: rgba(239,181,71,.6); } .sea.p10 { border-color: rgba(160,170,185,.55); }
.spre { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.spre b { color: var(--fg); }
.schips > .muted { align-self: center; font-size: 13px; margin-right: 2px; }
.pushline > span:not(.pi) { flex: 0 1 auto; min-width: 0; } .pushline .btn { flex: none; }


/* Админка → вкладка «Баны» */
.banrow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.banrow:first-of-type { border-top: 0; }
.banmain { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.banwhy { margin: 4px 0 2px; }
.banrow .btn { flex: none; }

/* Бан: плашка у игрока и поле «часов» в админке */
.banbox { display: flex; flex-direction: column; gap: 4px; }
.banbox .banhint { opacity: .85; font-size: 13px; }
.banh { display: inline-flex; gap: 6px; align-items: center; }
.banh input { width: 92px; }

/* Админка: блок «Хост» у игрока */
.hostctl { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.hostctl .hint { margin: 0; }
.banh input:not([type="number"]) { width: 180px; }

/* Админка: панель игрока — статус и кнопка «Наказать…» */
.astats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ast { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.ast > span { font-size: 12px; color: var(--muted); }
.ast b { font-size: 14.5px; line-height: 1.25; }
.ast small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
@container (max-width: 420px) { .astats { grid-template-columns: 1fr; } }
.pnrow { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pnrow .pnbtn { flex: 1; }
.btn.red.small { font-weight: 700; }
.hist { display: flex; flex-direction: column; }
.alog-row { display: flex; flex-direction: column; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.gold { color: var(--gold); }

/* Окно «Наказание» */
.pn-back { position: fixed; inset: 0; z-index: 50; background: rgba(5, 7, 9, .72); display: flex; align-items: flex-start; justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 16px 24px; overflow-y: auto; }
.pn { width: 100%; max-width: 560px; margin: auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.pn-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pn-x { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 16px; }
.pn-step { display: flex; flex-direction: column; gap: 8px; }
.pn-h { font-size: 13px; font-weight: 650; color: var(--muted); }
.pn-kind { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.pn-kind input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.pn-kind > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pn-kind small { font-size: 13px; color: var(--muted); }
.pn-kind small b { color: var(--fg); }
.pn-kind .pn-now { color: var(--orange); }
.pn-kind.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface-2)); }
.pn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pn-chip { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pn-chip.sm { min-height: 36px; font-size: 13px; border-radius: 8px; }
.pn-chip.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 18%, var(--surface-2)); font-weight: 700; }
.pn-own { color: var(--muted); cursor: text; }
.pn-own input { width: 54px; border: 0; background: transparent; color: var(--fg); font: inherit; font-weight: 650; padding: 0; min-height: 0; }
.pn-own input:focus { outline: none; }
.pn #f-pn-reason { min-height: 44px; }
.pn-sum { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.pn-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 480px) { .pn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pn-acts .btn { flex: 1; } }

/* Друзья */
.tcnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 750; line-height: 1; vertical-align: 1px; }
/* На телефоне счётчик заявок — кружок в углу вкладки, чтобы не раздувать её */
@media (max-width: 999px) { .tab .tcnt { position: absolute; top: 1px; left: calc(50% + 6px); margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; box-shadow: 0 0 0 2px var(--bg); } }
.fr-list { gap: 0; }
.fr-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.fr-list .fr-row:first-child { border-top: 0; }
.fr-who { display: flex; align-items: center; gap: 10px; flex: 1 1 180px; min-width: 0; text-decoration: none; color: inherit; }
.fr-who .ava.rava { width: 38px; height: 38px; font-size: 15px; flex: none; }
.fr-n { display: flex; flex-direction: column; min-width: 0; }
.fr-n b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-n > span { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.fr-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.fr-st { font-size: 13px; color: var(--muted); }
.fr-st.on { color: var(--ok); }
.fr-st.act { color: var(--gold); font-weight: 650; }
.fr-chip { align-self: center; }

/* Кнопки друзей — синие, чтобы не спорить с золотыми главными кнопками */
:root { --friend: #2f6ae0; --friend-ink: #ffffff; --friend-soft: #8fb1ff; }
@media (prefers-color-scheme: light) { :root { --friend: #2463e6; --friend-soft: #2463e6; } }
.btn.friend { background: var(--friend); color: var(--friend-ink); border-color: transparent; }
.btn.friend:hover { filter: brightness(1.08); }
.btn.fr-in svg { color: var(--ok); }
.fr-sent { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--friend); color: var(--friend-soft); font-weight: 650; font-size: 13.5px; }
.fr-tabs .fr-hot { position: static; margin-left: 2px; }
.fr-tabs .fr-n0 { font-size: 12.5px; opacity: .7; margin-left: 2px; }
.fr-tabs button[aria-pressed="true"] .fr-n0 { opacity: .8; }
.fr-page #f-friendq { min-height: 44px; }
.fr-rank { align-self: flex-start; font-size: 14px; font-weight: 650; color: var(--friend-soft); }
/* На узком экране — вкладки друзей сеткой 2×2, чтобы все были видны */
@container (max-width: 520px) { .fr-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; } .fr-tabs button { justify-content: center; } }

/* ---------- плашка «Сохраняем баннер» (по центру экрана) ---------- */
.bnb-back { position: fixed; inset: 0; z-index: 60; background: rgba(5, 7, 9, .74); display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: bnb-in .18s ease-out; }
.bnb { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.bnb-top { display: flex; align-items: center; gap: 14px; }
.bnb-top h3 { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: -.01em; }
.bnb-step { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.bnb-step:empty { display: none; }
.bnb-spin { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--gold) 22%, transparent); border-top-color: var(--gold); animation: bnb-rot .8s linear infinite; }
.bnb-bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bnb-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--gold); transition: width .25s ease; }
.bnb-bar.wait i { width: 35%; animation: bnb-slide 1.1s ease-in-out infinite; transition: none; }
.bnb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted); margin-top: -4px; }
.bnb-pct { color: var(--fg); font-size: 15px; font-weight: 750; }
.bnb-warn { margin: 2px 0 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4;
  background: color-mix(in srgb, var(--orange) 12%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent); color: var(--fg); }
.bnb-warn svg { flex: none; color: var(--orange); margin-top: 1px; }
@keyframes bnb-rot { to { transform: rotate(360deg); } }
@keyframes bnb-slide { from { left: -35%; } to { left: 100%; } }
@keyframes bnb-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bnb-spin, .bnb-bar.wait i, .bnb-back { animation: none; } }

/* Плашка «Вышло обновление» */
.upd-pill { position: fixed; z-index: 70; left: 50%; top: calc(10px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); background: var(--surface); color: var(--fg);
  font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); cursor: pointer; white-space: nowrap; }
.upd-pill b { color: var(--gold); }
.rk-more { align-self: center; min-width: 220px; }
.reset-box { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.reset-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reset-cols ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.reset-row { display: flex; gap: 8px; flex-wrap: wrap; } .reset-row input { flex: 1 1 160px; min-width: 0; }
@container (max-width: 480px) { .reset-cols { grid-template-columns: 1fr; } }

/* ===================== Связь с админами ===================== */
/* --- чат матча --- */
.mchat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.mchat.as-staff { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.mc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.mc-title { display: flex; flex-direction: column; min-width: 0; }
.mc-title h3 { margin: 0; font-size: 16px; font-weight: 750; letter-spacing: -.01em; }
.mc-title > span { font-size: 12.5px; color: var(--muted); }
.mc-callbtn { flex: none; gap: 6px; padding: 7px 12px; min-height: 36px; font-size: 13.5px; color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); background: color-mix(in srgb, var(--gold) 9%, var(--surface-2)); }
.mc-callbtn svg { width: 17px; height: 17px; }
.mc-callbtn:hover { background: color-mix(in srgb, var(--gold) 16%, var(--surface-2)); }
.mc-callline { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; font-size: 13.5px; line-height: 1.4; border-bottom: 1px solid var(--line); }
.mc-callline.wait { background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
.mc-callline.wait .pulse { margin-top: 5px; }
.mc-callline.ok { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); }
.mc-callline.ok svg { width: 17px; height: 17px; flex: none; color: var(--ok); margin-top: 1px; }
.mc-callcard { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); flex-wrap: wrap; }
.mc-callcard.taken { background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.mc-cc-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.mc-cc-ico svg { width: 20px; height: 20px; }
.mc-callcard.open .mc-cc-ico { animation: callring 1.6s ease-in-out infinite; }
.mc-cc-t { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.mc-cc-t span { color: var(--muted); }
.mc-cc-who, .cr-who { display: inline-flex; align-items: center; gap: 5px; color: var(--ok) !important; font-weight: 650; font-size: 12.5px; }
.mc-cc-who svg, .cr-who svg { width: 14px; height: 14px; }
.mc-cc-acts { display: flex; gap: 6px; flex-wrap: wrap; }
@keyframes callring { 0%, 100% { transform: none; } 10%, 30% { transform: rotate(-9deg); } 20%, 40% { transform: rotate(9deg); } 50% { transform: none; } }

.mc-wrap { position: relative; }
.mc-list { height: clamp(220px, 42vh, 380px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 8px; display: flex; flex-direction: column; gap: 2px; scroll-behavior: auto; }
.mc-empty { margin: auto; text-align: center; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 4px; max-width: 320px; padding: 16px; }
.mc-empty b { color: var(--fg); font-size: 15px; }
.cm { display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; max-width: 100%; position: relative; }
.cm.cont { margin-top: 0; }
.cm.mine { flex-direction: row-reverse; }
.cm-av { width: 30px; height: 30px; font-size: 13px; font-weight: 750; }
.cm-av.gap { visibility: hidden; display: block; }
.cm-av.adm { background: color-mix(in srgb, var(--gold) 22%, var(--surface-2)); color: var(--gold); }
.cm-av.adm svg { width: 16px; height: 16px; }
.cm-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: min(78%, 520px); }
.cm.mine .cm-b { align-items: flex-end; }
.cm-name { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 0 4px; min-width: 0; }
.cm-name a { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-name a:hover { text-decoration: underline; }
.cm-team { font-weight: 600; color: var(--muted); font-size: 11.5px; }
.cm-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); }
.cm-dot.t-A { background: var(--blue); } .cm-dot.t-B { background: var(--red); }
.s-a .cm-name a { color: color-mix(in srgb, var(--blue) 75%, var(--fg)); }
.s-b .cm-name a { color: color-mix(in srgb, var(--red) 75%, var(--fg)); }
.cm-adm { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .01em; }
.cm-adm svg { width: 11px; height: 11px; }
.s-adm .cm-name a { color: var(--gold); }
.cm-bubble { position: relative; padding: 7px 11px 7px 12px; border-radius: 16px; background: var(--surface-2); font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; white-space: normal; }
.cm:not(.cont):not(.mine) .cm-bubble { border-bottom-left-radius: 16px; }
.cm:not(.mine) .cm-bubble { border-top-left-radius: 6px; }
.cm.cont:not(.mine) .cm-bubble { border-top-left-radius: 6px; }
.cm.mine .cm-bubble { background: color-mix(in srgb, var(--gold) 22%, var(--surface-2)); border-top-right-radius: 6px; }
.s-a:not(.mine) .cm-bubble { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--blue) 70%, transparent); }
.s-b:not(.mine) .cm-bubble { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--red) 70%, transparent); }
.s-adm:not(.mine) .cm-bubble { background: color-mix(in srgb, var(--gold) 12%, var(--surface-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }
.cm-bubble time { float: right; margin: 5px 0 -3px 10px; font-size: 10.5px; color: var(--muted); line-height: 1; font-weight: 550; }
.cm-del { font-style: italic; color: var(--muted); font-size: 13.5px; }
.cm-x { align-self: center; width: 26px; height: 26px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 12px; opacity: 0; transition: opacity .15s; }
.cm:hover .cm-x, .cm-x:focus-visible { opacity: 1; }
.cm-x:hover { background: color-mix(in srgb, var(--red) 15%, transparent); color: var(--red); }
@media (hover: none) { .cm-x { opacity: .55; } }
.cm-sys { align-self: center; display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 5px 12px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--muted); font-size: 12.5px; font-weight: 600; text-align: center; max-width: 92%; }
.cm-sys time { font-size: 10.5px; opacity: .8; font-weight: 550; }
.mc-new { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 7px 14px; background: var(--gold); color: var(--gold-ink); font-weight: 750; font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.mc-form { border-top: 1px solid var(--line); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.mc-input { display: flex; align-items: flex-end; gap: 8px; }
.mc-input textarea { flex: 1; min-height: 44px; max-height: 120px; height: 44px; resize: none; padding: 11px 14px; border-radius: 22px; line-height: 1.35; background: var(--bg); }
.mc-send { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; }
.mc-send svg { width: 20px; height: 20px; margin-left: -2px; }
.mc-send:disabled { opacity: .6; }
.mc-closed { padding: 12px 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }

/* --- окно «Позвать админа» --- */
.cdlg { max-width: 480px; gap: 14px; }
.cdlg > .muted { font-size: 14px; margin-top: -6px; }
.cd-reasons { display: flex; flex-direction: column; gap: 6px; }
.cd-r { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.cd-r input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--gold); }
.cd-r span { display: flex; flex-direction: column; min-width: 0; }
.cd-r b { font-size: 14.5px; font-weight: 650; }
.cd-r small { font-size: 12.5px; color: var(--muted); }
.cd-r.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface-2)); }
.cdlg textarea { min-height: 64px; }
@media (max-width: 560px) {
  .pn-back:has(.cdlg) { align-items: flex-end; padding: 0; }
  .cdlg { margin: 0; border-radius: 20px 20px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-height: 92dvh; overflow-y: auto; }
}

/* --- полоска «Позвали админа» --- */
#callBar:empty { display: none; }
.callbar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--gold) 16%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); }
@media (max-width: 999px) { .callbar { top: calc(59px + env(safe-area-inset-top, 0px)); } }
.cb-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); animation: callring 1.6s ease-in-out infinite; }
.cb-ico svg { width: 19px; height: 19px; }
.cb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.cb-t b { font-size: 14px; }
.cb-t span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.callbar .btn { flex: none; }
@media (prefers-reduced-motion: reduce) { .cb-ico, .mc-callcard.open .mc-cc-ico { animation: none; } }
/* --- полоса «Матч найден» на других вкладках --- */
.mfbar { background: var(--gold); color: var(--gold-ink); border-bottom-color: transparent; padding-bottom: 14px; }
.mfbar .cb-t span { color: inherit; opacity: .72; } .mfbar .cb-t b span { opacity: 1; }
.mfbar .mf-go { background: var(--gold-ink); color: var(--gold); border-color: transparent; min-width: 104px; }
.mf-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--gold-ink) 22%, transparent); }
.mf-bar i { display: block; height: 100%; width: 100%; background: var(--gold-ink); transition: width 1s linear; }
.mfbar.soft { background: var(--surface); color: var(--fg); border-bottom-color: var(--line); }
.mfbar.soft .cb-t span { color: var(--muted); opacity: 1; } .mfbar.soft .cb-t b span { color: var(--fg); }
.mfbar.soft .mf-bar { background: var(--surface-2); } .mfbar.soft .mf-bar i { background: var(--ok); }
@media (prefers-reduced-motion: reduce) { .mf-bar i { transition: none; } }

/* --- вызовы в админке --- */
.calls-box { gap: 8px; }
.call-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.call-row.open { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.cr-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.cr-ico svg { width: 19px; height: 19px; }
.call-row.open .cr-ico { animation: callring 1.6s ease-in-out infinite; }
.cr-t { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; gap: 1px; }
.cr-t > span { color: var(--muted); }
.cr-t a { text-decoration: none; } .cr-t a:hover { color: var(--gold); }
.cr-wait { color: var(--gold) !important; font-weight: 650; font-size: 12.5px; }
.cr-acts { display: flex; gap: 6px; }

/* --- ссылка на поддержку в шапке --- */
.mewrap { display: flex; align-items: center; gap: 10px; }
.suplink { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--muted); text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.suplink svg { width: 20px; height: 20px; }
.suplink:hover, .suplink[aria-current="page"] { color: var(--gold); }
.suplink .sl-t { display: none; }
.sl-dot { position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
@media (min-width: 1000px) {
  .mewrap { flex-direction: column; align-items: stretch; gap: 6px; }
  .suplink { width: auto; height: auto; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; font-weight: 650; font-size: 15px; }
  .suplink .sl-t { display: inline; }
  .suplink:hover { color: var(--fg); background: var(--surface); }
  .suplink[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
  .suplink[aria-current="page"] svg { color: var(--gold); }
  .sl-dot { position: static; margin-left: auto; box-shadow: none; width: 9px; height: 9px; }
}

/* --- поддержка --- */
.sup-hero { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: start; }
.sup-hero > .btn, .sup-hero > .hint { grid-column: 1 / -1; }
.sup-hero > .btn { justify-self: start; }
.sup-hero-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); }
.sup-hero-ico svg { width: 26px; height: 26px; }
.sup-hero .h { margin-bottom: 4px; }
.sup-hint { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.sup-list { display: flex; flex-direction: column; gap: 6px; }
.sup-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.sup-item:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.sup-item.unread { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold) 6%, var(--surface-2)); }
.sup-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 7px; background: transparent; }
.sup-dot.on { background: var(--gold); }
.sup-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sup-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sup-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.sup-new { flex: none; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.sup-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.sup-who { color: var(--fg); font-weight: 650; }
.sup-prev { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sup-side time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sup-st { font-size: 11.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.sup-st.wait { color: var(--gold); }
.sup-st.ans { color: var(--ok); }
.sup-st.closed { color: var(--muted); }
@media (max-width: 520px) { .sup-side time { display: none; } }
.sup-form { gap: 10px; }
.sup-form .lbl { margin-top: 4px; }
.sup-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sup-c { border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.sup-c:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.sup-c.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 700; }
.sup-form .btn.big { margin-top: 6px; }
.st-head { gap: 8px; }
.st-h1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.st-h1 .h { overflow-wrap: anywhere; }
.st-h1 .sup-st { margin-top: 2px; flex: none; }
.st-head .muted { font-size: 13.5px; }
.st-user { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.st-user a { text-decoration: none; color: var(--gold); }
.st-user a.st-prof { color: var(--fg); margin-left: auto; }
.st-name a { color: inherit; text-decoration: none; } .st-name a:hover { text-decoration: underline; }
.st-av-l { display: contents; }
.st-thread { gap: 14px; }
.st-msg { display: flex; align-items: flex-start; gap: 10px; }
.st-msg.mine { flex-direction: row-reverse; }
.st-av { width: 34px; height: 34px; font-size: 14px; font-weight: 750; }
.st-av.sup { border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold); color: var(--gold-ink); }
.st-av.sup svg { width: 18px; height: 18px; }
.st-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: min(84%, 620px); }
.st-msg.mine .st-b { align-items: flex-end; }
.st-name { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.st-msg.sup .st-name { color: var(--gold); }
.st-bubble { padding: 10px 14px; border-radius: 16px; background: var(--surface-2); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.st-msg:not(.mine) .st-bubble { border-top-left-radius: 6px; }
.st-msg.mine .st-bubble { background: color-mix(in srgb, var(--gold) 20%, var(--surface-2)); border-top-right-radius: 6px; }
.st-msg.sup:not(.mine) .st-bubble { background: color-mix(in srgb, var(--gold) 10%, var(--surface-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); }
.st-b time { font-size: 11.5px; color: var(--muted); padding: 0 4px; }
.st-reply { gap: 10px; }
.st-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.st-kbd { margin-left: auto; }
@media (hover: none) { .st-kbd { display: none; } }
@media (max-width: 520px) { .st-acts .btn { flex: 1 1 auto; } }

/* --- чат: заголовок-кнопка, на компьютере — окошко в правом нижнем углу --- */
.mc-title { appearance: none; border: 0; background: none; padding: 0; margin: 0; color: inherit; font: inherit; text-align: left; flex: 1; cursor: default; }
.mc-title h3 { display: flex; align-items: center; gap: 8px; }
.mc-cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; }
.mc-unr { color: var(--gold); font-weight: 700; }
.mc-tog { display: none; }
@media (min-width: 1000px) {
  .mchat { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 380px; max-width: calc(100vw - var(--side-w) - 48px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in srgb, var(--fg) 4%, transparent); border-radius: 18px; }
  .mc-head { padding: 12px 10px 12px 16px; gap: 8px; }
  .mc-title { cursor: pointer; min-width: 0; }
  .mc-title > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mc-tog { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; border: 0; background: transparent; color: var(--muted); }
  .mc-tog:hover { background: var(--surface-2); color: var(--fg); }
  .mc-tog svg { width: 18px; height: 18px; }
  .mc-callbtn span { display: none; }
  .mc-callbtn { padding: 0; width: 36px; justify-content: center; }
  .mc-list { height: min(360px, calc(100vh - 330px)); }
  .mchat.min { width: 300px; }
  .mchat.min .mc-body { display: none; }
  .mchat.min .mc-head { border-bottom: 0; }
  .mchat.min:has(.mc-cnt) { box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 2px var(--gold); }
  .mc-callcard { padding: 10px 14px; gap: 10px; }
  .mc-cc-acts { width: 100%; }
  main:has(.mchat) { padding-bottom: 110px; }
}

/* --- окно «Рехост» --- */
.rhdlg { max-width: 520px; }
.rh-list { max-height: min(56vh, 560px); overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.rh-r { padding: 9px 12px; }
.rh-r.off { opacity: .45; cursor: not-allowed; }
.rh-av { width: 34px; height: 34px; font-size: 13px; font-weight: 750; }
.rh-r b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rh-r .cm-dot { width: 7px; height: 7px; }
.rh-auto { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.rh-auto svg { width: 17px; height: 17px; }
.rh-tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.rh-tag.cur { color: var(--gold); border-color: var(--gold); }
.rh-tag.warn { color: var(--orange); border-color: color-mix(in srgb, var(--orange) 50%, var(--line)); }
.rh-team { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; margin: 8px 2px 0; }
.rh-team.t-A { color: var(--blue); } .rh-team.t-B { color: var(--red); }

/* Админские кнопки на странице матча — сверху */
.adm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); background: color-mix(in srgb, var(--gold) 6%, var(--surface)); }
.adm-acts .btn { font-size: 14.5px; padding: 8px 15px; min-height: 40px; border-radius: 10px; }
.adm-acts-l { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; font-size: 12.5px; font-weight: 750; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.adm-acts-l svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .adm-acts .btn { flex: 1 1 auto; } .adm-acts-l { width: 100%; } }

.rh-tag.msk { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }

/* Чат в лобби на компьютере: под колонкой Красных, до низа экрана (положение задаёт placeChat) */
@media (min-width: 1000px) {
  .mchat.docked { right: auto; bottom: 16px; max-width: none; display: flex; flex-direction: column; border-radius: 16px; }
  .mchat.docked .mc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .mchat.docked .mc-wrap { flex: 1; min-height: 0; }
  .mchat.docked .mc-list { height: 100%; }
  .mchat.docked.min { top: auto; }
  /* Свёрнутый чат — только заголовок (иначе .docked .mc-body {display:flex} перебивал .min, окно с сотней сообщений
     вырастало вверх за экран и кнопку «Развернуть/Свернуть» было не достать) */
  .mchat.docked.min .mc-body { display: none; }
  .mchat.docked.min .mc-head { border-bottom: 0; }
  .mchat.docked .mc-head { padding-top: 10px; padding-bottom: 10px; }
}
@media (min-width: 1000px) {
  .mchat.docked.inflow { position: absolute; bottom: auto; z-index: 3; box-shadow: none; }
}

/* Админка: переезд сервера */
.mig > summary { cursor: pointer; list-style: none; }
.mig > summary::-webkit-details-marker { display: none; }
.mig > summary::after { content: "+"; float: right; color: var(--muted); font-weight: 500; }
.mig[open] > summary::after { content: "–"; }
.mig-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); align-items: flex-start; }
.mig-sec > * { max-width: 100%; }
.mig-sec input { max-width: 520px; }
.mig-diag { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 520px; }
.mig-diag li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.mig-diag li span { width: 18px; font-weight: 800; }
.mig-diag li.ok span { color: var(--ok); } .mig-diag li.bad span, .mig-diag li.bad em { color: var(--red); }
.mig-diag em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; }
.mig-code { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mig-code code { padding: 6px 10px; border-radius: 8px; background: var(--surface-2); font-size: 14px; user-select: all; }
.mig .btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mig label.btn { cursor: pointer; }

/* Московский маршрут хоста (приложение) */
.vpnline { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; text-align: left; margin: 0 0 6px; flex-wrap: wrap; }
.vpnline > span { flex: 1 1 200px; }
.vpnline.wait { background: color-mix(in srgb, var(--gold) 10%, var(--surface-2)); }
.vpnline.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface-2)); color: var(--fg); }
.vl-ok { font-style: normal; font-weight: 800; color: var(--ok); }
.vpnline.bad { background: color-mix(in srgb, var(--orange) 10%, var(--surface-2)); }

/* --- группа: дуо, трио, фулка --- */
/* Телефон — карточка «Твоя группа», компьютер — «Лобби группы» из пяти мест над колонками */
.pstage { display: none; }
.pty-card .pt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pty-card .pt-head .h { margin: 0; }
.pt-ttl { display: flex; align-items: center; gap: 10px; }
.pt-chip { height: 24px; padding: 0 9px; border-radius: 7px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 750; color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.pty-card .btn.small svg { width: 15px; height: 15px; }
.pt-list { display: flex; flex-direction: column; }
.pt-row { display: flex; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid var(--line); padding: 0 2px; }
.pt-row:first-child { border-top: 0; }
.pt-av { position: relative; flex: none; }
.pt-av .ava { width: 42px; height: 42px; font-size: 17px; }
.pt-crown { position: absolute; right: -5px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; }
.pt-crown svg { width: 12px; height: 12px; }
.pt-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pt-nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-nm small { color: var(--muted); font-size: 12.5px; }
.pt-on { color: var(--ok); }
.pt-elo { width: 46px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.pt-x { width: 32px; height: 32px; flex: none; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; }
.pt-x svg { width: 14px; height: 14px; }
.pt-row.wait .ava { opacity: .55; }
.pt-row.wait .pt-nm b { color: var(--muted); }
.pt-row.empty { color: var(--muted); background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; text-align: left; width: 100%; }
button.pt-row.empty { cursor: pointer; } button.pt-row.empty:hover { color: var(--fg); }
.pt-plus { width: 42px; height: 42px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; box-sizing: border-box; }
.pt-plus svg { width: 16px; height: 16px; }
.pt-avg { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.pt-avg b { color: var(--fg); font-size: 15px; }
.pt-leave, .ps-leave { align-self: center; font-size: 13.5px; }
.pty-mk { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--gold); flex: none; }
.pty-mk svg { width: 14px; height: 14px; }
/* Окно «Позвать в группу» */
.pp-list { display: flex; flex-direction: column; max-height: min(420px, 60dvh); overflow-y: auto; }
.pp-row { display: flex; align-items: center; gap: 12px; min-height: 58px; border-top: 1px solid var(--line); }
.pp-row:first-child { border-top: 0; }
.pp-row .ava { width: 40px; height: 40px; font-size: 16px; }
.pp-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pp-nm small { color: var(--muted); font-size: 12.5px; }
.pp-row.off { opacity: .6; }
/* Полоска «Зовут в группу» */
.ptybar { background: color-mix(in srgb, var(--blue) 14%, var(--bg)); border-bottom-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.ptybar .pb-av { width: 34px; height: 34px; font-size: 14px; }

@media (min-width: 1000px) {
  .pty-card { display: none; }
  .dash.in-party .pty-go { display: none; }
  .pstage { display: flex; gap: 28px; margin-bottom: 22px; padding: 22px 26px 24px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
    background: radial-gradient(70% 130% at 30% 0%, color-mix(in srgb, var(--blue) 18%, var(--surface)) 0%, var(--surface) 62%); }
  .ps-main { flex: 1; min-width: 0; }
  .ps-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .ps-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; color: color-mix(in srgb, var(--blue) 55%, var(--muted)); }
  .ps-hint { font-size: 13px; color: var(--muted); }
  .ps-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
  .ps-slot { position: relative; min-height: 220px; border-radius: 18px; border: 2px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--blue) 8%, var(--surface-2)), var(--surface) 75%);
    display: flex; flex-direction: column; align-items: center; padding: 22px 10px 14px; box-sizing: border-box; color: var(--fg); font: inherit; min-width: 0; }
  .ps-slot.lead { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent); }
  .ps-slot.me:not(.lead) { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
  .ps-crown { position: absolute; top: -13px; left: 50%; margin-left: -13px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; }
  .ps-crown svg { width: 15px; height: 15px; }
  .ps-av.ava { width: 78px; height: 78px; font-size: 30px; }
  .ps-n { margin-top: 12px; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ps-r { font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .ps-slot.lead .ps-r { color: var(--gold); }
  .ps-e { margin-top: auto; width: 100%; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--bg) 55%, transparent); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
  .ps-e small { color: var(--muted); font-weight: 600; font-size: 11px; }
  .ps-e.soft { background: none; color: var(--muted); font-weight: 600; }
  .ps-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
  .ps-x svg { width: 12px; height: 12px; }
  .ps-slot:hover .ps-x, .ps-x:focus-visible { opacity: 1; }
  .ps-dot { position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
  .ps-dot.on { background: var(--ok); }
  .ps-slot.wait { border-style: dashed; border-color: color-mix(in srgb, var(--ok) 60%, var(--line)); }
  .ps-slot.wait .ps-av { opacity: .5; }
  .ps-slot.empty { border-style: dashed; justify-content: center; gap: 8px; color: var(--muted); background: none; }
  button.ps-slot.empty { cursor: pointer; } button.ps-slot.empty:hover { color: var(--fg); border-color: var(--muted); }
  .ps-slot.empty b { font-size: 14px; } .ps-slot.empty small { font-size: 12px; text-align: center; }
  .ps-plus { width: 58px; height: 58px; border-radius: 50%; border: 2px dashed currentColor; opacity: .6; display: grid; place-items: center; }
  .ps-plus svg { width: 24px; height: 24px; }
  .ps-side { width: 250px; flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border-left: 1px solid var(--line); padding-left: 26px; }
  .ps-mode { font-size: 28px; font-weight: 850; letter-spacing: -.02em; }
  .ps-mode span { color: var(--muted); font-size: 20px; font-weight: 700; }
  .ps-kv { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 14px; color: var(--muted); }
  .ps-kv b { color: var(--fg); text-align: right; } .ps-kv b.gold { color: var(--gold); font-size: 16px; }
  .ps-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
  .ps-side > div:last-child { display: flex; flex-direction: column; gap: 10px; }
  .ps-go { width: 100%; min-height: 62px; font-weight: 850; letter-spacing: .05em; }
  .ps-go.cancel { letter-spacing: 0; }
  .ps-wait { text-align: center; color: var(--muted); font-size: 14px; }
}
@media (min-width: 1000px) and (max-width: 1299px) { .ps-side { width: 210px; } .ps-av.ava { width: 64px; height: 64px; } .ps-slots { gap: 10px; } }

/* --- Монохром: белые кнопки-таблетки, мягкие скругления, без цветных подсветок --- */
.btn, .btn.small, .btn.big { border-radius: 999px; }
.btn.small { padding: 6px 14px; }
.btn.primary:hover { filter: none; background: color-mix(in srgb, var(--gold) 86%, var(--bg)); }
.panel { border-radius: 20px; }
.pty-card, .pp-row .btn { border-radius: 20px; }
.chip, .pt-chip { border-radius: 999px; }
.pt-chip { color: var(--fg); background: var(--surface-2); border: 1px solid var(--line); }
@media (max-width: 999px) {
  .tab[aria-current="page"] svg { color: var(--fg); }
}
@media (min-width: 1000px) {
  .tab { border-radius: 999px; }
  .tab[aria-current="page"] { color: var(--gold-ink); background: var(--gold); }
  .tab[aria-current="page"] svg { color: var(--gold-ink); }
  .suplink[aria-current="page"] svg { color: var(--fg); }
  .pstage { border-color: var(--line); background: var(--surface); }
  .ps-eyebrow { color: var(--muted); }
  .ps-slot { border-radius: 22px; border-width: 1px; background: var(--surface-2); }
  .ps-slot.lead { box-shadow: none; }
  .ps-slot.wait { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
  .ps-go { border-radius: 999px; letter-spacing: 0; }
}

/* --- «Недавние результаты» в профиле --- */
.rres { gap: 10px; }
.rr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rr-head .h { margin: 0; font-size: 17px; }
.rr-head .muted { font-size: 13px; } .rr-head .muted b { color: var(--fg); }
.rr-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.rr-sum b { font-size: 15px; }
.rr-wl { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; }
.rr-wl i { font-style: normal; padding: 2px 9px; border-radius: 999px; }
.rr-wl .w { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.rr-wl .l { color: var(--red); background: color-mix(in srgb, var(--red) 15%, transparent); }
.rr-wl > span { color: var(--muted); }
.rres .chart .ch-plot { margin-top: 0; }
.rr-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 6px; }
.rr-rating { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.rr-rtop { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); }
.rr-rl { font-size: 12px; line-height: 1.25; color: var(--muted); font-weight: 700; }
.rr-rtop b { font-size: 22px; font-weight: 800; padding: 2px 10px; border-radius: 10px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.rr-spark { margin-left: auto; width: 96px; height: 32px; flex: none; }
.rr-spark polyline { fill: none; stroke: var(--fg); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rr-spark line { stroke: var(--line); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.rr-kv { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; font-size: 14px; border-top: 1px solid var(--line); }
.rr-kv span { color: var(--muted); }
.rr-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rr-tile { border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; background: var(--surface); min-width: 0; }
.rr-tile b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-tile span { font-size: 12.5px; color: var(--muted); }
@media (min-width: 640px) {
  .rr-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 12px; }
  .rr-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}

/* --- рейтинг по ролям: средний игрок роли и сравнение --- */
.ravg { display: flex; flex-wrap: wrap; align-items: stretch; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); margin: 4px 0 6px; }
.ra-t { flex: 1 1 100%; padding: 10px 14px 4px; display: flex; flex-direction: column; }
.ra-t b { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ra-t span { font-size: 12.5px; color: var(--muted); }
.ra-v { flex: 1 1 30%; padding: 6px 14px 10px; min-width: 0; }
.ra-v b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; }
.ra-v span { font-size: 12px; color: var(--muted); }
@media (min-width: 700px) {
  .ra-t { flex: 0 0 190px; padding: 12px 14px; }
  .ra-v { flex: 1 1 0; padding: 12px 14px; border-left: 1px solid var(--line); }
}
.rk-head { display: flex; align-items: center; gap: 12px; padding: 8px 0 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.rk-head > span:first-child { flex: 1; padding-left: 4px; }
.rk-pf { display: flex; flex: none; }
.rk-pf i { font-style: normal; width: 62px; text-align: right; font-size: 13.5px; white-space: nowrap; }
.rk-pf.none i { width: auto; color: var(--muted); font-size: 12.5px; }
.rk-head .rk-pf i { font-size: 12px; }
.rk-head .elo { width: 52px; text-align: right; }
.row.rk-wide .role { display: none; }
.ra { font-size: 11px; margin-left: 2px; } .ra.up { color: var(--ok); } .ra.down { color: var(--red); }
@media (max-width: 640px) { .rk-pf .rk-x { display: none; } .rk-pf i { width: 50px; } .row.rk-wide .lv { display: none; } .row.rk-wide { gap: 8px; } .rk-head { gap: 8px; } }
a.row[data-act="cmpOpen"] { cursor: pointer; }
a.row[data-act="cmpOpen"]:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.cmpdlg { width: min(460px, 100%); }
.cmpdlg .pn-top { gap: 12px; align-items: center; }
.cm-av.ava { width: 44px; height: 44px; font-size: 17px; }
.cm-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-who .h { margin: 0; }
.cm-seg { margin: 4px 0 2px; }
.cm-names { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cm-list { display: flex; flex-direction: column; max-height: min(52dvh, 460px); overflow-y: auto; }
.cm-row { padding: 9px 0; border-top: 1px solid var(--line); }
.cm-row:first-child { border-top: 0; }
.cm-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; }
.cm-top span { color: var(--muted); font-weight: 600; text-align: center; }
.cm-top b { font-weight: 800; color: var(--muted); }
.cm-top b.win, .cm-top span + b:only-of-type { color: var(--fg); }
.cm-duo { display: flex; gap: 3px; margin-top: 7px; height: 6px; }
.cm-duo i { display: block; height: 100%; border-radius: 6px; background: var(--line); }
.cm-duo i.win { background: var(--fg); }
.cm-bar { position: relative; height: 7px; border-radius: 7px; background: var(--line); margin-top: 8px; }
.cm-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: var(--fg); }
.cm-bar em { position: absolute; top: -4px; width: 2px; height: 15px; margin-left: -1px; background: var(--muted); border-radius: 2px; }
.cm-p { margin-top: 5px; font-size: 12px; color: var(--muted); }

/* ---------- Ощущение приложения, а не сайта ---------- */
/* Без голубой браузерной подсветки при нажатии — вместо неё у кнопок свой мягкий отклик */
html { -webkit-tap-highlight-color: transparent; }
button, .btn, .tab, .tabs, .mechip, .suplink, .seg2, .fchips, [role="tab"], [role="switch"] { -webkit-user-select: none; user-select: none; }
a, button, [data-act], .tab, .mechip, img { -webkit-touch-callout: none; }
.btn, button { transition: transform .12s ease, opacity .12s ease, background-color .15s, color .15s, border-color .15s, filter .15s; }
.tab svg, .mechip .ava, .suplink svg { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
@media (hover: none) {
  .btn:active, .seg2 button:active, .fchips button:active { transform: scale(.96); }
  button:not(.btn):active { opacity: .7; }
  .tab:active svg { transform: scale(.84); }
  .tab:active { color: var(--fg); }
  .mechip:active .ava, .suplink:active svg { transform: scale(.9); }
}
/* Смена экрана — плавное появление */
#app.rt-in { animation: rtIn .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes rtIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #app.rt-in { animation: none; } }
/* Заготовки, пока грузятся данные */
.skel { display: flex; flex-direction: column; gap: 12px; }
.sk { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: skm 1.2s ease-in-out infinite; }
.sk.h { height: 22px; width: 45%; } .sk.s { width: 62%; } .sk.row { height: 54px; border-radius: 14px; }
@keyframes skm { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Свой профиль на компьютере: над баннером нет строки «← Назад», и его продолжение вверх уходило за край экрана —
   опускаем карточку на высоту этой строки, чтобы баннер выглядел так же, как в предпросмотре и у других игроков */
@media (min-width: 1000px) { .r-me .dprof { margin-top: 39px; } }
/* Телефон: баннер начинается от самого верха экрана и уходит под полупрозрачное меню — без чёрной полосы сверху.
   Строка «← Назад» у чужого профиля и в оформлении лежит поверх баннера, а не сдвигает его вниз */
@media (max-width: 999px) {
  .r-player .back, .r-style .back { position: absolute; z-index: 4; text-shadow: 0 1px 8px var(--bg), 0 0 2px var(--bg); }
}
/* Сам ролик видеобаннера — крошечный и невидимый: картинку показывает холст (.bn-cv), поверх которого браузеры не рисуют кнопок */
.bn-ext video.bn-src { position: absolute !important; left: 0 !important; top: 0 !important; width: 2px !important; height: 2px !important; opacity: 0 !important; pointer-events: none; }

/* Нагрузочный тест: ключ */
.ltkey { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); user-select: all; word-break: break-all; }

/* вход через бота Telegram */
.loginalt { display: block; margin: 10px auto 0; width: fit-content; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.loginalt:hover { color: var(--fg); }
.botlogin { display: grid; justify-items: center; gap: 12px; text-align: center; }
.botlogin > b { font-size: 16px; }
.botlogin .btn.big { width: 100%; }
.botlogin .hint { margin: -4px 0 0; }
.bl-wait { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 13.5px; }
.bl-wait .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--muted) 35%, transparent); border-top-color: var(--fg); animation: bnb-rot .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .bl-wait .spin { animation: none; } }

/* ---------- стартовый экран до входа (30.10): минимализм — значок, LADDER, одна строка, кнопка ---------- */
body[data-route="login"] .side, html:not(.returning) body:not([data-route]) .side { display: none; }
body[data-route="login"] .sitefoot, html:not(.returning) body:not([data-route]) .sitefoot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding-top: 16px; }
.land { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 420px; margin-inline: auto;
  min-height: calc(100vh - 110px); min-height: calc(100dvh - 110px); padding-top: env(safe-area-inset-top, 0px); }
body[data-route="login"], html:not(.returning) body:not([data-route]) { background: radial-gradient(100% 62% at 50% 36%, color-mix(in srgb, var(--fg) 7%, var(--bg)) 0%, var(--bg) 64%) fixed, var(--bg); }
.land-mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding-block: 32px; }
.land-logo { width: 92px; height: 92px; color: var(--fg); filter: drop-shadow(0 0 28px color-mix(in srgb, var(--fg) 20%, transparent)); }
.land-word { margin: 0; font-family: "Montserrat", var(--f-body); font-style: italic; font-weight: 800; font-size: 40px; line-height: 1.1;
  letter-spacing: .32em; padding-left: .32em; }
.land-tag { color: var(--muted); font-size: 16px; font-weight: 600; }
.land-bot { width: 100%; display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.land-bot > .hint { order: 2; text-align: center; margin-top: -2px; font-size: 12.5px; }
.land-bot > .loginalt { order: 3; margin-top: 0; font-size: 12.5px; }
.land-bot > .form { order: 4; }
.land .btn.tg { background: var(--gold); color: var(--gold-ink); border-radius: 999px; min-height: 54px; font-weight: 800; width: 100%; }
.land .btn.tg .tgi { width: 22px; height: 22px; flex: none; }
.land .botlogin .btn.ghost { border-radius: 999px; }
@media (min-width: 1000px) {
  body[data-route="login"], html:not(.returning) body:not([data-route]) { display: block; }
  .land { min-height: calc(100dvh - 140px); justify-content: center; }
  .land-mid { flex: 0 0 auto; padding-block: 0 40px; }
  .land-logo { width: 104px; height: 104px; }
  .land-word { font-size: 48px; }
}

/* ---------- MVP матча над статистикой (31.10, вариант «Карточка MVP + лидеры») ---------- */
.mvpb { display: grid; gap: 10px; margin: 14px 0; }
.mvp-card { position: relative; overflow: hidden; border-radius: 18px; padding: 18px; border: 1px solid color-mix(in srgb, #f5c04a 30%, var(--line));
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, #f5c04a 12%, transparent), transparent 55%), var(--surface); }
.mvp-word { position: absolute; right: 18px; top: 12px; font-family: Montserrat, Manrope, sans-serif; font-style: italic; font-weight: 800; font-size: 34px; letter-spacing: .02em; }
.mvp-word i { font-style: normal; color: #f5c04a; margin-right: 2px; }
.mvp-who { display: flex; align-items: center; gap: 14px; padding-right: 120px; }
.mvp-face { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, #f5c04a 45%, transparent); display: grid; place-items: center; font-size: 26px; }
.mvp-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvp-nm { font-size: 21px; font-weight: 800; line-height: 1.15; } .mvp-nm a { color: inherit; }
.mvp-sub { color: var(--muted); font-size: 13px; margin-top: 2px; } .mvp-sub .t-A { color: var(--blue); } .mvp-sub .t-B { color: var(--red); }
.mvp-pill { display: inline-block; margin-top: 7px; padding: 3px 9px; border-radius: 8px; font-size: 12.5px; font-weight: 800; color: #e0a92c; background: color-mix(in srgb, #f5c04a 15%, transparent); white-space: nowrap; }
.mvp-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; margin-top: 16px; }
.mvp-g b { display: block; font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; } .mvp-g b small { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-left: 3px; }
.mvp-g > div > span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mvp-lds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mvp-ld { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "f v" "t t"; align-items: center; gap: 6px 8px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.mvp-ld::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; }
.mvp-ld.t-A::before { background: var(--blue); } .mvp-ld.t-B::before { background: var(--red); }
.mvp-lf { grid-area: f; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 12px; }
.mvp-lf img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mvp-ld b { grid-area: v; font-size: 18px; font-weight: 800; }
.mvp-lt { grid-area: t; display: flex; flex-direction: column; min-width: 0; } .mvp-lt span { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvp-lt a { color: var(--fg); font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .mvpb { margin: 0; gap: 8px; }
  .mvp-card { padding: 14px; } .mvp-word { font-size: 27px; right: 14px; top: 10px; }
  .mvp-who { gap: 12px; padding-right: 92px; } .mvp-face { width: 58px; height: 58px; } .mvp-nm { font-size: 18px; }
  .mvp-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 14px; } .mvp-g b { font-size: 19px; }
  .mvp-lds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Телефон: карточка игрока — три шкалы или сборка; переключатель «Показатели / Сборки» */
.mp-sw { align-self: center; position: sticky; top: 8px; z-index: 5; box-shadow: 0 6px 18px rgb(0 0 0 / 35%); }
.mp-x { grid-column: 1 / -1; display: grid; gap: 5px; margin-top: 2px; }
.mp-br, .mp-ser { display: grid; grid-template-columns: 58px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.mp-ser { grid-template-columns: 58px minmax(0, 1fr); }
.mp-br .mx-bar { height: 6px; } .mp-br .tnum { font-size: 12px; font-weight: 800; text-align: right; }
.mp-bl { color: var(--muted); font-size: 11.5px; font-weight: 600; } .mp-tw { color: var(--orange); }
.mp-build { display: flex; align-items: center; gap: 8px; } .mp-build .mx-items { display: flex; gap: 5px; }
.mp-itb { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; display: block; flex: none; background: var(--surface-2); }
.mp-itb.none { background: transparent; border: 1px dashed var(--line); box-sizing: border-box; }
.mp-gold { margin-left: auto; font-size: 12.5px; font-weight: 800; color: #e0a92c; }

/* «Играть» на компьютере и в Android-браузере: искать матч можно только с iPhone/iPad и из приложения на Android */
.devblock { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 460px; text-align: left; padding: 14px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); margin-top: 6px; }
.devblock.pc { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
.db-top { display: flex; align-items: center; gap: 14px; }
.db-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.db-way { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.db-way b { font-size: 14.5px; color: var(--fg); } .db-way span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.db-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--fg); border: 1px solid var(--line); }
.db-ico svg { width: 22px; height: 22px; }
.db-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.db-t b { color: var(--fg); font-size: 15.5px; line-height: 1.3; }
@media (max-width: 420px) { .devblock:not(.pc) { flex-direction: column; align-items: flex-start; } .db-ways { grid-template-columns: 1fr; } }

/* Список ID для хоста: в узкой средней колонке на компьютере вместо «Копировать» — значок, чтобы ник помещался целиком */
.idrow .cp-ico { display: none; width: 16px; height: 16px; }
.ar-mid .idrow .cp { padding: 0; width: 34px; min-width: 34px; flex: none; }
.ar-mid .idrow .cp .cp-ico { display: block; } .ar-mid .idrow .cp .cp-t { display: none; }
/* Кнопки в строке админки («Добавить тестовые матчи» и т. п.) — по ширине текста, не в половину строки */
.mline .duo { display: flex; flex-wrap: wrap; gap: 8px; }
.mline .duo .btn { white-space: nowrap; }
/* История матчей на телефоне: у матча без статистики (идёт сейчас, отменён) название и дата занимают и место под K/D/A */
@media (max-width: 640px) {
  .hrow > summary:has(.hr-kda.none) .hr-res, a.hrow:has(.hr-kda.none) .hr-res { grid-column: span 2; }
  .hrow .hr-kda.none { display: none; }
}
/* Чат матча на телефоне: подпись под заголовком в одну строку, кнопка «Позвать админа» — рядом */
@media (max-width: 999px) {
  .mc-head:has(.mc-callbtn) .mc-title > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Значок PRO — киберспортсмен (выдают админы) */
.pro-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; vertical-align: middle; padding: 3px 9px 3px 6px; border-radius: 999px;
  font: 800 11.5px/1 var(--f-body); letter-spacing: .08em; color: #1a1204; background: linear-gradient(135deg, #ffe8a3, #f5b93a 55%, #d98a12);
  box-shadow: 0 0 0 1px rgba(255, 220, 140, .6) inset, 0 3px 14px rgba(245, 185, 58, .35); }
.pro-tag svg { width: 13px; height: 13px; fill: #1a1204; }
.pro-line { display: flex; align-items: center; gap: 7px; margin: 2px 0 2px; font-weight: 650; font-size: 13.5px; color: #e0a92e; }
.pro-line i { width: 6px; height: 6px; border-radius: 50%; background: #f5c55a; box-shadow: 0 0 8px #f5c55a; flex: none; }
@media (prefers-color-scheme: light) { .pro-line { color: #9a6a08; } }
.pro-mini { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 5px; border-radius: 50%; vertical-align: -3px;
  background: linear-gradient(135deg, #ffe8a3, #f5b93a 60%, #d98a12); box-shadow: 0 0 8px rgba(245, 185, 58, .45); }
.pro-mini svg { width: 11px; height: 11px; fill: #1a1204; }
.pro-ask { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; } .pro-ask input { width: 210px; min-height: 36px; padding: 6px 10px; }
/* «Изменить профиль»: подсказка стримерам — ссылки открывает админ */
.soc-ask { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line); background: var(--surface-2); margin: 4px 0; }
.sa-ic { position: relative; width: 40px; height: 40px; flex: none; }
.sa-ic i { position: absolute; width: 26px; height: 26px; border-radius: 8px; }
.sa-ic i.tw { left: 0; top: 0; background: #9146ff; box-shadow: 0 0 0 2px var(--surface-2); }
.sa-ic i.yt { right: 0; bottom: 0; background: #ff0033; box-shadow: 0 0 0 2px var(--surface-2); }
.sa-ic i.tw::after { content: ""; position: absolute; left: 8px; top: 7px; width: 3px; height: 7px; background: #fff; box-shadow: 6px 0 0 #fff; border-radius: 1px; }
.sa-ic i.yt::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.sa-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.sa-t b { color: var(--fg); font-size: 14.5px; }
.soc-ask .btn { flex: none; }
/* Три значка: Twitch, YouTube, TikTok (значок TikTok — icons/tiktok.png, дал владелец) */
.sa-ic.three { width: 58px; height: 46px; }
.sa-ic.three i.yt { left: 16px; top: 10px; right: auto; bottom: auto; }
.sa-ic.three i.tt { left: 32px; top: 20px; background: #000 url(/icons/tiktok.png) center / cover; box-shadow: 0 0 0 2px var(--surface-2); }
.row .nm.pro-nm { display: flex; align-items: center; text-overflow: clip; }
.row .nm.pro-nm .nmt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm.pro-nm .pro-mini, .row .nm.pro-nm .odot { flex: none; }
@media (max-width: 600px) {
  .soc-ask { flex-wrap: wrap; }
  .sa-t { flex-basis: calc(100% - 56px); }
  .soc-ask .btn { margin-left: 52px; }
  .soc-ask.three .sa-t { flex-basis: calc(100% - 74px); }
  .soc-ask.three .btn { margin-left: 70px; }
}

/* Значок PRO переливается: золото течёт по плашке, раз в несколько секунд по ней пробегает блик */
.pro-tag, .pro-mini { position: relative; overflow: hidden; background: linear-gradient(110deg, #d98a12 0%, #f5b93a 18%, #fff1bf 32%, #f5b93a 46%, #c9780c 62%, #ffe08a 80%, #d98a12 100%);
  background-size: 260% 100%; animation: pro-flow 4.5s linear infinite, pro-glow 2.6s ease-in-out infinite; }
.pro-tag::after, .pro-mini::after { content: ""; position: absolute; top: -40%; bottom: -40%; width: 38%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95) 50%, transparent); transform: skewX(-20deg); animation: pro-shine 3.2s ease-in-out infinite; }
.pro-tag > *, .pro-mini > * { position: relative; z-index: 1; }
@keyframes pro-flow { to { background-position: -260% 0; } }
@keyframes pro-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 220, 140, .6) inset, 0 2px 10px rgba(245, 185, 58, .3); }
  50% { box-shadow: 0 0 0 1px rgba(255, 240, 190, .9) inset, 0 3px 20px rgba(245, 185, 58, .7); } }
@keyframes pro-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .pro-tag, .pro-mini, .pro-tag::after, .pro-mini::after { animation: none; } .pro-tag::after, .pro-mini::after { display: none; } }
/* Подпись «Киберспортсмен · команда» тоже переливается золотом */
.pro-line { background: linear-gradient(100deg, #e0a92e 0%, #ffe9a8 25%, #e0a92e 50%, #b87908 75%, #e0a92e 100%); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: pro-flow 6s linear infinite; }
.pro-line i { animation: pro-dot 2.6s ease-in-out infinite; }
@keyframes pro-dot { 50% { box-shadow: 0 0 14px #ffd36b; transform: scale(1.25); } }
@media (prefers-color-scheme: light) { .pro-line { background-image: linear-gradient(100deg, #9a6a08, #d89a1a 25%, #9a6a08 50%, #6e4a00 75%, #9a6a08); } }
@media (prefers-reduced-motion: reduce) { .pro-line, .pro-line i { animation: none; } }
/* Маленькая звёздочка PRO в списках: свечение не должно обрезаться квадратом (у ника overflow: hidden),
   а блик — вылезать за круг в Safari. Свечение — только внутреннее, блик обрезаем маской по кругу. */
.row .nm.pro-nm { overflow: visible; }
.pro-mini { animation: pro-flow 4.5s linear infinite; box-shadow: 0 0 0 1px rgba(255, 230, 160, .7) inset; -webkit-mask-image: radial-gradient(circle, #000 70%, #000 71%); mask-image: radial-gradient(circle, #000 70%, #000 71%); }
.pro-tag { transform: translateZ(0); }

/* «Изменить профиль» → мейны: три слота и сетка героев */
.mn { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 4px; }
.mn-head { display: flex; justify-content: space-between; align-items: baseline; } .mn-head .hint { margin: 0; }
.mn.open .mn-head { align-items: center; gap: 10px; } .mn.open .mn-head .hint { margin-right: auto; }
button.mn-slot { font: inherit; color: inherit; cursor: pointer; border-style: dashed; }
.mn-open { align-self: flex-start; }
.soc-acc { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; } .soc-acc .hint { margin: 0 2px 0 4px; }
.soc-acc .btn.on { background: var(--surface-2); border-color: #3fbf7f; color: #3fbf7f; }
.soc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.soc-more { margin: -2px 0 2px; font-size: 13px; color: var(--muted); } .soc-more .link { font-size: 13px; }
.mn-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mn-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 14px 4px 11px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.mn-slot .mn-ic { width: 60px; height: 60px; box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px #f5b93a; }
.mn-slot b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-slot small { font-size: 11.5px; color: var(--muted); }
.mn-slot .no { position: absolute; top: 8px; left: 11px; font-size: 12px; font-weight: 800; color: #e0a92e; }
.mn-slot .x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 13px; }
.mn-slot .x:hover { background: var(--surface); color: var(--fg); }
.mn-slot.empty { border-style: dashed; background: transparent; justify-content: center; color: var(--muted); }
.mn-slot.empty i { width: 60px; height: 60px; border-radius: 50%; border: 1.5px dashed var(--line); display: grid; place-items: center; font-style: normal; font-size: 26px; }
.mn-search { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.mn-search svg { width: 17px; height: 17px; flex: none; }
.mn-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 0; box-shadow: none; outline: none; }
.mn-search:focus-within { border-color: var(--fg); }
.mn-tabs { display: flex; gap: 6px; }
.mn-tabs button { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-weight: 650; font-size: 13px; padding: 6px 13px; border-radius: 999px; }
.mn-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: transparent; }
.mn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px 6px; }
.mn-grid.short { max-height: 380px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.mn-h { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 4px 0; color: var(--muted); min-width: 0; }
.mn-h .mn-ic { width: 52px; height: 52px; transition: box-shadow .15s, transform .15s; }
.mn-h:hover .mn-ic { transform: scale(1.06); }
.mn-h span { font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-h small { font-size: 10px; color: var(--muted); opacity: .8; margin-top: -3px; }
.mn-h.sel .mn-ic { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px #f5b93a; }
.mn-h.sel span { color: var(--fg); font-weight: 650; }
.mn-h .num { position: absolute; top: 0; right: calc(50% - 32px); width: 20px; height: 20px; border-radius: 50%; background: #f5b93a; color: #1a1204; font: 800 11px/20px var(--f-body); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--surface); }
.mn-more { align-self: center; }
.mn > .hint { margin: 0; }
/* В шапке профиля PRO стоит сразу за уровнем (маленький значок ранга MLBB убран — ранг есть ниже, в «Ранг в MLBB») */
.dc-who h1 .pro-tag { margin-left: 0; padding: 4px 11px 4px 8px; font-size: 12px; }
.dc-who h1 .pro-tag svg { width: 13px; height: 13px; }

/* Звёздочка PRO у ника в составах, лобби, истории, чате, друзьях: не сжимается и не обрезается */
.pro-mini { flex: none; }
.nm.pro-nm, .ht-nm.pro-nm { display: flex; align-items: center; overflow: visible; text-overflow: clip; min-width: 0; }
.nm.pro-nm .nmt, .ht-nm.pro-nm .nmt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm.pro-nm .pro-mini, .nm.pro-nm .odot { flex: none; }
.cm-name .pro-mini { width: 14px; height: 14px; margin-left: 4px; } .cm-name .pro-mini svg { width: 9px; height: 9px; }
.ht-who .pro-mini { width: 13px; height: 13px; margin-left: 3px; } .ht-who .pro-mini svg { width: 9px; height: 9px; }
.ht-nm.pro-nm .nmt { flex: 0 1 auto; }
.mvp-lt .pro-mini { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; } .mvp-lt .pro-mini svg { width: 9px; height: 9px; }
.mvp-nm .pro-mini { width: 20px; height: 20px; margin-left: 7px; vertical-align: -2px; } .mvp-nm .pro-mini svg { width: 13px; height: 13px; }

/* Админка → Главная: счётчик приложения Android (только Создатель) */
.appst .as-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.appst .as-head .h { margin: 0; }
.as-tiles { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.as-tiles .stat small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.as-chart { margin: 16px 0 8px; }
.as-bars { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.as-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; }
.as-col i { display: block; width: 100%; max-width: 26px; background: var(--blue); border-radius: 4px 4px 0 0; }
.as-col:hover i { filter: brightness(1.2); }
.as-col:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); border-radius: 6px 6px 0 0; }
.as-n { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.as-d { position: absolute; top: calc(100% + 4px); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.as-chart { padding-bottom: 18px; }
.as-recent { margin-top: 12px; }

/* Игра группами выключена Создателем */
.pty-off .pt-chip { color: var(--muted); background: var(--surface-2); }
.pt-own { display: inline-block; margin-top: 8px; font-size: 13px; }
.ptyadm .pt-chip { vertical-align: 1px; margin-left: 6px; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.ptyadm .pt-chip.off { color: var(--muted); background: var(--surface-2); }
.ptyadm .btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 1000px) {
  .pstage.poff { align-items: center; gap: 18px; padding: 18px 24px; background: var(--surface); border-color: var(--line); }
  .pstage.poff .ps-plus { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
  .pstage.poff .ps-plus svg { width: 26px; height: 26px; }
  .poff-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
  .poff-t b { font-size: 17px; }
  .pstage.poff .pt-own { margin: 0; white-space: nowrap; }
}

/* «Итог матча» сверху вкладки «Играть» */
.rescard { display: flex; flex-direction: column; gap: 12px; --rc: var(--ok);
  border-color: color-mix(in srgb, var(--rc) 35%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 11%, var(--surface)), var(--surface) 55%); }
.rescard.loss { --rc: var(--red); }
.rc-top { display: flex; align-items: center; gap: 12px; }
.rc-hw { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--rc); background: var(--surface-2); }
.rc-hw .rc-hero, .rc-hw img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.rc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rc-k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rc-res { font-size: 21px; font-weight: 900; color: var(--rc); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.2; }
.rc-mvp { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; background: #f5b93a; color: #1a1204; }
.rc-t small { font-size: 12.5px; color: var(--muted); }
.rc-d { flex: none; text-align: right; }
.rc-d b { display: block; font-size: 30px; font-weight: 900; line-height: 1; color: var(--rc); font-variant-numeric: tabular-nums; }
.rc-d small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-bar { position: relative; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.rc-bar i, .rc-bar b { position: absolute; top: 0; bottom: 0; }
.rc-bar i { left: 0; border-radius: 99px; background: var(--fg); }
.rc-bar b { border-radius: 0 99px 99px 0; }
.rc-bar b.up { background: var(--ok); } .rc-bar b.down { background: var(--red); }
.rc-under { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.rc-under > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.rc-line { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); }
.rc-line b { color: var(--fg); font-variant-numeric: tabular-nums; }
.rc-dd { font-style: normal; color: var(--red); }
.rc-up { color: var(--ok); font-weight: 800; } .rc-down { color: var(--red); font-weight: 800; }
.rc-note { margin: 0; font-size: 13px; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 8px 12px; }
.rc-aw { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-aw > span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; }
.rc-aw .mdl { width: 20px; height: 20px; }
.rc-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rc-link { font-size: 14px; font-weight: 700; color: var(--fg); text-decoration: none; } .rc-link:hover { text-decoration: underline; }
.rc-hide { font-size: 13px; color: var(--muted); }

/* Подбор на паузе (выключил Создатель) */
.qoff { display: flex; gap: 14px; width: 100%; max-width: 460px; text-align: left; padding: 16px; border-radius: 16px; margin-top: 6px;
  background: color-mix(in srgb, var(--orange) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--orange) 35%, var(--line)); }
.qoff-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.qoff-ic svg { width: 24px; height: 24px; }
.qoff-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.qoff-t b { color: var(--fg); font-size: 16px; }
.qoff-note { color: var(--fg); font-weight: 650; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.qoff-sub { font-size: 12.5px; }
.qoff .link { font-size: 13px; align-self: flex-start; }
.qadm .pt-chip.off { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.qadm-f { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; max-width: 460px; }
.qadm-f .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Тестовый доступ к подбору (Создатель) */
.qpass-note { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 460px; margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; text-align: left; font-size: 13.5px; color: var(--muted);
  background: color-mix(in srgb, var(--orange) 9%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line)); }
.qpass-note svg { flex: none; width: 20px; height: 20px; color: var(--orange); }
.qpass-note b { color: var(--fg); }
.qpass { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.qp-head { display: flex; flex-direction: column; gap: 2px; }
.qp-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.qp-chip a { color: var(--fg); font-weight: 700; text-decoration: none; } .qp-chip small { color: var(--muted); font-size: 12px; }
.qp-x { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.qp-x:hover { background: var(--surface); color: var(--red); } .qp-x svg { width: 13px; height: 13px; }
.qp-clear { font-size: 13px; margin-left: 4px; }
.qp-find { display: flex; gap: 8px; } .qp-find input { flex: 1; min-width: 0; }
.qp-res { display: flex; flex-direction: column; gap: 2px; }
