/**
 * Gooner Training Academy Game Mode Data
 * Focused on edging, porn worship, and developing dedicated gooning habits
 */

const trainingGameData = {
    // Gooning-focused training tasks
    mainTasks: [
        {
            id: 'edge-focus-training',
            text: "Edging Focus Training",
            difficulty: "Medium",
            interactiveType: "focus-hold",
            story: "Train your ability to stay focused on porn while edging. Maintain perfect concentration on the screen while stroking - no distractions allowed.",
            duration: 60,
            instructions: "Keep your eyes on the porn and focus only on gooning"
        },
        {
            id: 'stroking-endurance-training',
            text: "Stroking Endurance Training",
            difficulty: "Easy",
            interactiveType: "focus-hold",
            story: "Build your stroking stamina and endurance. Maintain continuous stroking motion for the full duration while staying focused on the porn.",
            duration: 90,
            instructions: "Stroke continuously without stopping - build your gooning endurance"
        },
        {
            id: 'extended-edging-session',
            text: "Extended Edging Marathon",
            difficulty: "Hard",
            interactiveType: "focus-hold",
            story: "Build your gooning endurance by maintaining the perfect edge for an extended period. Real gooners can edge for hours - let's build that stamina.",
            duration: 180,
            instructions: "Edge continuously without cumming - prove your gooner dedication"
        }
    ],

    // Training scenarios
    scenarios: [
        {
            id: 'scenario-training-regimen',
            text: "Gooner Training Academy",
            difficulty: "Medium",
            interactiveType: "scenario-adventure",
            interactiveData: {
                title: "Advanced Gooner Training Academy",
                steps: {
                    start: {
                        type: 'choice',
                        mood: 'encouraging',
                        story: "Welcome to the Gooner Training Academy. Your instructor looks you up and down with approval. 'I can see you're ready to become a dedicated gooner. We'll train you to edge longer, watch more porn, and develop proper gooning habits. Which area of gooner training would you like to focus on first?'",
                        choices: [
                            {
                                text: "Edging endurance training",
                                type: "endurance",
                                preview: "Learn to edge for hours without cumming",
                                nextStep: "edging_path"
                            },
                            {
                                text: "Porn addiction enhancement",
                                type: "addiction", 
                                preview: "Deepen your love and need for pornography",
                                nextStep: "addiction_path"
                            },
                            {
                                text: "Gooning mindset development",
                                type: "mindset",
                                preview: "Embrace the gooner lifestyle completely",
                                nextStep: "mindset_path"
                            },
                            {
                                text: "Advanced masturbation techniques",
                                type: "technique",
                                preview: "Master sophisticated stroking methods",
                                nextStep: "technique_path"
                            }
                        ]
                    },
                    edging_path: {
                        type: 'choice',
                        mood: 'instructional',
                        story: "Your instructor leads you to the edging training area. 'Real gooners can edge for hours, building excitement without release. This is the foundation of gooning - the ability to stay on the edge indefinitely while worshipping porn. How would you like to begin your edging training?'",
                        choices: [
                            {
                                text: "Start with basic 30-minute edges",
                                preview: "Build fundamental edging skills",
                                nextStep: "basic_edging"
                            },
                            {
                                text: "Jump to marathon edging sessions",
                                preview: "Train for multi-hour gooning",
                                nextStep: "marathon_edging"
                            },
                            {
                                text: "Learn advanced edging patterns",
                                preview: "Master complex stroking rhythms",
                                nextStep: "pattern_edging"
                            }
                        ]
                    },
                    basic_edging: {
                        type: 'action',
                        mood: 'patient',
                        story: "Your instructor guides you through proper edging technique. 'Start slow, build arousal over 30 minutes. Feel how the porn makes you throb. This is just the beginning - real gooners edge for hours. Focus on the pleasure, worship the porn, but don't you dare cum.'",
                        actionText: "30-minute basic edging training session",
                        duration: 120,
                        nextStep: "edging_assessment"
                    },
                    pattern_edging: {
                        type: 'action',
                        mood: 'technical',
                        story: "Your instructor demonstrates complex stroking patterns. 'Advanced gooners master sophisticated rhythms and techniques. You'll learn variable speed patterns, pressure control, and rhythm changes that maximize pleasure while maintaining perfect edge focus.'",
                        actionText: "Advanced edging pattern training",
                        duration: 150,
                        nextStep: "edging_assessment"
                    },
                    edging_assessment: {
                        type: 'choice',
                        mood: 'evaluative',
                        story: "Your instructor evaluates your edging progress. 'Good foundation! Now let's see how ready you are for more advanced training. Your edging skills are developing nicely. What aspect would you like to focus on next?'",
                        choices: [
                            {
                                text: "Continue building endurance",
                                preview: "Work on longer edging sessions",
                                nextStep: "endurance_mastery"
                            },
                            {
                                text: "Move to advanced training",
                                preview: "Progress to expert techniques",
                                nextStep: "advanced_training"
                            },
                            {
                                text: "Explore different training paths",
                                preview: "Try other aspects of gooner training",
                                nextStep: "addiction_path"
                            }
                        ]
                    },
                    marathon_edging: {
                        type: 'action',
                        mood: 'intense',
                        story: "Your instructor nods approvingly. 'Ambitious! Let's see if you can handle real gooner training. Edge continuously for 2 hours, building and building but never cumming. Feel how the porn controls you, how your cock throbs for it. This is what true gooners do - they live on the edge.'",
                        actionText: "2-hour marathon edging session",
                        duration: 300,
                                nextStep: "endurance_mastery"
                    },
                    addiction_path: {
                        type: 'choice',
                        mood: 'seductive',
                        story: "Your instructor's eyes light up. 'Excellent choice. Porn addiction is the heart of gooning. We'll deepen your need for pornography, make you crave it more than anything else. Which aspect of porn addiction should we enhance first?'",
                        choices: [
                            {
                                text: "Increase daily porn consumption",
                                preview: "Train to watch more porn every day",
                                nextStep: "consumption_training"
                            },
                            {
                                text: "Develop porn dependency habits",
                                preview: "Make porn essential to your daily life",
                                nextStep: "dependency_training"
                            },
                            {
                                text: "Master porn worship techniques",
                                preview: "Learn to properly worship pornography",
                                nextStep: "worship_training"
                            }
                        ]
                    },
                    consumption_training: {
                        type: 'action',
                        mood: 'addictive',
                        story: "Your instructor pulls up endless screens of porn. 'Real gooners spend hours every day with porn. We'll train you to consume more, crave more, need more. Edge while watching multiple videos - let the porn flood your mind and control your cock.'",
                        actionText: "Multi-screen porn consumption while edging",
                        duration: 200,
                                nextStep: "addiction_deepening"
                    },
                    dependency_training: {
                        type: 'action',
                        mood: 'dependent',
                        story: "Your instructor nods approvingly. 'Excellent choice. We'll make porn absolutely essential to your daily life. You'll learn to depend on pornography for pleasure, comfort, and arousal. Start by edging while thinking about how much you need porn every single day. You cannot live without porn. When you aren't stroking to porn you are thinking about stroking to porn. Porn.... Porn.... PORN!!!!'",
                        actionText: "Porn dependency conditioning session",
                        duration: 200,
                                nextStep: "addiction_deepening"
                    },
                    worship_training: {
                        type: 'action',
                        mood: 'reverent',
                        story: "Your instructor's voice becomes reverent. 'Porn worship is an art form. You'll learn to truly appreciate and worship pornography as your master. Get on your knees and edge slowly while expressing gratitude to porn for controlling your life and giving you purpose. Thank porn for everything it does for you. Thank pornstars for their dedication to their artform. Porn is so beautiful and powerful - worship it with all your heart.'",
                        actionText: "Porn worship and gratitude training",
                        duration: 240,
                                nextStep: "addiction_deepening"
                    },
                    addiction_deepening: {
                        type: 'choice',
                        mood: 'intense',
                        story: "Your instructor reviews your addiction training progress. 'Excellent! Your porn dependency is developing beautifully. Now let's deepen your addiction even further. Choose your next level of porn addiction enhancement.'",
                        choices: [
                            {
                                text: "Increase daily viewing requirements",
                                preview: "Commit to more hours of daily porn",
                                nextStep: "viewing_commitment"
                            },
                            {
                                text: "Develop porn craving triggers",
                                preview: "Learn to crave porn constantly",
                                nextStep: "craving_training"
                            },
                            {
                                text: "Complete addiction certification",
                                preview: "Graduate as a certified porn addict",
                                nextStep: "advanced_training"
                            }
                        ]
                    },
                    viewing_commitment: {
                        type: 'action',
                        mood: 'demanding',
                        story: "Your instructor becomes more demanding. 'Real porn addicts watch for hours every day. Commit to spending at least 30 minutes with pornography right here and now. Edge continuously while fullfilling this commitment - feel how natural and necessary this is.'",
                        actionText: "Daily porn viewing commitment session",
                        duration: 1800,
                                nextStep: "advanced_training"
                    },
                    craving_training: {
                        type: 'action',
                        mood: 'addictive',
                        story: "Your instructor smiles wickedly. 'We'll train your brain to crave porn constantly. Every few minutes, you'll think about pornography and feel the need to stroke. Edge while programming these craving patterns into your mind.'",
                        actionText: "Constant porn craving conditioning",
                        duration: 210,
                                nextStep: "advanced_training"
                    },
                    mindset_path: {
                        type: 'choice',
                        mood: 'transformative',
                        story: "Your instructor smiles knowingly. 'The gooner mindset is everything. We'll transform how you think, making porn and masturbation your primary focus. You'll learn to embrace being a dedicated gooner. What aspect of the gooner mindset should we develop?'",
                        choices: [
                            {
                                text: "Embrace porn as your master",
                                preview: "Accept porn's control over your life",
                                nextStep: "submission_training"
                            },
                            {
                                text: "Develop gooner identity and pride",
                                preview: "Take pride in being a dedicated gooner",
                                nextStep: "identity_training"
                            },
                            {
                                text: "Learn gooner lifestyle habits",
                                preview: "Integrate gooning into daily life",
                                nextStep: "lifestyle_training"
                            }
                        ]
                    },
                    submission_training: {
                        type: 'action',
                        mood: 'dominant',
                        story: "Your instructor's voice becomes commanding. 'Good. Now you'll learn to submit completely to porn. Edge while repeating: I live to serve porn. Porn controls my cock. I am nothing without pornography. Feel how true these words are as you stroke.'",
                        actionText: "Porn submission mantras while edging",
                        duration: 150,
                                nextStep: "advanced_training"
                    },
                    technique_path: {
                        type: 'choice',
                        mood: 'expert',
                        story: "Your instructor leads you to an advanced training area. 'Masturbation technique is crucial for gooners. We'll teach you sophisticated stroking methods, rhythm control, and edging patterns that will make your sessions more intense and satisfying. Which technique interests you most?'",
                        choices: [
                            {
                                text: "Multi-rhythm stroking patterns",
                                preview: "Master complex stroking rhythms",
                                nextStep: "rhythm_training"
                            },
                            {
                                text: "Extended pleasure techniques",
                                preview: "Learn to maximize gooning pleasure",
                                nextStep: "pleasure_training"
                            },
                            {
                                text: "Advanced edging control methods",
                                preview: "Perfect your edge focus",
                                nextStep: "control_training"
                            }
                        ]
                    },
                    rhythm_training: {
                        type: 'action',
                        mood: 'rhythmic',
                        story: "Your instructor demonstrates complex stroking rhythms. 'Master gooners understand rhythm is everything. Try 3 short strokes in rapid succession focusing just on the tip followed by 2 long strokes going the full length of your cock. Practice these patterns while edging to perfect porn.'",
                        actionText: "Multi-rhythm stroking pattern training",
                        duration: 180,
                                nextStep: "edging_assessment"
                    },
                    pleasure_training: {
                        type: 'action',
                        mood: 'euphoric',
                        story: "Your instructor's voice becomes hypnotic. 'We'll teach you to extract maximum pleasure from every stroke. Learn to savor each sensation, multiply your arousal, and experience gooning bliss like never before. Place your finger of your other hand on your perineum to enhance the pleasure while edging. Feel every stroke intensify as you stroke small circles while stroking the length of your cock.'",
                        actionText: "Extended pleasure maximization training",
                        duration: 200,
                                nextStep: "advanced_training"
                    },
                    control_training: {
                        type: 'action',
                        mood: 'precise',
                        story: "Your instructor becomes serious. 'Control is what separates gooners from casual masturbators. You'll learn to edge precisely at the perfect point, maintaining excitement for hours without accident. Master this and you master gooning. Bring yourself right to the edge and stop. Wait for your erection to wane and then repeat it. See how many times you can do this before the timer runs out.'",
                        actionText: "Advanced edge focus mastery",
                        duration: 240,
                                nextStep: "advanced_training"
                    },
                    identity_training: {
                        type: 'action',
                        mood: 'transformative',
                        story: "Your instructor speaks with pride. 'Embrace your identity as a dedicated gooner. This isn't just what you do - this is who you are. Watch the porn on your screen and edge while reminding yourself that you are a proud gooner, devoted to the art of pleasure. Nothing else matters more than pleasuring yourself to perfect porn.'",
                        actionText: "Gooner identity acceptance training",
                        duration: 180,
                                nextStep: "advanced_training"
                    },
                    lifestyle_training: {
                        type: 'action',
                        mood: 'practical',
                        story: "Your instructor becomes practical. 'Real gooners integrate their lifestyle completely. You'll learn to schedule daily gooning time, organize your porn collection, and make gooning a central part of your routine. Edge while planning your gooner lifestyle.'",
                        actionText: "Gooner lifestyle integration training",
                        duration: 160,
                                nextStep: "advanced_training"
                    },
                    endurance_mastery: {
                        type: 'action',
                        mood: 'accomplished',
                        story: "Your instructor observes your marathon session with approval. 'Excellent endurance! You're developing real gooner stamina. Now let's push further - edge for another hour while worshipping different types of porn. Feel how each category affects your arousal differently.'",
                        actionText: "Extended endurance with varied porn categories",
                        duration: 240,
                                nextStep: "advanced_training"
                    },
                    advanced_training: {
                        type: 'choice',
                        mood: 'expert',
                        story: "Your instructor reviews your progress with satisfaction. 'Outstanding development! You're ready for advanced gooner training. These techniques will make you a true porn addict and dedicated gooner.'",
                        choices: [
                            {
                                text: "Master-level gooning challenges",
                                preview: "Ultimate gooner difficulty tests",
                                nextStep: "master_gooning"
                            },
                            {
                                text: "Become a certified gooner",
                                preview: "Graduate as a dedicated gooner",
                                nextStep: "gooner_graduation"
                            },
                            {
                                text: "Continue advanced edging training",
                                preview: "Further develop your skills",
                                nextStep: "endurance_mastery"
                            }
                        ]
                    },
                    master_gooning: {
                        type: 'action',
                        mood: 'extreme',
                        story: "Your instructor presents the ultimate challenge. 'This is master-level gooner training. You will edge for 6 hours straight, cycling through different porn categories, changing techniques every 30 minutes, while maintaining perfect excitement without cumming. This is what separates casual masturbators from true gooners.'",
                        actionText: "Master-level 6-hour gooning marathon",
                        duration: 360,
                                nextStep: "gooner_graduation"
                    },
                    gooner_graduation: {
                        type: 'ending',
                        mood: 'proud',
                        story: "Your instructor stands and salutes you. 'Congratulations! You have completed the Advanced Gooner Training Academy with distinction. You are now a certified gooner, dedicated to porn and masturbation. Your commitment to edging and porn worship is exemplary.'",
                        endingText: "GOONER CERTIFICATION ACHIEVED! You are now a certified dedicated gooner, committed to spending your life edging to pornography.",
                        outcome: "certified_gooner"
                    }
                }
            }
        },
        /*
        {
            id: 'scenario-training-session',
            text: "Quick Endurance Assessment",
            difficulty: "Easy",
            interactiveType: "scenario-adventure",
            interactiveData: {
                title: "Endurance Level Assessment",
                steps: {
                    start: {
                        type: 'choice',
                        mood: 'assessment',
                        story: "Welcome to your endurance assessment. We'll quickly determine your current stamina level and provide appropriate training. How much edging experience do you have?",
                        choices: [
                            {
                                text: "Complete beginner",
                                type: "novice",
                                preview: "Start with 30-second sessions",
                                nextStep: "novice_training"
                            },
                            {
                                text: "Some experience",
                                type: "experienced",
                                preview: "Try 2-3 minute sessions",
                                nextStep: "experienced_training"
                            },
                            {
                                text: "Very experienced",
                                type: "veteran",
                                preview: "Challenge with 5+ minute sessions",
                                nextStep: "veteran_training"
                            }
                        ]
                    },
                    novice_training: {
                        type: 'action',
                        mood: 'gentle',
                        story: "Perfect for beginners! Start with just 30 seconds of steady edging. Focus on building the foundation - maintain arousal without going over the edge.",
                        actionText: "30-second beginner assessment",
                        duration: 30,
                                nextStep: "completion"
                    },
                    experienced_training: {
                        type: 'action',
                        mood: 'challenging',
                        story: "Good experience level! Let's test your stamina with 2 minutes of continuous edging. Maintain steady arousal and prove your developing endurance.",
                        actionText: "2-minute intermediate assessment",
                        duration: 120,
                                nextStep: "completion"
                    },
                    veteran_training: {
                        type: 'action',
                        mood: 'intense',
                        story: "Impressive experience! Time for a real challenge - 5 minutes of sustained edging. Show your dedication and endurance mastery.",
                        actionText: "5-minute veteran assessment",
                        duration: 300,
                                nextStep: "completion"
                    },
                    completion: {
                        type: 'completion',
                        mood: 'satisfied',
                        story: "Assessment complete! Your endurance level has been recorded. Continue practicing daily to build even greater stamina and become a more dedicated gooner.",outcome: "assessed"
                    }
                }
            }
        }
        */
    ],

    // ========================================
    // ACADEMY CAMPAIGN SCENARIOS (Levels 1-30)
    // ========================================
    
    academyScenarios: {
        // FOUNDATION ARC (Levels 1-5)
        level1: {
            id: 'academy-level-1',
            name: 'Edge Training 101',
            arc: 'Foundation',
            level: 1,
            duration: 300, // 5 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 1: Edge Training 101',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'welcoming',
                        story: 'Welcome to The Academy, aspiring gooner. I am your instructor, and I will guide your transformation. Today, we begin with the foundation of all gooning: the edge. You will learn to ride the wave of pleasure without release. Are you ready to begin your journey?',
                        nextStep: 'intro_complete'
                    },
                    intro_complete: {
                        type: 'action',
                        mood: 'instructional',
                        story: 'Your first lesson is simple: edge 5 times. Stroke yourself to the very brink, feel that rush of pleasure, then stop. Hold yourself there. Feel it pulsing, demanding release. But you will not give in. This is control. This is the beginning.',
                        interactiveType: 'edge',
                        params: { count: 5, instruction: 'Edge 5 times - slowly and deliberately' },
                        nextStep: 'first_edges_done'
                    },
                    first_edges_done: {
                        type: 'story',
                        mood: 'praising',
                        story: 'Good. Very good. You felt it, didn\'t you? That moment where your body screamed for release, but your mind held firm. That is power. That is what we are building here. You have completed your first training session. Level 2 awaits when you\'re ready.',
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'satisfied',
                        story: '✅ Level 1 Complete - You have taken your first steps into The Academy.',
                        outcome: 'level1_complete'
                    }
                }
            }
        },

        level2: {
            id: 'academy-level-2',
            name: 'Rhythm & Control',
            arc: 'Foundation',
            level: 2,
            duration: 600, // 10 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 2: Rhythm & Control',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'instructional',
                        story: 'Welcome back. You\'ve proven you can edge. Now we add rhythm. Gooning isn\'t just about edging - it\'s about finding your flow, your pace, your perfect stroking cadence. We will also begin building your library, the collection that will fuel your transformation.',
                        nextStep: 'library_time'
                    },
                    library_time: {
                        type: 'action',
                        mood: 'practical',
                        story: 'First, let\'s build your library. Add a directory of content to The Academy system. This collection will grow with you, becoming more organized and powerful as you progress. A gooner with a curated library is a gooner with focus.',
                        interactiveType: 'add-library-directory',
                        params: { 
                            suggestedTags: ['amateur', 'solo'] 
                        },
                        nextStep: 'rhythm_intro'
                    },
                    rhythm_intro: {
                        type: 'action',
                        mood: 'focused',
                        story: 'Good. Now follow the rhythm pattern: slow... fast... slow. Let the metronome guide your hand. Feel how changing pace builds different sensations. Slow is teasing. Fast is intense. Together, they create perfect edging rhythm.',
                        interactiveType: 'rhythm',
                        params: { pattern: 'slow-fast-slow', duration: 180 },
                        nextStep: 'final_edges'
                    },
                    final_edges: {
                        type: 'action',
                        mood: 'encouraging',
                        story: 'Excellent. Your library is growing. Now edge for 2 minutes to cement this lesson. Feel how the rhythm you learned makes edging smoother, more natural. This is progress.',
                        interactiveType: 'edge',
                        params: { duration: 120, instruction: 'Edge for 2 minutes using your new rhythm' },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'satisfied',
                        story: '✅ Level 2 Complete - Your rhythm improves. Your library grows. You are evolving.',
                        outcome: 'level2_complete'
                    }
                }
            }
        },

        level3: {
            id: 'academy-level-3',
            name: 'Visual Immersion',
            arc: 'Foundation',
            level: 3,
            duration: 900, // 15 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 3: Visual Immersion',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'anticipatory',
                        story: 'You have learned edges. You have learned rhythm. Now we add the third element: visual stimulation. Porn is not a distraction - it is fuel. It is the catalyst that transforms simple masturbation into gooning. Let me show you.',
                        nextStep: 'video_start'
                    },
                    video_start: {
                        type: 'action',
                        mood: 'intense',
                        story: 'I am starting a video from your library. Watch it. Let it fill your vision. Let it fill your mind. This is what you stroke to now. Not fantasy. Not imagination. Reality captured on screen.',
                        interactiveType: 'video-start',
                        params: { player: 'focus', tags: ['amateur'] },
                        nextStep: 'tagging_task'
                    },
                    tagging_task: {
                        type: 'action',
                        mood: 'practical',
                        story: 'While you watch, you will learn organization. Tag at least 10 files in your library. Mark them with what they contain: POV? Blowjob? Riding? An organized library is a powerful library. Tag them while you stroke.',
                        interactiveType: 'tag-files',
                        params: {
                            minFiles: 10,
                            suggestedTags: ['pov', 'blowjob', 'riding', 'amateur']
                        },
                        nextStep: 'visual_edges'
                    },
                    visual_edges: {
                        type: 'action',
                        mood: 'commanding',
                        story: 'Good. Now edge while watching. Feel the difference. The video makes it so much more intense, doesn\'t it? This is why gooners worship porn. It amplifies everything.',
                        interactiveType: 'edge',
                        params: { 
                            duration: 300, // 5 minutes of edging
                            instruction: 'Edge and stroke while watching the video',
                            keepVideoPlaying: true // Signal to keep video active
                        },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'satisfied',
                        story: '✅ Level 3 Complete - You have unlocked visual training. Porn is your companion now.',
                        outcome: 'level3_complete'
                    }
                }
            }
        },

        level4: {
            id: 'academy-level-4',
            name: 'Multi-Tasking Challenge',
            arc: 'Foundation',
            level: 4,
            duration: 1200, // 20 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 4: Multi-Tasking Challenge',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'challenging',
                        story: 'You are progressing well. Now we test if you can combine what you\'ve learned. Rhythm + Video + Edges. All at once. This is where casual masturbators fail, but gooners thrive. Show me you can handle it.',
                        nextStep: 'everything_at_once'
                    },
                    everything_at_once: {
                        type: 'action',
                        mood: 'intense',
                        story: 'Video starting. Now follow this rhythm: FAST... slow... FAST. While watching. While edging. Your brain is being rewired to handle multiple streams of pleasure at once. This is gooner multitasking.',
                        interactiveType: 'rhythm',
                        params: { pattern: 'fast-slow-fast', duration: 240 },
                        nextStep: 'sustained_edges'
                    },
                    sustained_edges: {
                        type: 'action',
                        mood: 'demanding',
                        story: 'Don\'t stop the video. Don\'t lose the rhythm. Now edge 20 times. I know it\'s hard. I know your hand is tired. But gooners don\'t quit. Gooners push through. Edge. Again. AGAIN.',
                        interactiveType: 'edge',
                        params: { count: 20, instruction: 'Edge 20 times - maintain rhythm and focus' },
                        nextStep: 'almost_there'
                    },
                    almost_there: {
                        type: 'story',
                        mood: 'encouraging',
                        story: 'Keep going... faster... you\'re doing it. You\'re combining all the skills. This is what a gooner looks like - pumping, watching, edging, completely immersed. Almost there...',
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'triumphant',
                        story: '✅ Level 4 Complete - You can multi-task like a true gooner. Foundation Arc nearly complete.',
                        outcome: 'level4_complete'
                    }
                }
            }
        },

        level5: {
            id: 'academy-level-5',
            name: 'Foundation Checkpoint',
            arc: 'Foundation',
            level: 5,
            isCheckpoint: true,
            duration: 1500, // 25 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 5: Foundation Checkpoint',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'ceremonial',
                        story: 'You have reached your first checkpoint. Levels 1-4 have taught you edges, rhythm, videos, and multi-tasking. Now we test everything together and update your preferences. This is a milestone. Prove you are ready for what comes next.',
                        nextStep: 'preference_update'
                    },
                    preference_update: {
                        type: 'action',
                        mood: 'reflective',
                        story: 'First, tell The Academy what you crave. What themes excite you? What content makes you hardest? Update your preferences so your training can be personalized. This is your checkpoint configuration.',
                        interactiveType: 'update-preferences',
                        params: { checkpoint: 5 },
                        nextStep: 'recap_training'
                    },
                    recap_training: {
                        type: 'action',
                        mood: 'intense',
                        story: 'Now we recap all your training. Video on. Rhythm: steady. Edge as many times as you can in the time remaining. This is your Foundation Arc final exam. Show me you\'ve learned.',
                        interactiveType: 'free-edge-session',
                        params: { duration: 900, allowedFeatures: ['video', 'rhythm'] },
                        nextStep: 'arc_complete'
                    },
                    arc_complete: {
                        type: 'story',
                        mood: 'triumphant',
                        story: 'Foundation Arc Complete. You are no longer a beginner. You understand edges. You have rhythm. You use porn as fuel. Arc 2 awaits: Feature Discovery. Get ready - things are about to get much more intense.',
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'accomplished',
                        story: '✅🎯 Level 5 Complete - FOUNDATION ARC FINISHED. Feature Discovery begins next.',
                        outcome: 'level5_complete'
                    }
                }
            }
        },

        // FEATURE DISCOVERY ARC (Levels 6-10)
        level6: {
            id: 'academy-level-6',
            name: 'The Observer',
            arc: 'Feature Discovery',
            level: 6,
            duration: 1800, // 30 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 6: The Observer',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'intriguing',
                        story: 'Welcome to Feature Discovery. You have mastered the basics. Now we unlock advanced tools. Today: the webcam. You will watch yourself goon. Many resist this at first. But gooners embrace it. Let me show you why.',
                        nextStep: 'webcam_intro'
                    },
                    webcam_intro: {
                        type: 'action',
                        mood: 'revealing',
                        story: 'Turn on your webcam. Position it so you can see yourself stroking. Look at yourself. Really look. That is who you are now. A gooner. Pumping. Edging. Addicted to porn. Embrace it.',
                        interactiveType: 'enable-webcam',
                        params: { instruction: 'Enable your webcam and watch yourself goon' },
                        nextStep: 'mirror_edges'
                    },
                    mirror_edges: {
                        type: 'action',
                        mood: 'intense',
                        story: 'Now edge 25 times while watching yourself. See your face flush. See your hand pumping. This is your reality. This is who you\'re becoming. And it feels good, doesn\'t it?',
                        interactiveType: 'edge',
                        params: { count: 25, instruction: 'Edge 25 times while watching yourself' },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'revelatory',
                        story: '✅ Level 6 Complete - WEBCAM UNLOCKED. Self-observation is now part of your training.',
                        outcome: 'level6_complete'
                    }
                }
            }
        },

        level7: {
            id: 'academy-level-7',
            name: 'Dual Focus',
            arc: 'Feature Discovery',
            level: 7,
            duration: 2400, // 40 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 7: Dual Focus',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'escalating',
                        story: 'One video was good. But gooners don\'t settle for good. They crave MORE. Today you learn dual video mode: two streams of porn, simultaneously. Your brain will light up like never before.',
                        nextStep: 'dual_video_start'
                    },
                    dual_video_start: {
                        type: 'action',
                        mood: 'overwhelming',
                        story: 'Starting dual video mode. Main screen + picture-in-picture. TWO feeds of porn. Your eyes won\'t know where to look. Your brain won\'t know what to process. That\'s the point. Sensory overload. Pure gooning.',
                        interactiveType: 'dual-video',
                        params: { mainVideo: 'focus', pipVideo: 'overlay', pipPosition: 'bottom-right' },
                        nextStep: 'dual_edges'
                    },
                    dual_edges: {
                        type: 'action',
                        mood: 'demanding',
                        story: 'Edge 30 times while both videos play. Try to watch both at once. Let your mind split between the two streams. This is advanced gooner technique - fractured attention, unified pleasure.',
                        interactiveType: 'edge',
                        params: { count: 30, instruction: 'Edge 30 times to dual video streams' },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'intense',
                        story: '✅ Level 7 Complete - DUAL VIDEO UNLOCKED. More screens = more stimulation.',
                        outcome: 'level7_complete'
                    }
                }
            }
        },

        level8: {
            id: 'academy-level-8',
            name: 'Vocal Commands',
            arc: 'Feature Discovery',
            level: 8,
            duration: 3000, // 50 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 8: Vocal Commands',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'commanding',
                        story: 'You have eyes. You have hands. Now we add ears. Voice commands via text-to-speech will guide your edging. You will learn to obey the voice. To respond instantly. Gooners don\'t think - they obey.',
                        nextStep: 'tts_intro'
                    },
                    tts_intro: {
                        type: 'action',
                        mood: 'authoritative',
                        story: 'Listen to the voice. It will tell you what to do. And you will do it. Without hesitation. This is training in obedience and responsiveness.',
                        interactiveType: 'tts-command',
                        params: { 
                            text: 'Good gooner. You are learning to obey. Edge for me. Now.', 
                            voice: 'feminine' 
                        },
                        nextStep: 'tts_edges'
                    },
                    tts_edges: {
                        type: 'action',
                        mood: 'controlled',
                        story: 'The voice will count. You will edge each time it commands. 35 edges total. Listen. Obey. Edge.',
                        interactiveType: 'edge',
                        params: { count: 35, instruction: 'Edge 35 times on command' },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'authoritative',
                        story: '✅ Level 8 Complete - TTS UNLOCKED. You can hear your training now.',
                        outcome: 'level8_complete'
                    }
                }
            }
        },

        level9: {
            id: 'academy-level-9',
            name: 'Sensory Array',
            arc: 'Feature Discovery',
            level: 9,
            duration: 3600, // 60 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 9: Sensory Array',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'overwhelming',
                        story: 'Two videos was intense. But you are ready for more. QUAD VIDEO MODE: Four simultaneous porn streams. Your screen will be filled with bodies, moaning, fucking. Everywhere you look - porn. This is the gooner\'s paradise.',
                        nextStep: 'quad_video_start'
                    },
                    quad_video_start: {
                        type: 'action',
                        mood: 'extreme',
                        story: 'Activating quad video array. FOUR screens. Top left. Top right. Bottom left. Bottom right. All porn. All at once. Let it wash over you. Let it consume you.',
                        interactiveType: 'quad-video',
                        params: { layout: 'grid', videos: ['random', 'random', 'random', 'random'] },
                        nextStep: 'quad_edges'
                    },
                    quad_edges: {
                        type: 'action',
                        mood: 'relentless',
                        story: 'Edge 40 times. While all four videos play. Your brain cannot process it all. That\'s fine. Let it become noise. Let it become background. Let it become EVERYTHING. This is full sensory immersion.',
                        interactiveType: 'edge',
                        params: { count: 40, instruction: 'Edge 40 times to quad video array' },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'overwhelming',
                        story: '✅ Level 9 Complete - QUAD VIDEO UNLOCKED. Four screens. Infinite pleasure.',
                        outcome: 'level9_complete'
                    }
                }
            }
        },

        level10: {
            id: 'academy-level-10',
            name: 'Hypnotic Gateway',
            arc: 'Feature Discovery',
            level: 10,
            isCheckpoint: true,
            duration: 4200, // 70 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 10: Hypnotic Gateway - Checkpoint',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'trance-like',
                        story: 'You have unlocked webcam, dual video, TTS, and quad video. Now we add the final piece of Feature Discovery: the hypno spiral. Stare into it. Let it pull you deeper. This is your second checkpoint. You are halfway to mastery.',
                        nextStep: 'preference_checkpoint'
                    },
                    preference_checkpoint: {
                        type: 'action',
                        mood: 'reflective',
                        story: 'Before the spiral, update your preferences again. What have you discovered about yourself in levels 6-9? What turns you on most now? Configure yourself.',
                        interactiveType: 'update-preferences',
                        params: { checkpoint: 10 },
                        nextStep: 'hypno_spiral_start'
                    },
                    hypno_spiral_start: {
                        type: 'action',
                        mood: 'hypnotic',
                        story: 'Now... the spiral. Stare at the center. Watch it spin. Round and round. Deeper and deeper. Your mind empties. Only gooning remains. Only edging. Only porn.',
                        interactiveType: 'hypno-spiral',
                        params: { duration: 120, overlay: true, opacity: 0.5 },
                        nextStep: 'trance_edges'
                    },
                    trance_edges: {
                        type: 'action',
                        mood: 'deep',
                        story: 'While in trance, edge 50 times. Let the spiral guide you. Let it program you. You are becoming what you were meant to be.',
                        interactiveType: 'edge',
                        params: { count: 50, instruction: 'Edge 50 times under the spiral\'s influence' },
                        nextStep: 'arc_complete'
                    },
                    arc_complete: {
                        type: 'story',
                        mood: 'accomplished',
                        story: 'Feature Discovery Arc Complete. You have unlocked all basic features: webcam, dual/quad video, TTS, hypno spiral. Arc 3 awaits: Mind & Body. The real transformation begins.',
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'transformative',
                        story: '✅🎯 Level 10 Complete - FEATURE DISCOVERY ARC FINISHED. All features unlocked. Mind & Body training next.',
                        outcome: 'level10_complete'
                    }
                }
            }
        },

        // MIND & BODY ARC (Levels 11-15)
        level11: {
            id: 'academy-level-11',
            name: 'Mind Sync',
            arc: 'Mind & Body',
            level: 11,
            duration: 4500, // 75 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 11: Mind Sync',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'mysterious',
                        story: 'Welcome to Arc 3: Mind & Body. You\'ve mastered the tools. Now we go deeper. The spiral... the words... they will merge. Your mind and body will sync in ways you haven\'t experienced. This is where transformation accelerates.',
                        nextStep: 'hypno_intro'
                    },
                    hypno_intro: {
                        type: 'action',
                        mood: 'hypnotic',
                        story: 'First, the spiral. Watch it spin. But this time, words will appear. Read them. Let them sink in. The combination rewires you faster than either alone.',
                        interactiveType: 'hypno-caption-combo',
                        params: {
                            hypnoDuration: 180,
                            captions: [
                                { text: 'You are a dedicated gooner', delay: 10 },
                                { text: 'Edging is your purpose', delay: 40 },
                                { text: 'The spiral guides you', delay: 70 },
                                { text: 'Deeper into pleasure', delay: 100 },
                                { text: 'You belong here', delay: 130 },
                                { text: 'Gooning is freedom', delay: 160 }
                            ]
                        },
                        nextStep: 'edge_session'
                    },
                    edge_session: {
                        type: 'action',
                        mood: 'intense',
                        story: 'Good. Your mind is more receptive now. Edge 30 times while the quad video plays. Let the spiral\'s lessons guide your stroking.',
                        interactiveType: 'free-edge-session',
                        params: {
                            duration: 2700,
                            targetEdges: 30,
                            features: ['quad-video']
                        },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'accomplished',
                        story: '✅ Level 11 Complete - Mind and body are beginning to sync. The words take root.',
                        outcome: 'level11_complete'
                    }
                }
            }
        },

        level12: {
            id: 'academy-level-12',
            name: 'Caption Conditioning',
            arc: 'Mind & Body',
            level: 12,
            duration: 4800, // 80 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 12: Caption Conditioning',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'focused',
                        story: 'Today, the captions become personal. Based on what you\'ve told me about your preferences, I will show you words tailored to YOUR desires. They will feel... familiar. Comfortable. True.',
                        nextStep: 'dynamic_captions'
                    },
                    dynamic_captions: {
                        type: 'action',
                        mood: 'personalized',
                        story: 'Watch the videos. Read the words. They know you. They speak to what you crave. Edge 35 times as they condition you.',
                        interactiveType: 'dynamic-captions',
                        params: {
                            duration: 3000,
                            captionSource: 'preference-based',
                            frequency: 15,
                            edgeCount: 35,
                            features: ['dual-video']
                        },
                        nextStep: 'reflection'
                    },
                    reflection: {
                        type: 'story',
                        mood: 'affirming',
                        story: 'You felt it, didn\'t you? How the words resonated. That\'s because they\'re YOUR truth. The Academy knows you now. Knows what you need.',
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'satisfied',
                        story: '✅ Level 12 Complete - Your mind accepts its conditioning willingly.',
                        outcome: 'level12_complete'
                    }
                }
            }
        },

        level13: {
            id: 'academy-level-13',
            name: 'Voice in the Spiral',
            arc: 'Mind & Body',
            level: 13,
            duration: 5100, // 85 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 13: Voice in the Spiral',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'commanding',
                        story: 'Now we combine it all. My voice. The spiral. Together they will guide you deeper than ever before. Listen. Watch. Obey.',
                        nextStep: 'tts_hypno'
                    },
                    tts_hypno: {
                        type: 'action',
                        mood: 'trance',
                        story: 'The spiral spins. My voice speaks. You follow both without question.',
                        interactiveType: 'tts-hypno-sync',
                        params: {
                            spiralDuration: 300,
                            ttsCommands: [
                                { text: 'Watch the spiral... let it pull you in', delay: 10 },
                                { text: 'Your hand moves on its own now', delay: 60 },
                                { text: 'Deeper... always deeper', delay: 120 },
                                { text: 'You are becoming what you were meant to be', delay: 180 },
                                { text: 'A perfect gooner', delay: 240 }
                            ]
                        },
                        nextStep: 'edge_in_trance'
                    },
                    edge_in_trance: {
                        type: 'action',
                        mood: 'entranced',
                        story: 'Now edge 40 times while remaining in this state. My voice will guide you. The videos will fuel you.',
                        interactiveType: 'free-edge-session',
                        params: {
                            duration: 3600,
                            targetEdges: 40,
                            features: ['quad-video', 'tts']
                        },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'deep',
                        story: '✅ Level 13 Complete - Voice and spiral merge in your mind.',
                        outcome: 'level13_complete'
                    }
                }
            }
        },

        level14: {
            id: 'academy-level-14',
            name: 'Sensory Overload',
            arc: 'Mind & Body',
            level: 14,
            duration: 5400, // 90 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 14: Sensory Overload',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'intense',
                        story: 'Everything. All at once. Four videos. The spiral. My voice. Captions. This is total immersion. This is where weak minds break... and dedicated gooners thrive. Are you ready?',
                        nextStep: 'overload_begins'
                    },
                    overload_begins: {
                        type: 'action',
                        mood: 'overwhelming',
                        story: 'ALL FEATURES ACTIVE. Quad video. Hypno spiral overlay. TTS commands. Dynamic captions. Edge 45 times in this sensory storm.',
                        interactiveType: 'sensory-overload',
                        params: {
                            features: ['quad-video', 'hypno', 'tts', 'captions'],
                            duration: 4200,
                            edgeCount: 45
                        },
                        nextStep: 'survived'
                    },
                    survived: {
                        type: 'story',
                        mood: 'triumphant',
                        story: 'You survived. No... you THRIVED. Your mind didn\'t break under the overload. It adapted. Embraced it. You\'re ready for the checkpoint.',
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'powerful',
                        story: '✅ Level 14 Complete - Sensory overload is your new normal.',
                        outcome: 'level14_complete'
                    }
                }
            }
        },

        level15: {
            id: 'academy-level-15',
            name: 'Mind & Body Checkpoint',
            arc: 'Mind & Body',
            level: 15,
            duration: 6000, // 100 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 15: Mind & Body Checkpoint',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'reflective',
                        story: '🎯 CHECKPOINT - Mind & Body Arc Complete. You\'ve learned to sync mind and body through hypno, captions, and voice. Before advancing to Advanced Training, we update your preferences based on your progress.',
                        nextStep: 'preferences'
                    },
                    preferences: {
                        type: 'action',
                        mood: 'administrative',
                        story: 'Update your preferences to reflect your evolution. Your tastes may have... expanded.',
                        interactiveType: 'update-preferences',
                        params: {
                            checkpoint: 'mind-body',
                            level: 15
                        },
                        nextStep: 'final_session'
                    },
                    final_session: {
                        type: 'action',
                        mood: 'celebratory',
                        story: 'One final free session with all Mind & Body features to cement your training. Edge 50 times. Show me everything you\'ve learned.',
                        interactiveType: 'free-edge-session',
                        params: {
                            duration: 4200,
                            targetEdges: 50,
                            features: ['quad-video', 'hypno', 'tts', 'captions']
                        },
                        nextStep: 'arc_complete'
                    },
                    arc_complete: {
                        type: 'story',
                        mood: 'accomplished',
                        story: 'Mind & Body Arc Complete. Your transformation is accelerating. Arc 4 awaits: Advanced Training. Prepare for interruptions, denial, and total control.',
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'transformative',
                        story: '✅🎯 Level 15 Complete - MIND & BODY ARC FINISHED. Advanced Training begins.',
                        outcome: 'level15_complete'
                    }
                }
            }
        },

        // ADVANCED TRAINING ARC (Levels 16-20)
        level16: {
            id: 'academy-level-16',
            name: 'Controlled Chaos',
            arc: 'Advanced Training',
            level: 16,
            duration: 6600, // 110 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 16: Controlled Chaos',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'ominous',
                        story: 'Welcome to Advanced Training. You will not always be in control anymore. I will interrupt you. Randomly. Without warning. You will obey these interruptions instantly. This teaches true submission.',
                        nextStep: 'enable_interruptions'
                    },
                    enable_interruptions: {
                        type: 'action',
                        mood: 'commanding',
                        story: 'Interruptions are now ACTIVE. They will come when you least expect them. Edge, pose, stop, repeat mantras... you will comply immediately.',
                        interactiveType: 'enable-interruptions',
                        params: {
                            types: ['edge', 'pose', 'mantra', 'stop-stroking'],
                            frequency: 'medium',
                            randomize: true
                        },
                        nextStep: 'chaotic_session'
                    },
                    chaotic_session: {
                        type: 'action',
                        mood: 'unpredictable',
                        story: 'Begin your edging session. 50 edges. But remember... interruptions will come. Obey them without hesitation.',
                        interactiveType: 'free-edge-session',
                        params: {
                            duration: 5400,
                            targetEdges: 50,
                            features: ['quad-video', 'interruptions']
                        },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'controlled',
                        story: '✅ Level 16 Complete - You respond to chaos with obedience.',
                        outcome: 'level16_complete'
                    }
                }
            }
        },

        level17: {
            id: 'academy-level-17',
            name: 'The Denial Dance',
            arc: 'Advanced Training',
            level: 17,
            duration: 7200, // 120 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 17: The Denial Dance',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'cruel',
                        story: 'Denial. The ultimate test of a gooner\'s discipline. Today, you will stroke... and stop. Stroke... and stop. Over and over. Building frustration. Building need. You will NOT cum.',
                        nextStep: 'denial_intro'
                    },
                    denial_intro: {
                        type: 'action',
                        mood: 'teasing',
                        story: 'Denial training begins. Periods of stroking, then forced stops. Your body will beg for release. Your mind will stay strong.',
                        interactiveType: 'denial-training',
                        params: {
                            denialPeriods: [
                                { allowStroking: 300, instruction: 'Stroke freely for 5 minutes' },
                                { stopDuration: 120, instruction: 'HANDS OFF. No touching for 2 minutes' },
                                { allowStroking: 420, instruction: 'Stroke again for 7 minutes' },
                                { stopDuration: 180, instruction: 'STOP. 3 minutes of pure denial' },
                                { allowStroking: 600, instruction: 'Final stroking period: 10 minutes' },
                                { stopDuration: 240, instruction: 'FINAL DENIAL. 4 minutes. No release.' }
                            ]
                        },
                        nextStep: 'edge_denied'
                    },
                    edge_denied: {
                        type: 'action',
                        mood: 'frustrated',
                        story: 'Now edge 55 times while denied. Feel that tension. That ache. That\'s discipline.',
                        interactiveType: 'free-edge-session',
                        params: {
                            duration: 3600,
                            targetEdges: 55,
                            features: ['quad-video', 'denial']
                        },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'denied',
                        story: '✅ Level 17 Complete - Denial builds stronger gooners.',
                        outcome: 'level17_complete'
                    }
                }
            }
        },

        level18: {
            id: 'academy-level-18',
            name: 'Popup Distraction',
            arc: 'Advanced Training',
            level: 18,
            duration: 7800, // 130 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 18: Popup Distraction',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'playful',
                        story: 'Popups. Random images will appear over your videos. Tasks. Consequences. Poses. You must acknowledge them while maintaining your gooning. Divided attention is advanced skill.',
                        nextStep: 'enable_popups'
                    },
                    enable_popups: {
                        type: 'action',
                        mood: 'distracting',
                        story: 'Popup system ACTIVE. Images will appear randomly. Read them. Obey them if they command. Continue gooning regardless.',
                        interactiveType: 'enable-popups',
                        params: {
                            frequency: 'medium',
                            sources: ['tasks', 'consequences'],
                            duration: 10,
                            randomize: true
                        },
                        nextStep: 'popup_session'
                    },
                    popup_session: {
                        type: 'action',
                        mood: 'multitasking',
                        story: 'Edge 60 times while popups distract you. Maintain focus on BOTH the videos AND the popups.',
                        interactiveType: 'free-edge-session',
                        params: {
                            duration: 6600,
                            targetEdges: 60,
                            features: ['quad-video', 'popups', 'interruptions']
                        },
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'distracted',
                        story: '✅ Level 18 Complete - Distractions enhance, not hinder, your gooning.',
                        outcome: 'level18_complete'
                    }
                }
            }
        },

        level19: {
            id: 'academy-level-19',
            name: 'Total Immersion',
            arc: 'Advanced Training',
            level: 19,
            duration: 8400, // 140 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 19: Total Immersion',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'ultimate',
                        story: 'Everything. Every feature. Every skill. All at once. This is total immersion. Quad video, hypno, TTS, captions, interruptions, denial, popups. If you can goon through THIS, you\'re ready for Level 20.',
                        nextStep: 'total_immersion'
                    },
                    total_immersion: {
                        type: 'action',
                        mood: 'overwhelming',
                        story: 'ALL SYSTEMS ACTIVE. Every feature unlocked. Every distraction enabled. Edge 70 times in this chaos. Prove your mastery.',
                        interactiveType: 'sensory-overload',
                        params: {
                            features: ['quad-video', 'hypno', 'tts', 'captions', 'interruptions', 'popups'],
                            duration: 7200,
                            edgeCount: 70
                        },
                        nextStep: 'mastery_achieved'
                    },
                    mastery_achieved: {
                        type: 'story',
                        mood: 'victorious',
                        story: 'Unbelievable. You didn\'t just survive. You MASTERED it. Total immersion. Every feature. You\'re ready for the final checkpoint.',
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'masterful',
                        story: '✅ Level 19 Complete - Total immersion is your element.',
                        outcome: 'level19_complete'
                    }
                }
            }
        },

        level20: {
            id: 'academy-level-20',
            name: 'Ultimate Checkpoint',
            arc: 'Advanced Training',
            level: 20,
            duration: 9000, // 150 minutes
            interactiveType: 'scenario-adventure',
            interactiveData: {
                title: 'Level 20: Ultimate Checkpoint',
                steps: {
                    start: {
                        type: 'story',
                        mood: 'ceremonial',
                        story: '🎯 ULTIMATE CHECKPOINT - Advanced Training Arc Complete. Levels 1-20 finished. You have unlocked every feature, mastered every skill. Before the final arcs, we update your preferences one more time.',
                        nextStep: 'preferences'
                    },
                    preferences: {
                        type: 'action',
                        mood: 'administrative',
                        story: 'Final preference update for Levels 1-20. Your journey has been profound. Document your evolution.',
                        interactiveType: 'update-preferences',
                        params: {
                            checkpoint: 'advanced-training',
                            level: 20
                        },
                        nextStep: 'ultimate_session'
                    },
                    ultimate_session: {
                        type: 'action',
                        mood: 'epic',
                        story: 'The ultimate session. 90 minutes. ALL features. Edge 80 times. This is your masterpiece. Show me EVERYTHING.',
                        interactiveType: 'free-edge-session',
                        params: {
                            duration: 5400,
                            targetEdges: 80,
                            features: ['quad-video', 'hypno', 'tts', 'captions', 'interruptions', 'popups', 'webcam']
                        },
                        nextStep: 'arc_complete'
                    },
                    arc_complete: {
                        type: 'story',
                        mood: 'triumphant',
                        story: 'Advanced Training Arc Complete. Levels 1-20: DONE. You are no longer a student. You are a master gooner. Path Specialization awaits.',
                        nextStep: 'completion'
                    },
                    completion: {
                        type: 'completion',
                        mood: 'legendary',
                        story: '✅🎯🏆 Level 20 Complete - ADVANCED TRAINING ARC FINISHED. First 20 levels mastered. Specialization next.',
                        outcome: 'level20_complete'
                    }
                }
            }
        }
    },

    // Configuration for gooner training mode
    config: {
        progressionSystem: {
            beginner: { multiplier: 1.0, unlocks: ["basic"] },
            intermediate: { multiplier: 1.3, unlocks: ["basic", "advanced"] },
            expert: { multiplier: 1.7, unlocks: ["basic", "advanced", "master"] }
        },
        mood: "addictive",
        theme: "gooning_enhancement"
    }
};

// Make training game data available globally
window.trainingGameData = trainingGameData;
