        body {
            margin: 0;
            padding: 0;
            background: #000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            font-family: 'Courier New', monospace;
            touch-action: none;
            overflow: hidden;
        }

        #gameContainer {
            border: 4px solid #fff;
            background: #000;
            position: relative;
            max-width: 90vw;
            max-height: 60vh;
        }
        
        #resolutionDisplay {
            position: absolute;
            top: -25px;
            right: 0;
            color: #fff;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            background: rgba(0, 0, 0, 0.7);
            padding: 2px 6px;
            border: 1px solid #fff;
            pointer-events: none;
            user-select: none;
        }
        
        canvas {
            image-rendering: pixelated;
            image-rendering: -moz-crisp-edges;
            image-rendering: crisp-edges;
            width: 100%;
            height: auto;
            display: block;
        }
        
        #ui {
            color: white;
            text-align: center;
            font-size: 12px;
            margin: 10px 0;
        }
        
        #mobileControls {
            display: none;
            position: fixed;
            bottom: 20px;
            width: 100%;
            z-index: 1000;
        }
        
        #joystickContainer {
            position: relative;
            width: 100px;
            height: 100px;
            margin: 0 auto 20px;
        }
        
        #joystickBase {
            position: absolute;
            width: 100px;
            height: 100px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 50%;
        }
        
        #joystickKnob {
            position: absolute;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.4);
            border: 2px solid #fff;
            border-radius: 50%;
            top: 30px;
            left: 30px;
            pointer-events: none;
        }
        
        #actionBtn {
            width: 80px;
            height: 40px;
            background: rgba(255, 255, 255, 0.3);
            border: 2px solid #fff;
            color: #fff;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 10px;
            user-select: none;
            touch-action: manipulation;
        }
        
        #menuBtn {
            width: 80px;
            height: 40px;
            background: rgba(255, 255, 255, 0.3);
            border: 2px solid #fff;
            color: #fff;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            user-select: none;
            touch-action: manipulation;
        }
        
        #actionBtn:active, #menuBtn:active {
            background: rgba(255, 255, 255, 0.6);
        }
        
        @media (max-width: 768px) {
            #mobileControls {
                display: block;
            }
            
            #ui {
                font-size: 10px;
            }
            
            .desktop-only {
                display: none;
            }
            
            #resolutionDisplay {
                font-size: 10px;
                top: -20px;
            }
        }
        
        @media (min-width: 769px) {
            .mobile-only {
                display: none;
            }
        }