body { 
    margin: 0; 
    overflow: hidden; 
    background-color: #000; 
    font-family: 'Courier New', Courier, monospace; 
}

canvas { 
    display: block; 
}

/* --- UI OVERLAYS --- */
#instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0f0;
    text-align: center;
    background: rgba(0, 20, 0, 0.8);
    padding: 20px;
    border: 1px solid #0f0;
    cursor: pointer;
    z-index: 10;
}

#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #0f0;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 5px #0f0;
    z-index: 5;
}

#interact-msg {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    display: none; 
    text-shadow: 0 0 5px #000;
    pointer-events: none;
    z-index: 5;
}

/* --- DIALOGUE BOX --- */
#dialogue-box {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    background: rgba(0, 10, 0, 0.95);
    border: 2px solid #0f0;
    color: #0f0;
    padding: 20px;
    display: none;
    font-size: 1.2em;
    line-height: 1.5;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    pointer-events: none;
    z-index: 15;
}

.speaker-name {
    color: #fff;
    font-weight: bold;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
    display: block;
}

.hint-text {
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
    display: block;
}

.choice-highlight {
    color: #ffff00;
    font-weight: bold;
}

/* --- LEVEL 1 TERMINAL --- */
#terminal-interface {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #001100;
    border: 2px solid #0f0;
    padding: 40px;
    text-align: center;
    color: #0f0;
    display: none;
    z-index: 20;
    box-shadow: 0 0 30px #0f0;
}

#terminal-interface h2 { margin-top: 0; color: #fff; }

#code-input {
    background: #000;
    border: 1px solid #0f0;
    color: #0f0;
    font-size: 2em;
    padding: 10px;
    width: 150px;
    text-align: center;
    letter-spacing: 5px;
    margin: 20px 0;
    font-family: inherit;
}

button {
    background: #0f0;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
}
button:hover { background: #fff; }

/* --- LEVEL 2 ARCADE OVERLAY --- */
#arcade-screen {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: #111;
    border: 4px solid #ff00ff; /* Neon Pink border */
    display: none;
    z-index: 50;
    text-align: center;
    color: #0ff;
    box-shadow: 0 0 40px #ff00ff;
}

#arcade-screen h2 { margin-top: 20px; color: #ff00ff; text-shadow: 0 0 10px #ff00ff; }
#arcade-game-content { margin: 20px; font-size: 1.5em; }

#arcade-close-btn {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: #333; color: #fff; border: 1px solid #fff;
    padding: 10px 20px; cursor: pointer;
}
#arcade-close-btn:hover { background: #555; }

/* --- WIN SCREEN --- */
#win-screen {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #0f0;
    display: none;
    z-index: 30;
}

#win-screen h1 { font-size: 4em; color: #00ff00; text-shadow: 0 0 20px #00ff00; }