:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --gold: #fbbf24;
    --silver: #cbd5e1;
    --bronze: #b45309;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0; padding: 0;
    display: flex; flex-direction: column; align-items: center;
}

.top-bar {
    width: 100%; background: #111827; padding: 15px 0;
    display: flex; justify-content: center; gap: 15px;
    border-bottom: 2px solid var(--accent);
    position: sticky; top: 0; z-index: 100;
}

.player-btn {
    padding: 8px 16px; border-radius: 20px; border: 2px solid transparent;
    background: var(--card-bg); color: white; cursor: pointer; font-weight: bold;
    transition: 0.3s;
}

.player-btn.active { border-color: var(--accent); background: #064e3b; }

.nav-menu { display: flex; gap: 20px; margin: 20px 0; }
.nav-item {
    padding: 10px 20px; cursor: pointer; color: var(--text-muted);
    font-weight: bold; border-bottom: 3px solid transparent;
}
.nav-item.active { color: var(--accent); border-bottom-color: var(--accent); }

.content-section { display: none; width: 90%; max-width: 1200px; animation: fadeIn 0.5s; }
.content-section.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.dashboard-grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.card { background: var(--card-bg); padding: 20px; border-radius: 12px; flex: 1; min-width: 300px; }
.card-full { flex: 2; min-width: 100%; }

.stat-row { display: flex; justify-content: space-between; margin-bottom: 10px; border-bottom: 1px solid #334155; padding-bottom: 5px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 20px; }

.gold-text { color: var(--gold); font-weight: bold; }
.silver-text { color: var(--silver); font-weight: bold; }
.bronze-text { color: var(--bronze); font-weight: bold; }
.loading { margin-top: 50px; font-style: italic; color: var(--text-muted); }
.placeholder-msg { text-align: center; padding: 50px; color: var(--text-muted); }
.footer-note { margin-top: 40px; font-size: 12px; color: var(--text-muted); padding-bottom: 20px; }
