/* ZXC Arena — сайт. Палитра как в игре: тёмный фон, панели с красной полосой сверху. */
:root {
	--bg: #0B0909;
	--panel: #151111;
	--panel-2: #1A1515;
	--border: #3A1A1E;
	--line: #ffffff0f;
	--accent: #D7263D;
	--accent-hi: #E8394F;
	--gold: #E8B94A;
	--silver: #C4CAD3;
	--bronze: #C8814A;
	--win: #7FB069;
	--loss: #D0675E;
	--text: #F2EEEE;
	--text-2: #C8C0C0;
	--muted: #9A8F90;
	--radius: 8px;
	--head: "Philosopher", Georgia, serif;
	--body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.5 var(--body);
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0; letter-spacing: .01em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.is-win { color: var(--win); }
.is-loss { color: var(--loss); }
.num { font-family: var(--head); font-variant-numeric: tabular-nums; }

.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; }

/* ---------- кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent;
	font-weight: 700; font-size: 15px; letter-spacing: .02em; cursor: pointer;
	transition: background .15s, border-color .15s, transform .15s;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--accent); color: #fff; }
.btn-red:hover { background: var(--accent-hi); }
.btn-ghost { background: #ffffff08; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }

/* ---------- шапка ---------- */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: #0B0909e6; backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
}
.header-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: .06em; white-space: nowrap; }
.logo-zxc { color: var(--accent); }
.demo-tag {
	font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
	border: 1px solid #E8B94A55; border-radius: 4px; padding: 2px 6px; margin-left: -14px;
}
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 6px; color: var(--text-2); font-weight: 600; }
.nav a:hover, .nav a.is-active { color: var(--text); background: #ffffff0a; }
.btn-play { height: 40px; padding: 0 18px; }
.btn-play .ico { width: 14px; height: 14px; fill: currentColor; }

/* ---------- панели ---------- */
.panel {
	background: var(--panel);
	border: 1px solid var(--border);
	border-top: 2px solid var(--accent);
	border-radius: var(--radius);
}
.section { padding: 56px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-title { font-size: 30px; }
.kicker { font-size: 12px; letter-spacing: .16em; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.label { font-size: 12px; letter-spacing: .12em; color: var(--muted); font-weight: 700; text-transform: uppercase; }

/* ---------- первый экран ---------- */
.hero {
	position: relative; overflow: hidden;
	border-bottom: 1px solid var(--border);
	background: #0B0909 url("/assets/img/bg.jpg") center 30% / cover no-repeat;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, #0B0909f2 0%, #0B0909cc 45%, #0B090966 100%),
		linear-gradient(0deg, #0B0909 0%, #0B090900 40%);
}
.hero-in { position: relative; padding: 96px 24px 64px; }
.hero h1 { font-size: 56px; line-height: 1.08; max-width: 640px; margin: 14px 0 16px; }
.hero-lead { font-size: 18px; color: var(--text-2); max-width: 600px; margin: 0 0 28px; }
.hero-lead b { color: var(--text); font-weight: 700; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 12px; margin-top: 48px; flex-wrap: wrap; }
.stat { min-width: 180px; padding: 14px 20px 16px; }
.stat-value { font-family: var(--head); font-size: 34px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- пьедестал ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 14px; align-items: end; margin-bottom: 22px; }
.pod {
	position: relative; overflow: hidden; display: block;
	border-radius: var(--radius); border: 1px solid var(--border);
	background: var(--panel) center / cover no-repeat;
	padding: 22px 18px 18px; text-align: center; min-height: 236px;
	transition: transform .2s, border-color .2s;
}
.pod:hover { transform: translateY(-3px); }
.pod::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0B090966 0%, #0B0909e6 75%); }
.pod > * { position: relative; }
.pod-1 { min-height: 280px; border-color: #E8B94A88; border-top: 2px solid var(--gold); background-image: url("/assets/img/podium_1.jpg"); }
.pod-2 { border-color: #C4CAD366; border-top: 2px solid var(--silver); background-image: url("/assets/img/podium_2.jpg"); }
.pod-3 { border-color: #C8814A66; border-top: 2px solid var(--bronze); background-image: url("/assets/img/podium_3.jpg"); }
.pod-place { font-family: var(--head); font-size: 15px; font-weight: 700; letter-spacing: .14em; display: flex; justify-content: center; align-items: center; gap: 6px; }
.pod-1 .pod-place { color: var(--gold); }
.pod-2 .pod-place { color: var(--silver); }
.pod-3 .pod-place { color: var(--bronze); }
.pod-place .ico { width: 20px; height: 20px; fill: var(--gold); stroke: var(--gold); }
.pod .ava { margin: 14px auto 10px; }
.pod-1 .ava { box-shadow: 0 0 0 2px var(--gold), 0 0 24px #E8B94A55; }
.pod-2 .ava { box-shadow: 0 0 0 2px var(--silver); }
.pod-3 .ava { box-shadow: 0 0 0 2px var(--bronze); }
.pod-name { font-weight: 800; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-mmr { font-family: var(--head); font-size: 34px; font-weight: 700; line-height: 1.15; }
.pod-1 .pod-mmr { color: var(--gold); font-size: 42px; }
.pod-meta { font-size: 13px; color: var(--text-2); display: flex; justify-content: center; gap: 10px; margin-top: 6px; align-items: center; }

/* ---------- таблица ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 360px; min-width: 200px; }
.search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search input {
	width: 100%; height: 40px; padding: 0 12px 0 36px;
	background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px;
	font: inherit; outline: none; transition: border-color .15s;
}
.search input:focus { border-color: var(--accent); }
.search input::placeholder { color: var(--muted); }
.toolbar-info { margin-left: auto; font-size: 13px; color: var(--muted); }

.table { width: 100%; border-collapse: collapse; }
.table th {
	text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
	font-weight: 700; padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.table td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr.is-link:hover { background: #ffffff07; }
.table .r { text-align: right; }
.table .c { text-align: center; }
.col-place { width: 64px; }
.col-mmr { width: 110px; }
.col-wl { width: 110px; }
.col-wr { width: 150px; }
.t-place { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--muted); }
.t-place.p1 { color: var(--gold); }
.t-place.p2 { color: var(--silver); }
.t-place.p3 { color: var(--bronze); }
.t-player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-mmr { font-family: var(--head); font-weight: 700; font-size: 19px; }
.wl-w { color: var(--win); font-weight: 700; }
.wl-l { color: var(--loss); font-weight: 700; }
.wl-sep { color: var(--muted); margin: 0 4px; }
.wr { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.wr-bar { width: 56px; height: 4px; border-radius: 2px; background: #D0675E55; overflow: hidden; }
.wr-bar i { display: block; height: 100%; background: var(--win); }
.wr-val { font-weight: 700; min-width: 38px; text-align: right; }
mark { background: #D7263D44; color: inherit; border-radius: 2px; }

.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.loading { padding: 36px 16px; text-align: center; color: var(--muted); }
.loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- пагинация ---------- */
.pager { display: flex; justify-content: center; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager:empty { display: none; }
.pager-btn {
	min-width: 36px; height: 36px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border);
	background: transparent; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.pager-btn:hover:not(:disabled) { border-color: var(--accent); }
.pager-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; cursor: default; }
.pager-btn:disabled:not(.is-active) { opacity: .35; cursor: default; }
.pager-gap { align-self: center; color: var(--muted); padding: 0 4px; }

/* ---------- аватар, ранг, место ---------- */
.ava {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	border-radius: 50%; overflow: hidden; background: #241A1B; border: 1px solid var(--border);
	font-family: var(--head); font-weight: 700; color: var(--text-2);
}
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rank { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--rank); --rank: #8B7B6B; white-space: nowrap; }
.rank-shield { width: 16px; height: 18px; flex: none; }
.rank-shield path { fill: var(--rank); opacity: .25; }
.rank-shield .rank-shield-in { opacity: 1; }
.rank-sm { font-size: 12px; }
.rank-sm .rank-shield { width: 13px; height: 15px; }
.rank-immortal { --rank: #D7263D; }
.rank-divine { --rank: #B9A8FF; }
.rank-ancient { --rank: #5FC4A8; }
.rank-legend { --rank: #E8B94A; }
.rank-archon { --rank: #5AA7D8; }
.rank-crusader { --rank: #6FBF8A; }
.rank-guardian { --rank: #A8B4A0; }
.rank-herald { --rank: #A08A72; }
.rank-uncalibrated { --rank: #9A8F90; }

.place {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px;
	font-family: var(--head); font-weight: 700; font-size: 14px; line-height: 1.4;
	background: #ffffff0d; color: var(--text-2); border: 1px solid #ffffff14;
}
.place .ico { width: 14px; height: 14px; fill: currentColor; }
.place-gold { background: linear-gradient(180deg, #F3CF6E, #C8932E); color: #2A1C05; border-color: #F3CF6E; }
.place-silver { background: linear-gradient(180deg, #E3E7EC, #9EA6B1); color: #1C1F24; border-color: #E3E7EC; }
.place-bronze { background: linear-gradient(180deg, #E0A06A, #A8642F); color: #2A1404; border-color: #E0A06A; }
.place-cal { font-family: var(--body); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.place-big { font-size: 18px; padding: 4px 12px; }
.place-big .ico { width: 18px; height: 18px; }

.dots { display: inline-flex; gap: 5px; vertical-align: middle; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-w { background: var(--win); }
.dot-l { background: var(--loss); }
.dot-empty { background: transparent; border: 1px solid #ffffff26; }

.reason { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); white-space: nowrap; }
.reason-ico { width: 18px; height: 18px; color: var(--accent); }

.plink { font-weight: 700; }
.plink:hover { color: var(--accent-hi); }
.plink-none, .plink-none:hover { color: inherit; opacity: .6; cursor: default; }

/* ---------- лента матчей ---------- */
.feed-row { display: grid; grid-template-columns: 1fr 44px 1fr minmax(170px, 230px) 64px 110px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 0; }
.feed-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.feed-side.right { justify-content: flex-start; }
.feed-side .plink { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-delta { font-size: 13px; font-weight: 700; }
.feed-vs { font-family: var(--head); color: var(--muted); font-size: 13px; text-align: center; }
.feed-tag { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 1px 6px; border-radius: 3px; }
.feed-tag.w { color: var(--win); background: #7FB0691f; }
.feed-tag.l { color: var(--loss); background: #D0675E1f; }
.feed-time { font-size: 13px; color: var(--muted); text-align: right; }
.feed-dur { font-variant-numeric: tabular-nums; color: var(--text-2); text-align: right; }

/* ---------- подвал ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); padding: 22px 0 28px; font-size: 13px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-2); }

/* ---------- профиль ---------- */
.profile-head { display: flex; align-items: center; gap: 24px; padding: 28px; position: relative; overflow: hidden; }
.profile-head::before {
	content: ""; position: absolute; inset: 0; opacity: .35;
	background: url("/assets/img/bg.jpg") center 30% / cover no-repeat;
	mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
.profile-head > * { position: relative; }
.profile-head.is-first .ava { box-shadow: 0 0 0 3px var(--gold), 0 0 32px #E8B94A55; }
.profile-main { min-width: 0; flex: 1; }
.profile-name { font-size: 40px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-tags { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.profile-mmr { text-align: right; }
.profile-mmr-val { font-family: var(--head); font-size: 64px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.profile-head.is-first .profile-mmr-val { color: var(--gold); }
.profile-actions { display: flex; justify-content: flex-end; margin: 14px 0 0; }

.cards { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 14px; margin-top: 14px; }
.card { padding: 18px 20px 20px; }
.card .label { margin-bottom: 12px; display: block; }
.card-big { font-family: var(--head); font-size: 34px; font-weight: 700; line-height: 1.1; }
.card-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.card .dots { gap: 8px; }
.card .dot { width: 18px; height: 18px; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.way { background: var(--panel-2); border: 1px solid #3a2222; border-radius: 6px; padding: 10px 6px 12px; text-align: center; }
.way .ico { width: 26px; height: 26px; color: var(--accent); }
.way-pct { font-family: var(--head); font-size: 24px; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.way-name { font-size: 12px; color: var(--text-2); line-height: 1.25; }

.chart-panel { margin-top: 14px; padding: 18px 20px 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chart-box { position: relative; margin-top: 10px; }
.chart-box svg { display: block; width: 100%; height: 240px; overflow: visible; }
.chart-tip {
	position: absolute; top: 0; pointer-events: none; transform: translate(-50%, -110%);
	background: #0B0909f2; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 13px;
	white-space: nowrap; opacity: 0; transition: opacity .1s;
}
.chart-tip b { font-family: var(--head); color: var(--gold); font-size: 16px; }

.history { margin-top: 14px; }
.history-head { padding: 16px 16px 12px; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.mrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(170px, 240px) 64px 76px 130px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow .dot { width: 12px; height: 12px; }
.mrow-opp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mrow-opp .plink { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-delta { font-family: var(--head); font-weight: 700; font-size: 18px; text-align: right; }
.mrow-dur { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mrow-time { text-align: right; color: var(--muted); font-size: 13px; }
.more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line); }
.more:empty { display: none; }

.toast {
	position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
	background: var(--panel); border: 1px solid var(--border); border-top: 2px solid var(--win);
	padding: 10px 18px; border-radius: 6px; font-weight: 700; transition: opacity .2s, transform .2s; z-index: 50;
	display: flex; gap: 8px; align-items: center;
}
.toast .ico { color: var(--win); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- правила ---------- */
.rules-page { max-width: 760px; }
.rules-box { margin-top: 18px; overflow: hidden; }
.rules-sec { padding: 20px 24px 22px; }
.rules-sec + .rules-sec { border-top: 1px solid var(--line); }
.rules-sec .label { display: block; margin-bottom: 14px; }
.wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.win-card { background: var(--panel-2); border: 1px solid #3a2222; border-radius: 6px; padding: 18px 10px; text-align: center; }
.win-card .ico { width: 34px; height: 34px; color: var(--accent); }
.win-card div { margin-top: 8px; font-weight: 700; }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--text-2); font-size: 16px; }
.rule-list .ico { color: var(--muted); width: 18px; height: 18px; }
.rules-note { color: var(--text-2); font-size: 14px; line-height: 1.65; margin: 0; }
.rules-note + .rules-note { margin-top: 8px; }
.rank-table { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rank-cell { background: var(--panel-2); border: 1px solid #3a2222; border-radius: 6px; padding: 10px 12px; }
.rank-cell .muted { font-size: 13px; display: block; margin-top: 2px; }

/* ---------- адаптив: планшет ---------- */
@media (max-width: 900px) {
	.hero h1 { font-size: 42px; }
	.cards { grid-template-columns: 1fr 1fr; }
	.cards .card-ways { grid-column: 1 / -1; }
	.feed-row { grid-template-columns: 1fr 34px 1fr 64px; }
	.feed-row .reason, .feed-row .feed-time { display: none; }
	.mrow { grid-template-columns: 20px minmax(0, 1fr) 44px 56px 64px; }
	.mrow .mrow-time { display: none; }
	.mrow .reason-text { display: none; }
}

/* ---------- адаптив: телефон ---------- */
@media (max-width: 640px) {
	html { scroll-padding-top: 104px; }
	.wrap { padding: 0 16px; }

	/* шапка в две строки: логотип + «Играть», под ними меню */
	.header-in { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 10px; padding-bottom: 6px; }
	.logo { font-size: 20px; }
	.demo-tag { margin-left: 0; }
	.btn-play { margin-left: auto; height: 34px; padding: 0 14px; font-size: 14px; }
	.nav { order: 3; width: 100%; margin: 6px 0 0 -10px; gap: 2px; }
	.nav a { padding: 6px 10px; font-size: 14px; }

	/* первый экран */
	.hero-in { padding: 40px 16px 32px; }
	.hero h1 { font-size: 32px; margin: 10px 0 12px; }
	.hero-lead { font-size: 16px; margin-bottom: 22px; }
	.hero-actions .btn { flex: 1 1 100%; }
	.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
	.stat { min-width: 0; padding: 10px 10px 12px; }
	.stat-value { font-size: 22px; }
	.stat-label { font-size: 11px; line-height: 1.3; }

	.section { padding-top: 40px; }
	.section-title { font-size: 26px; }

	/* пьедестал: три колонки, но компактно */
	.podium { gap: 8px; margin-bottom: 16px; }
	.pod { min-height: 0; padding: 12px 6px 12px; }
	.pod-1 { min-height: 0; }
	.pod .ava { width: 48px !important; height: 48px !important; font-size: 22px !important; margin: 8px auto 6px; }
	.pod-1 .ava { width: 58px !important; height: 58px !important; }
	.pod-place { font-size: 13px; }
	.pod-place .ico { width: 16px; height: 16px; }
	.pod-name { font-size: 13px; }
	.pod-mmr { font-size: 22px; }
	.pod-1 .pod-mmr { font-size: 26px; }
	.pod-meta { flex-direction: column; gap: 2px; font-size: 12px; margin-top: 4px; }
	.pod-meta > span:nth-child(2) { display: none; }   /* W–L — есть в профиле */

	/* таблица: без W–L, без полоски винрейта, ник обрезается */
	.toolbar { padding: 12px; }
	.search { min-width: 0; max-width: none; flex: 1 1 100%; }
	.toolbar-info { margin-left: 0; }
	.table { table-layout: fixed; }
	.table th, .table td { padding: 9px 8px; }
	.table th:first-child, .table td:first-child { padding-left: 12px; }
	.table th:last-child, .table td:last-child { padding-right: 12px; }
	.col-place { width: 40px; }
	.col-mmr { width: 62px; }
	.col-wr { width: 56px; }
	.table .col-wl { display: none; }
	.wr-bar { display: none; }
	.wr-val { min-width: 0; }
	.t-player { gap: 8px; }
	.t-player .ava { width: 28px !important; height: 28px !important; font-size: 13px !important; }
	.t-player .rank { display: none; }
	.t-mmr { font-size: 17px; }

	/* лента матчей: победитель и проигравший друг под другом */
	.feed-row { grid-template-columns: minmax(0, 1fr) 48px; grid-template-areas: "w dur" "l dur"; gap: 6px 10px; padding: 10px 12px; }
	.feed-row > .feed-side:first-child { grid-area: w; }
	.feed-row > .feed-side:nth-child(3) { grid-area: l; }
	.feed-row .feed-vs { display: none; }
	.feed-row .feed-dur { grid-area: dur; }

	/* профиль */
	.profile-head { flex-wrap: wrap; gap: 14px 16px; padding: 18px; }
	.profile-head .ava { width: 64px !important; height: 64px !important; font-size: 28px !important; }
	.profile-name { font-size: 26px; }
	.profile-tags { gap: 8px; margin-top: 8px; }
	.profile-mmr { width: 100%; text-align: left; display: flex; align-items: baseline; gap: 10px; }
	.profile-mmr-val { font-size: 44px; }
	.profile-actions { justify-content: stretch; }
	.profile-actions .btn { width: 100%; }
	.cards { gap: 10px; }
	.card { padding: 14px 14px 16px; }
	.card-big { font-size: 28px; }
	.card .dot { width: 14px; height: 14px; }
	.chart-panel { padding: 14px 12px 10px; }
	.chart-box svg { height: 200px; }
	.mrow { grid-template-columns: 12px minmax(0, 1fr) 40px 48px; gap: 10px; padding: 10px 12px; }
	.mrow .reason { display: none; }

	/* правила */
	.rules-sec { padding: 16px 16px 18px; }
	.win-card { padding: 14px 6px; font-size: 14px; }
	.rank-table { grid-template-columns: repeat(2, 1fr); }
}
