/* --------------------------------------------------
   CONFIGURACIÓN GENERAL
-------------------------------------------------- */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    background: #111;
    color: white;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* --------------------------------------------------
   BODY
-------------------------------------------------- */

body {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 100vh;
}


/* --------------------------------------------------
   BOTÓN REINICIAR
-------------------------------------------------- */

#reiniciar-partida {
    position: sticky;
    top: 0;

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

    z-index: 1000;

    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);

    padding: 12px 16px;

    background: rgba(17, 17, 17, 0.95);
    color: white;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#reiniciar-partida:active {
    opacity: 0.7;
}


/* --------------------------------------------------
   CONTENEDOR PRINCIPAL
-------------------------------------------------- */

#juego {
    width: 100%;
    max-width: 600px;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: #171717;
}


/* --------------------------------------------------
   CONTENEDOR MULTIMEDIA
-------------------------------------------------- */

#media {
    width: 100%;

    overflow: hidden;

    background: #111;
}


/* --------------------------------------------------
   IMÁGENES
-------------------------------------------------- */

#media img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 55vh;

    object-fit: contain;
}


/* --------------------------------------------------
   VÍDEOS
-------------------------------------------------- */

#media video {
    display: block;

    width: 100%;
    height: auto;

    max-height: 55vh;

    object-fit: contain;

    background: #000;
}


/* --------------------------------------------------
   CONTENIDO DE LA ESCENA
-------------------------------------------------- */

#contenido {
    width: 100%;

    padding: 24px;

    flex: 1;

    display: flex;
    flex-direction: column;
}


/* --------------------------------------------------
   TEXTO
-------------------------------------------------- */

#texto {
    white-space: pre-line;

    font-size: 18px;
    line-height: 1.55;

    margin-bottom: 30px;

    overflow-wrap: break-word;
    word-wrap: break-word;
}


/* --------------------------------------------------
   OPCIONES
-------------------------------------------------- */

#opciones {
    width: 100%;

    margin-top: auto;

    display: flex;
    flex-direction: column;

    gap: 12px;
}


/* --------------------------------------------------
   BOTONES DE DECISIÓN
-------------------------------------------------- */

.opcion {
    width: 100%;

    border: none;
    border-radius: 14px;

    padding: 16px 18px;

    background: white;
    color: #111;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;

    text-align: center;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}

.opcion:active {
    transform: scale(0.98);
    opacity: 0.85;
}


/* --------------------------------------------------
   PANTALLAS PEQUEÑAS
-------------------------------------------------- */

@media (max-width: 480px) {

    #contenido {
        padding: 20px 16px 24px;
    }

    #texto {
        font-size: 16px;
        line-height: 1.5;

        margin-bottom: 24px;
    }

    .opcion {
        padding: 15px 14px;

        font-size: 15px;
    }

    #reiniciar-partida {
        padding: 11px 14px;

        font-size: 12px;
    }

}


/* --------------------------------------------------
   PANTALLAS MUY PEQUEÑAS
-------------------------------------------------- */

@media (max-width: 350px) {

    #contenido {
        padding-left: 12px;
        padding-right: 12px;
    }

    #texto {
        font-size: 15px;
    }

    .opcion {
        font-size: 14px;
    }

}