.lb-page {
    position: relative;
    padding-block: clamp(1.5rem, 4vw, 3rem);
    color: #e2e8f0;
    overflow: hidden;
}

.lb-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.16), transparent 25%),
        radial-gradient(circle at 12% 10%, rgba(139, 92, 246, 0.22), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(56, 189, 248, 0.11), transparent 28%);
}

.lb-hero,
.lb-podium-stage,
.lb-board {
    position: relative;
    z-index: 1;
}

.lb-hero {
    max-width: 980px;
    margin: 0 auto 1.5rem;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.68), rgba(10, 12, 28, 0.84));
    box-shadow: 0 0 42px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
}

.lb-kicker {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: #c4b5fd;
    font-size: 0.82rem;
    font-weight: 900;
}

.lb-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.65rem);
    font-weight: 950;
    line-height: 1.25;
    background: linear-gradient(90deg, #facc15, #f5d76e, #c084fc, #22d3ee);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.lb-hero p {
    margin: 0.75rem auto 0;
    max-width: 82ch;
    color: #a8b3c7;
    line-height: 1.85;
}

.lb-podium-stage {
    padding-block: 0.75rem 1rem;
}

.lb-podium-light {
    position: absolute;
    inset-inline: 10%;
    bottom: 1.2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.82), transparent);
    box-shadow: 0 0 28px rgba(250, 204, 21, 0.48);
    pointer-events: none;
}

.lb-podium {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: clamp(0.7rem, 1.5vw, 1rem);
    direction: ltr;
    padding-inline: clamp(0rem, 2vw, 2rem);
}

.lb-card {
    --tier: var(--level-color, #8b5cf6);
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 0.42rem;
    min-height: 205px;
    padding: 1.35rem 0.85rem 1rem;
    direction: rtl;
    border-radius: 24px;
    color: #f8fafc;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--tier) 16%, transparent), transparent 52%),
        rgba(12, 15, 34, 0.78);
    border: 1px solid color-mix(in srgb, var(--tier) 46%, rgba(148, 163, 184, 0.16));
    box-shadow: 0 0 24px color-mix(in srgb, var(--tier) 16%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.lb-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, color-mix(in srgb, var(--tier) 78%, white), transparent);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.lb-card.is-first {
    order: 2;
    min-height: 232px;
    transform: translateY(-10px);
}

.lb-card.is-gold {
    --tier: #facc15;
}

.lb-card.is-silver {
    order: 1;
    --tier: #cbd5e1;
}

.lb-card.is-bronze {
    order: 3;
    --tier: #fb923c;
}

.lb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 34px color-mix(in srgb, var(--tier) 24%, transparent);
}

.lb-card.is-first:hover {
    transform: translateY(-16px);
}

.lb-avatar-wrap,
.lb-mini-avatar {
    position: relative;
    display: grid;
    place-items: center;
    color: var(--level-color, #facc15);
}

.lb-avatar-wrap {
    width: 112px;
    height: 112px;
}

.lb-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid currentColor;
    box-shadow: 0 0 18px currentColor;
}

.lb-leader-frame,
.lb-leader-frame-fallback {
    position: absolute;
    inset: 0;
    width: 112px;
    height: 112px;
    pointer-events: none;
}

.lb-leader-frame-fallback {
    border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--tier) 72%, white);
    box-shadow:
        0 0 18px color-mix(in srgb, var(--tier) 38%, transparent),
        inset 0 0 18px color-mix(in srgb, var(--tier) 16%, transparent);
}

.lb-card h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.1rem 0 0;
    font-size: 1rem;
    font-weight: 950;
    text-align: center;
    text-shadow: 0 0 14px var(--level-glow, transparent);
}

.lb-name-badge {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 0 7px var(--level-glow, rgba(139, 92, 246, 0.45)));
}

