/* Leaderboard Styles - Neo Brutalist Design */

.leaderboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
    opacity: 0;
    transition: all 0.2s ease;
}

.leaderboard-overlay.active {
    opacity: 1;
}

.leaderboard-modal {
    background: #ffffff;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    border: 4px solid #000000;
    box-shadow: 8px 8px 0px #000000, 12px 12px 0px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: all 0.2s ease;
    position: relative;
}

.leaderboard-modal::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    border-radius: 8px;
    z-index: -1;
    animation: borderRotate 3s linear infinite;
    opacity: 0.7;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.leaderboard-overlay.active .leaderboard-modal {
    transform: scale(1);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.leaderboard-header {
    background: #ffffff;
    color: #000000;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #000000;
    border-left: 4px solid #ff6b6b;
    border-right: 4px solid #4ecdc4;
    border-top: 4px solid #45b7d1;
}

.leaderboard-title h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.leaderboard-subtitle {
    font-size: 1rem;
    color: #666;
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-controls {
    display: flex;
    gap: 12px;
}

.leaderboard-close-btn {
    background: #ff6b6b;
    border: 3px solid #000000;
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0px #000000;
}

.leaderboard-close-btn:hover {
    background: #ff5252;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000000;
}

.leaderboard-close-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #000000;
}

.leaderboard-tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 4px solid #000000;
    padding: 0 16px;
    gap: 2px;
    overflow-x: auto;
    border-left: 4px solid #000000;
    border-right: 4px solid #000000;
}

.tab-btn {
    background: #f8f9fa;
    border: 2px solid #000000;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    color: #333;
    border-radius: 4px;
    transition: all 0.1s ease;
    white-space: nowrap;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 2px 2px 0px #000000;
}

.tab-btn:hover {
    background: #4ecdc4;
    color: #ffffff;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}

.tab-btn.active {
    background: #ff6b6b;
    color: #ffffff;
    border-color: #000000;
    box-shadow: 0px 0px 0px #000000;
    transform: none;
}

.tab-btn.active:hover {
    background: #ff5252;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}

.leaderboard-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 4px solid #000000;
    border-left: 4px solid #f9ca24;
    border-right: 4px solid #45b7d1;
    gap: 16px;
    flex-wrap: wrap;
}

.time-filter, .sort-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-filter label, .sort-filter label {
    font-weight: 900;
    color: #000000;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-select, .sort-select {
    padding: 8px 12px;
    border: 3px solid #000000;
    border-radius: 4px;
    background: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s ease;
    font-weight: 700;
    box-shadow: 2px 2px 0px #000000;
}

.time-select:hover, .sort-select:hover {
    background: #f9ca24;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #000000;
}

.time-select:focus, .sort-select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0px 0px 0px #000000;
    transform: none;
}

.search-filter {
    flex: 1;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 3px solid #000000;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.1s ease;
    font-weight: 700;
    box-shadow: 2px 2px 0px #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0px 0px 0px #000000;
    transform: none;
}

.leaderboard-content {
    display: flex;
    flex: 1;
    max-height: calc(90vh - 280px);
    overflow: hidden;
}

.leaderboard-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    padding: 14px;
    margin-bottom: 8px;
    background: #ffffff;
    border-radius: 4px;
    transition: all 0.1s ease;
    border: 3px solid #000000;
    position: relative;
    box-shadow: 3px 3px 0px #000000;
}

.leaderboard-entry:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000000;
    background: #f8f9fa;
}

.leaderboard-entry.current-user {
    background: linear-gradient(135deg, #fff3cd 0%, #f8d7da 100%);
    border-color: #ff6b6b;
    box-shadow: 0px 0px 0px #000000;
    transform: none;
}

.leaderboard-entry.current-user:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #000000;
}

.entry-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 80px;
    flex-shrink: 0;
}

.rank-number {
    font-weight: 700;
    font-size: 1.1rem;
}

.rank-number.gold {
    color: #ffd700;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

.rank-number.silver {
    color: #c0c0c0;
    text-shadow: 0 0 4px rgba(192, 192, 192, 0.3);
}

.rank-number.bronze {
    color: #cd7f32;
    text-shadow: 0 0 4px rgba(205, 127, 50, 0.3);
}

.current-badge {
    background: #ff6b6b;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #000000;
    box-shadow: 1px 1px 0px #000000;
}

.entry-avatar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7d1 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    border: 3px solid #000000;
    box-shadow: 2px 2px 0px #000000;
}

.avatar-circle.top-three {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    border-color: #000000;
    box-shadow: 0px 0px 0px #000000;
}

.entry-info {
    flex: 1;
    margin-right: 16px;
}

