html, body { touch-action: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body { 
    margin: 0; 
    overflow: hidden; 
    background: #2a1a1a; 
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
#controls {
    margin-bottom: 10px;
    z-index: 40;
    display: flex;
    gap: 20px;
    align-items: center;
}
button {
    background: #000;
    border: 2px solid #ff6666;
    color: #ff6666;
    font-family: 'Courier New', monospace;
    padding: 8px 16px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 102, 102, 0.2);
    transition: all 0.2s;
}
button:hover {
    background: #ff6666;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 102, 102, 0.8);
}
#mutation-status {
    color: #ff6666;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 5px #ff0000;
}
canvas { 
    border: 4px solid #ff6666; 
    box-shadow: 0 0 20px #ff6666; 
    background: #000; 
    image-rendering: pixelated;
    cursor: crosshair;
    transition: transform 0.1s;
}
.shake {
    animation: shake 0.2s infinite;
}
@keyframes shake {
    0% { transform: translate(2px, 1px) rotate(0deg); }
    50% { transform: translate(-1px, -2px) rotate(-1deg); }
    100% { transform: translate(1px, 2px) rotate(1deg); }
}
.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;
}
.instructions {
    position: absolute;
    top: 20px;
    color: #ff6666;
    font-size: 14px;
    opacity: 0.7;
    text-align: center;
    width: 100%;
    pointer-events: none;
    text-shadow: 0 0 5px #ff0000;
}
#start-overlay { display: none !important; }
#start-text {
    color: #ff6666;
    font-size: 24px;
    text-align: center;
    animation: blink 1s infinite;
}
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 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;
}
