/* =====================================================================
   CS-RYAZAN :: CYBERPUNK — страница статистики (/stats, js/cx-stats.js)
   Оформление по мотивам веб-страницы статистики бота (csstats.html).
   Все цвета — из цветовой темы сайта (--cp-*).
   ===================================================================== */
.cx-st {
	--st-pos: var(--cp-green, #2bff88);
	--st-neg: #ff3b5c;
	--st-cyan: var(--cp-cyan, #00e5ff);
	--st-cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
	position: relative; margin-bottom: 26px;
	background:
		radial-gradient(900px 300px at 50% -80px, rgba(var(--cp-red-rgb), .18), transparent 70%),
		repeating-linear-gradient(0deg, rgba(var(--cp-red-rgb), .03) 0 1px, transparent 1px 4px),
		linear-gradient(170deg, rgba(var(--cp-panel-2-rgb), .97), rgba(var(--cp-bg-rgb), .98));
	border: 1px solid var(--cp-line);
	box-shadow: 0 0 34px rgba(var(--cp-red-rgb), .12), 0 14px 40px rgba(0, 0, 0, .45);
	color: var(--cp-text-2);
}
.cx-st__corner { position: absolute; width: 20px; height: 20px; z-index: 2; pointer-events: none; }
.cx-st__corner--tl { top: -1px; left: -1px; border-top: 2px solid var(--cp-red); border-left: 2px solid var(--cp-red); }
.cx-st__corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cp-red); border-right: 2px solid var(--cp-red); }

