#high-scores-container {
    background: #fff;
    border: 4px solid var(--border-color, #555555);
    box-shadow: 0 10px 30px var(--shadow-color, rgba(0,0,0,0.15));
    border-radius: 25px;
    font-family: 'Quicksand', sans-serif;
    padding: 25px 20px 20px 20px;
    position: relative;
    width: 95vw;
    max-width: 420px;
    margin: 0 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#high-scores-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

#high-scores-container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: left;
}

#high-scores-container th {
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

#high-scores-container td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

@media (max-width: 768px) {
    #high-scores-container table  {
        text-align: center;
    }
}

.high-scores-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding: 10px 0 10px 0;
    border-bottom: 2px solid #eee;
    color: #2c3e50;
    font-size: 1.1rem;
    gap: 10px;
    text-align: center;
}

.high-scores-header span {
    flex: 1 1 0;
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
}

.high-scores-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 10px 0 20px 0;
}

.high-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 10px 0;
    font-size: 1rem;
    color: #2c3e50;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.high-score-row span {
    flex: 1 1 0;
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
    padding: 0 5px;
    word-break: break-word;
}

@media (max-width: 480px) {
    #high-scores-container {
        width: 99vw;
        max-width: 99vw;
        padding: 25px;
        border-radius: 22px;
        min-width: 0;
    }
    .high-scores-header, .high-score-row {
        font-size: 0.95rem;
        padding: 7px 0;
        gap: 2px;
    }
    .high-scores-header {
        background: #f3f6fa;
        border-radius: 12px;
        margin-bottom: 4px;
    }
    .high-scores-header span, .high-score-row span {
        min-width: 0;
        font-size: 0.95rem;
        padding: 0 2px;
        text-align: center;
        word-break: break-word;
    }
    .high-scores-list {
        gap: 4px;
    }
    .high-score-row {
        border-radius: 12px;
        padding: 7px 0;
    }
}

body.dark-mode #high-scores-container {
    background: #23272f !important;
    color: #f5f6fa !important;
    border-color: #444 !important;
}