body {
    --transp-white: #a16f305e;
}

.new-home .stats-container .stat:has(.slot-effect-completed) .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #D6CA90;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle2 2s linear reverse 0s;
    z-index: -1;
}

.confetti__wrapper {
    position: absolute;
    inset: 0;
}

.stat:has(.confetti__wrapper) {
    position: relative;
}

@media (max-width: 767px) {
    .new-home .stats-container .stat:has(.slot-effect-completed) .star {
        z-index: -10;
    }
}

@keyframes sparkle {
    50% {
        opacity: 0.4;
        transform: scale(0.5);
        box-shadow: 0 0 0 0 var(--transp-white);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px 5px #D6CA90;
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
        box-shadow: 0 0 10px 5px var(--transp-white);
    }
}

@keyframes sparkle2 {
    30% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 1px 1px var(--transp-white);
        z-index: 10;
    }
    70% {
        opacity: .4;
        transform: scale(1);
        box-shadow: 0 0 0 0 #D6CA90;
        z-index: 10;
    }
    99% {
        z-index: 10;
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
        box-shadow: 0 0 3px 1px var(--transp-white);
        z-index: -10;
    }
}
