* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Courier New', monospace;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Overlay de fundido a negro para las transiciones de entrada/salida */
#fadeOverlay {
    position: fixed;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 1.1s ease;
}

/* --- Pantalla de inicio (blocker) --- */
#blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #e8dcc4;
    z-index: 10;
    transition: opacity 0.4s ease;
}

#instructions {
    text-align: center;
    cursor: pointer;
    border: 2px solid #e8dcc4;
    padding: 40px 50px;
    background: rgba(20, 15, 10, 0.92);
    box-shadow: 0 0 40px rgba(232, 220, 196, 0.18);
    max-width: 90%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#instructions:hover {
    transform: scale(1.02);
    box-shadow: 0 0 50px rgba(232, 220, 196, 0.28);
}

#instructions h1 {
    font-size: 3.2em;
    margin: 0 0 25px 0;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(232, 220, 196, 0.3);
}

#instructions p {
    font-size: 1.25em;
    margin: 12px 0;
    color: #b8a992;
    line-height: 1.5;
}

#instructions .hint {
    margin-top: 30px;
    font-size: 0.95em;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* --- Crosshair --- */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

/* --- Loader --- */
#loader {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #e8dcc4;
    font-size: 1.15em;
    display: none;
    z-index: 15;
    letter-spacing: 2px;
    text-shadow: 0 0 12px rgba(232, 220, 196, 0.5);
}

/* Clase útil para ocultar el blocker desde JS */
#blocker.hidden {
    opacity: 0;
    pointer-events: none;
}