App Behavior Summary
The application is a browser-based clicking game titled "St. Patrick's Gold Quest". Players click glowing coins to collect gold. The interface includes:
- A "Green Mode" toggle that changes the visual vibe
- A timed "Treasure Run" mode where coins appear and must be clicked before they vanish
- Difficulty settings (Easy, Normal, Hard) affecting spawn speed and allowed misses
- Real-time tracking of total gold, run-specific gold, streak, misses, and multiplier
- Start/Stop controls and clear instructions
The game logic runs locally without external libraries, using plain JavaScript.
Improvement Prompt
Enhance the "St. Patrick's Gold Quest" game with the following features:
1. **Visual Feedback**: Add a particle effect or animation when a coin is clicked (e.g., coin disappears with a sparkle, gold counter increments with a bounce).
2. **Sound Design**: Integrate subtle sound effects for coin clicks, streak milestones, and game start/stop. Include a toggle for mute/unmute.
3. **Green Mode Enhancement**: Make the visual change more distinct—consider switching the entire color palette to green tones, adding shamrock backgrounds, or applying a CSS filter.
4. **Progressive Difficulty**: Within each Treasure Run, gradually increase coin spawn speed and reduce visibility time after every 10 seconds.
5. **Leaderboard**: Store high scores locally using localStorage and display a top‑10 list after each run.
6. **Accessibility**: Ensure all interactive elements have proper ARIA labels and can be operated via keyboard (e.g., Space to start/stop, arrow keys to toggle modes).
7. **Mobile Optimization**: Make the game fully responsive with touch‑friendly buttons and swipe‑to‑collect gestures.
Implement these improvements while keeping the code lightweight and dependency‑free.