body {
    margin: 0;
    padding: 0;
    background-color: #030308;
    color: #00ffcc;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    height: 100vh;
}

#pantalla-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(to bottom, #000000 60%, #070d1f 100%);
    text-align: center;
}

.titulo-principal {
    color: #ff9900;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 5px;
}

.caja-historia {
    max-width: 700px;
    background: rgba(12, 15, 29, 0.9);
    border: 2px solid #ff9900;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.3);
    margin-bottom: 20px;
}

.texto-narracion {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
    min-height: 120px;
}

#pantalla-juego {
    display: none; 
    flex-direction: column;
    height: 100vh;
}

#vista-espacio {
    flex: 1;
    background: radial-gradient(circle, #090914 0%, #000000 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid #334466;
}

#estrellas {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px);
    background-size: 550px 550px;
    animation: viajar 20s linear infinite;
}

@keyframes viajar {
    from { background-position: 0 0; }
    to { background-position: 0 1000px; }
}

#alerta-radar {
    position: absolute;
    top: 20px;
    color: #ff3333;
    font-weight: bold;
    font-size: 1.3rem;
    text-shadow: 0 0 10px #ff0000;
    display: none;
    background: rgba(0,0,0,0.8);
    padding: 10px 20px;
    border: 1px solid #ff3333;
    border-radius: 5px;
}

#msg-sistema {
    font-size: 1.5rem;
    z-index: 10;
    text-align: center;
    pointer-events: none;
    color: #ffffff;
    text-shadow: 0 0 10px #00ffcc;
}

#hud-panel {
    background-color: #0c0f1d;
    height: 220px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 15px;
    box-shadow: inset 0 0 20px rgba(0, 255, 200, 0.2);
    border-top: 2px solid #00ffcc;
}

.pantalla-datos {
    border: 1px solid #334466;
    background-color: #05070f;
    padding: 15px;
    border-radius: 5px;
    margin: 0 10px;
}

.pantalla-datos h3 {
    margin-top: 0;
    color: #ff9900;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.dato-numero {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ffcc;
}

.panel-botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 10px;
}

button {
    background-color: #111a2e;
    color: #ff9900;
    border: 2px solid #ff9900;
    padding: 12px;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #ff9900;
    color: #000;
    box-shadow: 0 0 15px #ff9900;
}

.btn-accion-juego {
    color: #00ffcc;
    border-color: #00ffcc;
}

.btn-accion-juego:hover {
    background-color: #00ffcc;
    color: #000;
    box-shadow: 0 0 15px #00ffcc;
}

#btn-turbo {
    grid-column: span 2;
    background-color: #3a1515;
    border-color: #ff3333;
    color: #ff3333;
}

#btn-turbo:hover {
    background-color: #ff3333;
    color: #000;
    box-shadow: 0 0 15px #ff3333;
}
