.pill-slider {
    display: flex; gap: 10px;
    overflow-x: auto;
    width: max-content; 
    max-width: 100%;
    margin: 0 auto 10px auto; 
    padding: 10px 20px 20px 20px;
    scrollbar-width: none;
}
.pill-slider::-webkit-scrollbar { display: none; }

.pill {
    background-color: hsla(0, 0%, 100%, 0.05);
    color: hsla(0, 0%, 100%, 0.6);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    padding: 10px 20px;
    border-radius: 30px; 
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap; 
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
}
.pill:hover { background-color: hsla(0, 0%, 100%, 0.15); color: white; }
.pill.active {
    background-color: #06abfe;
    color: white;
    border-color: #06abfe;
    box-shadow: 0 4px 15px rgba(6, 171, 254, 0.4);
    transform: translateY(-2px);
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    min-height: 200px;
    flex-shrink: 0;
}
.podium-step { display: flex; flex-direction: column; align-items: center; width: 30%; }
.podium-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    margin-bottom: 5px; object-fit: cover;
    border: 2px solid hsla(0, 0%, 100%, 0.5);
}
.podium-name {
    font-size: 14px; font-weight: bold; margin-bottom: 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.podium-block {
    width: 100%; display: flex; justify-content: center; align-items: flex-start;
    padding-top: 10px; font-size: 24px; font-weight: bold;
    border-top-left-radius: 8px; border-top-right-radius: 8px; color: rgba(0,0,0,0.6);
}
.step-1 .podium-block { height: 100px; background: linear-gradient(to bottom, #FFD700, #B8860B); } 
.step-2 .podium-block { height: 75px; background: linear-gradient(to bottom, #C0C0C0, #808080); } 
.step-3 .podium-block { height: 50px; background: linear-gradient(to bottom, #CD7F32, #8B4513); } 

.table-container { flex-grow: 1; overflow-y: auto; padding-right: 10px; min-height: 0; scrollbar-width: thin; scrollbar-color: hsla(0, 0%, 100%, 0.2) transparent; }
.table-container::-webkit-scrollbar { width: 14px; }
.table-container::-webkit-scrollbar-track { background: transparent; }
.table-container::-webkit-scrollbar-thumb {
    background-color: hsla(0, 0%, 100%, 0.3); border-radius: 10px;
    border: 4px solid transparent; background-clip: padding-box; 
}
.table-container::-webkit-scrollbar-thumb:hover { background-color: hsla(0, 0%, 100%, 0.5); }

.leaderboard-table { width: 100%; border-spacing: 0; text-align: left; }
.leaderboard-table th { position: sticky; top: 0; background-color: hsl(0, 0%, 12%); padding: 10px 5px; z-index: 2; }
.leaderboard-table th::after {
    content: ''; position: absolute; left: 0; bottom: 0; top: -1px; width: 100%; border-bottom: 1px solid hsla(0, 0%, 100%, 0.2);
}
.leaderboard-table td { padding: 12px 5px; border-bottom: 1px solid hsla(0, 0%, 100%, 0.05); }
.separator-row td { padding: 0; border-bottom: 2px dashed hsla(0, 0%, 100%, 0.4); height: 10px; }
.highlight-user { background-color: hsla(0, 100%, 100%, 0.1); font-weight: bold; }

.leaderboard-card {
    height: 85vh; max-height: 800px; display: flex; flex-direction: column; 
    width: 100%; max-width: 700px; padding: 30px; box-sizing: border-box; overflow: hidden;
}

.timer-card {
    background-color: hsla(0, 0%, 100%, 0.05); border-radius: 16px;
    border: 1px solid hsla(0, 0%, 100%, 0.05); padding: 15px 40px; margin-bottom: 25px;
    flex-shrink: 0; text-align: center;
}
.countdown-clock { font-family: 'Courier New', Courier, monospace; font-size: 28px; font-weight: bold; color: #06abfe; text-shadow: 0 0 10px rgba(6, 171, 254, 0.4); letter-spacing: 2px; }

.fade-wrapper { display: flex; flex-direction: column; flex-grow: 1; overflow: hidden; min-height: 0; transition: opacity 0.3s ease, filter 0.3s ease; }
.fade-wrapper.loading { opacity: 0.4; filter: blur(4px); pointer-events: none; }

#countdown-wrapper { display: flex; justify-content: center; width: 100%; flex-shrink: 0; overflow: hidden; max-height: 150px; opacity: 1; transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.4s ease; }
#countdown-wrapper.hidden { max-height: 0; opacity: 0; margin-bottom: 0; }

@media (max-width: 768px) {
    .leaderboard-card { padding: 15px !important; height: 90vh; }
    .podium-container { gap: 5px; min-height: 160px; }
    .podium-avatar { width: 40px; height: 40px; }
    .podium-name { font-size: 12px; }
}