/* ======================================================
   ¿QUIÉN MARCÓ MÁS? - CHAMPIONS
   ====================================================== */

.juego-goleadores-champions {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* ======================================================
   CABECERA
   ====================================================== */

.cabecera-partida {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.temporada {
    font-size: 1.2rem;
    font-weight: bold;
}

.puntuacion {
    font-weight: bold;
}


/* ======================================================
   PREGUNTA
   ====================================================== */

.pregunta {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.pregunta h2 {
    margin: 0;
}


/* ======================================================
   JUGADORES
   ====================================================== */

.jugadores {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}


/* ======================================================
   TARJETA DEL JUGADOR
   ====================================================== */

.tarjeta-jugador {
    width: 300px;
    max-width: 100%;

    min-height: 380px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    padding: 20px;

    box-sizing: border-box;

    border: 2px solid #2b3b58;
    border-radius: 15px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease;
}


@media (hover: hover) and (pointer: fine) {
    .tarjeta-jugador:hover:not(.desactivada) {
        transform: translateY(-3px);
        background-color: rgba(57, 217, 255, 0.12);
        border-color: #39d9ff;
        box-shadow: 0 0 0 2px #39d9ff;
    }
}


/* ======================================================
   IMÁGENES
   ====================================================== */

.imagen-jugador {
    display: block;

    width: 100%;
    max-width: 220px;

    height: 260px;
    max-height: 260px;

    object-fit: cover;

    border-radius: 12px;

    margin-bottom: 15px;
    margin-top: 15px;
}


/* ======================================================
   NOMBRE
   ====================================================== */

.tarjeta-jugador h3 {
    margin: 5px 0 10px;

    text-align: center;

    font-size: 1.3rem;
}


/* ======================================================
   GOLES
   ====================================================== */

.goles-jugador {
    font-size: 1.1rem;
    font-weight: bold;
}


/* ======================================================
   VS
   ====================================================== */

.vs {
    flex: 0 0 auto;

    font-size: 2rem;
    font-weight: bold;

    user-select: none;
}


/* ======================================================
   ESTADOS DE RESPUESTA
   ====================================================== */

.tarjeta-jugador.correcta {
    border-color: #2ecc71;
    box-shadow: 0 0 0 4px #2ecc71;
}

.tarjeta-jugador.incorrecta {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px #e74c3c;
    background-color: rgba(231, 76, 60, 0.16);
}

.tarjeta-jugador.empate {
    box-shadow: 0 0 0 4px #f1c40f;
}

.tarjeta-jugador.desactivada {
    cursor: default;
}

.tarjeta-jugador.desactivada:hover {
    transform: none;
}


/* ======================================================
   RESULTADO
   ====================================================== */

.resultado {
    text-align: center;
    margin-top: 30px;
}

.resultado h3 {
    margin-bottom: 10px;
}

.resultado p {
    margin-bottom: 20px;
}


/* ======================================================
   BOTONES
   ====================================================== */

button.boton-siguiente,
button.boton-pasar {
    cursor: pointer;
    padding: 10px 20px;
    font-size: 1rem;
}

.boton-pasar {
    display: block;

    margin: 30px auto 0;
}


/* ======================================================
   MÓVIL
   ====================================================== */

@media (max-width: 700px) {

    .cabecera-partida {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 15px;
    }

    .temporada {
        font-size: 0.95rem;
    }

    .puntuacion {
        font-size: 0.9rem;
        text-align: right;
    }

    .pregunta {
        margin-bottom: 15px;
    }

    .pregunta h2 {
        font-size: 1.15rem;
    }

    /* Mantener los dos jugadores en la misma fila */
    .jugadores {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    /* Tarjetas más compactas */
    .tarjeta-jugador {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        min-height: auto;
        padding: 10px 6px;
        border-radius: 10px;
    }

    .tarjeta-jugador:hover {
        transform: none;
    }

    /* Reducir imágenes para que quepan ambas tarjetas */
    .imagen-jugador {
        width: 100%;
        max-width: 130px;
        height: 135px;
        max-height: 135px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 8px;
    }

    .tarjeta-jugador h3 {
        font-size: 0.95rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
        margin: 4px 0 8px;
    }

    .goles-jugador {
        font-size: 0.9rem;
        text-align: center;
    }

    /* VS más pequeño */
    .vs {
        flex: 0 0 auto;
        align-self: center;
        font-size: 1.1rem;
    }

    .resultado {
        margin-top: 20px;
    }

    .boton-pasar {
        margin-top: 20px;
    }
}

/* Móviles estrechos */
@media (max-width: 380px) {

    .jugadores {
        gap: 5px;
    }

    .tarjeta-jugador {
        padding: 8px 4px;
    }

    .imagen-jugador {
        max-width: 105px;
        height: 110px;
        max-height: 110px;
    }

    .tarjeta-jugador h3 {
        font-size: 0.82rem;
    }

    .goles-jugador {
        font-size: 0.8rem;
    }

    .vs {
        font-size: 0.95rem;
    }
}