.lucky-ball-shade {
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.85);
    z-index:9999991;
}
.lucky-random-wrp {
    position:fixed;
    left:0;
    top:0;
    background:rgba(0,0,0,0.0);
    width:100%;
    height:100%;
    z-index:9999991;
}

.lucky-random-box {
    position:absolute;
    left:50%;
    top:50%;
    transform: translate(-50%,-50%);
}

.lucky-title {
    font-family: 'Bangers', cursive;
    animation: pulse 1.5s infinite alternate;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #daf6c6;
}
@keyframes pulse {
    0%   { transform: scale(1);   text-shadow: 0 0 10px #facc15; }
    100% { transform: scale(1.08); text-shadow: 0 0 20px #facc15, 0 0 40px #facc15; }
}

#image-container {
    width: 220px;
    height: 220px;
    border: 6px solid #8f8f8f;
    border-radius: 50%;
    background: #000000ba;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

#image-container.start {
    background:transparent;
    border:0;
    box-shadow: initial;
}

#image-container img {
    display:none;
}

#image-container span {
    font-size: 10rem;
    color: #fff;
}

.ball-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.1s ease-in-out;
}

/* 팝 효과 */
@keyframes pop {
    0%   { transform: scale(1); opacity: 1; }
    30%  { transform: scale(1.6); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.pop-effect {
    animation: pop 0.5s ease-out;
}

#image-container span { font-size:5rem;color:#fff;}
@keyframes fly-to-chip {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.3);
        opacity: 0.8;
    }
}

.fly-ball {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    pointer-events: none;
    z-index: 9999;
    animation: fly-to-chip 0.7s ease-out forwards;
}

/* 도착 시 빛나는 효과 */
@keyframes glow {
    0% {
        box-shadow: 0 0 0px #ffd700;
    }
    50% {
        box-shadow: 0 0 30px #ffd700, 0 0 50px #facc15;
    }
    100% {
        box-shadow: 0 0 0px #ffd700;
    }
}
.glow-effect {
    animation: glow 1s ease-in-out 1;
    border-radius: 50%;
}

/* 공이 빙글빙글 돌면서 날아가는 효과 */
@keyframes spin-fly {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(720deg) scale(0.3);
    }
}
.spin-effect {
    animation: spin-fly 0.8s ease-out forwards;
}

/* 줄무늬 잔상 효과 */
.fly-trail {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 80%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    animation: fadeTrail 0.6s forwards;
}
@keyframes fadeTrail {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.glow-wrapper {
    position: relative;
    display: inline-block;
}
.glow-wrapper::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.7), 0 0 60px rgba(250, 204, 21, 0.6);
    animation: glow-pulse 1s ease-in-out;
    z-index: -1;
}
