/* ------------------------------
   ESTILOS GENERALES
------------------------------ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #2c2c2c;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#contenedorPrincipal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ------------------------------
   MENÚ PRINCIPAL
------------------------------ */
#menu {
    text-align: center;
}

#menu h1 {
    font-size: 48px;
    color: #ffeb3b;
    text-shadow: 2px 2px 4px #000;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background-color: #ff9800;
    color: #fff;
    transition: all 0.3s;
}

button:hover {
    background-color: #ffa726;
}

/* ------------------------------
   HUD
------------------------------ */
#hud {
    display: flex;
    justify-content: space-between;
    width: 800px;
    margin-bottom: 10px;
    font-size: 20px;
}

#hud div {
    flex: 1;
    text-align: center;
}

/* ------------------------------
   CANVAS
------------------------------ */
#canvasJuego {
    border: 3px solid #fff;
    border-radius: 15px;
    background-color: #1c1c1c;
    display: block;
    margin: 0 auto;
}

/* ------------------------------
   INSTRUCCIONES
------------------------------ */
#instrucciones ul {
    list-style: none;
    padding: 0;
    font-size: 16px;
}

#instrucciones li {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#instrucciones img {
    width: 30px;
    height: 30px;
}

/* ------------------------------
   PANTALLA FINAL
------------------------------ */
#pantallaFinal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#pantallaFinal h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px #000;
    animation: aparecer 1s ease-in-out;
}

#pantallaFinal img {
    width: 400px;
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

.oculto {
    display: none;
}