.leaderboard {
    --board-columns: 52px 82px minmax(215px,1fr) minmax(118px,145px) minmax(82px,100px) minmax(105px,128px) minmax(120px,150px) minmax(108px,135px);
    --board-gap: clamp(10px,1.25vw,18px);
    padding-bottom: 140px;
}

.board-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 0 38px;
}

.sort-tabs {
    display: flex;
    gap: 26px;
    overflow-x: auto;
}

.sort-tabs button {
    padding: 10px 0;
    color: #b5aaaf;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.sort-tabs button:hover,
.sort-tabs button.is-active {
    color: #fff;
    border-color: #e22949;
}

.board-search {
    width: 270px;
    border-bottom: 1px solid rgba(255,255,255,.25);
}

.board-search:focus-within {
    border-color: #e22949;
}

.board-search input {
    width: 100%;
    padding: 13px 2px;
    color: #fff;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
}

.board-search input::placeholder {
    color: #aaa0a5;
}

.leaderboard-list {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,.12);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: var(--board-columns);
    column-gap: var(--board-gap);
    align-items: center;
    width: 100%;
    min-height: 116px;
    color: inherit;
    border-bottom: 1px solid rgba(255,255,255,.1);
    text-decoration: none;
    transition: transform .2s ease;
}

.leaderboard-row:hover {
    transform: translateX(4px);
}

.board-position {
    display: grid;
    place-items: center;
    width: 100%;
    color: #d7cbd0;
    font: 700 21px/1 var(--display);
    font-variant-numeric: tabular-nums;
}

.board-bust {
    display: grid;
    place-items: end center;
    width: 82px;
    height: 96px;
    overflow: hidden;
}

.board-bust img {
    display: block;
    width: 76px;
    height: 96px;
    object-fit: contain;
    object-position: center bottom;
}

.board-name {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
    color: #f2edef;
    font-family: var(--font);
    font-size: clamp(15px,1.25vw,18px);
    font-weight: 750;
    line-height: 1.25;
}

.board-name strong {
    min-width: 0;
    overflow: hidden;
    font: inherit;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-rank {
    flex: 0 0 auto;
    font: inherit;
}

.board-rank i {
    font: inherit;
    font-style: normal;
}

.board-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center;
}

