I am going to list the files in the project root to understand the existing structure and dependencies.
I am going to check the package.json file to see what libraries and icon packs are already installed in the project.
I am going to install lucide-react for UI icons and canvas-confetti (with its TypeScript types) for celebrating viral tweet moments and prestige events.
I am going to read index.html to see the current page title and structure.
I am going to update index.html to set the title to "Ragebait Tycoon — Professional Internet Troll Simulator" and add a fire/troll favicon emoji and Google Fonts for a modern social media app feel.
I am going to check src/index.css to see the CSS setup and add any custom animation classes or utilities needed for the typewriter effect, Ratio Meter, and floating numbers.
I am going to update src/index.css to add custom scrollbar styles, typewriter cursor animation, pulse glows for viral tweets, and keyframes for floating engagement numbers.
I am going to create src/types/game.ts to define the TypeScript types for the game resources, tweet categories, NPC target archetypes, posted tweets, upgrades, and overall player game state.
I am going to create src/utils/sound.ts to generate sound effects using the browser's Web Audio API for typing clicks, tweet posts, viral jackpot fanfares, upgrade purchases, and suspension sirens.
I am going to create src/data/ragebaitTemplates.ts with hilarious, satirical internet debate-bro templates across 7 ragebait categories and procedural NPC target generators with distinct susceptibilities.
I am going to create src/data/upgradesData.ts with comprehensive upgrade definitions across 5 distinct tracks (Typing Speed, Ingenuity, Creativity, Automation, and Prestige Clout Shop).
I am going to create src/data/avatarsData.ts with cosmetic player handles, avatars, and bios that unlock as the player earns Clout through Prestige.
I am going to create src/hooks/useGameState.ts to manage the complete game state, including localStorage persistence, keypress typing loop, virality and reward formulas, offline earnings, heat management, and prestige resets.
I am going to update src/hooks/useGameState.ts to remove the unused RagebaitCategory import and apply isStenoProc (types +2 extra words) and isMechCrit (types +1 extra word) in the typing handler.
I am going to create src/components/Header.tsx to display the game's title, primary currencies (Engagement, Followers, Clout) with passive rate indicators, the interactive Heat Meter, sound mute toggle, Stats modal button, and Rebrand/Prestige button.
I am going to create src/components/ComposeBox.tsx for the fake Twitter compose bar, featuring word-by-word visual typing progress, active NPC reply target, category badge, force-post options, and an interactive "MASH ANY KEY OR TAP HERE" action button.
I am going to update src/components/ComposeBox.tsx to move the tooltip title attribute from the CheckCircle2 icon to its parent span element to satisfy TypeScript types.
I am going to create src/components/TwitterFeed.tsx to display the simulated Chirp/X timeline, with tabs for procedural NPC Bait Targets and the player's Posted Ragebait feed equipped with real-time Ratio Meters.
I am going to remove unused imports from src/components/TwitterFeed.tsx to ensure clean TypeScript compilation.
I am going to create src/components/UpgradeShop.tsx to display a 5-tab upgrade tree for Typing Speed, Ingenuity, Creativity, Automation, and Prestige Clout Shop with clear cost buttons and level indicators.
I am going to create src/components/ViralModal.tsx to celebrate viral tweet jackpots with confetti and an engagement breakdown.
I am going to create src/components/SuspensionModal.tsx to display the "Account Flagged for Maximum Discourse" suspension state, featuring a live countdown timer and an interactive "Post Apology Video with Ukulele 🎸" button to clear heat instantly.
I am going to create src/components/PrestigeModal.tsx to handle the "Delete Account & Rebrand" prestige system, allowing players to cash in their lifetime Engagement for Clout points and unlock new cosmetic handles.
I am going to remove the unused Flame import from src/components/PrestigeModal.tsx.
I am going to create src/components/StatsModal.tsx to display player statistics, including total tweets posted, words typed, highest viral score, total prestige resets, and active multipliers.
I am going to create src/components/HelpModal.tsx to provide players with clear instructions on the game's mechanics, satirical premise, virality multipliers, Heat risk meter, and Rebrand prestige.
I am going to check the current src/App.tsx file to see what placeholder code is there.
I am going to replace src/App.tsx with the main game layout connecting Header, ComposeBox, TwitterFeed, UpgradeShop, floating number animations, and all celebration/suspension/prestige modals.
I am going to remove the unused React import from src/App.tsx.
I am going to test-build the project using build_project to ensure there are no TypeScript errors or bundling issues.
I have built Ragebait Tycoon, a satirical idle/incremental game based on your Product Requirements Document.
What Was Built:
-
Core Gameplay & "Any Key Counts" Input Model:
- Every keyboard press (or tap on the interactive compose button) types the next word of procedurally drafted satirical ragebait takes into a fake Twitter/X compose bar.
- Can force-post early with a partial completion penalty or auto-post when a take is complete.
-
The Virality Formula & Resources:
- Engagement (Primary Currency): Earned per posted tweet scaled by category base score, ingenuity/creativity multipliers, NPC target susceptibility, and random viral rolls.
- Followers (Secondary Currency): Earned from sustained virality; gates mid-tier upgrades and powers Alt Account passive income.
- Clout (Prestige Currency): Earned when resetting progress ("Delete Account & Rebrand"), providing permanent global virality boosts and unlockable cosmetic handles (
@DevilAdvocate_PRO, @CEO_of_Takes, @RatioKing_Official).
- Heat Meter (Risk/Reward): Rises with rapid posting and viral spikes. Reaching 100% Heat triggers an "Account Flagged for Maximum Discourse" timeout state, which players can either wait out or instantly clear by clicking "Post Ukulele Apology Video 🎸".
-
Five Upgrade Tracks:
- ⌨️ Typing Speed: Caffeine Drip (+1 char/press), Two-Thumb Typing (+3 chars), Mechanical Keyboard (+5 chars & 10% instant-word crit), Voice-to-Text Mod, Stenography Bot, and Neural Interface.
- 🧠 Ingenuity: Unlocks 6 additional ragebait categories (Whataboutism, False Dichotomy, Concern Trolling, Sealioning, Galaxy Brain Nitpick, and Devil's Advocate) and boosts their category virality.
- 🎨 Creativity: Stackable delivery modifiers including ALL CAPS MODE, Emoji Spam 🔥💀 (+Crit chance), Sarcasm Font (bypasses immune NPCs), Thread Rant (1/14) (+Follower bonus), Blue Checkmark Badge, and Quote-Tweet Baiting.
- 🤖 Automation: Classic incremental idle tier including Copypasta Macro, Alt Account (Sockpuppet), Engagement Farm (Bot Network), AI Debate Bro, and Clickbait Thumbnail Generator.
- 👑 Clout Shop: Permanent prestige multipliers (, , , and ).
Files built: index.html, src/index.css, src/types/game.ts, src/utils/sound.ts, src/data/ragebaitTemplates.ts, src/data/upgradesData.ts, src/data/avatarsData.ts, src/hooks/useGameState.ts, src/components/Header.tsx, src/components/ComposeBox.tsx, src/components/TwitterFeed.tsx, src/components/UpgradeShop.tsx, src/components/ViralModal.tsx, src/components/SuspensionModal.tsx, src/components/PrestigeModal.tsx, src/components/StatsModal.tsx, src/components/HelpModal.tsx, src/App.tsx