* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    background: linear-gradient(135deg, #000000 0%, #1a0000 50%, #000000 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 15px;
}

.logo-image {
    height: 80px; /* Size for YE logo */
    width: auto;
    object-fit: contain;
}

.shuffle-logo {
    height: 50px; /* Slightly smaller to match visual weight */
    width: auto;
    object-fit: contain;
}

.logo-x {
    font-size: 40px;
    font-weight: 700;
    color: #ff0000;
    margin: 0 5px;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 50px;
    }
    .shuffle-logo {
        height: 35px;
    }
    
    .logo-x {
        font-size: 30px;
    }
    
    /* Leaderboard table adjustments for mobile */
    .leaderboard {
        min-width: 100%;
    }
    
    .leaderboard-entry {
        grid-template-columns: 40px 1fr 90px 70px;
        font-size: 0.85rem;
        padding: 10px 8px;
    }
    
    .rank {
        font-size: 0.9rem;
    }
    
    .player {
        font-size: 0.9rem;
    }
    
    .wagered, .prize {
        font-size: 0.85rem;
    }
    
    .prize-banner {
        padding: 30px 15px;
    }
    
    .prize-amount {
        font-size: 4rem;
    }
    
    .prize-title {
        font-size: 1.5rem;
    }
    
    .prize-subtitle {
        font-size: 1.1rem;
    }
    
    .leaderboard-container {
        padding: 20px 15px;
    }
}

/* Prize Banner */
.prize-banner {
    background: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(255, 0, 0, 0.4);
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.prize-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.prize-title {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.prize-amount {
    font-size: 6rem;
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.prize-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Lossback badge under subtitle */
.lossback-note {
    margin-top: 4px;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff2a1 0%, #f4c10f 100%);
    color: #111;
    box-shadow: 0 12px 30px rgba(244,193,15,0.35), 0 2px 10px rgba(0,0,0,0.35);
}

/* Sign Up Section */
.signup-section {
    text-align: center;
    margin-bottom: 50px;
}

.signup-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
    color: white;
    padding: 25px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.7);
}

.signup-arrow {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.signup-btn:hover .signup-arrow {
    transform: translateX(5px);
}

.signup-info {
    margin-top: 15px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Leaderboard Toggle */
.leaderboard-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ff0000;
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.toggle-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #ff0000 0%, #8b0000 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

.toggle-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.6);
}

/* Leaderboard */
.leaderboard-container {
    background: rgba(15, 15, 15, 0.8);
    border-radius: 15px;
    padding: 20px 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: visible;
    position: relative;
}

/* Big glow overlay that bleeds from the podium over the lower table */
.leaderboard-container::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    top: 70px; /* sits under podium */
    bottom: -10%;
    pointer-events: none;
    background:
        radial-gradient(60% 55% at 50% 0%, rgba(244,193,15,0.28) 0%, rgba(244,193,15,0.0) 60%),
        radial-gradient(45% 50% at 18% 6%, rgba(197,204,212,0.12) 0%, rgba(197,204,212,0) 60%),
        radial-gradient(45% 50% at 82% 6%, rgba(211,142,82,0.12) 0%, rgba(211,142,82,0) 60%);
    filter: blur(6px);
    z-index: 0;
}

/* Make content render above the glow */
.podium-section,
.leaderboard,
.leaderboard-table-header {
    position: relative;
    z-index: 1;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
}

.podium-section {
    display: grid;
    grid-template-columns: 0.95fr 1.2fr 0.85fr;
    gap: 18px;
    align-items: end;
    justify-items: center;
    margin: 6px 8px 22px 8px;
}

.podium-card {
    position: relative;
    width: 100%;
    text-align: center;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.podium-card:before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 6px;
    border-radius: 6px;
    filter: blur(1.5px);
    opacity: 0.9;
}

