Game: Tower Defense
Theme: Sci-Fi
Map: Winding orbital platform
Date: 2026-04-09

## Prompt
Generate a single-file 3D tower defense game using Three.js called "Orbital Quarantine".
The setting is a deep-space orbital platform where the player must stop escaping alien specimens.

### Visual Style
- Sci-fi aesthetic using Three.js primitives.
- Map: A raised metal-like path on a darker starfield/void background.
- Towers: High-tech geometric structures (e.g., metallic cylinders, glowing cores).
- Enemies: Glowing geometric shapes (spheres, cubes, tetrahedrons) representing energy beings or alien bio-forms.
- Effects: Simple particle explosions when enemies die. Laser beams or glowing projectiles for tower attacks.
- Camera: Isometric-style perspective, 45-degree angle looking down.
- Lighting: Ambient light plus directional light, maybe some point lights on towers.
- Grid: Visible grid on the buildable area.

### Core Systems
- Pathfinding: Enemies follow a set of waypoints along a winding 3D path.
- Economy: Start with 150 gold. Earn gold for kills (Scout: 5, Soldier: 10, Tank: 25, Boss: 100).
- Lives: 20 base lives. Game over at 0. Bosses take 3 lives, others 1.
- Wave System: 20 total waves. Bosses on waves 5, 10, 15, 20. 15-second break between waves with "Next Wave" button to skip.

### Towers (6 Types)
1. Blaster (Basic): Medium range, medium damage, medium fire rate. $50. Cylinder with a rotating top.
2. Railgun (Sniper): Long range, high damage, slow fire rate. $100. Tall structure with a long barrel.
3. Plasma Cannon (Splash): Medium range, area damage. $150. Squat base with a glowing sphere on top.
4. Cryo-Emitter (Slow): Short range, low damage, slows enemies by 50% for 2s. $100. Hexagonal pillar with blue glow.
5. Gatling Laser (Rapid): Medium range, very low damage, extreme fire rate. $125. Multi-barrel cylinder.
6. EMP Pulse (Special): Short range, low damage, chain lightning effect to 3 nearby enemies. $200. Floating ring structure.

### Tower Upgrades
Each tower has 3 tiers.
- Tier 1: Base cost and stats.
- Tier 2: 1.5x base cost. +40% damage, +10% range. Add a visual ring or height increase.
- Tier 3: 2.5x base cost. +100% damage, +25% range, special ability unlock (Piercing for Basic, Criticals for Sniper, Burn for Splash, Freeze for Cryo, Double shot for Rapid, Wider chain for EMP). Visual change: glowing aura or complex geometry.

### Enemies (6 Types)
1. Scout: Fast, low HP, small sphere.
2. Soldier: Medium speed, medium HP, capsule.
3. Tank: Slow speed, very high HP, large cube.
4. Sprinter: Very fast speed, low HP, sleek pyramid.
5. Healer: Medium speed, medium HP, plus-shaped object, periodically heals nearby enemies.
6. Boss: Very slow, massive HP, massive glowing icosahedron.

### UI
- HTML/CSS overlay on top of the canvas.
- HUD: Gold, Lives, Wave (current/total), Wave Timer, Speed toggle (1x/2x/3x).
- Tower Panel: Buttons to select tower to build. Show costs and stats.
- Info Panel: Select built tower to see stats, Upgrade button, Sell button (60% refund).
- State screens: Start screen, Paused, Game Over, Victory.

Ensure all code is in one single file, using only the Three.js CDN. Do NOT use any other external assets. Write out all arrays, maps, waves, and logic completely without any "// ...rest of code" omissions.

## Notes
The sci-fi theme allows us to use simple but striking geometric primitives combined with glowing emissive materials. The 3D nature is emphasized by the raised path and projectile arcs.