.entry-name {
    font-weight: 900;
    color: #000000;
    font-size: 1rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-details {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #333;
    font-weight: 700;
}

.entry-level {
    background: #4ecdc4;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #000000;
    box-shadow: 1px 1px 0px #000000;
}

.entry-divider {
    color: #000000;
    font-weight: 900;
}

.entry-progress {
    color: #ff6b6b;
    font-weight: 900;
    text-transform: uppercase;
}

.entry-stats {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-label {
    font-size: 0.7rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 900;
}

.stat-value {
    font-weight: 900;
    color: #000000;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.entry-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-left: 16px;
    flex-shrink: 0;
}

.entry-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-left: 16px;
    flex-shrink: 0;
}

.score-value {
    font-weight: 900;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #f9ca24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.score-value.top-score {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
    border: 2px solid #ffd700;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 0 0 2px #000000;
}

.score-label {
    font-size: 0.7rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 900;
}

.leaderboard-rankings {
    width: 300px;
    background: #ffffff;
    border-left: 4px solid #000000;
    padding: 20px;
    overflow-y: auto;
    border-top: 4px solid #4ecdc4;
    border-bottom: 4px solid #ff6b6b;
    box-shadow: 4px 0 0px rgba(0, 0, 0, 0.2);
}

.top-performers h3 {
    margin: 0 0 16px 0;
    color: #000000;
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    border-bottom: 3px solid #000000;
    padding-bottom: 8px;
}

.top-list {
    margin-bottom: 24px;
}

.top-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: #ffffff;
    border-radius: 0;
    transition: all 0.1s ease;
    border: 3px solid #000000;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.top-item:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.top-item.podium {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-color: #ffd700;
    box-shadow: 0 0 0 3px #000000, 6px 6px 0px rgba(255, 215, 0, 0.3);
}

.top-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-right: 16px;
    font-size: 1.2rem;
    text-transform: uppercase;
    background: #000000;
    color: #ffffff;
    border-radius: 0;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.top-info {
    flex: 1;
}

