/* Public tournament leaderboard shared by Registration and Login.
   Only Rank, Username and Score are rendered. No private account data. */
.public-lb-button {
    background: #ffd900 !important;
    color: #111 !important;
    border: 2px solid #d69f00 !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    padding: 10px 16px !important;
    cursor: pointer;
}

.public-lb-overlay[hidden] {
    display: none !important;
}

.public-lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.72);
    box-sizing: border-box;
}

.public-lb-panel {
    width: min(92vw, 520px);
    max-height: 86vh;
    overflow: hidden;
    background: #fff;
    border: 4px solid #dca900;
    border-radius: 14px;
    color: #111;
    box-sizing: border-box;
}

.public-lb-header {
    position: relative;
    background: #ff3b30;
    color: #fff;
    padding: 12px 54px 12px 16px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

.public-lb-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 22px !important;
    font-weight: 900;
    line-height: 34px;
}

.public-lb-info {
    padding: 12px 14px 10px;
    background: #fff7c7;
    border-bottom: 1px solid #d9d9d9;
    text-align: center;
    line-height: 1.45;
}

.public-lb-tournament {
    font-size: 18px;
    font-weight: 900;
}

.public-lb-progress {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
}

.public-lb-reached {
    color: #187a2f;
}

.public-lb-table-wrap {
    max-height: 48vh;
    overflow-y: auto;
}

.public-lb-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.public-lb-table th,
.public-lb-table td {
    border: 1px solid #333;
    padding: 7px 6px;
    text-align: center;
    font-size: 15px;
}

.public-lb-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 900;
}

.public-lb-rank-head {
    width: 22%;
    background: #29abe2;
    color: #fff;
}

.public-lb-name-head {
    width: 50%;
    background: #ffdc3b;
    color: #111;
}

.public-lb-score-head {
    width: 22%;
    background: #55b86a;
    color: #fff;
}

.public-lb-prize-head {
    width: 24%;
    background: #7b5dbb;
    color: #fff;
}

.public-lb-prize-rank-1 td {
    background: #fff2a8;
    font-weight: 800;
}

.public-lb-prize-rank-2 td {
    background: #f0f0f0;
    font-weight: 800;
}

.public-lb-prize-rank-3 td {
    background: #f3d3b5;
    font-weight: 800;
}

.public-lb-prize-other td {
    background: #e7f7e8;
}

.public-lb-value {
    font-weight: 800;
}

.public-lb-prestart-prize {
    font-weight: 800;
    border-left: 3px solid #7b5dbb !important;
}

.public-lb-prize-emoji {
    display: inline-block;
    font-size: 1.55em;
    line-height: 1;
    vertical-align: -0.08em;
    margin-right: 4px;
}

.public-lb-prize-text {
    font-weight: 800;
}

.public-lb-empty,
.public-lb-error {
    padding: 18px 12px;
    text-align: center;
    font-weight: 700;
}

.public-lb-error {
    color: #b00020;
}

@media (max-width: 600px) {
    .public-lb-overlay {
        padding: 8px;
    }

    .public-lb-panel {
        width: min(96vw, 500px);
        max-height: 92vh;
    }

    .public-lb-header {
        font-size: 18px;
    }

    .public-lb-table th,
    .public-lb-table td {
        padding: 6px 4px;
        font-size: 14px;
    }
}
