I've created **Factory Optimizer** - a comprehensive factory production line puzzle game with all the features you requested! ## Key Features: **Core Mechanics:** - **Grid-based factory floor** (30x20) with machine placement - **5 machine types**: Resource Input, Processor, Assembler, Advanced Processor, Output Depot - **Conveyor belt system** with visual resource transport - **Real-time production simulation** with bottleneck identification via status lights **Gameplay:** - **3 modes**: Place machines, Connect belts, Delete - **Resource flow**: Raw materials → Processed → Final products - **Status indicators**: Green (running), Yellow (waiting for input), Grey (idle) - **Progress bars** on machines show processing state - **Inventory tracking** for each machine **Optimization:** - **Efficiency metric**: % of machines actively running - **Production rate**: Products per second tracking - **Money management**: Buy machines, get 50% refund on deletion **Level Progression:** 1. **Tutorial**: Basic production chain (10 products) 2. **Efficiency Challenge**: 70% efficiency + 25 products 3. **Speed Run**: 2 products/second + 50 products 4. **Master Factory**: 80% efficiency + 3/s + 100 products **Controls:** - **Click** to place machines/connect belts - **Mouse wheel/pinch** to zoom - **Middle-click/Ctrl+drag** to pan - **Touch support** with pinch-to-zoom **Visual Polish:** - Industrial color scheme (metallic greys, conveyor browns) - Machine status lights (green/yellow/red) - Animated resource movement on belts - Progress indicators **Audio:** - Machine hum sounds - Conveyor belt movement - Placement clicks - Victory fanfare The game file is ready at: `/public/factory-optimizer.html`