.dinorun {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    --color-principal: #009251;
    --color-secundario: #FFD83B;

}

.dinorun #startScreen {
    background-color: var(--color-principal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 15px;
    padding: 20px;
    align-self: center;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

#startScreen h2 {
    font-size: 2.1rem;
    margin-bottom: 8px;
    color: var(--color-secundario);
    margin-top: 1rem;

}

#startScreen h4 {
    font-size: 1.2rem;
    margin-top: 10px;
    margin-bottom: 0;
    color: var(--color-secundario);
    text-align: center;
}

#startScreen p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 10px 0;
    color: #fff;
    text-align: center;
    margin: 5px;
}

@media (max-width: 992px) {
    #startScreen h2 {
        font-size: 1.8rem;
    }

    #startScreen p {
        font-size: 1.1rem;
    }

}

#startScreen .highlight {
    color: var(--color-secundario);
    font-weight: bold;
}

#startButton,
.hand-button {
    background: var(--color-secundario);
    color: var(--color-principal);
    border: none;
    padding: 16px 50px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin: 1rem 0;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
    letter-spacing: 1px;
}

#startButton:hover,
.hand-button:hover {
    background: var(--color-secundario);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.9);
}

#gameScreen {
    display: none;
    flex-direction: column;
    align-items: center;
}

#game {
    aspect-ratio: 4 / 3;
    max-width: 800px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    image-rendering: auto;
    /* Para gráficos suaves */
}

#score {
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.7);
}

#endScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    border-radius: 15px;
    padding: 20px;
}

#endScreen h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-align: center;
}

#finalScore {
    font-size: 2rem;
    margin: 20px 0;
    color: #ffcc00;
}

#resultMessage {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
}

#restartButton {
    background: linear-gradient(to bottom, #4CAF50, #2E7D32);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

#restartButton:hover {
    background: linear-gradient(to bottom, #66BB6A, #388E3C);
    transform: scale(1.05);
}

.victory {
    color: #4CAF50;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
}

.defeat {
    color: #FF5252;
    text-shadow: 0 0 15px rgba(255, 82, 82, 0.8);
}

.instructions {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    max-width: 600px;
    text-align: left;
}

.instructions h3 {
    color: #ffcc00;
    margin-bottom: 10px;
}

.instructions ul {
    padding-left: 25px;
}

.instructions li {
    margin: 8px 0;
    line-height: 1.5;
}

.key__button {
    box-sizing: border-box;
    line-height: 60px;
    font-size: 22px;
    text-align: center;
    width: 60px;
    color: var(--color-principal);
    cursor: pointer;
    margin: 0 8px;
    height: 60px;
    border-color: #f2f2f2;
    border-style: solid;
    text-shadow: 0 0.5px 1px #777, 0 2px 6px #f2f2f2;
    border-width: 1px;
    border-radius: 10px;
    background: -webkit-linear-gradient(top, #f7fab8 0%, #fee43e 80%, #faca3b 100%);
    font-family: sans-serif;
    display: inline-block;
    transition: box-shadow 0.3s ease, transform 0.15s ease;
    box-shadow: 0 0 1px #888, 0 1px 0 #fff, 0 6px 0 #C0C0C0, 0 8px 17px rgba(#444, 0.4), 2px 1px 4px rgba(#444, 0.25), -2px 1px 4px rgba(#444, 0.25), 0 9px 16px rgba(#444, 0.1);

    &:hover,
    &:focus {
        box-shadow: 0 0 1px #888, 0 1px 0 #fff, 0 4px 0 #C0C0C0, 0 2px 35px rgba(#444, 0.3), 2px 2px 4px rgba(#444, 0.25), -2px 2px 4px rgba(#444, 0.25), 0 7px 4px rgba(#444, 0.1);
        transform: translateY(2px);
    }

    &:active {
        box-shadow: 0 0 1px #888, 0 1px 0 #fff, 0 0 0 #C0C0C0, 0 0px 30px rgba(#444, 0.15), 2px 2px 4px rgba(#444, 0.25), -2px 2px 4px rgba(#444, 0.25), 0 0px 4px rgba(#444, 0.25);
        transform: translateY(4px);
    }
}

.keys-pad {
    display: flex;
    width: 95%;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 40px;
}

.no-zoom {
    touch-action: manipulation;
}

@media (min-width: 992px) {
    .keys-pad {
        display: none;
    }
}