/* Шкала рангов «Обзора» и её полноэкранный диалог.

   Глобальный файл: та же шкала рисуется в MudDialog, куда изолированный CSS не доходит (правило 22). Токены --ci-*
   и аватар .ci-tav — в ClubPage.css. Рамка аватара — премиум-рамка игрока (решение 19 плана), цвет ранга (--rc)
   остаётся у полос шкалы, букв и подсветки выбранного аватара. */

/* ── переключатель периода рейтинга ─────────────────────────────────────────── */
.ci-e1 .ci-pchs {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ci-e1 .ci-pch {
    font: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    border: 1px solid var(--ci-line2);
    border-radius: 999px;
    padding: 1px 7px;
    background: none;
    color: #dfe5ea;
    white-space: nowrap;
    cursor: pointer;
}

.ci-e1 .ci-pch.ci-on {
    background: var(--ci-acc);
    color: var(--ci-acc-ink);
    border-color: var(--ci-acc);
    font-weight: 700;
}

/* ── «Средний игрок» ────────────────────────────────────────────────────────── */
.ci-e1 .ci-e1-big {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.ci-e1 .ci-e1-k {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ci-dim);
}

.ci-e1 .ci-e1-v {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
}

.ci-e1 .ci-e1-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: right;
}

.ci-e1 .ci-e1-rank b {
    display: block;
    color: var(--ci-acc);
    font-size: 15px;
}

.ci-e1 .ci-e1-rank span:not(.ci-rk) {
    font-size: 11px;
    color: var(--ci-dim);
}

.ci-e1 .ci-e1-empty {
    padding: 18px 0;
    text-align: center;
    color: var(--ci-dim);
    font-size: 12.5px;
}

/* ── шкала: полосы рангов, аватары, маркеры среднего и медианы ──────────────── */
.ci-e1 .ci-e1-plot {
    position: relative;
    margin-top: 12px;
}

.ci-e1 .ci-e1-bands {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    overflow: hidden;
}

.ci-e1 .ci-e1-band {
    position: absolute;
    top: 0;
    bottom: 0;
    background: color-mix(in srgb, var(--rc) 16%, transparent);
    border-left: 1px solid rgba(255, 255, 255, .08);
}

/* Кнопка — только позиция и размер; рамку рисует аватар. Тёмное кольцо снаружи отделяет соседей, заходящих друг
   на друга. */
.ci-e1 .ci-e1-dot {
    position: absolute;
    z-index: 1;
    width: var(--ci-av);
    height: var(--ci-av);
    margin-left: calc(var(--ci-av) / -2);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    cursor: pointer;
}

.ci-e1 .ci-e1-dot .ci-tav {
    box-shadow: 0 0 0 1.5px var(--ci-pd);
}

.ci-e1 .ci-e1-dot:hover,
.ci-e1 .ci-e1-dot:focus-visible {
    z-index: 5;
    outline: none;
}

.ci-e1 .ci-e1-dot:hover .ci-tav,
.ci-e1 .ci-e1-dot:focus-visible .ci-tav {
    transform: scale(1.45);
}

.ci-e1 .ci-e1-dot:has(.ci-sel) {
    z-index: 6;
}

.ci-e1 .ci-e1-dot .ci-tav.ci-sel {
    transform: scale(1.6);
    box-shadow: 0 0 0 2px #fff, 0 0 12px var(--rc);
}

.ci-e1 .ci-e1-mk {
    position: absolute;
    top: -4px;
    bottom: 0;
    width: 0;
    border-left: 2px solid var(--ci-acc);
    pointer-events: none;
    z-index: 0;
}

.ci-e1 .ci-e1-mk--med {
    border-left: 2px dashed #fff;
}

.ci-e1 .ci-e1-mk em {
    position: absolute;
    top: -12px;
    left: 3px;
    font-style: normal;
    font-size: 10px;
    color: var(--ci-acc);
    white-space: nowrap;
}

.ci-e1 .ci-e1-mk--med em {
    color: #fff;
    left: auto;
    right: 3px;
}

/* ── ось: буквы рангов и число игроков клуба в ранге ───────────────────────── */
.ci-e1 .ci-e1-axis {
    position: relative;
    height: 30px;
}

/* Число игроков ранга — строкой под буквой. */
.ci-e1 .ci-e1-let {
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font: inherit;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.1;
    color: var(--rc);
    text-align: center;
    background: none;
    border: 0;
    border-radius: 6px;
    padding: 2px 4px;
    cursor: pointer;
}

.ci-e1 .ci-e1-let:hover,
.ci-e1 .ci-e1-let:focus-visible {
    background: rgba(255, 255, 255, .08);
    outline: none;
}

.ci-e1 .ci-e1-let.ci-sel {
    background: color-mix(in srgb, var(--rc) 22%, transparent);
    box-shadow: inset 0 0 0 1px var(--rc);
}

.ci-e1 .ci-e1-let em {
    display: block;
    font-style: normal;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--ci-dim);
}

.ci-e1 .ci-e1-let--z {
    opacity: .4;
}

.ci-e1 .ci-e1-let--z:hover,
.ci-e1 .ci-e1-let--z.ci-sel {
    opacity: 1;
}

/* ── подвал: медиана, сумма, с рейтингом и без ─────────────────────────────── */
.ci-e1 .ci-e1-foot {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11.5px;
    color: var(--ci-dim);
    border-top: 1px solid var(--ci-line);
    padding-top: 8px;
}

.ci-e1 .ci-e1-foot-r {
    display: flex;
    justify-content: space-between;
    gap: 4px 10px;
}

.ci-e1 .ci-e1-foot span {
    white-space: nowrap;
}

.ci-e1 .ci-e1-foot b {
    color: var(--ci-ink);
}

/* ── крупная шкала в полноэкранном диалоге ──────────────────────────────────
   Шкала тянется на всю высоту, которая остаётся после чипов, цифр и подвала: у неё min-height по рою, а не height.
   Анимация открытия MudDialog (scale 0.5 → 1) выключена: размер шкалы замеряется сразу после первого рендера, и
   getBoundingClientRect посреди анимации отдал бы уменьшенный. */
.ci-dlg.mud-dialog:has(.ci-e1--big) {
    animation: none;
}

.ci-e1.ci-e1--big {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.ci-e1--big .ci-e1-plot {
    flex: 1 0 auto;
    margin-top: 26px;
}

.ci-e1--big .ci-pch {
    font-size: 12.5px;
    padding: 3px 12px;
}

.ci-e1--big .ci-e1-k {
    font-size: 12.5px;
}

.ci-e1--big .ci-e1-v {
    font-size: 52px;
}

.ci-e1--big .ci-e1-rank b {
    font-size: 22px;
}

.ci-e1--big .ci-e1-rank span:not(.ci-rk) {
    font-size: 13px;
}

.ci-e1--big .ci-e1-rank .ci-rk {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 20px;
}

.ci-e1--big .ci-e1-mk em {
    top: -17px;
    font-size: 12px;
}

.ci-e1--big .ci-e1-axis {
    height: 42px;
}

.ci-e1--big .ci-e1-let {
    font-size: 16px;
}

.ci-e1--big .ci-e1-let em {
    font-size: 11px;
}

.ci-e1--big .ci-e1-foot {
    gap: 8px;
    font-size: 14px;
    padding-top: 12px;
}

.ci-e1--big .ci-e1-foot-r {
    justify-content: flex-start;
    gap: 8px 32px;
}

.ci-e1--big .ci-e1-empty {
    font-size: 14px;
}
