#winner-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: fadeInBg 0.25s ease;
}

@keyframes fadeInBg {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-card {
    width: 600px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-card h3 {
    font-size: 20px;
    margin-top: 16px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #1a1a1a;
}

.popup-card p {
    font-size: 14px;
    line-height: 22px;
    color: #666;
    margin-bottom: 28px;
    padding: 0 18px;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f3f3;
    font-size: 20px;
    cursor: pointer;
}

.popup-btn {
    background: #0a2b44;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.popup-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 5, 0.3);
}

.popup-btn:active {
    color: white;
    transform: translateY(-2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Ikon Winner / Loser */
.popup-icon-winner {
    font-size: 50px;
    color: #ff8a00;
}

.popup-icon-loser {
    font-size: 50px;
    color: #a3a3a3;
}

/* Mobile Style */
@media (max-width: 576px) {

    #winner-popup {
        padding: 16px;
        display: flex;
        justify-content: center;
        align-items: center; /* 🔥 ini yang bikin center vertikal */
    }

    .popup-card {
        width: 100%;
        max-width: 380px; /* biar ga kepanjangan */
        padding: 24px 18px;
        border-radius: 16px;
        animation: scaleInMobile 0.25s ease;
    }

    @keyframes scaleInMobile {
        from {
            transform: scale(0.9) translateY(10px);
            opacity: 0;
        }
        to {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
    }

    .popup-card h3 {
        font-size: 17px;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .popup-card p {
        font-size: 13px;
        line-height: 20px;
        padding: 0;
        margin-bottom: 20px;
    }

    .popup-icon-winner,
    .popup-icon-loser {
        font-size: 32px;
    }

    .popup-close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .popup-btn {
        width: 100%;
        padding: 13px 16px;
        font-size: 14px;
        border-radius: 10px;
        margin-top: 10px;
    }
}

