#myContentGlassContainer[hidden] {
    display: none;
}

#myContentGlassContainer {
    box-sizing: border-box;
    width: min(962px, calc(100% - 24px));
    margin: 0 auto;
    padding: 18px;
    color: #173750;
    background: linear-gradient(#eaf8ff, #b8e4f7);
    border: 3px solid #1685bd;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(0, 82, 132, 0.26);
}

.leaderboard-heading {
    margin: 0 0 14px;
    color: #08689f;
    font-family: Georgia, serif;
    font-size: 30px;
    text-align: center;
    text-shadow: 0 1px #fff;
}

.leaderboard-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    min-height: 390px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #65b9dd;
    border-radius: 8px;
}

.leaderboard-game-list {
    color: #fff;
    background: linear-gradient(180deg, #147eb6, #075887);
}

.leaderboard-game-list-heading {
    margin: 0;
    padding: 14px 12px;
    color: #fff;
    background: #07527f;
    font-family: Georgia, serif;
    font-size: 18px;
    text-align: left;
}

.leaderboard-game-buttons {
    padding: 6px 0;
}

.leaderboard-game-button,
.leaderboard-retry {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.leaderboard-game-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 13px;
    color: #eaf8ff;
    background: transparent;
    border-left: 5px solid transparent;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
}

.leaderboard-game-button:hover,
.leaderboard-game-button[aria-selected='true'] {
    color: #07527f;
    background: #fff;
    border-left-color: #46c7ef;
    font-weight: bold;
}

.leaderboard-game-button:focus-visible,
.leaderboard-retry:focus-visible,
#btnShowScores:focus-visible {
    outline: 3px solid #ffcf33;
    outline-offset: -3px;
}

.leaderboard-detail {
    min-width: 0;
    padding: 14px;
    background: #f5fbff;
}

.leaderboard-detail-title {
    margin: 0 0 12px;
    padding: 0 0 9px;
    color: #075f93;
    border-bottom: 2px solid #8ed5ef;
    font-family: Georgia, serif;
    font-size: 22px;
}

.leaderboard-periods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.leaderboard-period {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #9dd8ee;
    border-radius: 6px;
}

.leaderboard-period-title {
    margin: 0;
    padding: 9px 10px;
    color: #fff;
    background: #1685bd;
    font-size: 14px;
    text-align: center;
}

.leaderboard-table-wrap {
    max-height: 300px;
    overflow: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 6px;
    border-bottom: 1px solid #d6ebf4;
    text-align: left;
    overflow-wrap: anywhere;
}

.leaderboard-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #174967;
    background: #e5f5fb;
}

.leaderboard-place {
    width: 34px;
    text-align: center !important;
}

.leaderboard-score {
    width: 60px;
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.leaderboard-winner,
.leaderboard-loser {
    display: block;
}

.leaderboard-winner {
    font-weight: bold;
}

.leaderboard-loser {
    margin-top: 3px;
    color: #617b8b;
}

.leaderboard-message,
.leaderboard-empty {
    margin: 0;
    padding: 30px 12px;
    text-align: center;
}

.leaderboard-empty {
    min-height: 90px;
    padding-top: 45px;
    color: #617b8b;
}

.leaderboard-retry {
    padding: 8px 18px;
    color: #fff;
    background: #0875ac;
    border-radius: 5px;
}

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

@media (max-width: 700px) {
    #myContentGlassContainer {
        width: calc(100% - 12px);
        padding: 10px;
    }

    .leaderboard-layout {
        grid-template-columns: 1fr;
    }

    .leaderboard-game-buttons {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }

    .leaderboard-game-list-heading {
        text-align: center;
    }

    .leaderboard-game-button {
        flex: 0 0 145px;
        min-height: 52px;
        border-left: 0;
        border-bottom: 5px solid transparent;
        text-align: center;
    }

    .leaderboard-game-button[aria-selected='true'] {
        border-bottom-color: #46c7ef;
    }

    .leaderboard-periods {
        grid-template-columns: 1fr;
    }
}
