/* Bayou Stats (stats.html) */

.chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-input);
}

.chart-head .block-title {
    margin: 0;
}

.chart-legend {
    display: flex;
    gap: 18px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 11px;
}

.chart-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chart-legend__bar {
    width: 10px;
    height: 10px;
    background: rgba(204, 36, 29, 0.75);
}

.chart-legend__line {
    width: 14px;
    height: 2px;
    background: var(--text-gold);
}

.chart {
    position: relative;
    height: 220px;
    background: #111213;
    border: 1px solid var(--border-main);
}

.chart svg {
    display: block;
    width: 100%;
    height: 100%;
}

.chart__grid {
    stroke: rgba(245, 245, 245, 0.06);
    stroke-dasharray: 4 4;
}

.chart__bar {
    fill: rgba(204, 36, 29, 0.55);
}

.chart__line {
    fill: none;
    stroke: var(--text-gold);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.chart__label {
    fill: var(--text-dim);
    font-size: 11px;
    text-anchor: middle;
}

.chart__cursor {
    stroke: rgba(245, 245, 245, 0.25);
    vector-effect: non-scaling-stroke;
}

.chart__tip {
    position: absolute;
    top: 8px;
    padding: 8px 10px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    pointer-events: none;
}

.chart__tip b {
    color: var(--text-main);
}

.chart-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 12px;
}

.chart-foot b {
    color: var(--text-gold);
}

.chart-foot .chart-foot__online {
    color: #2ecc71;
}

.stats-page {
    padding-top: 30px;
}

.st-cards {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.st-card {
    padding: 22px 25px;
}

.st-card--accent {
    border-top: 2px solid var(--text-red);
}

.st-card__label {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.st-card__value {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
}

.st-card__value--red {
    color: var(--text-red);
}

.st-card__note {
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 10px;
}

.st-card__note--green {
    color: #2ecc71;
}

.st-card__note--red {
    color: var(--text-red);
}

.st-chart-card {
    margin-bottom: 30px;
}

.st-tops {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.st-top {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
}

.st-top__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 13px;
}

.st-top__pos {
    margin-right: 6px;
    color: var(--text-dim);
}

.st-top li:nth-child(-n + 3) .st-top__row {
    color: var(--text-main);
    font-weight: 700;
}

.st-top li:first-child .st-top__pos,
.st-top li:first-child .st-top__share {
    color: var(--text-red);
}

.st-top__bar {
    height: 3px;
    background: var(--border-main);
}

.st-top__bar span {
    display: block;
    height: 100%;
    background: var(--text-dim);
}

.st-top li:nth-child(-n + 3) .st-top__bar span {
    background: var(--text-gold);
}

.st-top li:first-child .st-top__bar span {
    background: var(--text-red);
}

@media (max-width: 800px) {
    .st-cards,
    .st-tops {
        grid-template-columns: 1fr;
    }
}