.podium-card.first { transform: translateY(-16px) scale(1.12); border-color: rgba(255, 215, 0, 0.45); box-shadow: 0 24px 66px rgba(255,215,0,0.3), inset 0 1px 0 rgba(255,255,255,0.08); z-index: 2; }
.podium-card.second { transform: translateY(-8px) scale(0.96);  border-color: rgba(192, 192, 192, 0.35); box-shadow: 0 14px 40px rgba(192,192,192,0.18); z-index: 1; }
.podium-card.third { transform: translateY(-4px) scale(0.92);  border-color: rgba(205, 127, 50, 0.35); box-shadow: 0 14px 40px rgba(205,127,50,0.18); z-index: 1; }

.podium-card.first:before { background: linear-gradient(90deg, #ffe680, #f4c10f); }
.podium-card.second:before { background: linear-gradient(90deg, #e5e9ef, #bfc6ce); }
.podium-card.third:before { background: linear-gradient(90deg, #ffd2a1, #d38e52); }

/* subtle glow animation on the top accent bar */
@keyframes glowPulse {
    0%, 100% { opacity: 0.85; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.25); }
}
.podium-card.first:before { animation: glowPulse 2.5s ease-in-out infinite; }

.podium-rank {
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-size: 1.4rem;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    position: relative;
}
.podium-card.first .podium-rank {
    background: linear-gradient(180deg, #fff2a1, #f4c10f);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 22px rgba(255,215,0,0.4);
    font-size: 1.8rem;
}
.podium-card.second .podium-rank {
    background: linear-gradient(180deg, #ffffff, #c5ccd4);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(197,204,212,0.35);
    font-size: 1.6rem;
}
.podium-card.third .podium-rank {
    background: linear-gradient(180deg, #ffe0bf, #d38e52);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 16px rgba(211,142,82,0.35);
    font-size: 1.5rem;
}

/* crown for #1 */
.podium-card.first .podium-rank:before {
    content: '👑';
    position: absolute;
    left: -22px;
    top: -2px;
    font-size: 1.2em;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4));
}

.podium-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin: 6px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #111;
    background: radial-gradient(circle at 30% 30%, #d9d9d9, #9aa3ad);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06), 0 8px 20px rgba(0,0,0,0.45);
}
.podium-card.first .podium-avatar { background: radial-gradient(circle at 30% 30%, #ffe680, #f4c10f); box-shadow: 0 0 0 3px rgba(255,215,0,0.35), 0 12px 26px rgba(255,215,0,0.25); width: 44px; height: 44px; }
.podium-card.second .podium-avatar { background: radial-gradient(circle at 30% 30%, #f1f4f8, #c0c6ce); box-shadow: 0 0 0 3px rgba(204,212,220,0.35), 0 10px 22px rgba(192,192,192,0.20); width: 36px; height: 36px; }
.podium-card.third .podium-avatar { background: radial-gradient(circle at 30% 30%, #ffd2a1, #d38e52); box-shadow: 0 0 0 3px rgba(211,142,82,0.35), 0 10px 22px rgba(211,142,82,0.20); width: 34px; height: 34px; }

.podium-player { font-weight: 800; font-size: 1.05rem; margin-top: 2px; }
.podium-prize { font-weight: 900; font-size: 1.35rem; margin-top: 6px; }
.podium-card.first .podium-prize { color: #f4c10f; }
.podium-card.second .podium-prize { color: #c5ccd4; }
.podium-card.third .podium-prize { color: #d38e52; }

.podium-wager { opacity: 0.8; font-size: 0.8rem; margin-top: 6px; letter-spacing: 0.5px; }
.podium-wager span { display: inline-block; margin-top: 2px; font-size: 1rem; font-weight: 800; color: #fff; }

@media (max-width: 900px) {
    .podium-section { grid-template-columns: 1fr; }
    .podium-card { max-width: 500px; }
    .podium-card.first { order: -1; }
    .leaderboard-header { flex-wrap: wrap; gap: 6px; }
    .timer { width: 100%; text-align: left; }
    .leaderboard-container { overflow-x: hidden; overflow-y: visible; }
    .podium-card.first { transform: scale(1.06); }
    .podium-card.second { transform: scale(1.0); }
    .podium-card.third { transform: scale(0.96); }
    .podium-section { margin-top: 8px; }
}

.timer-label {
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
}

.timer {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff0000;
}

.timer-v.player {
    font-weight: 800;
    font-size: 1rem;
    color: #ff0000;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}
/* Leaderboard Table */
/* Leaderboard Table */
.leaderboard-table-header {
    display: grid;
    grid-template-columns: 50px 1fr 120px 100px;
    gap: 15px;
    padding: 10px 20px 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    flex-direction: column;
    gap: 8px;
    min-width: 100%;
    width: 100%;
}

.leaderboard-entry {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 8px;
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 40px 1fr 120px 100px;
    gap: 15px;
    align-items: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.leaderboard-entry:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.leaderboard-entry.top-1 {
    background: rgba(255, 0, 0, 0.1);
    border-left: 3px solid #ff0000;
}

.leaderboard-entry.top-2 {
    background: rgba(255, 0, 0, 0.08);
    border-left: 3px solid #ff4d4d;
}

.leaderboard-entry.top-3 {
    background: rgba(255, 0, 0, 0.06);
    border-left: 3px solid #ff9999;
}

.rank-col.top-1 { color: #ff0000; }
.rank-col.top-2 { color: #ff4d4d; }
.rank-col.top-3 { color: #ff9999; }

/* Leaderboard columns */
.rank-col, .player-col, .wagered-col, .prize-col {
    padding: 4px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.rank-col {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    min-width: 50px;
    width: 50px;
    color: #888;
    overflow: visible;
    white-space: nowrap;
}

.player-col, .wagered-col, .prize-col {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    padding: 4px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-col {
    text-align: left;
    min-width: 0;
    flex: 1;
}

.wagered-col {
    text-align: right;
    min-width: 120px;
}

.prize-col {
    text-align: right;
    min-width: 100px;
    color: #ffd700;
}

.rank.top-1 { color: #ff0000; }
.rank.top-2 { color: #ff4d4d; }
.rank.top-3 { color: #ff9999; }

.player {
    font-size: 1.1rem;
    font-weight: 600;
}

.wagered {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff4d4d;
}

.prize {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ff0000;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: rgba(15, 15, 15, 0.8);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-tier {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-tier:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prize-tier h5 {
    color: #ffd700;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prize-tier ul {
    margin-left: 20px;
}

.prize-tier li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.prize-tier li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff0000;
}

.info-card h4 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ff0000;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
}

.info-card li:last-child {
    border-bottom: none;
}

/* Socials Section */
.socials-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.socials-section h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-link.discord {
    background: #5865F2;
}

.social-link.kick {
    background: #000;
}

.social-link.x {
    background: #000;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* YE Code Link */
.ye-code {
    color: #ff0000;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #ff0000;
    padding: 0 2px;
}

.ye-code:hover {
    color: #ffffff;
    background-color: #ff0000;
    border-radius: 3px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.disclaimer {
    opacity: 0.6;
    font-size: 0.9rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 50px;
    }
    
    .shuffle-logo {
        height: 35px;
    }
    
    .logo-x {
        font-size: 30px;
    }
    
    .prize-amount {
        font-size: 3.5rem;
    }
    
    .prize-title {
        font-size: 1.2rem;
    }
    
    .prize-subtitle {
        font-size: 0.9rem;
    }
    .leaderboard-table-header {
        grid-template-columns: 40px 1fr 90px 70px;
        padding: 8px 12px 8px 10px;
    }
    .leaderboard-container {
        overflow-x: hidden;
        overflow-y: visible;
    }
    .leaderboard-header { flex-wrap: wrap; gap: 6px; }
    .timer { width: 100%; text-align: left; font-size: 1rem; }
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 1rem 0;
    margin-top: 1rem;
}

.load-more-btn {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 2px solid #ff0000;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.load-more-btn:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
}
