/*
 * HAVEN Website v3
 * Leaderboard visual candidate v0.1
 */

.leaderboard-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    min-height: 270px;
    margin-top: 32px;
    margin-bottom: 22px;
    padding:
        clamp(26px, 4vw, 48px);
    flex-direction: column;
    justify-content: center;
    border:
        1px solid
        #2b343b;
    background:
        linear-gradient(
            90deg,
            rgba(5, 9, 12, 0.96) 0%,
            rgba(5, 9, 12, 0.91) 32%,
            rgba(5, 9, 12, 0.66) 62%,
            rgba(5, 9, 12, 0.76) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 9, 12, 0.16),
            rgba(5, 9, 12, 0.58)
        ),
        url("../img/haven-v3-industrial-bg.png");
    background-position:
        center,
        center,
        center 52%;
    background-size:
        auto,
        auto,
        cover;
    background-repeat:
        no-repeat;
    box-shadow:
        inset 0 0 0 1px
        rgba(0, 0, 0, 0.28),
        0 18px 52px
        rgba(0, 0, 0, 0.28);
}

.leaderboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.025),
            rgba(0, 0, 0, 0.10)
        );
}

.leaderboard-hero > * {
    position: relative;
    z-index: 1;
}

.leaderboard-kicker {
    margin-bottom: 7px;
    color:
        rgba(221, 126, 67, 0.92);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.leaderboard-hero h1,
.leaderboard-panel h2 {
    margin: 0;
    color:
        rgba(244, 247, 249, 0.96);
}

.leaderboard-hero h1 {
    font-size:
        clamp(
            2rem,
            5vw,
            3.75rem
        );
    letter-spacing: -0.035em;
}

.leaderboard-intro {
    max-width: 760px;
    margin:
        14px
        0
        0;
    color:
        rgba(232, 238, 242, 0.62);
    font-size:
        clamp(
            0.96rem,
            1.6vw,
            1.08rem
        );
    line-height: 1.7;
}

.leaderboard-panel {
    border:
        1px solid
        rgba(255, 255, 255, 0.08);
    background:
        rgba(8, 12, 15, 0.82);
    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.02);
}

.leaderboard-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding:
        22px
        24px
        18px;
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.065);
}

.leaderboard-panel h2 {
    font-size:
        clamp(
            1.45rem,
            3vw,
            2.15rem
        );
}

.leaderboard-count {
    flex: 0 0 auto;
    color:
        rgba(232, 238, 242, 0.44);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.leaderboard-note {
    padding:
        15px
        24px;
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);
    background:
        rgba(209, 106, 45, 0.045);
    color:
        rgba(232, 238, 242, 0.57);
    font-size: 0.82rem;
    line-height: 1.6;
}

.leaderboard-note strong {
    color:
        rgba(244, 247, 249, 0.92);
}

.leaderboard-note span {
    margin-left: 6px;
}

.leaderboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding:
        14px
        24px;
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);
}

.leaderboard-status {
    color:
        rgba(232, 238, 242, 0.5);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;
    font-size: 0.71rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.leaderboard-expand {
    appearance: none;
    border:
        1px solid
        rgba(209, 106, 45, 0.58);
    padding:
        9px
        13px;
    background:
        rgba(209, 106, 45, 0.085);
    color:
        rgba(239, 154, 102, 0.95);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        border-color 120ms ease,
        background 120ms ease,
        color 120ms ease;
}

.leaderboard-expand:hover,
.leaderboard-expand:focus-visible {
    border-color:
        rgba(239, 154, 102, 0.95);
    background:
        rgba(209, 106, 45, 0.16);
    color:
        rgba(255, 230, 214, 0.98);
}

.leaderboard-expand:focus-visible,
.leader-sort:focus-visible {
    outline:
        2px solid
        rgba(239, 154, 102, 0.9);
    outline-offset: 2px;
}

.leaderboard-table-shell {
    width: 100%;
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
    font-variant-numeric:
        tabular-nums;
}

.leaderboard-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.leaderboard-table th,
.leaderboard-table td {
    padding:
        12px
        14px;
    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.055);
    text-align: right;
    white-space: nowrap;
}

