        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: #0a0a0a;
            color: #00ff41;
            font-family: 'Orbitron', monospace;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            overflow: hidden;
        }
        
        #gameContainer {
            background: #111;
            border: 2px solid #00ff41;
            box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
            position: relative;
            width: 800px;
            height: 650px;
        }
        
        canvas {
            display: block;
            image-rendering: crisp-edges;
            image-rendering: pixelated;
            position: absolute;
            top: 0;
            left: 0;
        }
        
        #ui {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.8);
            padding: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #00ff41;
            z-index: 10;
            height: 50px;
        }
        
        #gameControls {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .control-btn {
            background: #1a1a1a;
            border: none;
            color: #00ff41;
            padding: 5px 10px;
            cursor: pointer;
            font-family: inherit;
            font-size: 12px;
            transition: all 0.3s;
            min-width: 40px;
            height: 30px;
        }
        
        .control-btn:hover {
            background: #00ff41;
            color: #000;
            transform: scale(1.05);
        }
        
        .control-btn.active {
            background: #00ff41;
            color: #000;
        }
        
        .ui-stat {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }
        
        .ui-stat span {
            color: #fff;
            text-shadow: 0 0 5px #00ff41;
        }
        
        #towerMenu {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: 0;
            padding: 0px 0 0 0;
            display: flex;
            gap: 16px;
            justify-content: center;
            border-bottom: none;
            z-index: 10;
            height: 80px;
            width: calc(var(--tilemap-width, 800px));
            box-sizing: border-box;
        }
        
        .tower-btn {
            background: #1a1a1a;
            border: 2px solid #00ff41;
            color: #00ff41;
            padding: 8px 10px;
            cursor: pointer;
            font-family: inherit;
            font-size: 11px;
            transition: all 0.3s;
            position: relative;
            text-align: center;
            min-width: 110px;
            height: 60px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 3px;
        }
        
        .tower-btn:hover:not(.disabled) {
            background: #00ff41;
            color: #000;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 255, 65, 0.5);
        }
        
        .tower-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .tower-btn.selected {
            background: #00ff41;
            color: #000;
            animation: pulse 1s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 15px rgba(0, 255, 65, 0.8); }
            50% { box-shadow: 0 0 25px rgba(0, 255, 65, 1); }
        }
        
        #startScreen, #endScreen, #levelSelectScreen, #levelEditorScreen {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 100;
            gap: 30px;
        }
        
        h1 {
            font-size: 48px;
            text-align: center;
            text-shadow: 0 0 20px #00ff41;
            animation: glow 2s ease-in-out infinite;
        }
        
        @keyframes glow {
            0%, 100% { text-shadow: 0 0 20px #00ff41; }
            50% { text-shadow: 0 0 30px #00ff41, 0 0 40px #00ff41; }
        }
        
        .btn-primary {
            background: transparent;
            border: 3px solid #00ff41;
            color: #00ff41;
            padding: 15px 30px;
            font-size: 20px;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .btn-primary:hover {
            background: #00ff41;
            color: #000;
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
        }
        
        .instructions {
            text-align: center;
            max-width: 600px;
            line-height: 1.6;
            color: #aaa;
        }
        
        .stats {
            text-align: center;
            font-size: 18px;
            color: #fff;
        }
        
        .hidden {
            display: none !important;
        }
        
        #timerControl {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 2px;
            background: rgba(0, 0, 0, 0.9);
            padding: 5px;
            border: 2px solid #00ff41;
            border-radius: 4px;
        }

        #levelGrid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            margin: 20px 0;
            max-width: 500px;
        }

        .level-btn {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            background: transparent;
            border: 2px solid #00ff41;
            color: #00ff41;
            padding: 10px;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.3s;
            min-height: 70px;
        }

        .level-btn:hover:not(.disabled) {
            background: #00ff41;
            color: #000;
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(0, 255, 65, 0.6);
        }

        .level-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            border-color: #555;
            color: #555;
        }

        /* Level Editor Styles */
        #levelEditorScreen {
            flex-direction: column;
            gap: 0;
            padding: 10px;
            justify-content: flex-start;
        }

        #editorUI {
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid #00ff41;
            padding: 10px;
            border-radius: 8px;
            width: 100%;
            order: 2;
            margin-top: 420px;
        }

        #editorCanvas {
            border: 2px solid #00ff41;
            background: #0a0a0a;
            cursor: crosshair;
            order: 1;
            margin-top: 10px;
            margin-left: 86px;
        }

        .editor-controls {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .editor-row {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .editor-row label {
            color: #00ff41;
            font-weight: bold;
            min-width: 100px;
        }

        .editor-row input {
            background: #1a1a1a;
            border: 2px solid #00ff41;
            color: #00ff41;
            padding: 8px 12px;
            font-family: inherit;
            font-size: 14px;
            flex: 1;
            max-width: 200px;
        }

        .editor-row input:focus {
            outline: none;
            box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
        }

        .tool-buttons, .action-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .tool-btn {
            background: #1a1a1a;
            border: 2px solid #00ff41;
            color: #00ff41;
            padding: 8px 16px;
            cursor: pointer;
            font-family: inherit;
            font-size: 12px;
            transition: all 0.3s;
        }

        .tool-btn:hover {
            background: #00ff41;
            color: #000;
        }

        .tool-btn.active {
            background: #00ff41;
            color: #000;
        }


        #editorStatus {
            color: #fff;
            text-align: center;
            font-size: 14px;
            margin-top: 10px;
        }
