/* ============================================
   LEADERBOARD - AAA Style (2024)
   Glassmorphism + Forest Theme
   ============================================ */

/* ===== OVERLAY ===== */
.lb-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
        rgba(5, 8, 5, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: overlayFadeIn 0.3s ease-out;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== MAIN BOARD ===== */
.lb-board {
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    position: relative;
    overflow: hidden;

    /* Glassmorphism */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;

    /* 3D depth */
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(34, 197, 94, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);

    transform: scale(0.92) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lb-board.lb-animate-in {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.lb-board.lb-animate-out {
    transform: scale(0.92) translateY(30px);
    opacity: 0;
}

/* Animated gradient border */
.lb-board::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 25px;
    background: conic-gradient(
        from var(--angle, 0deg),
        transparent 0%,
        rgba(34, 197, 94, 0.4) 10%,
        rgba(251, 191, 36, 0.4) 30%,
        rgba(168, 85, 247, 0.4) 50%,
        rgba(6, 182, 212, 0.4) 70%,
        rgba(34, 197, 94, 0.4) 90%,
        transparent 100%
    );
    animation: rotateBorder 8s linear infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes rotateBorder {
    to { --angle: 360deg; }
}

/* ===== HEADER ===== */
.lb-header {
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 100%
    );
}

/* Decorative top glow */
.lb-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(34, 197, 94, 0.6) 50%,
        transparent 100%
    );
    border-radius: 2px;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;

    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;

    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lb-close:hover {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.2) 0%,
        rgba(220, 38, 38, 0.15) 100%
    );
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.lb-close:active {
    transform: rotate(90deg) scale(0.95);
}

.lb-title {
    font-family: var(--font-display, 'Cinzel', serif);
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;

    /* Animated gradient text */
    background: linear-gradient(135deg,
        #fbbf24 0%,
        #22c55e 30%,
        #06b6d4 60%,
        #a855f7 90%,
        #fbbf24 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 6s ease infinite;

    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.3));
    letter-spacing: 2px;
}

@keyframes textGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.lb-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== TABS ===== */
.lb-tabs {
    display: flex;
    padding: 16px 16px 0;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.lb-tabs::-webkit-scrollbar {
    display: none;
}

.lb-tab {
    flex: 1;
    min-width: 80px;
    padding: 12px 8px;

    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;

    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lb-tab:hover {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lb-tab:active {
    transform: scale(0.96);
}

.lb-tab-active {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.25) 0%,
        rgba(34, 197, 94, 0.15) 100%
    );
    border-color: rgba(34, 197, 94, 0.4);
    color: #4ade80;
    box-shadow:
        0 4px 16px rgba(34, 197, 94, 0.2),
        0 0 20px rgba(34, 197, 94, 0.1);
}

.lb-tab-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lb-tab-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== CONTENT ===== */
.lb-content {
    max-height: calc(90vh - 260px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
}

/* Custom scrollbar */
.lb-content::-webkit-scrollbar {
    width: 6px;
}

.lb-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.lb-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(34, 197, 94, 0.5) 0%,
        rgba(34, 197, 94, 0.3) 100%
    );
    border-radius: 3px;
}

.lb-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(34, 197, 94, 0.7) 0%,
        rgba(34, 197, 94, 0.5) 100%
    );
}

/* ===== PODIUM (Top 3) ===== */
.lb-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px 16px 24px;
    gap: 12px;
}

.lb-podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 110px;
}

.lb-place-1 { order: 2; }
.lb-place-2 { order: 1; }
.lb-place-3 { order: 3; }

.lb-crown {
    font-size: 24px;
    margin-bottom: -8px;
    animation: crownFloat 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.6));
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-6px) rotate(5deg); }
}

.lb-stump {
    width: 100%;
    padding: 16px 12px;
    text-align: center;
    border-radius: 16px;
    position: relative;

    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    transition: all 0.3s ease;
}

.lb-stump:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.lb-stump-1 {
    min-height: 140px;
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.2) 0%,
        rgba(251, 191, 36, 0.05) 100%
    );
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow:
        0 12px 32px rgba(251, 191, 36, 0.3),
        0 0 40px rgba(251, 191, 36, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lb-stump-2 { min-height: 110px; }
.lb-stump-3 { min-height: 90px; }

.lb-medal {
    font-size: 36px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.lb-medal-gold {
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.6));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.9));
        transform: scale(1.1);
    }
}

.lb-podium-name {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}

.lb-podium-value {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

/* ===== LIST (Ranks 4+) ===== */
.lb-list {
    padding: 0 16px;
}

.lb-plank {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;

    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    transition: all 0.3s ease;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lb-plank:hover {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lb-plank:active {
    transform: scale(0.98);
}

.lb-plank-me {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.2) 0%,
        rgba(34, 197, 94, 0.08) 100%
    );
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow:
        0 4px 16px rgba(34, 197, 94, 0.2),
        0 0 20px rgba(34, 197, 94, 0.1);
}

.lb-plank-rank {
    width: 36px;
    font-size: 15px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    flex-shrink: 0;
}

.lb-plank-me .lb-plank-rank {
    color: #4ade80;
}

.lb-plank-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 12px;
}

