* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
}

.leaderboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    color: #1a237e;
    position: relative;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #1a237e, #3949ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.boards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leaderboard {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.leaderboard:hover {
    transform: translateY(-5px);
}

.leaderboard-header {
    padding: 1.5rem;
    text-align: center;
    color: white;
    position: relative;
}

.district .leaderboard-header {
    background: linear-gradient(45deg, #2196F3, #4CAF50);
}

.national .leaderboard-header {
    background: linear-gradient(45deg, #FF5722, #F44336);
}

.international .leaderboard-header {
    background: linear-gradient(45deg, #9C27B0, #673AB7);
}

.leaderboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.player-list {
    padding: 1rem;
}

.player-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
}

.player-card:hover {
    background: rgba(0,0,0,0.02);
    transform: scale(1.02);
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    width: 40px;
    color: #1a237e;
}

.player-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 0.25rem;
}

.achievements {
    font-size: 0.9rem;
    color: #666;
}

.achievement-count {
    background: #f0f2f5;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a237e;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .leaderboard-container {
        margin: 1rem auto;
    }

    .header h1 {
        font-size: 2rem;
    }

    .player-card {
        padding: 0.75rem;
    }

    .player-image {
        width: 50px;
        height: 50px;
    }
}