.leaderboard-page {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
    background: radial-gradient(circle at top center, #1e2f3f 0%, #121e2a 100%);
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease;
}

.leaderboard-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.leaderboard-header .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.leaderboard-header p {
    color: #bdc3c7;
    font-size: 1.2rem;
}

.leaderboard-container {
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 60px;
    height: 350px;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.podium-item:hover {
    transform: translateY(-10px);
}

.podium-rank-1 {
    order: 2;
    z-index: 3;
}

.podium-rank-2 {
    order: 1;
    z-index: 2;
}

.podium-rank-3 {
    order: 3;
    z-index: 1;
}

.podium-avatar-container {
    position: relative;
    margin-bottom: 15px;
}

.podium-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.podium-rank-1 .podium-avatar {
    width: 110px;
    height: 110px;
    border-color: #f1c40f;
    box-shadow: 0 0 30px rgba(241, 196, 15, 0.3);
}

.podium-rank-2 .podium-avatar {
    border-color: #bdc3c7;
    box-shadow: 0 0 20px rgba(189, 195, 199, 0.2);
}

.podium-rank-3 .podium-avatar {
    border-color: #cd7f32;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
}

.crown-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #f1c40f;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

.podium-base {
    width: 120px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    position: relative;
    overflow: hidden;
}

.podium-rank-1 .podium-base {
    height: 180px;
    background: linear-gradient(to bottom, rgba(241, 196, 15, 0.1), rgba(0, 0, 0, 0.2));
    border-top: 2px solid #f1c40f;
}

.podium-rank-2 .podium-base {
    height: 140px;
    background: linear-gradient(to bottom, rgba(189, 195, 199, 0.1), rgba(0, 0, 0, 0.2));
    border-top: 2px solid #bdc3c7;
}

.podium-rank-3 .podium-base {
    height: 110px;
    background: linear-gradient(to bottom, rgba(205, 127, 50, 0.1), rgba(0, 0, 0, 0.2));
    border-top: 2px solid #cd7f32;
}

.podium-username {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podium-score {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

.podium-rank-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    bottom: 0;
    line-height: 0.8;
}

.leaderboard-list-header {
    display: grid;
    grid-template-columns: 60px 1fr 200px 100px;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #bdc3c7;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 60px 1fr 200px 100px;
    align-items: center;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
    border-color: var(--primary);
}

.rank {
    font-weight: 700;
    color: #7f8c8d;
    font-size: 1.1rem;
}

.user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 600;
    color: var(--light);
}

.stats {
    display: flex;
    gap: 20px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats i {
    color: var(--primary);
}

.score {
    font-weight: 700;
    color: var(--secondary);
    text-align: right;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@media (max-width: 768px) {
    .leaderboard-podium {
        height: auto;
        align-items: flex-end;
        margin-bottom: 40px;
    }

    .podium-base {
        width: 90px;
    }

    .podium-rank-1 .podium-base {
        height: 140px;
    }

    .podium-rank-2 .podium-base {
        height: 110px;
    }

    .podium-rank-3 .podium-base {
        height: 90px;
    }

    .podium-avatar {
        width: 60px;
        height: 60px;
    }

    .podium-rank-1 .podium-avatar {
        width: 80px;
        height: 80px;
    }

    .leaderboard-list-header,
    .leaderboard-item {
        grid-template-columns: 40px 1fr 80px;
    }

    .stats {
        display: none;
    }
}