.lb-plank-value {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.lb-dots {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding: 12px;
    font-size: 16px;
    letter-spacing: 6px;
}

.lb-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

/* ===== LIVE FEED WRAPPER ===== */
.lb-feed-wrapper {
    padding: 16px 0 0;
}

/* ===== STATISTICS HEADER ===== */
.lb-feed-stats {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
}

.lb-feed-stat-card {
    flex: 1;
    min-width: 0; /* Allow shrinking */
    padding: 10px 8px;

    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    transition: all 0.3s ease;
}

.lb-feed-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lb-feed-stat-highlight {
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.15) 0%,
        rgba(251, 191, 36, 0.05) 100%
    );
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.lb-feed-stat-icon {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.lb-feed-stat-info {
    text-align: center;
}

.lb-feed-stat-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    white-space: nowrap;
}

.lb-feed-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* ===== LIVE FEED ===== */
.lb-feed {
    padding: 0 16px;
}

.lb-feed-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;

    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(8px);
    border-left: 3px solid transparent;
    border-radius: 12px;

    transition: all 0.3s ease;

    /* Entry animation */
    animation: feedItemSlideIn 0.4s ease-out backwards;
}

@keyframes feedItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.lb-feed-item:hover {
    transform: translateX(4px);
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
}

.lb-feed-win {
    border-left-color: #4ade80;
    background: linear-gradient(90deg,
        rgba(34, 197, 94, 0.12) 0%,
        rgba(34, 197, 94, 0.02) 100%
    );
}

.lb-feed-loss {
    border-left-color: #f87171;
    background: linear-gradient(90deg,
        rgba(239, 68, 68, 0.12) 0%,
        rgba(239, 68, 68, 0.02) 100%
    );
}

/* Big win highlights */
.lb-feed-good {
    border-left-width: 4px;
    border-left-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.lb-feed-big {
    border-left-width: 5px;
    border-left-color: #f97316;
    background: linear-gradient(90deg,
        rgba(249, 115, 22, 0.2) 0%,
        rgba(249, 115, 22, 0.05) 100%
    );
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.2);
}

.lb-feed-mega {
    border-left-width: 6px;
    border-left-color: #a855f7;
    background: linear-gradient(90deg,
        rgba(168, 85, 247, 0.25) 0%,
        rgba(168, 85, 247, 0.08) 100%
    );
    box-shadow:
        0 0 32px rgba(168, 85, 247, 0.3),
        0 4px 16px rgba(168, 85, 247, 0.2);
    animation: megaWinPulse 2s ease-in-out infinite, feedItemSlideIn 0.4s ease-out backwards;
}

@keyframes megaWinPulse {
    0%, 100% {
        box-shadow:
            0 0 32px rgba(168, 85, 247, 0.3),
            0 4px 16px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow:
            0 0 40px rgba(168, 85, 247, 0.5),
            0 4px 20px rgba(168, 85, 247, 0.3);
    }
}

.lb-feed-icon {
    font-size: 28px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.lb-feed-info {
    flex: 1;
    min-width: 0;
}

.lb-feed-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-feed-game {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.lb-feed-result {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.lb-feed-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lb-feed-category {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lb-feed-good .lb-feed-category {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(251, 191, 36, 0.2));
    color: #fbbf24;
}

.lb-feed-big .lb-feed-category {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(249, 115, 22, 0.3));
    color: #fb923c;
}

.lb-feed-mega .lb-feed-category {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(168, 85, 247, 0.3));
    color: #c084fc;
    animation: categoryPulse 2s ease-in-out infinite;
}

@keyframes categoryPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.lb-feed-amount {
    font-size: 15px;
    font-weight: 700;
}

.lb-feed-win .lb-feed-amount {
    color: #4ade80;
}

.lb-feed-loss .lb-feed-amount {
    color: #f87171;
}

.lb-feed-multiplier {
    font-size: 12px;
    font-weight: 700;
    color: #fbbf24;
    padding: 2px 8px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.lb-feed-mega .lb-feed-multiplier {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
}

.lb-feed-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== LOADING ===== */
.lb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;
}

.lb-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4ade80;
    border-right-color: #fbbf24;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.lb-loading-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 500;
}

.lb-loading-inline {
    display: flex;
    justify-content: center;
    padding: 60px;
}

.lb-loading-spinner-small {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4ade80;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== ERROR ===== */
.lb-error {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 100, 100, 0.8);
    font-size: 15px;
}

.lb-retry {
    margin-top: 20px;
    padding: 12px 24px;

    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.2) 0%,
        rgba(34, 197, 94, 0.1) 100%
    );
    backdrop-filter: blur(8px);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;

    color: #4ade80;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lb-retry:hover {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.3) 0%,
        rgba(34, 197, 94, 0.15) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.2);
}

