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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #024237, #076311);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.scoreboard-container {
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.game-selector {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.game-btn {
    padding: 15px 30px;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.game-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.game-btn.active {
    background: #4CAF50;
    border-color: #4CAF50;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.scoreboard-content {
    position: relative;
}

.scoreboard {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.scoreboard.active {
    display: block;
}

.scoreboard h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #FFD700;
}

.clear-btn-container {
    text-align: center;
    margin-bottom: 20px;
}

.clear-btn {
    padding: 8px 20px;
    font-size: 0.9em;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.clear-btn:hover {
    background: #cc0000;
}

.scores-list {
    max-height: 600px;
    overflow-y: auto;
}

.score-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
    transition: all 0.3s;
}

.score-entry:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.score-entry.top-three {
    background: rgba(255, 215, 0, 0.2);
    border-left-color: #FFD700;
}

.score-entry.highlight {
    background: rgba(76, 175, 80, 0.4);
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0%, 100% { background: rgba(76, 175, 80, 0.4); }
    50% { background: rgba(76, 175, 80, 0.6); }
}

.rank {
    font-size: 1.5em;
    font-weight: bold;
    min-width: 50px;
    color: #FFD700;
}

.rank.top-three {
    font-size: 2em;
}

.player-info {
    flex: 1;
    margin: 0 20px;
}

.player-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
}

.score-details {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.score-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAF50;
    min-width: 100px;
    text-align: right;
}

.no-scores {
    text-align: center;
    font-size: 1.2em;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.back-btn-container {
    text-align: center;
    margin-top: 30px;
}

.back-btn {
    padding: 12px 30px;
    font-size: 1.1em;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    
    .game-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .scoreboard {
        padding: 20px;
    }
    
    .scoreboard h2 {
        font-size: 1.5em;
    }
    
    .score-entry {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .rank {
        font-size: 1.2em;
        min-width: 40px;
    }
    
    .player-name {
        font-size: 1.1em;
    }
    
    .score-value {
        font-size: 1.2em;
    }
}
