html, body { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Courier New', Courier, monospace;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #111 0%, #000 100%);
}

#gameCanvas {
    background: #000;
    image-rendering: pixelated;
    border: 10px solid #222;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.1);
}

#start-overlay { display: none !important; }

#start-overlay h1 {
    font-size: 3rem;
    text-shadow: 0 0 10px #00ffff;
}

#start-overlay button {
    background: #00ffff;
    color: #000;
    border: none;
    padding: 1rem 2rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    margin-top: 2rem;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    color: #00ffff;
    padding: 20px;
    box-sizing: border-box;
}

#top-bar {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    background: rgba(0, 255, 255, 0.1);
    padding: 5px 10px;
}

#terminal-output {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 300px;
    height: 150px;
    overflow: hidden;
    font-size: 0.8rem;
    opacity: 0.6;
    pointer-events: none;
}

/* CRT Scanline Effect */
#game-container::after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 3px, 3px 100%;
    pointer-events: none;
    z-index: 50;
}

canvas, #gameCanvas {
    max-width: 100vw !important;
    max-height: 100dvh !important;
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    touch-action: none !important;
    box-sizing: border-box !important;
}
