body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}
#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}
#hud {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #33ff33;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
    z-index: 5;
}
#timer-display {
    position: absolute;
    top: 10px;
    left: 20px;
    color: #33ff33;
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
    pointer-events: none;
    z-index: 5;
}
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 5;
}
#minimap {
    position: absolute;
    bottom: 20px;
    left: 20px;
    border-radius: 50%;
    border: 2px solid #33ff33;
    background-color: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.3);
}
#interaction-prompt {
    position: absolute;
    bottom: 20%;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0 #000;
    display: none;
    pointer-events: none;
    z-index: 5;
}
#terminal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.widget-container {
    border: 2px solid #33ff33;
    padding: 20px;
    width: 500px;
    background-color: #000;
    box-shadow: 0 0 20px rgba(51, 255, 51, 0.4);
}
.widget-container h2 {
    margin-top: 0;
    border-bottom: 1px dashed #33ff33;
    padding-bottom: 10px;
    text-align: center;
    letter-spacing: 2px;
    color: #33ff33;
}
.dashboard {
    margin-bottom: 20px;
    font-size: 0.95em;
    background-color: #111;
    padding: 10px;
    border: 1px solid #222;
    color: #33ff33;
}
.dashboard div { margin: 5px 0; }
.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
#guessInput {
    background-color: #050505;
    color: #33ff33;
    border: 1px solid #33ff33;
    padding: 10px;
    font-family: inherit;
    font-size: 1.5em;
    flex-grow: 1;
    letter-spacing: 10px;
    text-align: center;
}
#guessInput:focus {
    outline: none;
    background-color: #1a1a1a;
    box-shadow: 0 0 5px #33ff33;
}
.btn {
    background-color: #33ff33;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-family: inherit;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.btn:hover { background-color: #66ff66; }
.btn:disabled { background-color: #225522; color: #111; cursor: not-allowed; }
.btn-exit { background-color: #ff3333; }
.btn-exit:hover { background-color: #ff6666; }
.log-area {
    height: 250px;
    overflow-y: auto;
    border-top: 1px dashed #33ff33;
    padding-top: 10px;
    font-size: 0.9em;
    line-height: 1.4;
    color: #33ff33;
}
.log-entry { margin: 6px 0; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #33ff33; }
::-webkit-scrollbar-thumb:hover { background: #66ff66; }
#pause-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 15;
}
#pause-nav-wrapper {
    width: 100%;
}
#pause-nav-wrapper nav {
    position: static;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 20px;
    border-bottom: 1px solid #33ff33;
    box-shadow: 0 2px 10px rgba(51, 255, 51, 0.2);
}
#pause-nav-wrapper .nav-emblem img {
    height: 40px;
    width: auto;
}
#pause-nav-wrapper .nav-links {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}
#pause-nav-wrapper .nav-links a {
    color: #33ff33;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.2s;
}
#pause-nav-wrapper .nav-links a:hover {
    color: #66ff66;
}
#pause-title {
    margin-top: auto;
    margin-bottom: 30px;
    color: #33ff33;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 8px;
    text-shadow: 0 0 20px rgba(51, 255, 51, 0.6);
}
#pause-overlay > .btn {
    margin-bottom: auto;
    padding: 12px 40px;
    font-size: 1.1em;
    letter-spacing: 2px;
}

#victory-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20;
}
#victory-overlay .widget-container {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    text-align: center;
}
#victory-overlay h2 {
    color: #ffd700;
    border-bottom-color: #ffd700;
}

/* Data Extraction mini-game */
.ext-grid {
    display: grid;
    grid-template-columns: repeat(5, 49px);
    grid-template-rows: repeat(5, 49px);
    gap: 4px;
    margin: 0 auto 10px;
}
.ext-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 3px;
    border: 1px solid #222;
}
.ec-empty   { background: #0a0a0a; color: #333; border-color: #1a1a1a; }
.ec-player  { background: #003344; color: #00f2ff; border-color: #00f2ff; box-shadow: 0 0 6px rgba(0,242,255,0.5); }
.ec-drone   { background: #330011; color: #ff0055; border-color: #ff0055; box-shadow: 0 0 6px rgba(255,0,85,0.5); }
.ec-core    { background: #332200; color: #ffcc00; border-color: #ffcc00; box-shadow: 0 0 6px rgba(255,204,0,0.5); }
.ec-exit    { background: #003311; color: #00ff88; border-color: #00ff88; }
.ec-overlap { background: #330033; color: #ff00ff; border-color: #ff00ff; box-shadow: 0 0 8px rgba(255,0,255,0.6); }
.ext-controls {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 5px;
    justify-content: center;
    margin-bottom: 8px;
}
.ext-controls .btn {
    padding: 6px;
    font-size: 1em;
    min-width: 0;
}
