/**
 * Frontend styles for gamification shortcodes and blocks.
 *
 * All selectors prefixed with .mcgf-sc- to avoid theme conflicts.
 *
 * @package membercore\gamification
 */

/* User Points */
.mcgf-sc-points {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.mcgf-sc-points-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #1d2327;
}

.mcgf-sc-points-label {
    font-size: 0.9em;
    color: #646970;
}

/* Badge grids (shared by achievements and achievement-list) */
.mcgf-sc-badge-grid {
    display: grid;
    grid-template-columns: repeat(var(--mcgf-columns, 3), 1fr);
    gap: 16px;
}

.mcgf-sc-badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mcgf-sc-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mcgf-sc-badge-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 8px;
}

.mcgf-sc-badge-img-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.mcgf-sc-badge-title {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
}

.mcgf-sc-badge-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.mcgf-sc-badge-progress {
    font-size: 12px;
    color: #6366f1;
    font-weight: 600;
    margin-top: 4px;
}

/* Locked badges */
.mcgf-sc-badge-locked {
    border-style: dashed;
    border-color: #d1d5db;
}

.mcgf-sc-badge-locked .mcgf-sc-locked-img {
    opacity: 0.35;
    filter: grayscale(100%);
}

.mcgf-sc-mystery {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    color: #9ca3af;
}

.mcgf-sc-hidden-title {
    color: #9ca3af;
}

.mcgf-sc-locked-heading {
    font-size: 14px;
    color: #6b7280;
    margin: 20px 0 12px;
    font-weight: 600;
}

/* User Rank */
.mcgf-sc-rank {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcgf-sc-rank-current {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mcgf-sc-rank-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.mcgf-sc-rank-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #1d2327;
}

.mcgf-sc-rank-none {
    color: #9ca3af;
    font-style: italic;
}

.mcgf-sc-rank-max {
    color: #059669;
    font-weight: 600;
    font-size: 13px;
}

.mcgf-sc-rank-progress {
    max-width: 300px;
}

.mcgf-sc-progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 4px;
}

.mcgf-sc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 5px;
    min-width: 2px;
    transition: width 0.4s ease;
}

.mcgf-sc-progress-text {
    font-size: 12px;
    color: #6b7280;
}

/* Points History */
.mcgf-sc-history-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.mcgf-sc-history-table thead th {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f9fafb;
}

.mcgf-sc-history-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #374151;
}

.mcgf-sc-history-table tbody tr:hover {
    background: #f9fafb;
}

.mcgf-sc-history-table tbody tr:last-child td {
    border-bottom: none;
}

.mcgf-sc-amount-col {
    text-align: right;
    width: 80px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.mcgf-sc-positive {
    color: #059669;
}

.mcgf-sc-negative {
    color: #dc2626;
}

/* Empty state */
.mcgf-sc-empty {
    color: #9ca3af;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* ----------------------------------------------------------------
   Leaderboard: shared shell (tabs, empty state, "you" tag)
   ---------------------------------------------------------------- */
.mcgf-leaderboard {
    --mcgf-lb-ink: #1f2933;
    --mcgf-lb-muted: #667085;
    --mcgf-lb-line: rgba(106, 82, 51, 0.16);
    --mcgf-lb-line-soft: rgba(106, 82, 51, 0.1);
    --mcgf-lb-panel: #fffcf5;
    --mcgf-lb-panel-soft: #f5efe5;
    --mcgf-lb-gold: #c9972f;
    --mcgf-lb-silver: #a7b0bd;
    --mcgf-lb-bronze: #b87943;
    --mcgf-lb-accent: #0f766e;
    --mcgf-lb-accent-soft: #eefaf6;
    --mcgf-lb-shadow: 0 18px 44px rgba(67, 56, 45, 0.14);

    max-width: 720px;
    color: var(--mcgf-lb-ink);
    line-height: 1.45;
}

.mcgf-lb-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 16px;
    background: rgba(40, 32, 20, 0.06);
    border-radius: 999px;
}

.mcgf-lb-tab {
    border: 0;
    border-radius: 999px;
    padding: 7px 14px;
    background: transparent;
    color: #6b5a45;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mcgf-lb-tab:hover {
    color: #1f2933;
}

.mcgf-lb-tab--active {
    background: #1f2933;
    color: #fffaf0;
}

.mcgf-lb-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--mcgf-lb-muted);
}

.mcgf-lb-empty p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

