/* High Scores Page Styles */

.scores-wrapper {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.scores-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1.25rem;
}

.table-container {
    overflow-x: auto;
}

.scores-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.scores-table thead {
    background-color: var(--dark);
    color: var(--white);
}

.scores-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scores-table th:first-child {
    border-radius: 8px 0 0 0;
}

.scores-table th:last-child {
    border-radius: 0 8px 0 0;
}

.scores-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

.scores-table tbody tr {
    transition: background-color 0.2s ease;
}

.scores-table tbody tr:hover {
    background-color: rgba(9, 132, 227, 0.04);
}

.scores-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    background-color: var(--bg);
    color: var(--text-muted);
}

.rank-gold .rank-badge {
    background-color: #ffeaa7;
    color: #d68910;
}

.rank-silver .rank-badge {
    background-color: #dfe6e9;
    color: #636e72;
}

.rank-bronze .rank-badge {
    background-color: #fab1a0;
    color: #d35400;
}

.username {
    font-weight: 600;
    color: var(--dark);
}

/* Mobile */
@media (max-width: 768px) {
    .scores-table {
        font-size: 0.85rem;
    }

    .scores-table th,
    .scores-table td {
        padding: 0.65rem 0.75rem;
    }

    .rank-badge {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}
