.winner-announcement {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.winner-announcement.show {
    display: flex;
    animation: fadeIn 0.5s ease-in;
}

.winner-content {
    text-align: center;
    color: white;
    position: relative;
    animation: slideUp 0.8s ease-out;
}

.trophy {
    font-size: 120px;
    animation: bounce 1s infinite;
    margin-bottom: 20px;
}

.congrats {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient 2s ease infinite;
    margin: 20px 0;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.winner-name {
    font-size: 64px;
    font-weight: bold;
    color: #ffd700;
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                 0 0 40px rgba(255, 215, 0, 0.5);
    animation: glow 1.5s ease-in-out infinite;
}

.winner-subtitle {
    font-size: 24px;
    color: #fff;
    letter-spacing: 3px;
    margin-top: 10px;
    opacity: 0.9;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8),
                     0 0 40px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 215, 0, 1),
                     0 0 60px rgba(255, 215, 0, 0.8),
                     0 0 80px rgba(255, 215, 0, 0.6);
    }
}

.confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.confetti::before,
.confetti::after {
    content: '🎉';
    position: absolute;
    font-size: 40px;
    animation: confettiFall 3s linear infinite;
}

.confetti::before {
    left: 20%;
    animation-delay: 0s;
}

.confetti::after {
    right: 20%;
    animation-delay: 1s;
}

@keyframes confettiFall {
    0% {
        top: -50px;
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        top: 100%;
        transform: rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .winner-content {
        padding: 20px;
        max-width: 90%;
    }
    
    .trophy {
        font-size: 80px;
        margin-bottom: 15px;
    }
    
    .congrats {
        font-size: 32px;
        margin: 15px 0;
    }
    
    .winner-name {
        font-size: 42px;
        margin: 15px 0;
    }
    
    .winner-subtitle {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .confetti::before,
    .confetti::after {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .winner-content {
        padding: 15px;
    }
    
    .trophy {
        font-size: 60px;
        margin-bottom: 10px;
    }
    
    .congrats {
        font-size: 24px;
        margin: 10px 0;
    }
    
    .winner-name {
        font-size: 32px;
        margin: 10px 0;
    }
    
    .winner-subtitle {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .confetti::before,
    .confetti::after {
        font-size: 24px;
    }
}