.top-name {
    font-weight: 900;
    color: #000000;
    margin-bottom: 4px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.top-level {
    font-size: 0.8rem;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-xp {
    font-weight: 900;
    color: #ff6b6b;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.achievements-summary h4 {
    margin: 0 0 12px 0;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #000000;
    padding-bottom: 8px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.achievement-placeholder {
    background: #ffffff;
    border: 3px dashed #000000;
    border-radius: 0;
    padding: 16px;
    text-align: center;
    transition: all 0.1s ease;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.achievement-placeholder:hover {
    transform: translate(2px, 2px);
    border-color: #ff6b6b;
    background: #f9f9f9;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0.2);
}

.placeholder-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #000000;
}

.placeholder-text {
    font-size: 0.8rem;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-footer {
    background: #ffffff;
    border-top: 4px solid #000000;
    border-left: 4px solid #4ecdc4;
    border-right: 4px solid #ff6b6b;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 0px rgba(0, 0, 0, 0.2);
}

.leaderboard-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    font-size: 0.9rem;
    color: #000000;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 2px solid #000000;
    padding-right: 16px;
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
}

.your-rank {
    flex: 1;
}

.your-rank-empty {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 0;
    border: 3px solid #000000;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.rank-status {
    font-weight: 900;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-action {
    font-size: 0.8rem;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
}

.your-rank-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8f9fa;
    border: 3px solid #000000;
    padding: 16px;
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
}

.your-rank-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ff6b6b;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff6b6b 0%, #f9ca24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.your-rank-details {
    flex: 1;
}

.your-rank-text {
    font-weight: 900;
    color: #000000;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.your-rank-stats {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-top: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.your-rank-progress {
    width: 150px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 4px;
    border: 1px solid #000000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b 0%, #f9ca24 100%);
    transition: width 0.5s ease;
    border: 1px solid #000000;
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

.progress-text {
    font-size: 0.7rem;
    color: #000000;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
}

.leaderboard-empty {
    text-align: center;
    padding: 48px 24px;
    color: #000000;
    background: #ffffff;
    border-radius: 0;
    border: 3px solid #000000;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 1;
    color: #ff6b6b;
}

.empty-title {
    font-weight: 900;
    margin-bottom: 8px;
    color: #000000;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.empty-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    font-weight: 700;
}

/* Rank Up Notifications */
.rank-up-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333333;
    padding: 24px 40px;
    border-radius: 0;
    box-shadow: 0 0 0 4px #000000, 12px 12px 0px rgba(255, 215, 0, 0.4);
    z-index: 1003;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    border: 4px solid #ffd700;
    transform: translateX(-50%) translateY(-20px) scale(0.8);
}

.rank-up-notification.active {
    transform: translateX(-50%) translateY(0) scale(1);
}

.rank-up-content {
    position: relative;
}

.rank-up-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-up-details {
    font-weight: 900;
    margin-bottom: 8px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rank-up-reward {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .leaderboard-modal {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
        border: 6px solid #000000;
        border-radius: 0;
        box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.4);
    }

    .leaderboard-header {
        padding: 16px 20px;
        border-bottom: 6px solid #000000;
        border-left: 6px solid #ff6b6b;
        border-right: 6px solid #4ecdc4;
        border-top: 6px solid #45b7d1;
    }

    .leaderboard-title h2 {
        font-size: 1.8rem;
        font-weight: 900;
    }

    .leaderboard-tabs {
        padding: 0 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 4px solid #000000;
    }

    .tab-btn {
        padding: 14px 20px;
        font-size: 1rem;
        border: 3px solid #000000;
        margin: 2px;
        box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    }

    .leaderboard-filters {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
        border-bottom: 4px solid #000000;
        border-left: 4px solid #f9ca24;
        border-right: 4px solid #45b7d1;
    }

    .time-filter, .sort-filter {
        width: 100%;
    }

    .search-filter {
        max-width: none;
    }

    .leaderboard-content {
        flex-direction: column;
        max-height: calc(90vh - 320px);
    }

    .leaderboard-list {
        padding: 20px 24px;
    }

    .leaderboard-entry {
        padding: 16px;
        gap: 16px;
        border: 4px solid #000000;
        box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    }

    .entry-rank {
        width: 80px;
    }

    .entry-avatar {
        width: 56px;
        height: 56px;
    }

    .entry-info {
        margin-right: 16px;
    }

    .entry-name {
        font-size: 1.1rem;
        font-weight: 900;
    }

    .entry-stats {
        gap: 16px;
    }

    .stat-label {
        font-size: 0.7rem;
        font-weight: 900;
    }

    .entry-score {
        margin-left: 16px;
    }

    .score-value {
        font-size: 1.2rem;
        font-weight: 900;
    }

    .leaderboard-rankings {
        width: 100%;
        border-left: none;
        border-top: 6px solid #4ecdc4;
        border-bottom: 6px solid #ff6b6b;
        padding: 20px 24px;
        border-right: none;
    }

    .top-performers h3 {
        font-size: 1.3rem;
        font-weight: 900;
    }

    .your-rank-info {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        border: 4px solid #000000;
        padding: 20px;
        box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    }

    .your-rank-progress {
        width: 100%;
    }

    .leaderboard-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        border-top: 6px solid #000000;
        border-left: 6px solid #4ecdc4;
        border-right: 6px solid #ff6b6b;
        padding: 20px 24px;
    }
}

@media (max-width: 480px) {
    .leaderboard-modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: none;
        border: 8px solid #000000;
    }

    .leaderboard-header {
        border-radius: 0;
        border-width: 6px;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        border: 3px solid #000000;
    }

    .leaderboard-filters {
        padding: 16px 20px;
        border-width: 4px;
    }

    .leaderboard-entry {
        flex-wrap: wrap;
        gap: 12px;
        border: 4px solid #000000;
        padding: 16px;
    }

    .entry-stats {
        order: -1;
        width: 100%;
        justify-content: space-around;
        border: 3px solid #000000;
        padding: 12px;
        box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    }

    .entry-score {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .stat-item {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .stat-label {
        font-size: 0.8rem;
        font-weight: 900;
    }

    .rank-up-notification {
        left: 10px;
        right: 10px;
        transform: translateY(-20px) scale(0.8);
        border: 6px solid #ffd700;
        box-shadow: 0 0 0 6px #000000, 16px 16px 0px rgba(255, 215, 0, 0.4);
        padding: 20px 32px;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .leaderboard-overlay,
    .leaderboard-modal,
    .leaderboard-entry,
    .tab-btn,
    .rank-up-notification,
    .leaderboard-modal::before {
        animation: none;
        transition: none;
    }

    .leaderboard-entry:hover,
    .tab-btn:hover,
    .top-item:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .leaderboard-modal {
        border: 8px solid #000000;
        box-shadow: 0 0 0 8px #000000;
    }

    .leaderboard-entry {
        border: 8px solid #000000;
        box-shadow: 8px 8px 0px #000000;
    }

    .tab-btn {
        border: 8px solid #000000;
    }

    .tab-btn.active {
        border-bottom: 8px solid #000000;
    }

    .rank-up-notification {
        border: 8px solid #000000;
        box-shadow: 0 0 0 12px #000000;
    }

    .leaderboard-header {
        border: 8px solid #000000;
    }

    .leaderboard-filters {
        border: 8px solid #000000;
    }

    .leaderboard-rankings {
        border: 8px solid #000000;
    }

    .leaderboard-footer {
        border: 8px solid #000000;
    }
}

/* Print Styles */
@media print {
    .leaderboard-overlay,
    .leaderboard-close-btn,
    .leaderboard-tabs,
    .leaderboard-filters,
    .leaderboard-footer,
    .rank-up-notification,
    .xp-display,
    .xp-gain-notification,
    .level-up-notification {
        display: none;
    }

    .leaderboard-modal {
        box-shadow: none;
        border: 6px solid #000000;
        border-radius: 0;
    }

    .leaderboard-content {
        display: block;
    }

    .leaderboard-rankings {
        display: none;
    }

    .leaderboard-entry {
        break-inside: avoid;
        border: 6px solid #000000;
        box-shadow: 6px 6px 0px #000000;
        border-radius: 0;
    }

    .tab-btn {
        border: 3px solid #000000;
        box-shadow: 3px 3px 0px #000000;
    }
}