/* =============================================================================
   1. ESTILOS GENERALES Y FUENTES
   ============================================================================= */
body {
    margin: 0;
    overflow: hidden;
    font-family: 'Rubik Iso', system-ui, cursive;
    user-select: none;
    background-color: black;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.8);
}

/* =============================================================================
   2. ESTILOS DEL HUD (PANEL Y TEXTOS)
   ============================================================================= */
#hud-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    box-sizing: border-box;
    padding: 20px;
    color: #00ff00;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Rubik Iso', system-ui, cursive;
}

.hud-panel {
    background: rgba(0, 15, 0, 0.75);
    border: 1px solid #00ff00;
    padding: 12px;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.35);
    backdrop-filter: blur(2px);
}

#stats-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    min-width: 280px;
}

.hud-row {
    margin: 6px 0;
    letter-spacing: 0.5px;
}

#msg-panel {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 18px;
    padding: 8px 24px;
    display: none;
    color: #00fffa;
    border-color: #00fffa;
    box-shadow: 0 0 12px rgba(0, 255, 250, 0.4);
}

/* 
   El radar requiere Roboto Mono y ancho constante para evitar 
   desalineaciones en la matriz ASCII de puntos y símbolos.
*/
#radar-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Roboto Mono', monospace !important;
    white-space: pre;
    line-height: 13px;
    font-size: 12px;
    text-align: center;
    letter-spacing: 0;
}

/* =============================================================================
   3. PANTALLA DE INICIO E INSTRUCCIONES (DARKLIGHT)
   ============================================================================= */
#instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00;
    text-align: center;
    background: rgba(0, 0, 0, 0.9);
    border: 2px dashed #00ff00;
    padding: 30px 40px;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.25);
}

#instructions h1 {
    font-size: 3.8rem;
    margin: 0 0 10px 0;
    color: #00ffaa;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.6);
    letter-spacing: 3px;
}

#instructions p {
    margin: 8px 0;
    line-height: 1.5;
    font-size: 15px;
}
