.leaderboard-container{width:100%;max-width:1000px;margin:0 auto;padding:2rem 1rem;overflow-x:hidden}.leaderboard-header{text-align:center;margin-bottom:3rem}.leaderboard-title{font-size:3rem;font-weight:700;color:var(--color-primary);margin-bottom:1rem}.leaderboard-subtitle{font-size:1.25rem;color:var(--color-secondary)}.leaderboard-controls{display:flex;justify-content:center;gap:1rem;margin-bottom:2rem}.sort-button{padding:.75rem 2rem;border-radius:.5rem;font-weight:600;font-size:1rem;transition:all .2s;background-color:var(--color-white);color:var(--color-secondary);border:2px solid var(--color-gray-lighter);cursor:pointer}.sort-button:hover{border-color:var(--color-gray);background-color:var(--color-lighter)}.sort-button.active{background-color:var(--color-primary);color:var(--color-white);border-color:var(--color-primary)}.sort-button.active:hover{background-color:color-mix(in srgb,var(--color-primary) 90%,transparent)}.leaderboard-loading{display:flex;align-items:center;justify-content:center}.leaderboard-empty,.leaderboard-loading{padding:4rem 2rem;color:var(--color-secondary)}.leaderboard-empty{text-align:center;font-size:1.125rem}.leaderboard-table{background-color:var(--color-white);border-radius:.75rem;border:1px solid var(--color-gray-lighter);overflow-x:auto;overflow-y:hidden;box-shadow:0 1px 3px rgba(0,0,0,.1)}.leaderboard-table-header{background-color:var(--color-lighter);border-bottom:2px solid var(--color-gray-lighter);font-weight:600;color:var(--color-secondary);font-size:.875rem;text-transform:uppercase;letter-spacing:.05em}.leaderboard-row,.leaderboard-table-header{display:grid;grid-template-columns:80px 1fr 120px 140px;gap:1rem;padding:1.25rem 1.5rem}.leaderboard-row{border-bottom:1px solid var(--color-gray-lighter);align-items:center;transition:background-color .2s}.leaderboard-row:last-child{border-bottom:none}.leaderboard-row:hover{background-color:var(--color-lighter)}.leaderboard-rank{display:flex}.leaderboard-rank,.rank-badge{align-items:center;justify-content:center}.rank-badge{display:inline-flex;width:2.5rem;height:2.5rem;border-radius:50%;font-weight:700;font-size:1.125rem;background-color:var(--color-gray-lighter);color:var(--color-secondary)}.leaderboard-user{display:flex;align-items:center;gap:1rem}.user-avatar{width:3rem;height:3rem;border-radius:50%;border:2px solid var(--color-gray-lighter);object-fit:cover;flex-shrink:0}.user-info{display:flex;flex-direction:column;gap:.25rem}.user-name{font-weight:600;font-size:1rem}.user-link,.user-name{color:var(--color-primary)}.user-link{text-decoration:none;transition:color .2s}.user-link:hover{color:var(--color-secondary);text-decoration:underline}.user-github{font-size:.875rem;color:var(--color-gray)}.leaderboard-level,.leaderboard-streak{display:flex;align-items:center;gap:.5rem}.stat-value{font-weight:700;font-size:1.25rem;color:var(--color-primary)}.stat-label{font-size:.875rem;color:var(--color-gray)}@media (max-width:768px){.leaderboard-container{padding:1.5rem .5rem}.leaderboard-title{font-size:2rem}.leaderboard-subtitle{font-size:1rem}.leaderboard-controls{flex-direction:column;gap:.75rem}.sort-button{width:100%}.leaderboard-table{width:100%;display:block}.leaderboard-table-header{padding:1rem .75rem}.leaderboard-row,.leaderboard-table-header{display:grid;grid-template-columns:50px 1fr 70px 90px;gap:.5rem;min-width:500px}.leaderboard-row{padding:.75rem}.user-avatar{width:2.5rem;height:2.5rem}.user-name{font-size:.875rem}.user-github{font-size:.75rem}.stat-value{font-size:1rem}.stat-label{font-size:.75rem}.rank-badge{width:2rem;height:2rem;font-size:.875rem}.leaderboard-level,.leaderboard-streak{flex-direction:column;align-items:flex-start;gap:.25rem}}