.mcgf-leaderboard .mcgf-lb-me-tag {
    display: inline-block;
    margin-left: 6px;
    color: var(--mcgf-lb-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .mcgf-lb-tabs {
        overflow-x: auto;
        max-width: 100%;
    }

    .mcgf-lb-tab {
        white-space: nowrap;
    }
}

/* ----------------------------------------------------------------
   Direction 2 — Clean Performance Table (style key: table)
   ---------------------------------------------------------------- */
.mcgf-lb-performance-table {
    background: var(--mcgf-lb-panel);
    border: 1px solid var(--mcgf-lb-line);
    border-radius: 12px;
    box-shadow: var(--mcgf-lb-shadow);
    overflow: hidden;
}

.mcgf-lb-performance-table__wrap {
    overflow-x: auto;
}

.mcgf-lb-performance-table__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    font-size: 14px;
}

.mcgf-lb-performance-table__table th {
    padding: 13px 16px;
    color: #796957;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    background: var(--mcgf-lb-panel-soft);
    border-bottom: 1px solid rgba(106, 82, 51, 0.14);
}

.mcgf-lb-performance-table__th-points {
    text-align: right;
}

.mcgf-lb-performance-table__table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mcgf-lb-line-soft);
    vertical-align: middle;
}

.mcgf-lb-performance-table__row:last-child td {
    border-bottom: 0;
}

.mcgf-lb-performance-table__row--current {
    background: var(--mcgf-lb-accent-soft);
    box-shadow: inset 4px 0 0 var(--mcgf-lb-accent);
}

.mcgf-lb-performance-table__chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    background: #f1ece3;
    color: #574b3b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.mcgf-lb-performance-table__chip--gold {
    background: rgba(201, 151, 47, 0.16);
    color: #8a5b1f;
}

.mcgf-lb-performance-table__chip--silver {
    background: rgba(167, 176, 189, 0.22);
    color: #4f5560;
}

.mcgf-lb-performance-table__chip--bronze {
    background: rgba(184, 121, 67, 0.18);
    color: #7a4a23;
}

.mcgf-lb-performance-table__rank-num {
    color: #7a6a56;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.mcgf-lb-performance-table__member {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mcgf-lb-performance-table__avatar {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8dfd0;
    flex: none;
    overflow: hidden;
}

.mcgf-lb-performance-table__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mcgf-lb-performance-table__name {
    font-weight: 800;
    color: var(--mcgf-lb-ink);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcgf-lb-performance-table__points {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    color: var(--mcgf-lb-ink);
}

/* ----------------------------------------------------------------
   Direction 3 — Progress Race (style key: minimal)
   ---------------------------------------------------------------- */
.mcgf-lb-progress-race {
    background: var(--mcgf-lb-panel);
    border: 1px solid var(--mcgf-lb-line);
    border-radius: 18px;
    box-shadow: var(--mcgf-lb-shadow);
    padding: 12px 20px 18px;
}

.mcgf-lb-progress-race__row {
    display: grid;
    grid-template-columns: 44px 42px 1fr 88px;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--mcgf-lb-line-soft);
}

.mcgf-lb-progress-race__row:first-child {
    border-top: 0;
}

.mcgf-lb-progress-race__row--me {
    background: var(--mcgf-lb-accent-soft);
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 4px -10px;
    border-top-color: transparent;
}

.mcgf-lb-progress-race__rank {
    color: #7a6a56;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.mcgf-lb-progress-race__avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8dfd0;
    overflow: hidden;
    flex: none;
}

