:root {
    --teamA: #6d5dfc; /* синий/фиолетовый для Team A */
    --teamB: #ef476f; /* малиновый для Team B */
}

.stats-chart {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Заголовок метрики по центру */
.stat-head {
    text-align: center;
    font-weight: 600;
    color: var(--ink);
    opacity: .9;
}

/* Вторая строка: число | бар | число */
.stat-line {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
}

.stat-num {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    color: var(--ink);
    opacity: .9;
    text-align: center;
}

/* сам трек */
.stat-bar {
    position: relative;
    height: 16px;
    border-radius: 10px;
    overflow: hidden;
    background: #0b0f16;
    border: 1px solid var(--line);
}

body[data-theme="light"] .stat-bar {
    background: #eef1f8;
    border-color: #d9deea;
}

/* разделитель по центру */
.stat-bar::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, .18);
}

body[data-theme="light"] .stat-bar::after {
    background: rgba(0, 0, 0, .10);
}

/* левая/правая доля */
.stack {
    position: absolute;
    top: 0;
    bottom: 0;
}

.stack.left {
    right: 50%; /* прижали правый край к центру */
    left: auto;
    background: var(--teamA);
}

.stack.right {
    left: 50%; /* прижали левый край к центру */
    right: auto;
    background: var(--teamB);
}