/* ============================================
   VICTORY MODAL - Beautiful share interface
============================================ */

.victory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.victory-modal.show {
    opacity: 1;
}

.victory-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.victory-modal.show .victory-content {
    transform: scale(1);
}

.victory-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

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

.victory-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin: 0 0 15px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.victory-text {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 35px 0;
    line-height: 1.5;
}

.victory-text strong {
    color: #fbbf24;
    font-weight: 700;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.twitter-btn {
    background: #1DA1F2;
    color: white;
}

.twitter-btn:hover {
    background: #1a91da;
}

.reddit-btn {
    background: #FF4500;
    color: white;
}

.reddit-btn:hover {
    background: #e03d00;
}

.close-victory-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-victory-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   ULTRA SMOOTH ANIMATIONS
============================================ */

.guess-cell {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
}

.guess-cell.animate-in {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.guess-cell.correct {
    animation: correctPulse 0.6s ease;
}

.guess-cell.partial {
    animation: partialPulse 0.6s ease;
}

.guess-cell.incorrect {
    animation: incorrectShake 0.4s ease;
}

@keyframes correctPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes partialPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .victory-content {
        padding: 40px 30px;
    }
    
    .victory-title {
        font-size: 28px;
    }
    
    .victory-text {
        font-size: 18px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
    }
}
