/* ============ CELEBRATION CONFETTI OVERLAY ============ */
/* Full-page confetti burst effect */

.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

.confetti-piece.circle {
    border-radius: 50%;
}

.confetti-piece.square {
    border-radius: 2px;
}

.confetti-piece.triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid currentColor;
    background: transparent !important;
}

.confetti-piece.ribbon {
    width: 4px;
    height: 16px;
    border-radius: 2px;
}

/* Confetti colors */
.confetti-color-1 { background-color: #f59e0b; color: #f59e0b; }
.confetti-color-2 { background-color: #ef4444; color: #ef4444; }
.confetti-color-3 { background-color: #3b82f6; color: #3b82f6; }
.confetti-color-4 { background-color: #10b981; color: #10b981; }
.confetti-color-5 { background-color: #8b5cf6; color: #8b5cf6; }
.confetti-color-6 { background-color: #ec4899; color: #ec4899; }
.confetti-color-7 { background-color: #06b6d4; color: #06b6d4; }
.confetti-color-8 { background-color: #fbbf24; color: #fbbf24; }

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

/* Burst animation - confetti explodes from center */
.confetti-burst-center {
    animation: confetti-burst 2.5s ease-out forwards;
}

@keyframes confetti-burst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Emoji celebration burst */
.celebration-emoji {
    position: absolute;
    font-size: 2rem;
    animation: emoji-burst 2s ease-out forwards;
    pointer-events: none;
}

@keyframes emoji-burst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    30% {
        transform: translate(var(--tx), var(--ty)) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(calc(var(--tx) * 1.5), calc(var(--ty) + 100px)) scale(0.8);
        opacity: 0;
    }
}

