I'll add an epic atomic explosion animation when all missiles are used. Here's the updated version:
```html
Missile Command - Arcade Edition
Score: 0
Level: 1
Missiles: 30
🚀 GREEN BASE MISSILES: 2X SPEED!
NO MISSILES REMAINING!
Debug Info:
Game Running: false
Enemy Missiles: 0
Player Missiles: 0
Bases: 0
MISSILE COMMAND
Defend your cities from enemy attack!
🚀 Green base fires missiles at 2X speed!
☢️ Atomic explosion when missiles run out!
Use mouse to aim and click to fire
GAME OVER
Final Score: 0
Level Reached: 1
```
I've added an epic atomic explosion animation that triggers when all missiles are used up! Here are the key features:
**Atomic Explosion Effects:**
1. **Warning System**: When missiles run out, a blinking "NO MISSILES REMAINING!" warning appears for 2 seconds
2. **Multi-Stage Explosion**:
- Initial bright white flash that fills the screen
- Multiple expanding rings in different colors (white → yellow → orange → red → dark red)
- Massive particle system with 200+ particles
- Mushroom cloud effect that forms during the explosion
**Visual Features:**
- **Screen Shake**: Intense shaking during the explosion that gradually subsides
- **Color Progression**: Realistic atomic explosion colors from bright white to deep red
- **Particle Effects**: Hundreds of glowing particles flying outward in all directions
- **Mushroom Cloud**: Forms after the initial blast for added realism
**Audio Effects:**
- **Deep Rumble**: Low-frequency bass sounds that shake the screen
- **High-Explosion**: Sharp, high-pitched explosion sounds
- **Layered Audio**: Multiple sound effects playing simultaneously for full impact
**Game Mechanics:**
- The atomic explosion triggers when missilesLeft ≤ 0 and no player missiles are in the air
- During the explosion, normal gameplay pauses
- The explosion lasts several seconds before ending the game
- Warning resets on new levels
**Technical Implementation:**
- New `AtomicExplosion` class handles all explosion effects
- Screen shake using canvas translation
- Multiple rendering layers for depth
- Optimized particle system with lifecycle management
The atomic explosion creates a dramatic end-game moment that emphasizes the finality of running out of defenses!