:root {
    --primary-color: #ff8c00; /* Naranja Gotchivergas */
    --secondary-color: #f0e68c; /* Amarillo Pálido */
    --text-color: #333;
    --border-radius: 8px;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente */
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    text-align: center;
}

#intro-container {
    background-color: #d4d4d4; /* Similar al game-container */
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    padding: 20px 30px;
    width: 100%;
    max-width: 420px; /* Un poco más ancho para la intro */
    box-sizing: border-box;
}

header h1 {
    color: var(--primary-color);
    margin: 0 0 5px 0;
    font-size: 2.8em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

header h2 {
    color: var(--text-color);
    margin: 0 0 20px 0;
    font-size: 1.4em;
    font-style: italic;
}

#intro-image-container {
    margin-bottom: 25px;
}

#intro-image {
    max-width: 80%;
    height: auto;
    border-radius: 50%; /* Para que se vea circular como el personaje en el juego */
    border: 5px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#intro-text p {
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #444;
}

#intro-text p:last-child {
    margin-bottom: 25px;
}

#intro-text strong {
    color: var(--primary-color);
    font-size: 1.1em;
}

.play-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.play-button:hover,
.play-button:focus {
    background-color: #e67e00; /* Naranja más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.play-button:active {
    transform: translateY(1px);
}

/* Estilos para el botón de instalación PWA */
#install-pwa-button {
    display: none; /* Inicialmente oculto, JS lo mostrará */
    background-color: #007bff; /* Azul para "instalar" */
    color: white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none; /* Asegurarse que no tenga borde por defecto de <button> */
    cursor: pointer;
    margin-top: 15px; /* Espacio respecto al botón de jugar */
}

#install-pwa-button:hover,
#install-pwa-button:focus {
    background-color: #0056b3; /* Azul más oscuro */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#install-pwa-button:active {
    transform: translateY(1px);
}

.play-button, #install-pwa-button {
    width: auto; 
    max-width: 100%;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 10px;
    font-size: 0.8em;
    color: #555;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 400px) {
    header h1 {
        font-size: 2.2em;
    }
    header h2 {
        font-size: 1.2em;
    }
    #intro-text p {
        font-size: 0.95em;
    }
    .play-button {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    #intro-container {
        padding: 20px 15px;
    }
}