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: #000;
    font-family: 'Courier New', Courier, monospace;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#gameCanvas {
    background: #050505;
    image-rendering: pixelated;
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px #00ff0055;
}

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

#start-overlay h1 {
    font-size: 3rem;
    text-shadow: 2px 2px #ff00ff;
    margin-bottom: 0;
}

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

#start-overlay button:hover {
    background: #ff00ff;
    color: #fff;
}

#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
    color: #00ff00;
}

#stats {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    text-shadow: 1px 1px #000;
}

#message-log {
    position: absolute;
    bottom: 0;
    left: 0;
    max-height: 100px;
    overflow: hidden;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 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.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 5;
}

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;
}
