/* Tournament stats styling */
.tournament-medals {
    font-size: 1.2em;
    margin-bottom: 10px;
}

#ncbx-medals {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

#ncbx-refresh-medals {
    padding: 4px 8px;
    min-width: 28px;
    font-size: 14px;
    border: none;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#ncbx-refresh-medals:hover {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

#ncbx-refresh-medals:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Leaderboard sorting buttons */
.sort-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.sort-buttons button {
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-buttons button:hover {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.sort-buttons button:active {
    transform: scale(0.98);
}

/* Safari < 14.1 flex gap fallback */
@supports not (gap: 1px) {
    #ncbx-medals > * + * { margin-left: 8px; }
    .sort-buttons > * + * { margin-left: 10px; }
}