.mcgf-lb-progress-race__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.mcgf-lb-progress-race__block {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.mcgf-lb-progress-race__line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.mcgf-lb-progress-race__name {
    font-weight: 800;
    color: var(--mcgf-lb-ink);
}

.mcgf-lb-progress-race__badge {
    color: var(--mcgf-lb-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mcgf-lb-progress-race__badge--leader {
    color: #8a5b1f;
}

.mcgf-lb-progress-race__behind {
    color: #8a5b1f;
    font-size: 12px;
    font-weight: 800;
}

.mcgf-lb-progress-race__track {
    height: 9px;
    border-radius: 999px;
    background: #eadfce;
    overflow: hidden;
}

.mcgf-lb-progress-race__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mcgf-lb-accent), #a3e635);
}

.mcgf-lb-progress-race__points {
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    color: var(--mcgf-lb-ink);
    text-align: right;
}

@media (max-width: 480px) {
    .mcgf-lb-progress-race {
        padding: 8px 14px 14px;
    }

    .mcgf-lb-progress-race__row {
        grid-template-columns: 36px 36px 1fr;
    }

    .mcgf-lb-progress-race__points {
        grid-column: 3;
        text-align: right;
    }
}

/* ----------------------------------------------------------------
   Classic Cards (style key: classic_cards) — legacy Direction A
   ---------------------------------------------------------------- */
.mcgf-lb-style-classic_cards .mcgf-lb-hero {
    position: relative;
    border-radius: 16px;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(0, 166, 90, 0.18), transparent 60%),
        linear-gradient(135deg, #022c19 0%, #006d3e 100%);
    color: #fff;
    padding: 22px 24px;
    margin-bottom: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mcgf-lb-style-classic_cards .mcgf-lb-hero::before {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(closest-side, rgba(255, 219, 108, 0.35), transparent 70%);
    pointer-events: none;
}

.mcgf-lb-style-classic_cards .mcgf-lb-hero-medal { width: 44px; height: 44px; flex-shrink: 0; }

.mcgf-lb-style-classic_cards .mcgf-lb-hero-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0; overflow: hidden;
    display: inline-block;
}

.mcgf-lb-style-classic_cards .mcgf-lb-hero-avatar img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.mcgf-lb-style-classic_cards .mcgf-lb-hero-info { flex-grow: 1; min-width: 0; }
.mcgf-lb-style-classic_cards .mcgf-lb-hero-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.mcgf-lb-style-classic_cards .mcgf-lb-hero-meta { font-size: 12px; opacity: 0.7; margin-top: 2px; }
.mcgf-lb-style-classic_cards .mcgf-lb-hero-pts { text-align: right; flex-shrink: 0; }
.mcgf-lb-style-classic_cards .mcgf-lb-hero-pts-num { font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.mcgf-lb-style-classic_cards .mcgf-lb-hero-pts-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; margin-top: 2px; }

.mcgf-lb-style-classic_cards .mcgf-lb-podium {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px;
}

.mcgf-lb-style-classic_cards .mcgf-lb-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e1e3e8;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.mcgf-lb-style-classic_cards .mcgf-lb-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }

.mcgf-lb-style-classic_cards .mcgf-lb-medal { width: 28px; height: 28px; flex-shrink: 0; }

.mcgf-lb-style-classic_cards .mcgf-lb-card-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: #f0f2f5; flex-shrink: 0; overflow: hidden;
    display: inline-block;
}

.mcgf-lb-style-classic_cards .mcgf-lb-card-avatar img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.mcgf-lb-style-classic_cards .mcgf-lb-card-info { flex-grow: 1; min-width: 0; }
.mcgf-lb-style-classic_cards .mcgf-lb-card-name {
    display: block;
    font-size: 14px; font-weight: 600; color: #101417;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mcgf-lb-style-classic_cards .mcgf-lb-card-pts {
    font-size: 14px; font-weight: 700; color: #101417;
    font-variant-numeric: tabular-nums; flex-shrink: 0;
}

.mcgf-lb-style-classic_cards .mcgf-lb-bar {
    height: 4px; background: #f0f2f5; border-radius: 2px; margin-top: 6px; overflow: hidden;
}
.mcgf-lb-style-classic_cards .mcgf-lb-bar-fill {
    height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, #00a65a, #006d3e);
}

.mcgf-lb-style-classic_cards .mcgf-lb-list { display: flex; flex-direction: column; gap: 4px; }

.mcgf-lb-style-classic_cards .mcgf-lb-row {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 14px; border-radius: 10px;
    transition: background 0.15s ease;
}
.mcgf-lb-style-classic_cards .mcgf-lb-row:hover { background: rgba(241, 243, 245, 0.6); }

.mcgf-lb-style-classic_cards .mcgf-lb-row-rank {
    width: 28px; text-align: center; flex-shrink: 0;
    font-size: 13px; font-weight: 700; color: #6c7075;
    font-variant-numeric: tabular-nums;
}

