.veldur-highscores.veldur-highscores-loading{opacity:.65;transition:opacity .15s ease}
.veldur-highscores .col-kingdom a{color:inherit;text-decoration:none}
.veldur-highscores .col-kingdom a:hover,.veldur-highscores .col-kingdom a:focus{color:#e8bc62;text-decoration:underline}

/* Summary names retain the site theme and are keyboard-accessible. */
.veldur-highscores .veldur-summary .veldur-stat-card strong a{color:inherit;text-decoration:none}
.veldur-highscores .veldur-summary .veldur-stat-card strong a:hover,
.veldur-highscores .veldur-summary .veldur-stat-card strong a:focus-visible{color:#e8bc62;text-decoration:underline}

/* V1.2.6: Admin-controlled icon, rank symbol and two-palette styling.
   Supersede legacy Elementor medal/emoji pseudo-elements without editing its CSS. */
.veldur-highscores .veldur-summary .veldur-stat-card.veldur-hs-card::before,
.veldur-highscores .veldur-summary .veldur-stat-card.veldur-hs-card::after,
.veldur-highscores table.veldur-leaderboard tbody td.veldur-rank::before,
.veldur-highscores table.veldur-leaderboard tbody td.veldur-rank::after {
    content: none !important;
    display: none !important;
}
.veldur-highscores .veldur-summary .veldur-stat-card.veldur-hs-card {
    padding: 18px 22px !important;
    text-align: left;
}
.veldur-highscores .veldur-hs-card-layout {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    width: 100%;
}
.veldur-highscores .veldur-hs-card-icon {
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
}
.veldur-highscores .veldur-hs-card-icon .veldur-hs-svg { width: 25px; height: 25px; }
.veldur-highscores .veldur-hs-card-copy { flex: 1 1 auto; min-width: 0; }
.veldur-highscores .veldur-hs-card-copy .veldur-stat-title,
.veldur-highscores .veldur-hs-card-copy > strong,
.veldur-highscores .veldur-hs-card-copy > small { display: block; }
.veldur-highscores .veldur-hs-card-copy > strong { overflow-wrap:anywhere; }

.veldur-highscores table.veldur-leaderboard tbody tr.veldur-hs-row-featured > td {
    background: var(--veldur-hs-featured-bg,#292217) !important;
    color: var(--veldur-hs-featured-text,#e9d5b1);
}
.veldur-highscores table.veldur-leaderboard tbody tr.veldur-hs-row-normal > td {
    background: var(--veldur-hs-normal-bg,#181613) !important;
    color: var(--veldur-hs-normal-text,#cfc3ad);
}
.veldur-highscores table.veldur-leaderboard tbody tr.veldur-hs-row-featured > td.veldur-rank {
    border-left: 3px solid var(--veldur-hs-featured-accent,#c39a46) !important;
}
.veldur-highscores table.veldur-leaderboard tbody tr.veldur-hs-row-normal > td.veldur-rank {
    border-left: 3px solid var(--veldur-hs-normal-accent,#796a50) !important;
}
/* Rank cell has a consistent inner width, including when no badge is selected. */
.veldur-highscores table.veldur-leaderboard tbody td.veldur-rank {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    letter-spacing: 0 !important;
}
.veldur-highscores table.veldur-leaderboard tbody td.veldur-rank .veldur-hs-rank-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 14px !important;
    line-height: 1.3;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    min-width: 55px;
}
.veldur-highscores .veldur-hs-rank-icon {
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
}
.veldur-highscores .veldur-hs-rank-icon:empty { visibility: hidden; }
.veldur-highscores .veldur-hs-rank-icon svg {width:17px;height:17px;display:block;}
.veldur-highscores .veldur-hs-rank-number {font-size:14px !important;font-weight:600 !important;color:inherit;}
@media(max-width:767px){
    .veldur-highscores .veldur-summary .veldur-stat-card.veldur-hs-card {padding:14px 15px !important;}
    .veldur-highscores .veldur-hs-card-layout {gap:10px;}
    .veldur-highscores .veldur-hs-card-icon {flex-basis:24px;width:24px;height:24px;}
    .veldur-highscores .veldur-hs-card-icon svg {width:22px;height:22px;}
}

/* V1.2.7: Keep badge and rank number together in narrow mobile columns. */
@media(max-width:767px){
    .veldur-highscores table.veldur-leaderboard th.col-position,
    .veldur-highscores table.veldur-leaderboard td.col-position { width:25% !important; }
    .veldur-highscores table.veldur-leaderboard.kingdom-table th.col-kingdom,
    .veldur-highscores table.veldur-leaderboard.kingdom-table td.col-kingdom { width:42% !important; }
    .veldur-highscores table.veldur-leaderboard.kingdom-table th.col-points,
    .veldur-highscores table.veldur-leaderboard.kingdom-table td.col-points { width:33% !important; }
    .veldur-highscores table.veldur-leaderboard:not(.kingdom-table) th.col-player,
    .veldur-highscores table.veldur-leaderboard:not(.kingdom-table) td.col-player { width:40% !important; }
    .veldur-highscores table.veldur-leaderboard:not(.kingdom-table) .col-playtime,
    .veldur-highscores table.veldur-leaderboard:not(.kingdom-table) .col-points,
    .veldur-highscores table.veldur-leaderboard:not(.kingdom-table) .col-kills,
    .veldur-highscores table.veldur-leaderboard:not(.kingdom-table) .col-npckills,
    .veldur-highscores table.veldur-leaderboard:not(.kingdom-table) .col-resources,
    .veldur-highscores table.veldur-leaderboard:not(.kingdom-table) .col-coins { width:35% !important; }
    .veldur-highscores table.veldur-leaderboard tbody td.veldur-rank {
        box-sizing:border-box;
        padding:10px 4px !important;
        text-align:center !important;
    }
    .veldur-highscores table.veldur-leaderboard tbody td.veldur-rank .veldur-hs-rank-content {
        display:inline-flex;
        min-width:0;
        width:auto;
        max-width:100%;
        gap:3px;
        justify-content:center;
        font-size:13px !important;
    }
    .veldur-highscores .veldur-hs-rank-icon {
        flex:0 0 14px;
        min-width:14px;
        width:14px;
        height:15px;
    }
    .veldur-highscores .veldur-hs-rank-icon svg { width:14px; height:14px; }
    .veldur-highscores .veldur-hs-rank-number { font-size:13px !important; }
}