.leaderboard-table th {
    background:
        rgba(13, 19, 23, 0.98);
    color:
        rgba(232, 238, 242, 0.48);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.leaderboard-table th:nth-child(2),
.leaderboard-table td:nth-child(2) {
    text-align: left;
}

.leaderboard-table tbody tr {
    background:
        rgba(255, 255, 255, 0.008);
    transition:
        background 100ms ease;
}

.leaderboard-table tbody tr:nth-child(even) {
    background:
        rgba(255, 255, 255, 0.018);
}

.leaderboard-table tbody tr:hover {
    background:
        rgba(209, 106, 45, 0.065);
}

.leaderboard-table tbody tr:last-child td {
    border-bottom: 0;
}

.leaderboard-table tr[hidden] {
    display: none;
}

.leader-heading {
    padding: 0 !important;
}

.leader-sort {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    border: 0;
    padding:
        0
        14px;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.leader-heading:nth-child(2)
.leader-sort {
    justify-content: flex-start;
}

.leader-sort:hover {
    color:
        rgba(239, 154, 102, 0.96);
    background:
        rgba(209, 106, 45, 0.055);
}

.leader-heading[aria-sort="ascending"]
.leader-sort,
.leader-heading[aria-sort="descending"]
.leader-sort {
    color:
        rgba(239, 154, 102, 0.98);
    background:
        rgba(209, 106, 45, 0.075);
}

.leader-sort-indicator {
    display: inline-block;
    min-width: 1em;
    color:
        rgba(239, 154, 102, 0.98);
    font-size: 0.83rem;
}

.leader-rank-cell {
    width: 64px;
    text-align: center !important;
}

.leader-rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    min-height: 27px;
    border:
        1px solid
        rgba(255, 255, 255, 0.1);
    color:
        rgba(232, 238, 242, 0.64);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;
    font-size: 0.73rem;
    font-weight: 800;
}

.leader-rank-1
.leader-rank-number {
    border-color:
        rgba(239, 154, 102, 0.92);
    background:
        rgba(209, 106, 45, 0.17);
    color:
        rgba(255, 221, 197, 0.98);
}

.leader-rank-2
.leader-rank-number,
.leader-rank-3
.leader-rank-number {
    border-color:
        rgba(209, 106, 45, 0.45);
    color:
        rgba(239, 154, 102, 0.9);
}

.leader-player-cell {
    min-width: 250px;
}

.leader-player-link {
    color:
        rgba(244, 247, 249, 0.92);
    font-weight: 700;
    text-decoration: none;
}

.leader-player-link:hover,
.leader-player-link:focus-visible {
    color:
        rgba(239, 154, 102, 0.98);
    text-decoration: underline;
}

.leader-personnel-tag {
    display: inline-block;
    margin-left: 8px;
    border:
        1px solid
        rgba(209, 106, 45, 0.35);
    padding:
        2px
        5px;
    color:
        rgba(239, 154, 102, 0.72);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    vertical-align: 2px;
}

.leader-wins {
    color:
        rgba(156, 222, 167, 0.92);
    font-weight: 700;
}

.leader-kd {
    color:
        rgba(239, 196, 117, 0.92);
    font-weight: 700;
}

.leader-suicides {
    color:
        rgba(228, 132, 126, 0.86);
}

.leaderboard-noscript {
    margin: 0;
    padding:
        14px
        24px;
    border-top:
        1px solid
        rgba(255, 255, 255, 0.06);
    color:
        rgba(232, 238, 242, 0.5);
    font-size: 0.78rem;
}

@media (max-width: 760px) {

    .leaderboard-hero {
        min-height: 230px;
        padding:
            26px
            22px;
        background-position:
            center,
            center,
            58% 52%;
        background-size:
            auto,
            auto,
            cover;
    }

    .leaderboard-panel-heading,
    .leaderboard-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .leaderboard-expand {
        width: 100%;
    }

    .leaderboard-note span {
        display: block;
        margin:
            5px
            0
            0;
    }

    .leaderboard-table {
        min-width: 880px;
    }

}
