.content-page--ranking .main-content > .container {
    max-width: 1200px;
}

.leaderboard-page {
    max-width: 1040px;
    margin: 0 auto;
}

.leaderboard-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid #e1e5e8;
}

.leaderboard-heading__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    color: #15283b;
    font-family: "RussoOne", sans-serif;
    font-size: 32px;
    background: #f6c34d;
    border: 3px solid #d89d20;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    box-shadow: 0 4px 10px rgba(19, 33, 45, 0.12);
}

.leaderboard-heading__copy {
    min-width: 0;
}

.leaderboard-heading h1 {
    margin: 0 0 6px;
    color: #15283b;
    font-family: "RussoOne", sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    text-transform: uppercase;
}

.leaderboard-heading p {
    margin: 0;
    color: #68717b;
    font-family: "Righteous", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.leaderboard-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.leaderboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 52px;
    padding: 10px 14px;
    color: #1b344d;
    font-family: "Bangers", sans-serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    background: #edf2f5;
    border: 1px solid #cbd5dc;
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.leaderboard-tab:hover,
.leaderboard-tab.is-active {
    color: #172b3e;
    background: #f6c34d;
    border-color: #dc9e27;
    box-shadow: 0 5px 12px rgba(19, 33, 45, 0.12);
    transform: translateY(-1px);
}

.leaderboard-tab:focus-visible {
    outline: 3px solid rgba(64, 129, 183, 0.35);
    outline-offset: 2px;
}

.leaderboard-panel {
    display: none;
    min-width: 0;
}

.leaderboard-panel.is-active {
    display: block;
}

.leaderboard-panel__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.leaderboard-panel__heading h2 {
    margin: 0;
    color: #1b344d;
    font-family: "RussoOne", sans-serif;
    font-size: 21px;
    line-height: 1.25;
}

.leaderboard-panel__heading p {
    margin: 0;
    color: #7b858e;
    font-family: "Righteous", sans-serif;
    font-size: 12px;
}

.leaderboard-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #cbd5dc;
    background: #f2f5f6;
    box-shadow: 0 5px 14px rgba(19, 33, 45, 0.08);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    color: #35414c;
    font-family: "Righteous", sans-serif;
}

.leaderboard-table th,
.leaderboard-table td {
    border-bottom: 1px solid #d5dde2;
}

.leaderboard-table th {
    padding: 13px 12px;
    color: #fff;
    font-family: "Bangers", sans-serif;
    font-size: 17px;
    font-weight: normal;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    background: #17324b;
}

.leaderboard-table th:first-child {
    width: 112px;
}

.leaderboard-table th:nth-child(2) {
    width: 38%;
}

.leaderboard-table td {
    min-width: 0;
    padding: 13px 12px;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    background: #fff;
    overflow-wrap: anywhere;
}

.leaderboard-table tbody tr:nth-child(even) td {
    background: #f8fafb;
}

.content-page--ranking .leaderboard-table tbody tr:first-child td {
    color: #35414c;
    background: #fff;
}

.content-page--ranking .leaderboard-table tbody tr:first-child .rank-number,
.content-page--ranking .leaderboard-table tbody tr:first-child .player-name {
    color: #1b344d;
}

.content-page--ranking .leaderboard-table tbody tr:first-child .money-value {
    color: #23844d;
}

.content-page--ranking .leaderboard-table tbody tr:first-child .power-value {
    color: #c46714;
}

.content-page--ranking .leaderboard-table tbody tr:first-child .task-value {
    color: #2d6e9f;
}

.leaderboard-table tbody tr:hover td {
    background: #fff8e6;
}

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

.leaderboard-table .rank-number {
    color: #1b344d;
    font-family: "RussoOne", sans-serif;
    font-size: 16px;
    font-weight: normal;
    white-space: nowrap;
}

.leaderboard-table .player-name {
    color: #1b344d;
    font-family: "RussoOne", sans-serif;
    font-size: 15px;
}

.leaderboard-table .money-value,
.leaderboard-table .power-value,
.leaderboard-table .task-value {
    font-family: "RussoOne", sans-serif;
    font-size: 15px;
    font-weight: normal;
}

.leaderboard-table .money-value {
    color: #23844d;
}

.leaderboard-table .power-value {
    color: #c46714;
}

.leaderboard-table .task-value {
    color: #2d6e9f;
}

.leaderboard-table .rank-medal {
    display: inline-block;
    margin-right: 4px;
}

.leaderboard-empty {
    padding: 38px 20px;
    color: #64717c;
    font-family: "Righteous", sans-serif;
    font-size: 15px;
    text-align: center;
    background: #f8fafb;
    border: 1px dashed #cbd5dc;
}

@media (max-width: 767px) {
    .leaderboard-heading {
        align-items: flex-start;
        gap: 11px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .leaderboard-heading__mark {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 25px;
    }

    .leaderboard-heading h1 {
        font-size: 25px;
    }

    .leaderboard-heading p {
        font-size: 13px;
    }

    .leaderboard-tabs {
        gap: 6px;
        margin-bottom: 16px;
    }

    .leaderboard-tab {
        min-height: 46px;
        padding: 8px 5px;
        font-size: 14px;
    }

    .leaderboard-panel__heading {
        display: block;
        margin-bottom: 9px;
    }

    .leaderboard-panel__heading h2 {
        font-size: 17px;
    }

    .leaderboard-panel__heading p {
        margin-top: 4px;
    }

    .leaderboard-table th {
        padding: 10px 6px;
        font-size: 14px;
    }

    .leaderboard-table th:first-child {
        width: 72px;
    }

    .leaderboard-table th:nth-child(2) {
        width: 34%;
    }

    .leaderboard-table td {
        padding: 11px 6px;
        font-size: 12px;
    }

    .leaderboard-table .rank-number,
    .leaderboard-table .player-name,
    .leaderboard-table .money-value,
    .leaderboard-table .power-value,
    .leaderboard-table .task-value {
        font-size: 12px;
    }
}
