.clashgg-body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-image: 
        linear-gradient(to bottom, rgba(14, 13, 12, 0.1) 0%, rgba(14, 13, 12, 0.3) 50%, rgb(8, 8, 7) 100%),
        url('../images/clash-bg.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: fixed, fixed;
    color: #EEECE7;
    line-height: 1.6;
    min-height: 100vh;
}

.leaderboard-hero {
    background: transparent;
    padding: 80px 0;
    text-align: center;
}

.leaderboard-header {
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.leaderboard-logo {
    width: 300px;
    height: auto;
    object-fit: contain;
}

.leaderboard-title {
    font-family: 'Tomorrow', monospace;
    font-size: 64px;
    font-weight: 700;
    color: #FFD700;
    margin: 0;
}

.leaderboard-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #FFB200;
    margin-bottom: 40px;
}

.coin-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 10px;
    vertical-align: middle;
}

.countdown-container {
    background: linear-gradient(135deg, rgba(26, 24, 22, 0.95), rgba(37, 35, 33, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 25px;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.countdown-label {
    font-family: 'Tomorrow', monospace;
    font-size: 14px;
    color: #FFB200;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    position: relative;
}

.time-value {
    font-family: 'Tomorrow', monospace;
    font-size: 32px;
    font-weight: 700;
    color: #FFD700;
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 10px 8px;
    min-width: 55px;
    text-align: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.time-value:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

.time-label {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: #E1DDD6;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0.9;
}

.countdown-notes {
    margin-top: 30px;
    text-align: center;
}

.main-note {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #EEECE7;
    margin-bottom: 8px;
    font-weight: 500;
}

.sub-note {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #E1DDD6;
    opacity: 0.7;
    font-style: italic;
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    margin-top: 60px;
    padding: 0 20px;
}

.podium-card {
    background-color: rgba(26, 24, 22, 0.9);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-width: 280px;
    max-width: 320px;
}

.podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.rank-1 {
    order: 2;
    transform: scale(1.1);
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.rank-2 {
    order: 1;
    transform: scale(1);
    border-color: #C0C0C0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.2);
}

.rank-3 {
    order: 3;
    transform: scale(1);
    border-color: #CD7F32;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.2);
}

.rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFB200);
    color: #252321;
    font-family: 'Tomorrow', monospace;
    font-weight: 700;
    font-size: 14px;
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #CD7F32, #B87333);
}

.user-avatar {
    margin-bottom: 12px;
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 215, 0, 0.5);
    object-fit: cover;
}

.user-info h3 {
    font-family: 'Tomorrow', monospace;
    font-size: 26px;
    font-weight: 600;
    color: #FFD700;
    margin: 0 0 15px 0;
}

.wager-section, .prize-section {
    margin-bottom: 12px;
}

.wager-label, .prize-label {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #E1DDD6;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.wager-amount {
    font-family: 'Tomorrow', monospace;
    font-size: 20px;
    color: #EEECE7;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wager-coin {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.prize-amount {
    font-family: 'Tomorrow', monospace;
    font-size: 28px;
    font-weight: 700;
    color: #FFB200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.prize-coin {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Leaderboard Table Styles */
.leaderboard-table {
    width: 1400px;
    margin: 60px auto 0;
    background: linear-gradient(135deg, rgba(26, 24, 22, 0.95), rgba(37, 35, 33, 0.95));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.table-header {
    display: grid;
    grid-template-columns: 80px 1fr 180px 180px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.table-row {
    display: grid;
    grid-template-columns: 80px 1fr 180px 180px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    transition: background-color 0.3s ease;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: rgba(255, 215, 0, 0.05);
}

.table-cell {
    padding: 20px;
    display: flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    color: #EEECE7;
    font-size: 16px;
}

.rank-header, .user-header, .wager-header, .prize-header {
    font-family: 'Tomorrow', monospace;
    font-weight: 600;
    font-size: 16px;
    color: #FFB200;
    text-transform: uppercase;
    letter-spacing: 1px;
    justify-content: center;
}

.user-header {
    justify-content: flex-start;
}

.rank-cell {
    font-family: 'Tomorrow', monospace;
    font-weight: 700;
    font-size: 20px;
    color: #FFD700;
    justify-content: center;
}

.user-cell {
    gap: 12px;
    font-weight: 500;
    font-size: 16px;
}

.table-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.3);
    object-fit: cover;
}

.wager-cell, .prize-cell {
    font-family: 'Tomorrow', monospace;
    font-weight: 500;
    font-size: 16px;
    justify-content: center;
    gap: 8px;
}

.prize-cell {
    font-weight: 600;
    color: #FFB200;
}

.table-coin {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Pagination Styles */
.pagination-container {
    margin: 40px auto 0;
    text-align: center;
    max-width: 1400px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    font-family: 'Tomorrow', monospace;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #FFD700, #FFB200);
    color: #252321;
    border-color: #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.1);
    color: #666;
}

.pagination-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.prev-btn, .next-btn {
    padding: 10px 20px;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .leaderboard-title-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .leaderboard-title {
        font-size: 48px;
    }
    
    .leaderboard-subtitle {
        font-size: 24px;
    }
    
    .countdown-timer {
        gap: 15px;
    }
    
    .time-block {
        min-width: 65px;
    }
    
    .time-value {
        font-size: 28px;
        min-width: 50px;
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .leaderboard-hero {
        padding: 60px 0;
    }
    
    .leaderboard-title {
        font-size: 36px;
    }
    
    .leaderboard-subtitle {
        font-size: 20px;
    }
    
    .countdown-container {
        padding: 20px;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .time-block {
        min-width: 60px;
    }
    
    .time-value {
        font-size: 24px;
        min-width: 45px;
        padding: 8px 5px;
        border-radius: 8px;
    }
    
    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .podium-card {
        max-width: 320px;
        min-width: 280px;
    }
    
    .rank-1, .rank-2, .rank-3 {
        order: initial;
        transform: scale(1);
    }
    
    .rank-1 {
        order: -1; /* Place rank 1 at the top */
        border-color: #FFD700;
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    }
    
    .avatar-img {
        width: 60px;
        height: 60px;
    }
    
    .leaderboard-table {
        margin: 40px 20px 0;
        width: 100%;
        max-width: none;
        position: static;
        transform: none;
        left: auto;
        overflow-x: auto;
    }
    
    .table-header, .table-row {
        grid-template-columns: 80px 1fr 180px 180px;
        min-width: 600px;
    }
    
    .table-cell {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .rank-header, .user-header, .wager-header, .prize-header {
        font-size: 12px;
    }
    
    .rank-cell {
        font-size: 16px;
    }
    
    .table-avatar {
        width: 25px;
        height: 25px;
    }
    
    .wager-cell, .prize-cell {
        font-size: 12px;
    }
    
    .table-coin {
        width: 14px;
        height: 14px;
    }
    
    .pagination-container {
        margin: 30px 20px 0;
        position: static;
        transform: none;
        left: auto;
        max-width: none;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 40px;
    }
    
    .prev-btn, .next-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}