/* Enhanced PvP CoinFlip Visual Feedback */

/* Winner/Loser Overlay */
.pvp-result-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: overlayFadeIn 0.5s ease-out;
}

.pvp-result-overlay .result-content {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: resultBounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pvp-result-overlay.winner .result-content {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 3px solid #ffd700;
}

.pvp-result-overlay.loser .result-content {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: 3px solid #ff6b6b;
}

.pvp-result-overlay h2 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pvp-result-overlay p {
    font-size: 1.2rem;
    margin: 8px 0;
    color: #f8f9fa;
    font-weight: 500;
}

/* Game completion styling */
.game-coin.game-completed {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 2px solid #ffd700;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
    animation: gameCompletePulse 2s ease-in-out infinite;
}

/* Entrance animation for new games */
.game-entrance-animation {
    animation: gameSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Keyframe animations */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes resultBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes gameCompletePulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(40, 167, 69, 0.7), 0 0 40px rgba(255, 215, 0, 0.3);
    }
}

@keyframes gameSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Enhanced notifications */
.notify {
    z-index: 10000 !important;
}

/* Real-time game updates */
.game-coin.new-game {
    border: 2px solid #17a2b8;
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
    animation: newGameHighlight 3s ease-out;
}

@keyframes newGameHighlight {
    0% {
        background: linear-gradient(135deg, rgba(23, 162, 184, 0.3), rgba(23, 162, 184, 0.1));
        box-shadow: 0 0 15px rgba(23, 162, 184, 0.5);
    }
    100% {
        background: linear-gradient(135deg, rgba(23, 162, 184, 0.1), rgba(23, 162, 184, 0.05));
        box-shadow: none;
    }
}