.mcgf-lb-style-classic_cards .mcgf-lb-row-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: #f0f2f5; flex-shrink: 0; overflow: hidden;
    display: inline-block;
}
.mcgf-lb-style-classic_cards .mcgf-lb-row-avatar img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.mcgf-lb-style-classic_cards .mcgf-lb-row-name {
    flex-grow: 1; min-width: 0;
    font-size: 14px; color: #101417;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mcgf-lb-style-classic_cards .mcgf-lb-row .mcgf-lb-bar { width: 80px; margin-top: 0; flex-shrink: 0; }

.mcgf-lb-style-classic_cards .mcgf-lb-row-pts {
    font-size: 14px; font-weight: 700; color: #101417;
    font-variant-numeric: tabular-nums; flex-shrink: 0;
}

.mcgf-lb-style-classic_cards .mcgf-lb-card--me,
.mcgf-lb-style-classic_cards .mcgf-lb-row--me { background: #f0fdf4; }
.mcgf-lb-style-classic_cards .mcgf-lb-card--me { border-color: #bbf7d0; }

@media (max-width: 480px) {
    .mcgf-lb-style-classic_cards .mcgf-lb-hero {
        flex-direction: column; align-items: flex-start; text-align: left;
    }
    .mcgf-lb-style-classic_cards .mcgf-lb-hero-pts { text-align: left; }
    .mcgf-lb-style-classic_cards .mcgf-lb-row .mcgf-lb-bar { display: none; }
}

/* ----------------------------------------------------------------
   Classic Podium (style key: classic_podium) — legacy Direction C
   ---------------------------------------------------------------- */
.mcgf-lb-style-classic_podium .mcgf-lb-podium-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.mcgf-lb-style-classic_podium .mcgf-lb-podium-card {
    background: #fff;
    border: 2px solid #e1e3e8;
    border-radius: 14px;
    padding: 14px 10px 16px;
    text-align: center;
    position: relative;
}
.mcgf-lb-style-classic_podium .mcgf-lb-podium-card--gold { border-color: #006d3e; padding-top: 22px; }
.mcgf-lb-style-classic_podium .mcgf-lb-podium-card--silver { border-color: #00a65a; }
.mcgf-lb-style-classic_podium .mcgf-lb-podium-card--bronze { border-color: #ff981c; }
.mcgf-lb-style-classic_podium .mcgf-lb-podium-card--me { box-shadow: 0 0 0 3px rgba(0, 109, 62, 0.15); }

.mcgf-lb-style-classic_podium .mcgf-lb-podium-badge {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 16px;
    margin: -28px auto 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.mcgf-lb-style-classic_podium .mcgf-lb-podium-badge--gold { background: #006d3e; }
.mcgf-lb-style-classic_podium .mcgf-lb-podium-badge--silver { background: #00a65a; }
.mcgf-lb-style-classic_podium .mcgf-lb-podium-badge--bronze { background: #ff981c; }

.mcgf-lb-style-classic_podium .mcgf-lb-podium-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: #f0f2f5; margin: 0 auto 8px;
    display: block; overflow: hidden;
}
.mcgf-lb-style-classic_podium .mcgf-lb-podium-card--gold .mcgf-lb-podium-avatar { width: 64px; height: 64px; }
.mcgf-lb-style-classic_podium .mcgf-lb-podium-avatar img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.mcgf-lb-style-classic_podium .mcgf-lb-podium-name {
    font-size: 13px; font-weight: 700; color: #101417;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 1.2;
}

.mcgf-lb-style-classic_podium .mcgf-lb-podium-pts {
    font-size: 22px; font-weight: 800; color: #101417;
    font-variant-numeric: tabular-nums;
    margin-top: 4px; letter-spacing: -0.02em;
}
.mcgf-lb-style-classic_podium .mcgf-lb-podium-card--gold .mcgf-lb-podium-pts { font-size: 28px; color: #006d3e; }

.mcgf-lb-style-classic_podium .mcgf-lb-podium-pts-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #6c7075;
}

.mcgf-lb-style-classic_podium .mcgf-lb-podium-list { display: flex; flex-direction: column; gap: 6px; }

.mcgf-lb-style-classic_podium .mcgf-lb-podium-row {
    display: grid;
    grid-template-columns: 36px 1fr 80px;
    align-items: center; gap: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e1e3e8;
    border-radius: 8px;
}
.mcgf-lb-style-classic_podium .mcgf-lb-podium-row--me {
    background: #f0fdf4; border-color: #00a65a;
}

.mcgf-lb-style-classic_podium .mcgf-lb-podium-rank-badge {
    width: 28px; height: 28px; border-radius: 50%;
    background: #f0f2f5; color: #6c7075;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}

.mcgf-lb-style-classic_podium .mcgf-lb-podium-user { display: flex; align-items: center; gap: 10px; min-width: 0; }

.mcgf-lb-style-classic_podium .mcgf-lb-podium-avatar-sm {
    width: 30px; height: 30px; border-radius: 50%;
    background: #f0f2f5; flex-shrink: 0; overflow: hidden;
    display: inline-block;
}
.mcgf-lb-style-classic_podium .mcgf-lb-podium-avatar-sm img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.mcgf-lb-style-classic_podium .mcgf-lb-podium-name-sm {
    font-size: 14px; font-weight: 600; color: #101417;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mcgf-lb-style-classic_podium .mcgf-lb-podium-pts-sm {
    font-size: 16px; font-weight: 800; color: #101417;
    text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}

@media (max-width: 520px) {
    .mcgf-lb-style-classic_podium .mcgf-lb-podium-grid { grid-template-columns: 1fr; }
    .mcgf-lb-style-classic_podium .mcgf-lb-podium-card--gold { padding-top: 14px; }
    .mcgf-lb-style-classic_podium .mcgf-lb-podium-badge { margin-top: 0; }
}

/* ----------------------------------------------------------------
   Classic Modern (style key: classic_modern) — legacy Direction B
   ---------------------------------------------------------------- */
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero {
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #fafbfc 0%, #f0f2f5 100%);
    border: 1px solid #e1e3e8;
    display: flex;
    align-items: center;
    gap: 18px;
}

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero-rank {
    font-size: 36px; font-weight: 800; color: #006d3e;
    font-variant-numeric: tabular-nums; line-height: 1;
    letter-spacing: -0.02em; min-width: 56px;
}

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: #fff; border: 2px solid #006d3e;
    flex-shrink: 0; overflow: hidden;
    display: inline-block;
}
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero-avatar img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero-info { flex-grow: 1; min-width: 0; }
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero-name {
    font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #101417;
}

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero-pts {
    display: flex; align-items: baseline; gap: 8px; margin-top: 2px;
}
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero-pts-num {
    font-size: 22px; font-weight: 700; color: #101417;
    font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero-pts-label { font-size: 12px; color: #6c7075; }

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-list { display: flex; flex-direction: column; }

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-row {
    display: grid;
    grid-template-columns: 28px 1fr 90px 70px;
    align-items: center; gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #f3f4f6;
}
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-row:last-child { border-bottom: 0; }
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-row--me {
    background: #f0fdf4; border-radius: 8px;
    padding-left: 12px; padding-right: 12px;
    border-bottom-color: transparent;
}

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-rank {
    font-size: 13px; font-weight: 600; color: #6c7075;
    font-variant-numeric: tabular-nums; text-align: center;
}
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-rank--silver { color: #00a65a; font-weight: 700; }
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-rank--bronze { color: #ff981c; font-weight: 700; }

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-user {
    display: flex; align-items: center; gap: 10px; min-width: 0;
}

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: #f0f2f5; flex-shrink: 0; overflow: hidden;
    display: inline-block;
}
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-avatar img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-name {
    font-size: 14px; font-weight: 500; color: #101417;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-bar {
    height: 4px; background: #f0f2f5; border-radius: 2px; overflow: hidden;
}
.mcgf-lb-style-classic_modern .mcgf-lb-sleek-bar-fill {
    height: 100%; background: #006d3e; border-radius: 2px;
}

.mcgf-lb-style-classic_modern .mcgf-lb-sleek-pts {
    font-size: 13px; font-weight: 600; color: #101417;
    text-align: right; font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
    .mcgf-lb-style-classic_modern .mcgf-lb-sleek-hero { flex-direction: column; align-items: flex-start; text-align: left; }
    .mcgf-lb-style-classic_modern .mcgf-lb-sleek-row { grid-template-columns: 24px 1fr 60px; }
    .mcgf-lb-style-classic_modern .mcgf-lb-sleek-bar { display: none; }
    .mcgf-lb-style-classic_modern .mcgf-lb-sleek-avatar { width: 24px; height: 24px; }
}

/* Content restriction teaser */
.mcgf-restrict-teaser {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin: 16px 0;
}

.mcgf-restrict-teaser__icon {
    flex-shrink: 0;
    color: #d97706;
    padding-top: 2px;
}

.mcgf-restrict-teaser__message {
    font-size: 14px;
    line-height: 1.6;
    color: #92400e;
}

/* Responsive */
@media (max-width: 600px) {
    .mcgf-sc-badge-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mcgf-leaderboard-tabs {
        overflow-x: auto;
    }

    .mcgf-leaderboard-tab {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
}
