/* 축하 애니메이션 스타일 */

.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.celebration-content {
    position: relative;
    text-align: center;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.celebration-emoji {
    font-size: 120px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.celebration-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.celebration-message {
    font-size: 28px;
    color: white;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.celebration-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.celebration-stat-item {
    color: white;
    font-size: 20px;
    margin: 10px 0;
    font-weight: 500;
}

.celebration-close-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.celebration-close-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* 색종이 애니메이션 */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    animation: confetti-fall linear infinite;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.confetti:nth-child(1) { left: 10%; animation-duration: 3s; background: #ff6b6b; }
.confetti:nth-child(2) { left: 20%; animation-duration: 3.5s; background: #ffd700; animation-delay: 0.2s; }
.confetti:nth-child(3) { left: 30%; animation-duration: 2.8s; background: #4ecdc4; animation-delay: 0.4s; }
.confetti:nth-child(4) { left: 40%; animation-duration: 3.2s; background: #95e1d3; animation-delay: 0.1s; }
.confetti:nth-child(5) { left: 50%; animation-duration: 3s; background: #ff6b6b; animation-delay: 0.3s; }
.confetti:nth-child(6) { left: 60%; animation-duration: 3.3s; background: #ffd700; animation-delay: 0.5s; }
.confetti:nth-child(7) { left: 70%; animation-duration: 2.9s; background: #4ecdc4; animation-delay: 0.2s; }
.confetti:nth-child(8) { left: 80%; animation-duration: 3.1s; background: #95e1d3; animation-delay: 0.4s; }
.confetti:nth-child(9) { left: 90%; animation-duration: 3.4s; background: #ff6b6b; }
.confetti:nth-child(10) { left: 15%; animation-duration: 2.7s; background: #ffd700; animation-delay: 0.6s; }
.confetti:nth-child(11) { left: 25%; animation-duration: 3.2s; background: #4ecdc4; animation-delay: 0.1s; }
.confetti:nth-child(12) { left: 35%; animation-duration: 2.9s; background: #95e1d3; animation-delay: 0.3s; }
.confetti:nth-child(13) { left: 45%; animation-duration: 3.1s; background: #ff6b6b; animation-delay: 0.5s; }
.confetti:nth-child(14) { left: 55%; animation-duration: 3.3s; background: #ffd700; animation-delay: 0.2s; }
.confetti:nth-child(15) { left: 65%; animation-duration: 2.8s; background: #4ecdc4; animation-delay: 0.4s; }
.confetti:nth-child(16) { left: 75%; animation-duration: 3s; background: #95e1d3; }
.confetti:nth-child(17) { left: 85%; animation-duration: 3.2s; background: #ff6b6b; animation-delay: 0.3s; }
.confetti:nth-child(18) { left: 95%; animation-duration: 2.9s; background: #ffd700; animation-delay: 0.1s; }
.confetti:nth-child(19) { left: 5%; animation-duration: 3.4s; background: #4ecdc4; animation-delay: 0.5s; }
.confetti:nth-child(20) { left: 12%; animation-duration: 3.1s; background: #95e1d3; animation-delay: 0.2s; }

/* 풍선 애니메이션 */
.balloon {
    position: absolute;
    bottom: -100px;
    font-size: 60px;
    animation: balloon-float 6s ease-in-out infinite;
}

@keyframes balloon-float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-80vh) rotate(10deg);
    }
    100% {
        transform: translateY(-100vh) rotate(-10deg);
        opacity: 0;
    }
}

.balloon:nth-child(21) { left: 10%; animation-delay: 0s; }
.balloon:nth-child(22) { left: 30%; animation-delay: 1s; }
.balloon:nth-child(23) { left: 50%; animation-delay: 2s; }
.balloon:nth-child(24) { left: 70%; animation-delay: 1.5s; }
.balloon:nth-child(25) { left: 90%; animation-delay: 0.5s; }

/* 반짝이 효과 */
.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: sparkle-twinkle 1.5s ease-in-out infinite;
}

@keyframes sparkle-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle:nth-child(26) { top: 10%; left: 20%; animation-delay: 0s; }
.sparkle:nth-child(27) { top: 20%; left: 80%; animation-delay: 0.3s; }
.sparkle:nth-child(28) { top: 30%; left: 40%; animation-delay: 0.6s; }
.sparkle:nth-child(29) { top: 40%; left: 60%; animation-delay: 0.9s; }
.sparkle:nth-child(30) { top: 50%; left: 30%; animation-delay: 1.2s; }
.sparkle:nth-child(31) { top: 60%; left: 70%; animation-delay: 0.2s; }
.sparkle:nth-child(32) { top: 70%; left: 50%; animation-delay: 0.5s; }
.sparkle:nth-child(33) { top: 80%; left: 15%; animation-delay: 0.8s; }
.sparkle:nth-child(34) { top: 90%; left: 85%; animation-delay: 1.1s; }
.sparkle:nth-child(35) { top: 15%; left: 50%; animation-delay: 0.4s; }

/* 모바일 최적화 */
@media (max-width: 768px) {
    .celebration-title {
        font-size: 36px;
    }

    .celebration-message {
        font-size: 20px;
    }

    .celebration-emoji {
        font-size: 80px;
    }

    .celebration-stat-item {
        font-size: 16px;
    }

    .celebration-close-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}