.board-stat small {
    display: block;
    color: #b9adb2;
    font: 850 9px/1.15 var(--font);
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.board-stat strong {
    display: block;
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
    color: #f8f0f2;
    font-family: var(--font);
    font-size: clamp(19px,1.65vw,23px);
    font-weight: 760;
    line-height: 1;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
    text-align: center;
    text-overflow: clip;
    white-space: nowrap;
}

.leaderboard-stars {
    display: inline-flex !important;
    align-items: baseline !important;
    justify-content: center !important;
    width: 100%;
    min-height: 23px;
    margin-top: 8px;
    overflow: visible !important;
    font-family: Minecraft,monospace !important;
    font-size: clamp(19px,1.65vw,23px) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
}

.leaderboard-stars span {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
}

.leaderboard-empty {
    padding: 95px 20px;
    color: #b7adb1;
    font-size: 16px;
    text-align: center;
}

.leaderboard-skeleton {
    display: grid;
    grid-template-columns: var(--board-columns);
    column-gap: var(--board-gap);
    height: 116px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.leaderboard-skeleton i,
.leaderboard-skeleton span {
    height: 16px;
    background: linear-gradient(90deg,#ffffff09,#d51d3d1c,#ffffff09);
    background-size: 220% 100%;
    animation: board-shimmer 1.5s linear infinite;
}

.leaderboard-skeleton i {
    grid-column: 2;
    width: 76px;
    height: 88px;
}

.leaderboard-skeleton span:first-of-type {
    grid-column: 3;
}

.leaderboard-skeleton span:last-of-type {
    grid-column: 4/-1;
}

@keyframes board-shimmer {
    to { background-position: -220% 0; }
}

@media (max-width: 1180px) and (min-width: 861px) {
    .leaderboard {
        --board-columns: 46px 70px minmax(170px,1fr) 110px 72px 92px 110px 96px;
        --board-gap: clamp(7px,1vw,11px);
    }

    .board-bust {
        width: 70px;
        height: 90px;
    }

    .board-bust img {
        width: 68px;
        height: 88px;
    }

    .board-name {
        gap: 5px;
        font-size: clamp(13px,1.45vw,16px);
    }

    .board-stat strong,
    .leaderboard-stars {
        font-size: clamp(17px,1.9vw,21px) !important;
    }
}

@media (max-width: 860px) {
    .leaderboard {
        --board-columns: 38px 64px repeat(5,minmax(0,1fr));
        --board-gap: 7px;
    }

    .board-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .board-search {
        width: 100%;
    }

    .leaderboard-row {
        grid-template-columns: var(--board-columns);
        grid-template-rows: 82px auto;
        row-gap: 14px;
        min-height: 0;
        padding: 14px 0 18px;
    }

    .board-position {
        grid-column: 1;
        grid-row: 1;
        font-size: 18px;
    }

    .board-bust {
        grid-column: 2;
        grid-row: 1;
        width: 64px;
        height: 82px;
    }

    .board-bust img {
        width: 62px;
        height: 80px;
    }

    .board-name {
        grid-column: 3/-1;
        grid-row: 1;
        flex-wrap: wrap;
        align-content: center;
        font-size: clamp(14px,2.5vw,17px);
    }

    .board-stat {
        grid-row: 2;
    }

    .board-stat--stars { grid-column: 2; }
    .board-stat--fkdr { grid-column: 3; }
    .board-stat--wins { grid-column: 4; }
    .board-stat--finals { grid-column: 5; }
    .board-stat--beds { grid-column: 6; }

    .board-stat small {
        font-size: clamp(7px,1.45vw,9px);
        letter-spacing: .06em;
    }

    .board-stat strong,
    .leaderboard-stars {
        margin-top: 7px;
        font-size: clamp(14px,2.5vw,18px) !important;
    }

    .leaderboard-skeleton {
        grid-template-columns: var(--board-columns);
        height: 116px;
    }
}

@media (max-width: 560px) {
    .leaderboards-page {
        overflow-x: hidden;
    }

    .leaderboards-page .page-title {
        font-size: 34px;
        letter-spacing: -.055em;
    }

    .page-head {
        padding-bottom: 46px;
    }

    .sort-tabs {
        gap: 19px;
    }

    .sort-tabs button {
        font-size: 11px;
    }

    .leaderboard {
        --board-columns: 30px 52px repeat(5,minmax(0,1fr));
        --board-gap: 4px;
    }

    .leaderboard-row {
        grid-template-columns: 30px repeat(6,minmax(0,1fr));
        grid-template-rows: 70px auto auto;
        row-gap: 14px;
        box-sizing: border-box;
        padding-right: 10px;
    }

    .board-bust {
        grid-column: 2;
        width: 52px;
        height: 70px;
    }

    .board-bust img {
        width: 50px;
        height: 68px;
    }

    .board-name {
        grid-column: 3/-1;
        gap: 4px;
        font-size: clamp(12px,3.7vw,15px);
    }

    .board-stat--stars {
        grid-column: 1/3;
        grid-row: 2;
    }

    .board-stat--fkdr {
        grid-column: 3/5;
        grid-row: 2;
    }

    .board-stat--wins {
        grid-column: 5/8;
        grid-row: 2;
    }

    .board-stat--finals {
        grid-column: 2/5;
        grid-row: 3;
    }

    .board-stat--beds {
        grid-column: 5/8;
        grid-row: 3;
    }

    .board-stat small {
        font-size: clamp(6px,1.9vw,8px);
    }

    .board-stat strong,
    .leaderboard-stars {
        font-size: clamp(15px,4vw,18px) !important;
        letter-spacing: -.025em;
    }
}