/* ---------- шапка ---------- */
.cx-st__head {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px;
	border-bottom: 1px solid var(--cp-line);
	background: linear-gradient(90deg, rgba(var(--cp-red-rgb), .1), transparent 60%);
}
.cx-st__brand { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.cx-st__brand-sub { font: 700 .62rem var(--font-display); letter-spacing: .2em; color: var(--cp-red-hot); }
.cx-st__brand-sub i { font-style: normal; color: var(--cp-amber, #ffb020); }
.cx-st__title {
	margin: 0 !important; padding: 0 !important; border: 0 !important;
	font: 900 1.45rem var(--font-display) !important; letter-spacing: .14em; text-transform: uppercase; color: #fff !important;
	text-shadow: 0 0 18px rgba(var(--cp-red-rgb), .55);
}
.cx-st__title em { font-style: normal; color: var(--cp-red); margin-right: 6px; }

.cx-st__search { position: relative; display: flex; align-items: center; flex: 0 1 420px; min-width: 240px; height: 40px;
	background: rgba(var(--cp-bg-rgb), .8); border: 1px solid var(--cp-line-soft);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.cx-st__search:focus-within { border-color: var(--cp-red); box-shadow: 0 0 14px rgba(var(--cp-red-rgb), .3); }
.cx-st__search > i { padding: 0 10px 0 14px; color: var(--cp-red); font-size: .85rem; }
.cx-st__search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
	color: #fff !important; font-family: var(--font-ui); font-size: .95rem; outline: none; }
.cx-st__search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.cx-st__search button { height: 100%; padding: 0 16px; border: 0; cursor: pointer;
	font: 700 .62rem var(--font-display); letter-spacing: .16em; text-transform: uppercase;
	color: var(--cp-accent-text); background: linear-gradient(135deg, var(--cp-red), var(--cp-red-dark)); }
.cx-st__search button:hover { filter: brightness(1.12); }
.cx-st__suggest { position: fixed; z-index: 50; display: flex; flex-direction: column; min-width: 280px;
	background: rgba(var(--cp-bg-rgb), .98); border: 1px solid var(--cp-line); box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.cx-st__suggest[hidden] { display: none; }
.cx-st__suggest button { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--cp-line-soft);
	background: transparent; color: var(--cp-text-2); text-align: left; cursor: pointer; font-family: var(--font-ui); font-size: .95rem; }
.cx-st__suggest button:last-child { border-bottom: 0; }
.cx-st__suggest button:hover, .cx-st__suggest button:focus { background: rgba(var(--cp-red-rgb), .14); color: #fff; outline: none; }
.cx-st__sug-rank { flex: 0 0 52px; font: 700 .72rem var(--font-display); color: var(--cp-red-hot); }
.cx-st__sug-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.cx-st__sug-skill { font: 700 .7rem var(--font-display); color: var(--cp-text-mute); }
.cx-st__sug-empty { padding: 10px 14px; color: var(--cp-text-mute); font-size: .85rem; }

.cx-st__me { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; cursor: pointer;
	font: 700 .62rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #fff;
	background: rgba(var(--cp-red-rgb), .12); border: 1px solid var(--cp-line);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background .2s, border-color .2s; }
.cx-st__me i { color: var(--cp-red); }
.cx-st__me:hover { background: rgba(var(--cp-red-rgb), .24); border-color: var(--cp-red); }
.cx-st__me[hidden] { display: none; }

/* ---------- вкладки ---------- */
.cx-st__tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 0 12px;
	border-bottom: 1px solid var(--cp-line-soft); background: rgba(var(--cp-void-rgb), .45); }
.cx-st__tabs::-webkit-scrollbar { display: none; }
.cx-st__tabs button {
	position: relative; flex: 0 0 auto; padding: 13px 22px 12px; border: 0; background: transparent; cursor: pointer;
	font: 700 .78rem var(--font-display); letter-spacing: .12em; color: var(--cp-text-2); transition: color .2s, background .2s;
}
.cx-st__tabs button + button::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--cp-line-soft); }
.cx-st__tabs button:hover:not(:disabled) { color: #fff; background: rgba(var(--cp-red-rgb), .08); }
.cx-st__tabs button.is-active { color: #fff; background: linear-gradient(180deg, rgba(var(--cp-red-rgb), .26), rgba(var(--cp-red-rgb), .06)); }
.cx-st__tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--cp-red); box-shadow: 0 0 10px var(--cp-red-glow); }
.cx-st__tabs button:disabled { opacity: .3; cursor: not-allowed; }

/* ---------- тело ---------- */
.cx-st__body { padding: 16px 20px 20px; min-height: 380px; }
.cx-st__loading, .cx-st__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 340px; text-align: center; }
.cx-st__loading i { width: 46px; height: 46px; border: 2px solid var(--cp-line); border-top-color: var(--cp-red); border-radius: 50%; animation: cxStSpin .8s linear infinite; }
.cx-st__loading span { font: 700 .66rem var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--cp-text-mute); }
@keyframes cxStSpin { to { transform: rotate(360deg); } }
.cx-st__empty > i { font-size: 2rem; color: var(--cp-red); opacity: .8; }
.cx-st__empty p { margin: 0; max-width: 440px; color: var(--cp-text-mute); }
.cx-st__btn { margin-top: 4px; padding: 9px 18px; border: 1px solid var(--cp-line); background: rgba(var(--cp-red-rgb), .12); color: #fff; cursor: pointer;
	font: 700 .62rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.cx-st__btn:hover { border-color: var(--cp-red); background: rgba(var(--cp-red-rgb), .24); }

.cx-st__sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--cp-line-soft); }
.cx-st__sec-title { font: 700 .86rem var(--font-display); letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.cx-st__sec-title em { font-style: normal; color: var(--cp-red); margin-right: 4px; }
.cx-st__sec-title b { margin-left: 6px; color: var(--st-cyan); text-shadow: 0 0 10px rgba(var(--cp-cyan-rgb), .5); }
.cx-st__who { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.cx-st__who-name { font-family: var(--font-ui); font-weight: 700; font-size: 1.05rem; color: #fff; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-st__who-sid { font-family: var(--font-ui); font-weight: 600; font-size: .92rem; color: var(--st-cyan); }
.cx-st__who-sid b { color: #fff; }

/* ---------- плитки (ранг / статы) ---------- */
.cx-st__grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.cx-st__col { display: flex; flex-direction: column; gap: 10px; }
.cx-st__tile {
	position: relative; flex: 1 1 0; min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	padding: 14px 14px 12px; text-align: center;
	background: linear-gradient(160deg, rgba(var(--cp-red-rgb), .1), rgba(var(--cp-bg-rgb), .7) 70%);
	border: 1px solid var(--cp-line-soft);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.cx-st__tile::after { content: ""; position: absolute; top: 8px; right: 8px; width: 4px; height: 4px; background: var(--cp-red); box-shadow: 0 0 6px var(--cp-red); }
.cx-st__tile-l { font: 700 .66rem var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--cp-text-mute); }
.cx-st__tile-v { font: 700 1.25rem var(--font-display); letter-spacing: .02em; color: #fff; }
.cx-st__tile-v small { font-family: var(--font-ui); font-size: .78rem; font-weight: 600; color: var(--cp-text-mute); letter-spacing: 0; }
.cx-st__tile-s { font-size: .74rem; color: var(--cp-text-mute); }
.cx-st__rankname { color: var(--st-cyan); text-shadow: 0 0 12px rgba(var(--cp-cyan-rgb), .45); font-size: 1rem; }
.cx-st__bar { width: 100%; height: 4px; margin-top: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.cx-st__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cp-red-dark), var(--cp-red), var(--cp-red-hot)); box-shadow: 0 0 10px var(--cp-red-glow); }
.cx-st__xp { display: flex; justify-content: space-between; gap: 6px; width: 100%; margin-top: 4px; font-size: .74rem; }
.cx-st__xp span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--st-cyan); }
.cx-st__xp .is-dim { color: var(--cp-text-mute); }
.cx-st__xp .is-max { color: var(--cp-amber, #ffb020); font-weight: 700; }
.is-pos { color: var(--st-pos) !important; text-shadow: 0 0 10px color-mix(in srgb, var(--st-pos) 40%, transparent); }
.is-neg { color: var(--st-neg) !important; }

/* аватар / фигура бойца */
.cx-st__media {
	position: relative; min-height: 330px; display: flex; align-items: center; justify-content: center; overflow: hidden;
	background:
		radial-gradient(60% 50% at 50% 55%, rgba(var(--cp-red-rgb), .22), transparent 70%),
		linear-gradient(rgba(var(--cp-red-rgb), .06) 1px, transparent 1px) 0 0 / 100% 22px,
		linear-gradient(90deg, rgba(var(--cp-red-rgb), .06) 1px, transparent 1px) 0 0 / 22px 100%,
		rgba(var(--cp-bg-rgb), .7);
	border: 1px solid var(--cp-line);
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 9%);
}
.cx-st__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 2px 4px); }
.cx-st__avatar { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center top; }
.cx-st__body-fig { position: relative; width: 62%; height: 88%; max-height: 420px; filter: drop-shadow(0 0 10px var(--cp-red-glow)); }
.cx-st__body-fig::before, .cx-st__body-fig::after { content: ""; position: absolute; inset: 0; }
.cx-st__body-fig::before { background: var(--cp-red); -webkit-mask: url(../img/stats/body_glow.png) center / contain no-repeat; mask: url(../img/stats/body_glow.png) center / contain no-repeat; }
.cx-st__body-fig::after { background: url(../img/stats/body.png) center / contain no-repeat; }
.cx-st__media-tag { position: absolute; left: 12px; bottom: 10px; z-index: 2; font: 900 1.4rem var(--font-display); color: #fff; text-shadow: 0 0 14px var(--cp-red-glow); }
.cx-st__media-tag small { font: 600 .7rem var(--font-ui); color: var(--cp-text-mute); letter-spacing: .04em; }

/* карта попаданий */
.cx-st__hitmap { position: absolute; inset: 0; }
.cx-st__hitmap .cx-st__body-fig { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
.cx-st__pin { position: absolute; z-index: 2; height: 1px; background: var(--st-cyan); opacity: .85; }
.cx-st__pin::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--st-cyan); box-shadow: 0 0 8px var(--st-cyan); }
.cx-st__pin.is-left::after { right: -3px; }
.cx-st__pin.is-right::after { left: -3px; }
.cx-st__pin-v { position: absolute; z-index: 3; display: flex; flex-direction: column; font: 700 .9rem var(--font-display); line-height: 1; color: var(--st-cyan); text-shadow: 0 0 8px rgba(var(--cp-cyan-rgb), .5); white-space: nowrap; }
.cx-st__pin-v small { margin-top: 3px; font: 600 .6rem var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--cp-text-mute); text-shadow: none; }
.cx-st__pin-v.is-left { left: 4%; text-align: left; }
.cx-st__pin-v.is-right { right: 4%; text-align: right; align-items: flex-end; }

