.clr-hero {
    background: linear-gradient(135deg, #050b18 0%, #0b2a6f 45%, #2b0a5a 100%);
    color: #ffffff;
}

.clr-hero-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.clr-hero-games {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 10px;
    text-align: left;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.clr-hero-games label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(219, 234, 254, 0.92);
    white-space: nowrap;
}

.clr-hero-games select {
    border: 1px solid rgba(255,255,255,.20);
    background: rgba(255,255,255,.10);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    outline: none;
    appearance: none;
}

.clr-hero-games select option {
    color: #111827;
}

@media (min-width: 1024px) {
    .clr-hero-top {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
    }

    .clr-hero-games {
        justify-content: flex-start;
        max-width: 100%;
    }

    .clr-hero-right {
        align-self: center;
    }
}

.clr-max-good {
    background: rgba(16, 185, 129, .12) !important;
    color: #047857 !important;
}

.clr-max-bad {
    background: rgba(239, 68, 68, .12) !important;
    color: #b91c1c !important;
}

.clr-hero-sub {
    color: rgba(219, 234, 254, 0.92);
}

.clr-chip--hero {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.10);
    color: #ffffff;
}

.clr-chip--hero .opacity-80 {
    opacity: .9;
}

.clr-card {
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(229,231,235,1);
    border-radius: 18px;
}

.clr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(229,231,235,1);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: #111827;
}

.clr-chip--toggle {
    cursor: pointer;
    user-select: none;
}

.clr-chip--toggle.is-active {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.28);
    color: #ffffff;
}

.clr-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.clr-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: help;
}

.clr-tooltip-bubble {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 20;
    width: min(280px, calc(100vw - 32px));
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.45;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    pointer-events: none;
}

.clr-tooltip:hover .clr-tooltip-bubble,
.clr-tooltip:focus-within .clr-tooltip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.clr-sortable {
    cursor: pointer;
    user-select: none;
}

.clr-sortable:hover {
    background: #eef2ff;
}

.clr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    object-fit: cover;
    object-position: top;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.clr-team-logo {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.12);
    flex-shrink: 0;
}

.clr-table-scroll {
    overflow: hidden;
}

.clr-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.clr-table thead th {
    background: #f8fafc;
}

.clr-table th,
.clr-table td {
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: nowrap;
}

.clr-table th,
.clr-table td {
    overflow: visible;
    text-overflow: clip;
}

.clr-table th:first-child,
.clr-table td:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.clr-table .clr-cell-num {
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.clr-ps-namecell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.clr-ps-avatar {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    object-fit: cover;
    flex: 0 0 auto;
    background: #fff;
}

.clr-ps-playername {
    min-width: 0;
    font-weight: 800;
    color: #0f172a;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1024px) {
    .clr-table {
        min-width: 0;
    }
}

.clr-stat-value {
    color: #0f172a;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.clr-section-title {
    letter-spacing: .08em;
}

.clr-chart {
    height: 220px;
    width: 100%;
    position: relative;
}

.clr-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.cabinet-challenge-report-shell {
    overflow: hidden;
}

.cabinet-challenge-report-shell .clr-hero {
    border-radius: 1.25rem 1.25rem 0 0;
}

.cabinet-challenge-report-shell .clr-hero-wrap {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.cabinet-challenge-report-shell .clr-content-wrap {
    padding: 0 1rem 1rem;
    margin-top: -0.75rem;
}

@media (max-width: 768px) {
    .clr-chart { height: 170px; }
    .clr-card { border-radius: 16px; }

    .clr-hero-right {
        display: none !important;
    }

    .clr-hero-top {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .clr-hero-games {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .clr-hero-games label {
        display: none;
    }

    .clr-hero-games select {
        flex: 1 1 0;
        min-width: 0;
        padding: 7px 10px;
        font-size: 12px;
    }

    .clr-table thead th {
        font-size: 10px;
        letter-spacing: .06em;
    }

    .clr-table {
        font-size: 12px;
    }

    .clr-max-good {
        background: rgba(16, 185, 129, .10) !important;
    }

    .clr-max-bad {
        background: rgba(239, 68, 68, .10) !important;
    }

    .clr-table th,
    .clr-table td {
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .clr-ps-avatar {
        width: 26px;
        height: 26px;
        border-radius: 9px;
    }

    .clr-ps-playername {
        font-size: 11.5px;
    }

    .cabinet-challenge-report-shell .clr-content-wrap {
        padding: 0 0.75rem 0.75rem;
        margin-top: -0.6rem;
    }
}
