.random_box {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 999996;
}


.random_box_tit {
    color: #fff;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.random_box_sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.random_box_sub2 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin-bottom: 40px;
    text-align: center;
}

.random_box ul {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
    left: 0px;
}

#confettiButton {
    background-color: transparent;
    border: 0px;
    cursor: pointer
}

#confettiButton:hover {
    opacity: 0.8
}

#confettiButton img {
    width: 180px;
    animation: heartbeat 1.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    transform-origin: center center;
    will-change: transform;
}

#random_box_close_a {display: block; color:#fff; padding: 15px 20px; width: 150px; margin: 0 auto; margin-top: 60px; border-radius: 50px;}
#random_box_close_a:hover {opacity: 0.8;}

.floating_popup {
    position: fixed;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 80%;
    padding: 40px 25px 40px 25px;
    background: #fff;
    border-radius: 22px 22px 18px 18px;
    box-shadow: 0 10px 38px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.12);
    text-align: center;
    font-size: 1.2rem;
    color: #222;
    opacity: 0;
    pointer-events: none;
    transition: top 0.6s cubic-bezier(.48, 1.64, .41, .8), opacity 0.35s;
    z-index: 999998;
}

.floating_popup.active {
    top: 50%;
    /* 중앙 */
    opacity: 1;
    pointer-events: auto;
}

.floating_popup .prize_title {
    font-size: 1.35rem;
    margin-bottom: 9px;
}

.floating_popup .prize_desc {
    font-size: 1.13rem;
    color: #111;
    margin-bottom: 2px;
}

.floating_popup .prize_btn {
    margin-top: 18px;
    padding: 9px 32px;
    color: #fff;
    border-radius: 30px;
    border: 0;
    font-size: 1.03rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(52, 115, 198, 0.13);
    transition: background 0.2s;
    background-color: #aaa;
}

.floating_popup .prize_login_btn {
    margin-top: 18px;
    padding: 9px 32px;
    color: #fff;
    border-radius: 30px;
    border: 0;
    font-size: 1.03rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(52, 115, 198, 0.13);
    transition: background 0.2s;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.06);
    }

    20% {
        transform: scale(1.10);
    }

    30% {
        transform: scale(1.13);
    }

    40% {
        transform: scale(1.10);
    }

    50% {
        transform: scale(1.07);
    }

    60% {
        transform: scale(1.11);
    }

    70% {
        transform: scale(1.17);
    }

    80% {
        transform: scale(1.11);
    }

    90% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

#prizePopup {
    display: none;
}

.rb_randombox_open_btn {
    background-color: transparent;
    border: 0px;
    position: fixed;
    z-index: 98;
    left: 50px;
    bottom: 120px;
}

.rb_randombox_open_btn:hover {opacity: 0.8;}

.rb_randombox_open_btn img {
    width: 40px;
    animation: heartbeat 1.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
    transform-origin: center center;
    will-change: transform;
}

@media (max-width: 1024px) {
    .rb_randombox_open_btn {
        left: 30px !important;
        bottom: 100px !important;
    }
}