@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Single:wght@100..900&family=Permanent+Marker&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:ital,wght@0,400..700;1,400..700&family=Bitcount+Grid+Single:wght@100..900&family=Permanent+Marker&display=swap');
@import url('https://fonts.googleapis.com/css2?family=News+Cycle:wght@400;700&display=swap');

/* ===========================
   VARIABLES
=========================== */
:root{
    --color-secundario: #57277B;
    --color-tercero: #2F0B4A;
    --color-cuarto: #293478;
}

/* ===========================
   ESTILOS GENERALES
=========================== */
body {
    margin: 0;
    width: 100%; 
    min-height: 100vh;
    background: linear-gradient(to bottom right, #000000, #2F0B4A);
    font-family: 'Archivo Narrow', sans-serif;
    color: white;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ===========================
   HEADER
=========================== */

header img.logo-principal {
    width: 200px; 
    max-width: 40%;
    margin: 30px auto 10px; 
    display: block;
}

header h1{
    font-size: 2.2rem; 
    font-weight: bold;
    margin-bottom: 20px; 
    font-family: "Bitcount Grid Single", sans-serif;
}

/* ===========================
   AVATARES
=========================== */

main.avatares {
    background-color: var(--color-tercero);
    width: 90%; 
    max-width: 450px;
    margin: 0 auto;
    padding: 25px; 
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.6);
}

main.avatares h2 {
    font-size: 1.7rem; 
    margin-bottom: 20px; 
}

#avatares {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

#avatares img {
    width: 80px;
    max-width: 22vw;
    border-radius: 8px;
    cursor: pointer;
}

input {
    width: 90%;
    padding: 12px 10px;
    border: none;
    border-radius: 8px;
    background: #3c2453;
    color: #fff;
    margin-top: 10px; 
    font-size: 1rem; 
}

button {
    width: 90%;
    padding: 12px;
    margin-top: 20px; 
    background: #ff79c9;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    font-size: 1.1rem; 
}

/* ===========================
   CLASIFICACIÓN
=========================== */

nav img {
    width: 40px;
    margin: 10px; 
}

header img {
    width: 50px;
}

main.clasificacion {
    margin: 0 auto;
    background-color: var(--color-tercero);
    padding: 20px; 
    border-radius: 10px;
    margin-top: 15px; 
    width: 90%; 
    max-width: 500px;
}

.top {
    font-size: 1rem; 
    margin-bottom: 20px; 
}

.tarjetas {
    width: 90%; 
    margin: 10px auto; 
    padding: 10px; 
    border-radius: 10px;
    background-color: var(--color-secundario);
    color: white;
    font-weight: bold;
    text-align: left;
    font-size: 1.1rem;
}

.tarjetas:last-child {
    border: 4px solid var(--color-cuarto);
}

.puesto {
    width: 40px;
    font-size: 1.3rem; 
    display: inline-block;
}

.nombre {
    width: 60%; 
    padding-left: 10px; 
    display: inline-block;
}

.puntos {
    font-size: 1rem; 
}

/* Colores del top 3 */
.oro { background: #e4c686; color: #333; }
.plata { background: #cfd5e4; color: #333; }
.bronce { background: #d8b7a2; color: #333; }

/* ===========================
   FOOTER
=========================== */
footer {
    width: 100%;
    padding: 15px 0; 
    font-size: 0.9rem; 
    color: #FFFFFF;
    margin-top: 20px; 
}

/* ===========================
   RESPONSIVE REAL
=========================== */

@media (max-width: 600px) {

    header img.logo-principal {
        width: 50%;
    }

    header h1 {
        font-size: 1.9rem;
    }

    main.avatares {
        width: 90%;
        padding: 20px;
    }

    #avatares img {
        width: 70px;
        max-width: 26vw;
    }

    button {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {

    header h1 {
        font-size: 1.6rem;
    }

    #avatares img {
        width: 60px;
    }

    button {
        width: 100%;
    }
}
