/* Glassmorphism & Custom Styles */
:root {
    --emerald-primary: #10b981;
    --emerald-dark: #064e3b;
    --slate-bg: #020617;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tab-btn:not(.active) {
    color: rgba(255, 255, 255, 0.4);
}

/* Leaderboard Cards */
.score-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
    transform: scale(0.99);
}

.rank-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.rank-1 {
    background: linear-gradient(to bottom, #fbbf24, #d97706);
    color: #000;
}

.rank-2 {
    background: linear-gradient(to bottom, #94a3b8, #475569);
    color: #fff;
}

.rank-3 {
    background: linear-gradient(to bottom, #b45309, #78350f);
    color: #fff;
}

.par-indicator {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    border-radius: 0.375rem;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.under-par {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.even-par {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.over-par {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Oye's Grid */
.oyes-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.distance-badge {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border-radius: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.1);
}