/* Leaderboard page (boards Flow12AwayLive, PhLeaderboard). */

.lb {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.lb__title {
    margin-bottom: 40px;
}

.lb__hero {
    display: flex;
    flex-direction: column;
}

.lb__table tbody tr {
    vertical-align: baseline;
}

.lb__short {
    display: none;
}

.lb__rank {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-2);
}

.lb__rank--1 { color: var(--medal-1); }
.lb__rank--2 { color: var(--medal-2); }
.lb__rank--3 { color: var(--medal-3); }

.lb__name {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}

.lb__name:hover .lb__text {
    text-decoration: underline;
}

.lb__me {
    margin-left: 6px;
    color: var(--text-2);
    font-weight: 400;
}

.lb__name .badge-pro {
    margin-left: 6px;
}

.lb__table tr.lb__you {
    background: var(--gold-tint);
}

.lb__status {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-2);
}

.lb__status:empty {
    display: none;
}

@media (max-width: 768px) {
    .lb {
        padding: 24px 16px 32px;
    }

    .lb__title {
        margin-bottom: 20px;
    }

    .lb__table {
        table-layout: fixed;
    }

    .lb__wide {
        display: none;
    }

    .lb__short {
        display: inline;
    }

    .lb__long {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .lb__table th {
        padding: 12px 0 12px 8px;
        text-align: right;
    }

    .lb__table td {
        padding: 0 0 0 8px;
        text-align: right;
    }

    .lb__table th:first-child,
    .lb__table td:first-child {
        padding-left: 12px;
        text-align: left;
    }

    .lb__table th.lb__c-player,
    .lb__table td.lb__player {
        text-align: left;
    }

    .lb__table th:last-child,
    .lb__table td:last-child {
        padding-right: 12px;
        white-space: nowrap;
    }

    .lb__c-rank { width: 44px; }
    .lb__c-rating { width: 54px; }
    .lb__c-count { width: 34px; }
    .lb__c-rate { width: 76px; }

    .lb__name {
        display: flex;
        align-items: baseline;
        padding: 14px 0;
        white-space: nowrap;
    }

    .lb__text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .lb__me,
    .lb__name .badge-pro {
        flex: none;
    }

    .lb__status {
        margin-top: 16px;
    }
}
