@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    position: relative;
    overflow-x: hidden;
}

img {
    pointer-events: none;
}

body::before,
body::after {
    content: "";
    position: fixed; 
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1; 
    opacity: 0.5; 
    pointer-events: none; 
}

body::before {
    background: radial-gradient(circle at center, rgba(90, 5, 60, 0.8) 0%, rgba(90, 5, 60, 0) 70%);
    filter: blur(100px);
    animation: blobDrift1 25s ease-in-out infinite;
}

body::after {
    background: radial-gradient(circle at center, rgba(138, 26, 90, 0.6) 0%, rgba(138, 26, 90, 0) 60%);
    filter: blur(120px);
    animation: blobDrift2 18s linear infinite;
    opacity: 0.4;
}

@keyframes blobDrift1 {
    0%, 100% { transform: translate(15%, -15%) scale(1); }
    33% { transform: translate(-15%, 15%) scale(1.1); }
    66% { transform: translate(5%, -25%) scale(0.9); }
}

@keyframes blobDrift2 {
    0%, 100% { transform: translate(-10%, 10%) scale(1) rotate(0deg); opacity: 0.4; }
    50% { transform: translate(10%, -10%) scale(1.05) rotate(180deg); opacity: 0.6; }
}

.container, footer {
    position: relative;
    z-index: 1;
}

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
    width: 100%;
}

h1.title {
    text-align: center;
    font-size: 3.5rem; 
    letter-spacing: -3px; 
    margin-bottom: 5px;
    font-weight: 900; 
    text-shadow: 0 0 20px rgba(255, 0, 102, 0.5); 
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #ffb3b3;
    margin-bottom: 30px;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    color: white;
    text-decoration: none;
    font-weight: 700; 
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.index-buttons {
    display: flex;
    justify-content: center;
    gap: 30px; 
    margin-top: 50px;
}

.index-btn {
    font-size: 1.1rem;
    padding: 20px 40px; 
    min-width: 320px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; 
    overflow: visible !important; 
    transition: all 0.3s ease; 
}

.wager-icon {
    font-size: 4rem; 
    position: absolute;
    left: -25px; 
    top: 50%;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7); 
    pointer-events: none; 
    transform: translateY(-50%) rotate(-15deg) scale(1);
    transition: transform 0.4s ease-out, text-shadow 0.4s ease-out; 
}

.btn-wager:hover {
    background: rgba(255, 215, 0, 0.4); 
    border-color: rgba(255, 215, 0, 0.8); 
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4); 
    transform: translateY(-2px);
}

.btn-wager:hover .wager-icon {
    transform: translateY(-50%) rotate(5deg) scale(1.2);
    text-shadow: 0 0 25px rgba(255, 215, 0, 1);
}

.wager-text {
    margin-left: 50px; 
}

.btn-register img {
    height: 30px; 
    width: auto;
    margin-left: 12px; 
    vertical-align: middle; 
}

.btn-register:hover {
    background: rgba(130, 234, 127, 0.4); 
    border-color: rgba(130, 234, 127, 0.8); 
    box-shadow: 0 0 25px rgba(130, 234, 127, 0.4); 
    transform: translateY(-2px);
}

.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px; 
    margin-bottom: 40px;
    min-height: 250px; 
}

@keyframes latido-dorado {
    0% { 
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.15), inset 0 0 10px rgba(255, 215, 0, 0.05); 
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.4), inset 0 0 15px rgba(255, 215, 0, 0.15); 
    }
    100% { 
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.15), inset 0 0 10px rgba(255, 215, 0, 0.05); 
    }
}

