/* ========================================
   Confetti Animation
   ======================================== */

.confetti_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti_piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    top: -10px;
    opacity: 0;
    animation: confetti-fall linear forwards;
}

.confetti_piece:nth-child(odd) {
    animation-name: confetti-fall-rotate;
}

.confetti_piece.color_1 {
    background: #44b0ec;
}

.confetti_piece.color_2 {
    background: #51cf66;
}

.confetti_piece.color_3 {
    background: #ffa94d;
}

.confetti_piece.color_4 {
    background: #4dabf7;
}

.confetti_piece.color_5 {
    background: #ff6b6b;
}

.confetti_piece.color_6 {
    background: #cc5de8;
}

.confetti_piece.shape_circle {
    border-radius: 50%;
}

.confetti_piece.shape_square {
    border-radius: 0;
}

.confetti_piece.shape_rectangle {
    width: 15px;
    height: 8px;
}

.confetti_piece.shape_triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid currentColor;
    background: transparent;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(var(--confetti-x-drift));
    }
}

@keyframes confetti-fall-rotate {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) translateX(var(--confetti-x-drift)) rotate(720deg);
    }
}

/* Confetti burst effect (from center) */
.confetti_burst {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: confetti-burst 1.2s ease-out forwards;
}

@keyframes confetti-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--burst-x), var(--burst-y)) scale(0.5);
    }
}
