#scoreboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.scoreboard-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.dark-mode .scoreboard-content {
    background: #2c3e50;
    color: #ecf0f1;
}

.scoreboard-content h2 {
    margin: 0 0 20px;
    color: #e74c3c;
    font-size: 28px;
}

.dark-mode .scoreboard-content h2 {
    color: #e74c3c;
}

.current-score, .top-score, .rank {
    font-size: 18px;
    margin: 10px 0;
}

.current-score strong, .top-score strong, .rank strong {
    color: #3498db;
    font-size: 24px;
}

.score-list {
    margin: 20px 0;
    text-align: left;
}

.score-list h3 {
    text-align: center;
    margin-bottom: 10px;
}

.score-list ol {
    padding-left: 25px;
}

.score-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.dark-mode .score-list li {
    border-bottom-color: #34495e;
}

.score-list li.current {
    background: #fff3cd;
    padding-left: 10px;
    margin-left: -10px;
    border-radius: 5px;
    font-weight: bold;
}

.dark-mode .score-list li.current {
    background: #f39c12;
    color: #000;
}

.score-value {
    font-weight: bold;
    color: #e74c3c;
}

.score-date {
    float: right;
    font-size: 12px;
    color: #999;
}

#score-restart-btn, #score-close-btn {
    padding: 12px 30px;
    margin: 5px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#score-restart-btn {
    background: #2ecc71;
    color: white;
}

#score-restart-btn:hover {
    background: #27ae60;
    transform: scale(1.05);
}

#score-close-btn {
    background: #95a5a6;
    color: white;
}

#score-close-btn:hover {
    background: #7f8c8d;
}
