I will list the files in the project to understand the structure and existing dependencies.
I will check the package.json to see what libraries and icon packages are currently installed.
I will install lucide-react for race management icons and canvas-confetti for celebratory podium finishes.
I will check the existing CSS configuration in src/index.css.
I will read index.html to inspect the title and structure.
I will update index.html with a motorsport themed title and futuristic Google Fonts (Orbitron and Rajdhani) for racing UI and telemetry dashboards.
I will update src/index.css to add custom scrollbars, keyframe animations for screen shake, glowing neon borders, and Orbitron font utility classes.
I will create src/types/game.ts containing all interface definitions for cars, upgrades, tracks, particles, and leaderboard entries.
I will create src/utils/sound.ts using Web Audio API to synthesize engine sounds, nitro turbo swooshes, cash earnings, tire screeching, and pit crew air wrench sounds without loading external audio files.
I will create src/utils/constants.ts containing initial car configurations, track layouts (Monaco, Silverstone, Tokyo Neon Night), shop upgrades, sponsor contracts, and default Hall of Fame high scores.
I will create src/utils/storage.ts for saving and loading game progress, prestige stats, and managing the local high-score table.
I will create src/components/Navbar.tsx representing the live telemetry header HUD with money indicators, KERS Overdrive status, track selector, audio mute toggle, and pause/restart buttons.
I will remove the unused Compass import in src/components/Navbar.tsx.
I will create src/components/TrackCanvas.tsx for real-time 60fps HTML5 Canvas rendering with drifting physics, tire marks, overtaking sparks, turbo flames, floating earnings, and interactive air drops.
I will create src/components/PitStopModal.tsx for the reflex-driven Pit Stop Crew mini-game where players tap wheel bolts or press Space to change tires in under 2 seconds for bonus earnings and nitro refills.
I will create src/components/DirectDriveModal.tsx allowing players to take direct keyboard or touch control of their lead race car in a 60fps Time Attack and obstacle weaving challenge.
I will create src/components/FleetPanel.tsx to let players unlock hypercars, level up individual racing stats, customize livery colors, and order manual pit stops.
I will create src/components/UpgradesPanel.tsx representing the Engineering & Research Tech Tree for upgrading engines, aerodynamics, tire compounds, and KERS efficiency.
I will create src/components/SponsorsPanel.tsx allowing players to activate corporate sponsorship contracts and claim multiplier rewards.
I will create src/components/PrestigeModal.tsx for Season Finale celebration with confetti bursts, prestige multiplier bonuses, and championship trophy awards.
I will remove the unused RotateCcw import in src/components/PrestigeModal.tsx.
I will create src/components/LeaderboardModal.tsx displaying the Hall of Fame local leaderboard table with custom player name editing and instant restart capabilities.
I will create src/components/StartScreen.tsx for the neon cyber start screen featuring an interactive tutorial overview and instant gameplay entry.
I will assemble the full application logic inside src/App.tsx, integrating all components, state management, screen shaking, sound toggles, high scores, and instant restarts.
I will remove the unused TrackType import from src/App.tsx.
I will now run build_project to verify that the application builds successfully.
I have built Apex Turbo: Grand Prix Idle Manager & Racing Tycoon, a polished, 60fps playable browser game that merges idle racing management with exciting real-time active mechanics.
✨ Highlights & Core Loop
- Immediate Fun Hook (Within 10 Seconds):
- Upon starting, your lead car zooms around a dynamic neon 2D simulation track at 60fps.
- Tap [SPACE] or click OVERDRIVE to activate the KERS nitro boost! This triggers juicy screen shake, rear turbo flame bursts, spark particles on overtakes, synthesized engine audio swooshes, and floating
+$850 cash bonuses!
- Reflex Pit Crew & Time Attack Mini-Games:
- Manual Pit Crew Challenge: When tire degradation drops low, tap wheel bolts or press keys
1-4 / SPACE to complete a sub-2.0s pit stop and earn instant cash + nitro refills!
- Take The Wheel (Manual Grand Prix Control): Switch directly into steering Car #1 using Arrow Keys / A&D or touch controls to dodge rival cars, collect nitro boost pads and sponsor tokens, and log new Hall of Fame lap records.
- Deep Idle Tycoon & Engineering Management:
- Car Fleet: Unlock up to 4 cyber hypercars, upgrade levels, and monitor individual telemetry (Top Speed, Cornering Gs, and Tire Compound health).
- Research Tech Tree: Invest race cash into Engine Combustion, Active Aerodynamics, Pirelli Compound Tires, KERS Capacitors, Pit Crew Automation, and Global Sponsor multipliers.
- Sponsor Contracts: Activate high-yield corporate sponsors (
Crimson Bull, Velocita Tires, Chronoscope Swiss).
- Juicy Feedback & Polish:
- Web Audio API Synthesizer: Custom synthesized engine hums, nitro swooshes, cash registers, tire screeches, and air wrench buzzers with zero external latency.
- Floating Telemetry & Interactive Air Drops: Tap floating glowing air crates (
⚡ or $) or cheer cars on the live track to speed them up.
- Local High-Score Table & Season Prestige:
- Complete 20 season laps to claim your Season Championship Trophy with celebratory confetti bursts, earning permanent earnings multipliers (
+0.6x).
- Log custom driver names into the Hall of Fame Leaderboard stored in local storage, with instant restart options.
Files built: index.html, src/index.css, src/types/game.ts, src/utils/sound.ts, src/utils/constants.ts, src/utils/storage.ts, src/components/Navbar.tsx, src/components/TrackCanvas.tsx, src/components/PitStopModal.tsx, src/components/DirectDriveModal.tsx, src/components/FleetPanel.tsx, src/components/UpgradesPanel.tsx, src/components/SponsorsPanel.tsx, src/components/PrestigeModal.tsx, src/components/LeaderboardModal.tsx, src/components/StartScreen.tsx, src/App.tsx