/* === DUEL ZOÉ === */
.game-arena {
    background-color: #222;
    color: white;
    padding: 20px;
    border: 5px solid #ff9900;
    border-radius: 15px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.intro-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.challenger-img {
    width: 200px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 20px;
}

.countdown-text {
    font-size: 5rem;
    font-weight: 900;
    color: #00ffff;
    text-shadow: 4px 4px 0 #ff00ff;
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.winner-img {
    max-width: 100%;
    max-height: 400px;
    border: 5px solid gold;
    box-shadow: 0 0 20px gold;
    animation: zoomIn 0.5s ease-out;
}

.loser-text {
    font-size: 4rem;
    color: red;
    text-transform: uppercase;
    animation: shake 0.5s;
}

.score-text {
    font-size: 1.5rem;
    margin: 10px 0;
}

.highlight-score {
    color: #00ff00;
    font-weight: bold;
    font-size: 2rem;
}

@keyframes pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-10px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(10px);
    }
}

/* 3D CUBE ANIMATION (THREE.JS CONTAINER) */
.cube-spinner {
    /* Le conteneur est maintenant géré par Three.js */
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}