.lb-retry:active {
    transform: scale(0.96);
}

/* ===== RESPONSIVE ===== */
@media (max-height: 700px) {
    .lb-board { max-height: 92vh; }
    .lb-header { padding: 24px 20px 16px; }
    .lb-title { font-size: 28px; }
    .lb-podium { padding: 16px 12px 20px; }
    .lb-stump-1 { min-height: 120px; }
    .lb-stump-2 { min-height: 95px; }
    .lb-stump-3 { min-height: 75px; }
    .lb-content { max-height: calc(92vh - 220px); }
}

@media (max-width: 380px) {
    .lb-board { max-width: 100%; padding: 0; }
    .lb-tab-label { font-size: 9px; }
    .lb-podium-place { max-width: 95px; }
}

/* ===== LOW-END OPTIMIZATIONS ===== */
.low-end-device .lb-board::before,
.low-end-device .lb-crown,
.low-end-device .lb-medal-gold,
.low-end-device .lb-title {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .lb-board,
    .lb-tab,
    .lb-plank,
    .lb-feed-item,
    .lb-crown,
    .lb-medal-gold,
    .lb-title,
    .lb-board::before {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== LOAD MORE BUTTON ===== */
.lb-feed-load-more {
    padding: 16px;
    text-align: center;
}

.lb-load-more-btn {
    width: 100%;
    padding: 16px 28px !important;

    /* Enhanced glassmorphism matching leaderboard style */
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.12) 0%,
        rgba(16, 185, 129, 0.06) 100%
    ) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;

    border: 1.5px solid rgba(34, 197, 94, 0.25) !important;
    border-radius: 14px !important;

    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

    box-shadow:
        0 8px 20px rgba(34, 197, 94, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.lb-load-more-btn:hover {
    background: linear-gradient(135deg,
        rgba(34, 197, 94, 0.2) 0%,
        rgba(16, 185, 129, 0.12) 100%
    );
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-3px) scale(1.01);

    box-shadow:
        0 12px 28px rgba(34, 197, 94, 0.25),
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.lb-load-more-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow:
        0 6px 14px rgba(34, 197, 94, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lb-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.lb-load-more-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
    animation: bounceDownGreen 1.8s ease-in-out infinite;
}

@keyframes bounceDownGreen {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
    }
    50% {
        transform: translateY(5px);
        filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.7));
    }
}

.lb-load-more-btn:hover .lb-load-more-icon {
    animation: bounceDownGreen 0.9s ease-in-out infinite;
}

.lb-load-more-text {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.lb-feed-end {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
    font-style: italic;
}

/* Mobile optimizations for load more */
@media (max-width: 480px) {
    .lb-feed-load-more {
        padding: 12px 8px;
    }

    .lb-load-more-btn {
        padding: 14px 24px;
        font-size: 13px;
    }

    .lb-load-more-icon {
        font-size: 18px;
    }
}

/* ==================== MOBILE PERFORMANCE CRITICAL ==================== */

/* 🚀 Disable ALL infinite animations on mobile devices */
@media (max-width: 768px) {
    /* Trophy crown float */
    .lb-medal-icon {
        animation: none !important;
    }

    /* Gold pulse on rank 1 */
    .lb-rank-1 .lb-player-name {
        animation: none !important;
    }

    /* Border rotation */
    .lb-board::before {
        animation: none !important;
        display: none !important; /* Remove entirely */
    }

    /* Text gradient animation */
    .lb-title {
        animation: none !important;
        background: linear-gradient(135deg, #ffd700, #ffed4e) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    /* Mega win pulse */
    .lb-feed-item.mega-win {
        animation: feedItemSlideIn 0.4s ease-out backwards !important; /* Keep entrance only */
    }

    /* Category pulse */
    .lb-feed-category {
        animation: none !important;
    }

    /* Loading spinners - KEEP (needed for UX) */
    /* .lb-loading-spinner { animation: keep } */

    /* Bounce down animations */
    .lb-arrow-down,
    .lb-load-more-icon {
        animation: none !important;
    }

    /* Force paused state on any missed animations */
    #leaderboardContainer * {
        animation-play-state: running !important; /* Ensure not stuck in paused */
    }

    /* 🚀 Remove expensive box-shadows on mobile */
    .lb-board {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important; /* Simplified */
    }

    .lb-player-row {
        box-shadow: none !important;
    }

    /* 🚀 Disable transforms on mobile (save GPU) */
    .lb-player-row:active {
        transform: scale(0.98) !important; /* Simpler */
    }
}

/* 🚀 Prefers reduced motion - DISABLE ALL ANIMATIONS */
@media (prefers-reduced-motion: reduce) {
    #leaderboardContainer * {
        animation: none !important;
        transition: none !important;
    }

    .lb-board::before {
        display: none !important;
    }
}
