html, body { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body { 
    margin: 0; 
    overflow: hidden; 
    background: #000; 
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
canvas { 
    border: 4px solid #fff; 
    background: #000; 
    image-rendering: pixelated;
}
.scanline {
    position: fixed;
    left: 0; top: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px;
    z-index: 20;
}
#status {
    margin-top: 10px;
    font-size: 12px;
    color: #fff;
    opacity: 0.5;
}
#start-overlay { display: none !important; }
#start-text {
    color: #fff;
    font-size: 24px;
}
.shake {
    animation: shake 0.1s infinite;
}
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    50% { transform: translate(-1px, -2px) rotate(-1deg); }
    100% { transform: translate(1px, 2px) rotate(1deg); }
}
.invert {
    filter: invert(1);
}

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