.victory-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.victory-popup {
    position: relative;
    z-index: 2;
    background: #fff8d7;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(1) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.victory-particle {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
    border-radius: 50%;
}

.victory-message {
    margin-top: -4rem;
    margin-bottom: 2rem;
    height: 4rem;
    line-height: 4rem;
    padding: 0 1rem;
    background: linear-gradient(145deg, #e91e63, #c2185b);
    color: #fff;
    border-radius: 1rem;
}

.victory-image img {
    max-width: 70%;
    display: block;
    margin: 3rem auto;
}

.victory-rewards {
    margin: 1rem 0 2rem 0;
}

.victory-actions {
    display: flex;
    gap: 1.5rem;
}

@keyframes confettiFall {
    0% {
        transform: translate3d(var(--x, 0px), 0px, 0) rotateZ(var(--rotStart, 0deg));
        opacity: 1;
    }

    100% {
        transform: translate3d(calc(var(--x, 0px) + var(--dx, 0px)), var(--fall, 1200px), 0) rotateZ(var(--rotEnd, 720deg));
        opacity: 1;
    }
}