* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: transparent;
    padding: 20px;
}

.leaderboard-container {
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: none;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 28px;
}

/* Podium Styles */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.podium-item.rank-1 {
    order: 2;
}

.podium-item.rank-2 {
    order: 1;
}

.podium-item.rank-3 {
    order: 3;
}

.rank-badge {
    font-size: 32px;
    font-weight: bold;
    color: #a0826d;
    margin-bottom: 8px;
}

.podium-item.rank-1 .rank-badge {
    color: #C28668;
}

.podium-item.rank-2 .rank-badge {
    color: #9F9A98;
}

.podium-item.rank-3 .rank-badge {
    color: #77472F;
}

.avatar {
    width: 100px;
    height: 100px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 240, 240, 0.2) 100%);
    background-color: #f0f0f0;
    border-radius: 50%;
    margin-bottom: 12px;
}

.podium-item.rank-1 .avatar {
    width: 120px;
    height: 120px;
}

.podium-item.rank-2 .avatar,
.podium-item.rank-3 .avatar {
    width: 90px;
    height: 90px;
}

.username {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.podium-item.rank-1 .username {
    font-size: 18px;
}

.score {
    font-size: 16px;
    font-weight: 500;
    color: #666;
}

/* Leaderboard List Styles */
.leaderboard-list {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 16px;
}

.list-item:last-child {
    border-bottom: none;
}

.avatar-small {
    width: 50px;
    height: 50px;
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(240, 240, 240, 0.2) 100%);
    background-color: #f0f0f0;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-small::after {
    display: none;
}

.list-item .username {
    flex-grow: 1;
    text-align: left;
    margin: 0;
}

.list-item .score {
    text-align: right;
}

/* Loading State */
.leaderboard-container.loading .podium-item,
.leaderboard-container.loading .list-item {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin: 8px 0;
}

.skeleton-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 12px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .podium {
        gap: 10px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }

    .podium-item.rank-1 .avatar {
        width: 90px;
        height: 90px;
    }

    .rank-badge {
        font-size: 24px;
    }

    .leaderboard-container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 30px;
    }
}
