/* EmbedChallengeLeaderboard — list rows, empty state, list scroll mask */

/* Scroll fade: main leaderboard list */
.embedchallengeleaderboard-list-scroll.embedchallengeleaderboard-scroll-fade:not(.embedchallengeleaderboard-scroll-at-bottom) {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent 100%);
}

.embedchallengeleaderboard-list-scroll.embedchallengeleaderboard-list-loading {
    opacity: 0.5;
    pointer-events: none;
}

.embedchallengeleaderboard-list {
    padding-block: 12px 8px;
}

.embedchallengeleaderboard-user-message {
    flex-shrink: 0;
    color: #1683ff;
    margin-bottom: 10px;
    font-family: "Metropolis Semi Bold";
    font-size: 18px;
    line-height: 24px;
}

.embedchallengeleaderboard-user-message.hide {
    display: none;
}

.embedchallengeleaderboard-empty {
    flex-shrink: 0;
    padding: 150px 12px;
    text-align: center;
    color: #9ca3af;
    font-size: 18px;
    line-height: 20px;
    font-family: "Metropolis Regular";
}

.embedchallengeleaderboard-empty.hide {
    display: none;
}

.embedchallengeleaderboard-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #2d3e50;
    gap: 12px;
    color: #fff;
    font-size: 20px;
    font-family: "Metropolis Regular";
}

.embedchallengeleaderboard-row-me {
    background: rgba(22, 131, 255, 0.5);
    font-family: "Metropolis Semi Bold";
}

.embedchallengeleaderboard-rank {
    flex-shrink: 0;
    width: 36px;
    color: #fff;
    font-size: 20px;
    font-family: inherit;
}

.embedchallengeleaderboard-row-me .embedchallengeleaderboard-rank {
    font-family: "Metropolis Semi Bold";
}

.embedchallengeleaderboard-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.embedchallengeleaderboard-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.embedchallengeleaderboard-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #243447;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #7dd3fc;
    flex-shrink: 0;
}

.embedchallengeleaderboard-name-block {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.embedchallengeleaderboard-name-block .embedchallengeleaderboard-name {
    flex: 1;
    min-width: 0;
}

.embedchallengeleaderboard-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.embedchallengeleaderboard-name {
    font-size: 20px;
    color: #fff;
    font-family: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.embedchallengeleaderboard-row-me .embedchallengeleaderboard-name {
    font-family: "Metropolis Semi Bold";
}

.embedchallengeleaderboard-metric {
    flex-shrink: 0;
    color: #fff;
    font-size: 20px;
    font-family: inherit;
}

.embedchallengeleaderboard-row-me .embedchallengeleaderboard-metric {
    font-family: "Metropolis Semi Bold";
}