.lb-level {
    display: inline-flex;
    max-width: 100%;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    color: color-mix(in srgb, var(--level-color, #facc15) 82%, #fff);
    background: color-mix(in srgb, var(--level-color, #8b5cf6) 15%, rgba(15, 23, 42, 0.82));
    border: 1px solid color-mix(in srgb, var(--level-color, #8b5cf6) 34%, transparent);
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-main-badge,
.lb-badge img {
    filter: drop-shadow(0 0 10px var(--level-glow, rgba(139, 92, 246, 0.45)));
}

.lb-main-badge {
    width: 44px;
    height: 44px;
    margin-top: 0.25rem;
}

.lb-board {
    margin-top: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    background: rgba(8, 11, 27, 0.78);
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lb-board-head {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
}

.lb-board-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 1.1rem;
}

.lb-table-wrap {
    overflow-x: auto;
}

.lb-table {
    width: 100%;
    min-width: 660px;
    border-collapse: collapse;
}

.lb-table th,
.lb-table td {
    padding: 0.82rem 1rem;
    text-align: start;
    border-bottom: 1px solid rgba(148, 163, 184, 0.11);
    vertical-align: middle;
}

.lb-table th {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.62);
}

.lb-table tbody tr {
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.lb-table tbody tr:hover {
    background: color-mix(in srgb, var(--level-color, #8b5cf6) 9%, transparent);
    box-shadow: inset 4px 0 0 var(--level-color, #8b5cf6);
}

.lb-table-rank {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid color-mix(in srgb, var(--level-color, #8b5cf6) 40%, transparent);
    font-weight: 900;
}

.lb-mini-avatar {
    width: 54px;
    height: 54px;
}

.lb-mini-avatar img:first-child {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 14px currentColor;
}

.lb-mini-frame {
    position: absolute;
    inset: 0;
    width: 54px;
    height: 54px;
    pointer-events: none;
}

.lb-name {
    color: #f8fafc;
}

.lb-badge {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid color-mix(in srgb, var(--level-color, #8b5cf6) 34%, transparent);
}

.lb-muted,
.lb-empty {
    color: #94a3b8;
}

.lb-pagination {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.lb-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    flex-wrap: wrap;
    padding: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.12);
}

.lb-pager__link,
.lb-pager__dots {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.72rem;
    border-radius: 999px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(8, 11, 27, 0.76);
    text-decoration: none;
    font-weight: 900;
    transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lb-pager__link:hover {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.16);
}

.lb-pager__link.is-active {
    color: #111827;
    background: linear-gradient(135deg, #facc15, #c084fc);
    border-color: transparent;
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.35);
}

.lb-pager__link.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

.lb-pager__dots {
    min-width: 30px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

@media (max-width: 820px) {
    .lb-podium {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.9rem;
    }

    .lb-card,
    .lb-card.is-first {
        min-width: 76%;
        min-height: 220px;
        order: initial;
        transform: none;
        scroll-snap-align: center;
    }

    .lb-card:hover,
    .lb-card.is-first:hover {
        transform: translateY(-3px);
    }

    .lb-table {
        min-width: 0;
    }

    .lb-table thead {
        display: none;
    }

    .lb-table,
    .lb-table tbody,
    .lb-table tr,
    .lb-table td {
        display: block;
        width: 100%;
    }

    .lb-table tbody {
        display: grid;
        gap: 0.8rem;
        padding: 0.85rem;
    }

    .lb-table tr {
        border: 1px solid color-mix(in srgb, var(--level-color, #8b5cf6) 28%, rgba(148, 163, 184, 0.12));
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.68);
        overflow: hidden;
    }

    .lb-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        padding: 0.7rem 0.85rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }

    .lb-table td::before {
        content: attr(data-label);
        color: #94a3b8;
        font-size: 0.78rem;
        font-weight: 900;
    }

    .lb-table td:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 520px) {
    .lb-hero {
        border-radius: 20px;
    }

    .lb-card,
    .lb-card.is-first {
        min-width: 86%;
    }

    .lb-pager {
        border-radius: 22px;
        gap: 0.3rem;
    }

    .lb-pager__link,
    .lb-pager__dots {
        min-width: 34px;
        min-height: 34px;
        padding: 0 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-card,
    .lb-table tbody tr {
        transition: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   واجهة الهاتف فقط — أفضل العملاء (فاخرة / منصّة ألعاب)
   سطح المكتب يستخدم .lb-d-only ولا يتأثر بهذه القواعد إلا إخفاؤه ≤900px
   ═══════════════════════════════════════════════════════════════════════════ */

.lb-d-only {
    display: block;
}

.lb-m-only {
    display: none !important;
}

@keyframes lb-m-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .lb-leaderboard-page {
        padding-block: clamp(0.75rem, 3vw, 1.25rem) clamp(5rem, 12vw, 6rem);
        overflow-x: clip;
    }

    .lb-leaderboard-page::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
            radial-gradient(ellipse 90% 55% at 50% -8%, rgba(168, 85, 247, 0.34), transparent 52%),
            radial-gradient(circle at 80% 22%, rgba(250, 204, 21, 0.08), transparent 38%);
        z-index: 0;
    }

    .lb-d-only {
        display: none !important;
    }

    .lb-m-only {
        display: block !important;
        position: relative;
        z-index: 1;
    }

    /* شريط علوي */
    .lb-m-topbar {
        display: grid !important;
        grid-template-columns: 44px 1fr 44px;
        align-items: start;
        gap: 0.35rem;
        margin-bottom: 1rem;
        padding: 0.35rem 0.15rem 0.85rem;
        animation: lb-m-fade-up 0.55s ease-out both;
    }

    .lb-m-back {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(168, 85, 247, 0.35);
        background: rgba(15, 23, 42, 0.65);
        color: #e9d5ff;
        box-shadow: 0 0 22px rgba(168, 85, 247, 0.22);
        backdrop-filter: blur(12px);
        transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }

    .lb-m-back:active {
        transform: scale(0.94);
    }

    .lb-m-topbar__titles {
        text-align: center;
        padding-top: 0.15rem;
    }

    .lb-m-topbar__crown {
        display: inline-flex;
        margin-bottom: 0.2rem;
        filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.35));
    }

    .lb-m-topbar__title {
        margin: 0;
        font-size: clamp(1.22rem, 4.6vw, 1.45rem);
        font-weight: 950;
        letter-spacing: -0.02em;
        background: linear-gradient(92deg, #fef08a, #facc15, #e9d5ff, #c084fc);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        text-shadow: 0 0 28px rgba(168, 85, 247, 0.25);
    }

    .lb-m-topbar__sub {
        margin: 0.35rem 0 0;
        font-size: 0.78rem;
        font-weight: 600;
        color: #94a3b8;
        line-height: 1.55;
    }

    .lb-m-topbar__info {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        justify-self: end;
        margin-top: 4px;
        border-radius: 12px;
        border: 1px solid rgba(148, 163, 184, 0.28);
        font-size: 0.82rem;
        font-weight: 900;
        font-style: italic;
        color: #c4b5fd;
        background: rgba(17, 24, 39, 0.72);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    /* منصة التتويج */
    .lb-m-podium-stage {
        margin-bottom: 1.35rem;
        animation: lb-m-fade-up 0.6s ease-out 0.06s both;
    }

    .lb-m-podium-glow {
        height: 3px;
        margin: 0 auto 0.85rem;
        max-width: 72%;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.85), rgba(168, 85, 247, 0.65), transparent);
        box-shadow: 0 0 32px rgba(250, 204, 21, 0.35), 0 0 42px rgba(168, 85, 247, 0.22);
    }

    .lb-m-podium {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
        gap: 0.38rem;
        direction: ltr;
        padding-inline: 0;
    }

    .lb-m-card {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        direction: rtl;
        padding: 0.55rem 0.35rem 0.65rem;
        border-radius: 22px;
        border: 1px solid color-mix(in srgb, var(--lb-tier, #a855f7) 42%, rgba(148, 163, 184, 0.14));
        background:
            linear-gradient(165deg, color-mix(in srgb, var(--lb-tier) 22%, transparent), rgba(8, 10, 22, 0.82) 48%, rgba(5, 8, 18, 0.92));
        box-shadow:
            0 12px 36px rgba(0, 0, 0, 0.42),
            0 0 36px color-mix(in srgb, var(--lb-tier) 22%, transparent),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        animation: lb-m-fade-up 0.65s ease-out both;
        transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .lb-m-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .lb-m-card:nth-child(2) {
        animation-delay: 0.18s;
    }

    .lb-m-card:nth-child(3) {
        animation-delay: 0.26s;
    }

    .lb-m-card.is-silver {
        order: 1;
    }

    .lb-m-card.is-first {
        order: 2;
        transform: translateY(-14px) scale(1.06);
        z-index: 2;
        padding-block: 0.65rem 0.85rem;
        border-radius: 24px;
    }

    .lb-m-card.is-bronze {
        order: 3;
    }

    .lb-m-card.is-gold .lb-m-card__crown {
        color: #fde047;
        filter: drop-shadow(0 0 12px rgba(250, 204, 21, 0.55));
    }

    .lb-m-card.is-silver .lb-m-card__crown {
        color: #e2e8f0;
        filter: drop-shadow(0 0 10px rgba(226, 232, 240, 0.35));
    }

    .lb-m-card.is-bronze .lb-m-card__crown {
        color: #fdba74;
        filter: drop-shadow(0 0 10px rgba(234, 88, 12, 0.35));
    }

    .lb-m-card__crown {
        margin-bottom: 0.15rem;
    }

    .lb-m-card__avatar-wrap {
        position: relative;
        width: 92px;
        height: 92px;
        margin-bottom: 0.35rem;
    }

    .lb-m-card.is-first .lb-m-card__avatar-wrap {
        width: 104px;
        height: 104px;
    }

    .lb-m-card__ring {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 3px solid color-mix(in srgb, var(--lb-tier) 88%, #fff);
        box-shadow:
            0 0 22px color-mix(in srgb, var(--lb-tier) 55%, transparent),
            inset 0 0 18px color-mix(in srgb, var(--lb-tier) 24%, transparent);
        pointer-events: none;
    }

    .lb-m-card__avatar {
        position: absolute;
        inset: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(15, 23, 42, 0.85);
    }

    .lb-m-card.is-first .lb-m-card__avatar {
        inset: 11px;
        width: calc(100% - 22px);
        height: calc(100% - 22px);
    }

    .lb-m-card__frame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        object-fit: contain;
    }

    .lb-m-card__rank-badge {
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%);
        min-width: 26px;
        height: 26px;
        padding: 0 7px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        font-size: 0.82rem;
        font-weight: 950;
        color: #0f172a;
        background: linear-gradient(145deg, color-mix(in srgb, var(--lb-tier) 92%, #fff), var(--lb-tier));
        border: 2px solid rgba(255, 255, 255, 0.55);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 18px color-mix(in srgb, var(--lb-tier) 45%, transparent);
        z-index: 3;
    }

    .lb-m-card__name {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.28rem;
        margin: 0.35rem 0 0;
        padding-inline: 0.15rem;
        font-size: clamp(0.78rem, 3.2vw, 0.92rem);
        font-weight: 950;
        color: #f8fafc;
        text-align: center;
        line-height: 1.25;
        text-shadow: 0 0 14px var(--level-glow, rgba(168, 85, 247, 0.35));
    }

    .lb-m-card__tier-pill {
        margin-top: 0.38rem;
        padding: 0.22rem 0.55rem;
        border-radius: 999px;
        font-size: clamp(0.62rem, 2.6vw, 0.72rem);
        font-weight: 900;
        color: color-mix(in srgb, var(--level-color, #facc15) 85%, #fff);
        background: color-mix(in srgb, var(--level-color, #8b5cf6) 18%, rgba(15, 23, 42, 0.85));
        border: 1px solid color-mix(in srgb, var(--level-color) 38%, transparent);
        box-shadow: 0 0 16px color-mix(in srgb, var(--level-color) 22%, transparent);
    }

    .lb-m-card__shield {
        margin-top: 0.42rem;
        display: grid;
        place-items: center;
    }

    .lb-m-card__shield img {
        width: clamp(44px, 11vw, 56px);
        height: auto;
        filter: drop-shadow(0 0 14px var(--level-glow, rgba(168, 85, 247, 0.45)));
    }

    .lb-m-trust {
        display: inline-flex;
        align-items: center;
        gap: 0.18rem;
    }

    .lb-m-trust__ico {
        flex-shrink: 0;
        opacity: 0.95;
    }

    .lb-m-trust__ico--verified {
        color: #38bdf8;
        filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.55));
    }

    .lb-m-trust__ico--vip {
        color: #facc15;
        filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.45));
    }

    .lb-m-trust__ico--premium {
        color: #c084fc;
        filter: drop-shadow(0 0 7px rgba(192, 132, 252, 0.45));
    }

    .lb-m-empty {
        grid-column: 1 / -1;
        text-align: center;
        color: #94a3b8;
        font-weight: 700;
        padding: 1rem;
    }

    .lb-m-empty--pad {
        padding: 2rem 1rem;
    }

    /* قائمة البطاقات من المركز 4 */
    .lb-m-board {
        border-radius: 24px;
        border: 1px solid rgba(168, 85, 247, 0.28);
        background: rgba(8, 11, 26, 0.72);
        box-shadow:
            0 18px 48px rgba(0, 0, 0, 0.38),
            0 0 48px rgba(124, 58, 237, 0.14),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        overflow: hidden;
        animation: lb-m-fade-up 0.62s ease-out 0.12s both;
    }

    .lb-m-board__head {
        padding: 1rem 1.05rem 0.75rem;
        border-bottom: 1px solid rgba(148, 163, 184, 0.12);
        text-align: center;
    }

    .lb-m-board__title {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 950;
        color: #f1f5f9;
    }

    .lb-m-board__hint {
        margin: 0.35rem 0 0;
        font-size: 0.74rem;
        font-weight: 600;
        color: #94a3b8;
    }

    .lb-m-board__list {
        display: flex;
        flex-direction: column;
        gap: 0.62rem;
        padding: 0.85rem 0.72rem 1.05rem;
    }

    .lb-m-row {
        display: grid;
        grid-template-columns: auto auto 1fr auto;
        align-items: center;
        gap: 0.55rem;
        direction: rtl;
        padding: 0.72rem 0.65rem;
        border-radius: 18px;
        border: 1px solid color-mix(in srgb, var(--level-color, #8b5cf6) 32%, rgba(148, 163, 184, 0.14));
        background: linear-gradient(120deg, rgba(17, 24, 39, 0.76), rgba(10, 12, 26, 0.88));
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
        transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        animation: lb-m-fade-up 0.5s ease-out both;
    }

    .lb-m-row:nth-child(1) {
        animation-delay: 0.05s;
    }

    .lb-m-row:nth-child(2) {
        animation-delay: 0.09s;
    }

    .lb-m-row:nth-child(3) {
        animation-delay: 0.13s;
    }

    .lb-m-row:nth-child(4) {
        animation-delay: 0.17s;
    }

    .lb-m-row:nth-child(5) {
        animation-delay: 0.21s;
    }

    .lb-m-row:nth-child(n + 6) {
        animation-delay: 0.25s;
    }

    .lb-m-row:active {
        transform: scale(0.987);
    }

    .lb-m-row__rank {
        font-size: clamp(1.05rem, 4vw, 1.28rem);
        font-weight: 950;
        color: #64748b;
        min-width: 1.5rem;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }

    .lb-m-row__avatar-wrap {
        position: relative;
        width: 54px;
        height: 54px;
        flex-shrink: 0;
    }

    .lb-m-row__avatar-ring {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid color-mix(in srgb, var(--level-color) 65%, transparent);
        box-shadow: 0 0 14px color-mix(in srgb, var(--level-color) 28%, transparent);
        pointer-events: none;
    }

    .lb-m-row__avatar {
        position: absolute;
        inset: 5px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        border-radius: 50%;
        object-fit: cover;
    }

    .lb-m-row__mini-frame {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        object-fit: contain;
    }

    .lb-m-row__body {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.28rem;
    }

    .lb-m-row__name-line {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.28rem;
        min-width: 0;
    }

    .lb-m-row__name {
        font-weight: 950;
        font-size: 0.88rem;
        color: #f8fafc;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }

    .lb-m-row__level {
        display: inline-flex;
        align-self: flex-start;
        padding: 0.18rem 0.48rem;
        border-radius: 999px;
        font-size: 0.66rem;
        font-weight: 900;
        color: color-mix(in srgb, var(--level-color, #a855f7) 88%, #fff);
        background: color-mix(in srgb, var(--level-color) 16%, rgba(15, 23, 42, 0.88));
        border: 1px solid color-mix(in srgb, var(--level-color) 34%, transparent);
    }

    .lb-m-row__badge {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: rgba(15, 23, 42, 0.62);
        border: 1px solid color-mix(in srgb, var(--level-color) 36%, transparent);
        box-shadow: 0 0 14px color-mix(in srgb, var(--level-color) 22%, transparent);
    }

    .lb-m-row__badge img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        filter: drop-shadow(0 0 8px var(--level-glow, rgba(168, 85, 247, 0.35)));
    }

    .lb-m-row__badge--empty {
        color: #475569;
        font-weight: 900;
        font-size: 1rem;
    }

    /* ترقيم الصفحات — جوال */
    .lb-m-pagination {
        padding: 0.65rem 0.55rem 1rem;
        display: flex;
        justify-content: center;
    }

    .lb-m-pagination .lb-pager {
        width: 100%;
        max-width: 100%;
        border-radius: 18px;
        border: 1px solid rgba(168, 85, 247, 0.28);
        background: rgba(12, 15, 30, 0.82);
        backdrop-filter: blur(12px);
        box-shadow: 0 0 28px rgba(124, 58, 237, 0.18);
        gap: 0.32rem;
        padding: 0.45rem 0.38rem;
    }

    .lb-m-pagination .lb-pager__link,
    .lb-m-pagination .lb-pager__dots {
        border-radius: 12px;
        min-height: 40px;
        font-size: 0.78rem;
    }

    .lb-m-pagination .lb-pager__link.is-active {
        border-radius: 10px;
        box-shadow: 0 0 28px rgba(168, 85, 247, 0.42), 0 0 46px rgba(168, 85, 247, 0.22);
    }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .lb-m-topbar,
    .lb-m-podium-stage,
    .lb-m-board,
    .lb-m-card,
    .lb-m-row {
        animation: none !important;
    }
}
