/* =====================================================================
   Вики: компонент «Статистика» (templates/partials/wiki/_wstats.php) в оформлении
   страницы-патча (2026-11-21). Подключается из самого партиала (один раз), поэтому
   одинаков на странице героя и способности. Секция сама несёт .dp-page (переменные
   --dp-*, капс плашек), правки — под .wsx для веса над wiki.css.
   Классы и data-атрибуты, на которые опирается wiki_ws_script(), не менялись.
   ===================================================================== */

.dp-page.wsx {
    --wsx-accent: rgb(243, 129, 60);
    --wsx-sunk: rgba(0, 0, 0, 0.32);
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    scroll-margin-top: 80px;
}

/* Шапка: плашка раздела, переключатель сезона поверх неё справа. */
.wsx .wsx-head { display: grid; grid-template-areas: "h"; align-items: center; }
.wsx .wsx-head__title { grid-area: h; }
.wsx .wsx-head__seg { grid-area: h; justify-self: end; position: relative; z-index: 2; margin-right: 12px; max-width: calc(100% - 24px); }
.wsx .wiki-seg {
    padding: 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--dp-panel-edge);
    box-shadow: none;
}
.wsx .wiki-seg__thumb {
    border-radius: 2px;
    background: linear-gradient(180deg, rgb(214, 92, 34), rgb(158, 58, 18));
    box-shadow: 0 2px 10px rgba(131, 51, 18, .5);
}
.wsx .wiki-seg__btn {
    height: 32px;
    padding: 0 14px;
    border-radius: 2px;
    color: var(--dp-text-soft);
    font-family: var(--dp-sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.wsx .wiki-seg__btn:hover, .wsx .wiki-seg__btn.is-on { color: var(--dp-strong); }

/* Тело: синяя «стеклянная» панель. */
.wsx .wsx-body {
    background: var(--dp-panel-bg);
    box-shadow: var(--dp-panel-shadow);
    font-family: var(--dp-sans);
}

/* Фильтры */
.wsx .aa-filters.wiki-ws__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
    margin: 0;
    padding: 16px var(--dp-indent) 16px;
    border: 0;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: none;
}
.wsx .wiki-field__label, .wsx .aa-field__label { color: var(--dp-text); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.wsx .wiki-ws__reset { color: var(--wsx-accent); font-weight: 700; }

/* Главные цифры — плитки как у промокода */
.wsx .wiki-ws__kpis {
    margin: 16px var(--dp-indent) 0;
    background: var(--wsx-sunk);
    border: 1px solid var(--dp-panel-edge);
    border-radius: 3px;
}
.wsx .wiki-ws__kpi { padding: 16px 20px; }
.wsx .wiki-ws__kpi + .wiki-ws__kpi { border-left: 1px solid var(--dp-panel-edge); }
.wsx .wiki-ws__label { color: var(--dp-text); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: normal; }
.wsx .wiki-ws__value { color: var(--dp-strong); font-family: var(--dp-serif); font-size: 30px; font-weight: 400; letter-spacing: 0; }
.wsx .wiki-ws__kpi--main .wiki-ws__value { color: var(--wsx-accent); font-size: 34px; }
.wsx .wiki-ws__vs { font-size: 13px; }
.wsx .wiki-ws__vs.is-up { color: rgb(110, 205, 140); }
.wsx .wiki-ws__vs.is-down { color: var(--dp-nerf); }
.wsx .wiki-ws__spark { color: var(--wsx-accent); }

/* Второстепенные цифры */
.wsx .wiki-ws__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0;
    margin: 10px var(--dp-indent) 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--dp-panel-edge);
    border-radius: 3px;
}
.wsx .wiki-ws__fact { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px; margin: 0; border: 0; }
.wsx .wiki-ws__fact + .wiki-ws__fact { border-left: 1px solid var(--dp-panel-edge); }
.wsx .wiki-ws__fact dt { color: var(--dp-text); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.wsx .wiki-ws__fact dd { margin: 0; color: var(--dp-strong); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Вкладки — капс с оранжевой чертой, как подписи патча */
.wsx .wiki-ws__tabs {
    display: flex;
    gap: 22px;
    width: auto;
    max-width: none;
    margin: 18px var(--dp-indent) 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--dp-panel-edge);
    border-radius: 0;
    background: none;
    overflow-x: auto;
}
.wsx .wiki-ws__tab {
    height: auto;
    padding: 8px 0 10px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--dp-text);
    font-family: var(--dp-sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.wsx .wiki-ws__tab:hover { color: var(--dp-strong); }
.wsx .wiki-ws__tab.is-on { color: var(--dp-strong); background: none; box-shadow: none; border-bottom-color: var(--wsx-accent); }
.wsx .wiki-ws__view { padding: 16px var(--dp-indent) 22px; }
.wsx .wiki-ws__note { color: var(--dp-text); font-size: 14px; font-weight: 600; }
.wsx .wiki-ws__empty { color: var(--dp-text-soft); font-size: 16px; font-weight: 600; }
.wsx .wiki-ws__empty--panel { padding: 24px var(--dp-indent); border-top: 0; }
.wsx .wiki-ws__wait { padding: 28px var(--dp-indent); border-top: 0; color: var(--dp-text-soft); }

/* Таблицы */
.wsx .wiki-ws__thead { border-bottom: 1px solid #000; }
.wsx .wiki-ws__th { color: var(--dp-text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wsx .wiki-ws__th.is-on { color: var(--dp-strong); }
.wsx .wiki-ws__th.is-on::after { color: var(--wsx-accent); }
.wsx .wiki-ws__row { font-size: 16px; font-weight: 600; }
.wsx .wiki-ws__row + .wiki-ws__row { border-top: 1px solid rgba(0, 0, 0, .55); }
.wsx .wiki-ws__ico { border-radius: 2px; box-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.wsx .wiki-ws__name a, .wsx .wiki-ws__name > span { color: var(--dp-name); }
.wsx .wiki-ws__name a:hover { color: var(--wsx-accent); }
.wsx .wiki-ws__own { border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.wsx .wiki-ws__num { color: var(--dp-text-soft); }
.wsx .wiki-ws__more { color: var(--wsx-accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }

/* Предметы — плитки */
.wsx .wiki-ws__tile { border-radius: 3px; background: var(--wsx-sunk); border: 1px solid var(--dp-panel-edge); }
.wsx .wiki-ws__tile:hover { border-color: rgba(243, 129, 60, .5); }
.wsx .wiki-ws__tileimg { border-radius: 0; box-shadow: 0 0 12px #000; }
.wsx .wiki-ws__tile b { color: var(--dp-strong); font-family: var(--dp-serif); font-weight: 400; font-size: 18px; }
.wsx .wiki-ws__tile small { color: var(--dp-text); font-weight: 600; }

/* Нейтральные */
.wsx .wiki-pill { border-radius: 3px; border-color: var(--dp-panel-edge); background: var(--wsx-sunk); color: var(--dp-text-soft); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wsx .wiki-pill.is-on { color: var(--dp-strong); border-color: var(--wsx-accent); background: linear-gradient(180deg, rgba(243, 129, 60, .25), rgba(131, 51, 18, .3)); }
.wsx .wiki-neu__games { color: var(--dp-text); font-size: 14px; font-weight: 600; }
.wsx .wiki-neu__head { border-bottom-color: #000; color: var(--dp-text); text-transform: uppercase; letter-spacing: .06em; }
.wsx .wiki-neu__item { border-bottom-color: rgba(0, 0, 0, .55); }
.wsx .wiki-neu__row { font-weight: 600; }
.wsx .wiki-neu__row--item .wiki-neu__lead a { color: var(--dp-name); }
.wsx .wiki-neu__img { border-radius: 0; }
.wsx .wiki-neu__share { color: var(--dp-text-soft); }
.wsx .wiki-neu__share i { background: linear-gradient(90deg, var(--wsx-accent) var(--w), rgba(255, 255, 255, .07) var(--w)); }

/* Синергия и игроки */
.wsx .wiki-ws__h4 { border-bottom-color: #000; color: var(--dp-strong); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.wsx .wiki-ws__mini li { font-size: 16px; font-weight: 600; }
.wsx .wiki-ws__mini li + li { border-top-color: rgba(0, 0, 0, .55); }
.wsx .wiki-ws__mid small { color: var(--dp-text); font-size: 13px; }
.wsx .wiki-ws__val { color: var(--dp-strong); }
.wsx .wiki-ws__avatar { border-radius: 2px; background: var(--wsx-sunk); }

@media (max-width: 900px) {
    .wsx .wiki-ws__kpi + .wiki-ws__kpi { border-left: 0; }
    .wsx .wiki-ws__kpi:not(.wiki-ws__kpi--main) { border-top: 1px solid var(--dp-panel-edge); }
    .wsx .wiki-ws__kpi--main ~ .wiki-ws__kpi:nth-child(odd) { border-left: 1px solid var(--dp-panel-edge); }
    .wsx .wiki-ws__kpis[style*="--kpis:4"] .wiki-ws__kpi--main ~ .wiki-ws__kpi { border-left: 1px solid var(--dp-panel-edge); }
    .wsx .wiki-ws__kpis[style*="--kpis:4"] .wiki-ws__kpi:nth-child(2) { border-left: 0; }
}
@media (max-width: 767px) {
    .wsx .wsx-head { grid-template-areas: "h" "s"; }
    .wsx .wsx-head__seg { grid-area: s; justify-self: stretch; margin: 0; max-width: 100%; }
    .wsx .wsx-head__seg .wiki-seg { display: flex; width: 100%; box-sizing: border-box; border-radius: 0; }
    .wsx .wsx-head__seg .wiki-seg__btn { flex: 1 0 auto; padding: 0 8px; font-size: 12px; letter-spacing: .04em; }
    .wsx .aa-filters.wiki-ws__filters { padding: 12px 10px; }
    .wsx .wiki-ws__kpis, .wsx .wiki-ws__facts, .wsx .wiki-ws__tabs { margin-left: 10px; margin-right: 10px; }
    .wsx .wiki-ws__kpi { padding: 12px; }
    .wsx .wiki-ws__value { font-size: 24px; }
    .wsx .wiki-ws__kpi--main .wiki-ws__value { font-size: 28px; }
    .wsx .wiki-ws__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wsx .wiki-ws__fact { padding: 8px 12px; }
    .wsx .wiki-ws__fact + .wiki-ws__fact { border-left: 0; }
    .wsx .wiki-ws__fact:nth-child(even) { border-left: 1px solid var(--dp-panel-edge); }
    .wsx .wiki-ws__fact:nth-child(n + 3) { border-top: 1px solid var(--dp-panel-edge); }
    .wsx .wiki-ws__tabs { gap: 16px; }
    .wsx .wiki-ws__tab { font-size: 12px; letter-spacing: .06em; flex: none; }
    .wsx .wiki-ws__view { padding: 14px 10px 18px; }
    .wsx .wiki-ws__row { font-size: 15px; }
    .wsx .wiki-ws__th { font-size: 10.5px; letter-spacing: 0; text-transform: none; white-space: normal; line-height: 1.2; }
    .wsx .wiki-ws__th::after { display: none; }
    .wsx .wiki-ws__th.is-on::after { display: inline; content: " \2193"; }
    .wsx .aa-filters.wiki-ws__filters { border-radius: 0; }
}

/* Методика под статистикой */
.wsx .wsx-method { margin: 0; padding: 10px var(--dp-indent) 14px; border-top: 1px solid var(--dp-panel-edge); color: var(--dp-text); font-size: 13px; font-weight: 600; line-height: 1.4; }