.cx-st__strip { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; padding: 10px 14px; background: rgba(var(--cp-bg-rgb), .55); border: 1px solid var(--cp-line-soft); font-size: .86rem; }
.cx-st__strip i { color: var(--cp-red); margin-right: 4px; }
.cx-st__strip b { color: #fff; font-family: var(--font-display); font-size: .8rem; letter-spacing: .04em; }

/* ---------- таблицы (топ / поиск / карты) ---------- */
.cx-st__table-wrap { overflow-x: auto; }
.cx-st__table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-family: var(--font-ui); }
.cx-st__table th {
	padding: 6px 12px; text-align: center; white-space: nowrap; border: 0 !important; background: transparent !important;
	font: 700 .64rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--cp-text-mute);
}
.cx-st__table td {
	padding: 9px 12px; text-align: center; white-space: nowrap; border: 0 !important;
	font-size: 1.02rem; font-weight: 700; color: #fff;
	background: rgba(var(--cp-panel-2-rgb), .7);
	border-top: 1px solid var(--cp-line-soft) !important; border-bottom: 1px solid var(--cp-line-soft) !important;
	transition: background .15s;
}
.cx-st__table td:first-child { border-left: 2px solid transparent !important; }
.cx-st__table tbody tr[data-sid] { cursor: pointer; }
.cx-st__table tbody tr[data-sid]:hover td, .cx-st__table tbody tr[data-sid]:focus td { background: rgba(var(--cp-red-rgb), .14); outline: none; }
.cx-st__table tbody tr[data-sid]:hover td:first-child { border-left-color: var(--cp-red) !important; }
.cx-st__table .cx-st__pl { width: 100%; text-align: left; }
.cx-st__table .cx-st__pl > div { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 460px; }
.cx-st__nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.06rem; }
.cx-st__pos { font: 900 1.05rem var(--font-display) !important; color: var(--cp-red-hot) !important; }
.cx-st__table tr.is-top1 td { background: rgba(255, 176, 32, .1); border-color: rgba(255, 176, 32, .25) !important; }
.cx-st__table tr.is-top1 td:first-child { border-left-color: #ffb020 !important; }
.cx-st__table tr.is-top1 .cx-st__pos { color: #ffcf4a !important; }
.cx-st__medal { font-size: 1.05rem; }
.cx-st__medal.is-gold { color: #ffcf4a; filter: drop-shadow(0 0 6px rgba(255, 207, 74, .6)); }
.cx-st__medal.is-silver { color: #d6dde6; }
.cx-st__medal.is-bronze { color: #e08a4e; }
.cx-st__cc { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 18px; padding: 0 4px;
	font: 700 .56rem var(--font-display); letter-spacing: .06em; color: var(--st-cyan); border: 1px solid rgba(var(--cp-cyan-rgb), .4); background: rgba(var(--cp-cyan-rgb), .07); }
.cx-st__cc.is-none { color: var(--cp-text-mute); border-color: var(--cp-line-soft); background: transparent; }
.cx-st__kd { font-family: var(--font-display); font-size: .9rem; }

.cx-st__map { text-align: left !important; min-width: 180px; }
.cx-st__map b { display: block; color: var(--cp-red-hot); font-weight: 700; }
.cx-st__mapbar { display: block; height: 3px; margin-top: 5px; background: rgba(255, 255, 255, .06); }
.cx-st__mapbar i { display: block; height: 100%; background: var(--cp-red); box-shadow: 0 0 8px var(--cp-red-glow); }

.cx-st__pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cx-st__pager button { min-width: 38px; height: 36px; padding: 0 12px; border: 1px solid var(--cp-line-soft); background: rgba(var(--cp-bg-rgb), .7); color: var(--cp-text-2); cursor: pointer;
	font: 700 .66rem var(--font-display); letter-spacing: .08em; transition: border-color .2s, background .2s, color .2s; }
.cx-st__pager button:hover:not(:disabled) { border-color: var(--cp-red); color: #fff; }
.cx-st__pager button.is-active { background: linear-gradient(135deg, var(--cp-red), var(--cp-red-dark)); color: var(--cp-accent-text); border-color: transparent; }
.cx-st__pager button:disabled { opacity: .35; cursor: not-allowed; }
.cx-st__pager span { align-self: center; color: var(--cp-text-mute); }

/* ---------- оружие ---------- */
.cx-st__wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cx-st__wcard {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 0 10px; padding: 10px 12px 12px;
	background: linear-gradient(160deg, rgba(var(--cp-red-rgb), .1), rgba(var(--cp-bg-rgb), .75) 70%);
	border: 1px solid var(--cp-line-soft); border-left: 2px solid var(--cp-red);
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
	transition: border-color .2s, transform .2s;
}
.cx-st__wcard:hover { border-color: var(--cp-line); border-left-color: var(--cp-red); transform: translateY(-2px); }
.cx-st__wname { grid-column: 1 / -1; margin-bottom: 6px; font: 700 .7rem var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--cp-red-hot); }
.cx-st__wimg { display: flex; align-items: center; justify-content: center; min-height: 90px; }
.cx-st__wimg img { max-width: 100%; max-height: 74px; filter: drop-shadow(0 0 8px rgba(var(--cp-red-rgb), .35)); }
.cx-st__wstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 6px; align-content: center; text-align: center; }
.cx-st__wstats span { display: block; font: 700 .5rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--cp-text-mute); }
.cx-st__wstats b { display: block; margin-top: 2px; font: 700 .86rem var(--font-display); color: #fff; }
.cx-st__wstats b.is-acc { color: var(--cp-red-hot); }

/* ---------- график ---------- */
.cx-st__chart-info { margin: -4px 0 8px; font-size: .86rem; color: var(--cp-text-mute); }
.cx-st__chart-info b { font-family: var(--font-display); }
.cx-st__chart { position: relative; height: 380px; padding: 10px; background: rgba(var(--cp-bg-rgb), .55); border: 1px solid var(--cp-line-soft); }

/* ---------- подвал ---------- */
.cx-st__foot { padding: 10px 20px; border-top: 1px solid var(--cp-line-soft); text-align: center;
	font: 600 .58rem var(--font-display); letter-spacing: .24em; text-transform: uppercase; color: var(--cp-text-mute); }
.cx-st__foot span { color: rgba(var(--cp-red-rgb), .7); }

/* ---------- адаптив ---------- */
@media (max-width: 991.98px) {
	.cx-st__grid3 { grid-template-columns: 1fr 1fr; }
	.cx-st__media { grid-column: 1 / -1; min-height: 300px; }
	.cx-st__wgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
	.cx-st__head { padding: 14px 12px; }
	.cx-st__title { font-size: 1.1rem !important; }
	.cx-st__search { flex-basis: 100%; min-width: 0; }
	.cx-st__me { flex: 1 1 100%; justify-content: center; }
	.cx-st__tabs button { padding: 12px 14px 11px; font-size: .68rem; }
	.cx-st__body { padding: 12px 10px 16px; }
	.cx-st__grid3 { grid-template-columns: 1fr; }
	.cx-st__wgrid { grid-template-columns: 1fr; }
	.cx-st__hide-sm { display: none; }
	.cx-st__xp span:last-child { display: none; }
	.cx-st__table td { padding: 8px 6px; font-size: .9rem; }
	.cx-st__table th { padding: 6px; }
	.cx-st__nick { font-size: .92rem; }
	.cx-st__table .cx-st__pl > div { max-width: 150px; }
	.cx-st__chart { height: 300px; }
	.cx-st__pin-v { font-size: .78rem; }
}
.cx-st__wimg .cx-st__wnoimg { font-size: 2.4rem; color: rgba(var(--cp-red-rgb), .35); }
@media (max-width: 420px) { .cx-st__hide-xs { display: none; } }
.cx-st__slow { font-size: .8rem; color: var(--cp-text-mute); }
.cx-st__slow[hidden] { display: none; }
.cx-st__detail { font-family: Consolas, monospace; font-size: .74rem; color: var(--cp-text-mute); opacity: .8; max-width: 520px; word-break: break-word; }
.cx-st__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cx-st__sid.is-hidden { display: inline-block; filter: blur(4px); user-select: none; -webkit-user-select: none; pointer-events: none; opacity: .85; }
.cx-st__who-sid:has(.is-hidden) { cursor: help; }
.cx-st__sid.is-me { color: var(--cp-green); }
.cx-st__sid.is-admin { color: var(--cp-amber, #ffb020); }
.cx-st__sid.is-admin::after { content: "\f023"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7em; margin-left: 6px; opacity: .7; }

/* ---------- встроенный блок в профиле (cx-st--embed): адаптив по ширине самого блока ---------- */
.cx-st--embed { container-type: inline-size; margin-bottom: 20px; }
.cx-st--embed .cx-st__title { font-size: 1.5rem; }
.cx-st--embed a.cx-st__me { text-decoration: none !important; }
@container (max-width: 820px) {
	.cx-st__grid3 { grid-template-columns: 1fr 1fr; }
	.cx-st__media { grid-column: 1 / -1; min-height: 300px; }
	.cx-st__wgrid { grid-template-columns: 1fr 1fr; }
	.cx-st__hide-sm { display: none; }
}
@container (max-width: 520px) {
	.cx-st__head { padding: 14px 12px; }
	.cx-st__title { font-size: 1.1rem !important; }
	.cx-st__me { flex: 1 1 100%; justify-content: center; }
	.cx-st__tabs button { padding: 12px 14px 11px; font-size: .68rem; }
	.cx-st__body { padding: 12px 10px 16px; }
	.cx-st__grid3 { grid-template-columns: 1fr; }
	.cx-st__wgrid { grid-template-columns: 1fr; }
	.cx-st__xp span:last-child { display: none; }
	.cx-st__chart { height: 300px; }
}
/* в профиле: ранг без фигуры игрока — только плитки в две колонки */
.cx-st--embed .cx-st__media { display: none !important; }
.cx-st--embed .cx-st__grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
@container (max-width: 520px) { .cx-st--embed .cx-st__grid3 { grid-template-columns: 1fr !important; } }
.cx-st--embed .cx-st__xp span:nth-child(3) { display: none; }   /* в профиле узко — без названия следующего звания */