.podium-card {
    border-radius: 20px; 
    padding: 30px 20px; 
    text-align: center;
    width: 210px; 
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.podium-card > * {
    position: relative;
    z-index: 2;
}

.podium-1::before {
    content: "1";
    position: absolute;
    font-size: 14rem;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.05);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.podium-2::before {
    content: "2";
    position: absolute;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.podium-3::before {
    content: "3";
    position: absolute;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(205, 127, 50, 0.05);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.podium-card:hover {
    transform: translateY(-15px);
}

.podium-1 {
    height: 250px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    animation: latido-dorado 2s infinite ease-in-out;
}

.podium-2 {
    height: 220px;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(105, 105, 105, 0.05) 100%);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.podium-3 {
    height: 190px;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(139, 69, 19, 0.05) 100%);
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.username { 
    font-size: 1.5rem; 
    font-weight: 900; 
    margin-bottom: 2px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
    width: 100%; 
    color: #ffffff;
}

.wager-amount { 
    color: #ffcccc; 
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px; 
}

.prize-gold, .prize-silver, .prize-bronze {
    font-weight: 900;
    line-height: 1; 
}

.prize-gold { color: #FFD700; font-size: 2.6rem; text-shadow: 0 0 20px rgba(255, 215, 0, 0.7); }
.prize-silver { color: #E0E0E0; font-size: 2.2rem; text-shadow: 0 0 15px rgba(224, 224, 224, 0.6); }
.prize-bronze { color: #CD7F32; font-size: 1.9rem; text-shadow: 0 0 15px rgba(205, 127, 50, 0.6); }

.countdown-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.countdown {
    display: flex;
    justify-content: center; 
    gap: 25px; 
    padding: 10px;
    border-radius: 12px;
    width: auto; 
    min-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65px;
}

.number { 
    font-size: 2rem; 
    font-weight: 700; 
    letter-spacing: 2px;
    text-indent: 2px; 
    margin-bottom: 2px;
    text-align: center;
    width: 100%;
}

.label { 
    font-size: 0.75rem; 
    color: #ffb3b3;
    font-weight: 700; 
    padding-top: 4px; 
    width: 100%;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

th, td {
    padding: 15px;
    text-align: center; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th { 
    background: rgba(0, 0, 0, 0.3); 
    color: #ffb3b3; 
    font-weight: 700;
}

tr:hover { 
    background: rgba(255, 255, 255, 0.05); 
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    transition: transform 0.2s;
    text-decoration: none;
}

.social-btn:hover { 
    transform: scale(1.1); 
}

.social-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.btn-kick {
    background: #53FD19 !important; 
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 15px rgba(83, 253, 25, 0.3);
}

.btn-kick:hover {
    background: #4ae015 !important;
    box-shadow: 0 0 20px rgba(83, 253, 25, 0.7);
}

.btn-discord {
    background: #5865F2 !important; 
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752c4 !important;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.7);
}

@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }
    
    h1.title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .index-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    
    .index-btn {
        width: 100%;
        min-width: unset;
        padding: 15px 20px;
        font-size: 1rem;
    }

    .podium-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        min-height: auto;
    }
    
    .podium-1 { order: 1; width: 100%; max-width: 320px; height: auto; padding: 40px 20px; }
    .podium-2 { order: 2; width: 100%; max-width: 320px; height: auto; padding: 30px 20px; }
    .podium-3 { order: 3; width: 100%; max-width: 320px; height: auto; padding: 30px 20px; }
    
    .prize-gold { font-size: 2.2rem; }
    .prize-silver { font-size: 1.9rem; }
    .prize-bronze { font-size: 1.6rem; }

    .countdown {
        width: 100%;
        min-width: unset;
        gap: 10px;
        padding: 10px 5px;
    }
    
    .time-box {
        width: auto;
        flex: 1;
    }
    
    .number {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .label {
        font-size: 0.65rem;
    }

    table {
        display: table;
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    th, td {
        padding: 10px 5px;
        font-size: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    th {
        background: rgba(0, 0, 0, 0.4);
        font-size: 0.65rem;
        color: #ffb3b3;
    }

    th:nth-child(1), td:nth-child(1) { width: 15%; } 
    th:nth-child(2), td:nth-child(2) { width: 35%; } 
    th:nth-child(3), td:nth-child(3) { width: 25%; } 
    th:nth-child(4), td:nth-child(4) { width: 25%; }
}