/**
 * Endurance Game Mode Data
 * Progressive endurance training with adaptive timers
 */

const enduranceGameData = {
    // Progressive endurance scenarios
    scenarios: [
        {
            id: 'scenario-endurance-assessment',
            text: "Progressive Endurance Training",
            difficulty: "Medium",
            interactiveType: "scenario-adventure",
            interactiveData: {
                title: "Gooning Endurance Academy",
                steps: {
                    start: {
                        type: 'choice',
                        mood: 'assessment',
                        story: "Welcome to the Gooning Endurance Academy. Your trainer evaluates you carefully. 'Endurance is everything in gooning. We'll assess your current level and build your stamina progressively. What's your current experience level with extended edging sessions?'",
                        choices: [
                            {
                                text: "Beginner - I can edge for under a minute",
                                type: "beginner",
                                preview: "Start with short 30-second sessions",
                                nextStep: "beginner_path"
                            },
                            {
                                text: "Intermediate - I can edge for 2-5 minutes",
                                type: "intermediate", 
                                preview: "Train with 2-3 minute sessions",
                                nextStep: "intermediate_path"
                            },
                            {
                                text: "Advanced - I can edge for 5+ minutes",
                                type: "advanced",
                                preview: "Challenge yourself with 5-10 minute sessions",
                                nextStep: "advanced_path"
                            },
                            {
                                text: "Expert - I can edge for 10+ minutes easily",
                                type: "expert",
                                preview: "Master-level endurance training",
                                nextStep: "expert_path"
                            }
                        ]
                    },
                    beginner_path: {
                        type: 'action',
                        mood: 'encouraging',
                        story: "Your trainer nods approvingly. 'Perfect starting point. We'll build your endurance gradually. Start with 30 seconds of steady edging - focus on maintaining excitement without going over. This is your foundation.'",
                        actionText: "30-second beginner endurance training",
                        duration: 30,
                                nextStep: "progression_assessment"
                    },
                    intermediate_path: {
                        type: 'action',
                        mood: 'instructional',
                        story: "Your trainer sets a 2-minute timer. 'Good experience level. Let's work on extending your current abilities. Edge steadily for 2 minutes, maintaining consistent arousal. Feel how your endurance improves with practice.'",
                        actionText: "2-minute intermediate endurance session",
                        duration: 120,
                                nextStep: "progression_assessment"
                    },
                    advanced_path: {
                        type: 'action',
                        mood: 'challenging',
                        story: "Your trainer sets a 5-minute timer. 'Excellent foundation! Now we push your limits. Edge for 5 full minutes without cumming. This is where real gooners distinguish themselves from casual masturbators.'",
                        actionText: "5-minute advanced endurance challenge",
                        duration: 300,
                                nextStep: "progression_assessment"
                    },
                    expert_path: {
                        type: 'action',
                        mood: 'intense',
                        story: "Your trainer sets a 10-minute timer. 'Impressive experience! Let's test your true limits. Edge for a full 10 minutes, maintaining peak arousal without release. Only dedicated gooners can achieve this level of endurance.'",
                        actionText: "10-minute expert endurance marathon",
                        duration: 600,
                                nextStep: "mastery_assessment"
                    },
                    progression_assessment: {
                        type: 'choice',
                        mood: 'evaluating',
                        story: "Your trainer observes your performance with satisfaction. 'Good progress! Your excitement is at HIGH and control at VARIABLE. Ready to increase the challenge and build even more endurance?'",
                        choices: [
                            {
                                text: "Yes, increase the timer by 1 minute",
                                preview: "Step up to the next level",
                                nextStep: "step_up_training"
                            },
                            {
                                text: "Double my current endurance time",
                                preview: "Major challenge increase",
                                nextStep: "double_training"
                            },
                            {
                                text: "I want the maximum challenge",
                                preview: "Jump to 10-minute sessions",
                                nextStep: "maximum_training"
                            }
                        ]
                    },
                    step_up_training: {
                        type: 'action',
                        mood: 'progressive',
                        story: "Your trainer adds 1 minute to your timer. 'Gradual progression builds solid endurance. Edge for this extended time - feel how your stamina improves with each session.'",
                        actionText: "Progressive endurance step-up session",
                        duration: 180,
                                nextStep: "endurance_mastery"
                    },
                    double_training: {
                        type: 'action',
                        mood: 'ambitious',
                        story: "Your trainer doubles your timer. 'Ambitious! This is how real progress happens. Edge for double your previous time - push through the mental barriers and build true gooning endurance.'",
                        actionText: "Double endurance challenge session",
                        duration: 360,
                                nextStep: "endurance_mastery"
                    },
                    maximum_training: {
                        type: 'action',
                        mood: 'extreme',
                        story: "Your trainer sets the maximum 10-minute timer. 'Ultimate endurance challenge! Only the most dedicated gooners can maintain arousal for this long. Prove your commitment to the gooning lifestyle.'",
                        actionText: "Maximum 10-minute endurance marathon",
                        duration: 600,
                                nextStep: "mastery_assessment"
                    },
                    mastery_assessment: {
                        type: 'choice',
                        mood: 'impressed',
                        story: "Your trainer watches in amazement. 'Outstanding endurance demonstration! You've shown real dedication. With your current arousal at HIGH and control at VARIABLE, what's your next goal?'",
                        choices: [
                            {
                                text: "Master even longer sessions",
                                preview: "Continue building endurance",
                                nextStep: "endurance_mastery"
                            },
                            {
                                text: "Graduate as an endurance expert",
                                preview: "Complete your training",
                                nextStep: "endurance_graduation"
                            }
                        ]
                    },
                    endurance_mastery: {
                        type: 'action',
                        mood: 'masterful',
                        story: "Your trainer presents the ultimate endurance test. 'This is mastery level - edge for the full 10 minutes with perfect focus. Feel the power of true gooning endurance as you maintain arousal without release.'",
                        actionText: "Mastery-level 10-minute endurance test",
                        duration: 600,
                                nextStep: "endurance_graduation"
                    },
                    endurance_graduation: {
                        type: 'ending',
                        mood: 'accomplished',
                        story: "Your trainer stands and applauds. 'Congratulations! You have mastered gooning endurance. Your ability to maintain arousal for extended periods makes you a true dedicated gooner. You've earned your endurance certification.'",
                        endingText: "ENDURANCE MASTERY ACHIEVED! You are now certified in advanced gooning endurance - capable of extended sessions that prove your dedication.",
                        outcome: "endurance_master"
                    }
                }
            }
        }
    ],
    
    // Progressive endurance training tasks (timer-based only)
    mainTasks: [
        {
            id: 'beginner-endurance-timer',
            text: "Beginner endurance training (30 seconds)",
            difficulty: "Easy",
            interactiveType: "focus-hold",
            story: "Build basic endurance with short sessions designed for beginners.",
            duration: 30,
            instructions: "Focus on maintaining excitement for 30 seconds - this is your foundation",
            interactiveData: {
                title: "Beginner Endurance Building",
                description: "Build basic endurance with short sessions...",
                initialText: "Start slow, focus on maintaining excitement for 30 seconds...",
                sustainText: "Good! Keep that steady rhythm going...",
                breakText: "Stay focused, you're building endurance...",
                successText: "Perfect! You completed your first endurance milestone."
            }
        },
        {
            id: 'intermediate-endurance-timer',
            text: "Intermediate endurance training (2 minutes)",
            difficulty: "Medium",
            interactiveType: "focus-hold",
            story: "Extend your capabilities with 2-minute endurance sessions.",
            duration: 120,
            instructions: "Focus on maintaining excitement for 2 full minutes",
            interactiveData: {
                title: "Intermediate Endurance Development",
                description: "Extend your capabilities with 2-minute sessions...",
                initialText: "Focus on maintaining excitement for 2 full minutes...",
                sustainText: "Excellent focus! Keep building that endurance...",
                breakText: "Don't stop now, you're developing real stamina...",
                successText: "Outstanding! Your endurance is clearly improving."
            }
        },
        {
            id: 'advanced-endurance-timer',
            text: "Advanced endurance training (5 minutes)",
            difficulty: "Hard",
            interactiveType: "focus-hold",
            story: "Push your limits with 5-minute endurance sessions.",
            duration: 300,
            instructions: "Edge for 5 minutes without cumming - this is serious endurance training",
            interactiveData: {
                title: "Advanced Endurance Challenge",
                description: "Push your limits with 5-minute endurance sessions...",
                initialText: "This is serious endurance training - edge for 5 minutes...",
                sustainText: "Incredible focus! True gooner endurance showing...",
                breakText: "Keep that edge going, you're proving your dedication...",
                successText: "Amazing! You've achieved advanced endurance levels."
            }
        },
        {
            id: 'expert-endurance-timer',
            text: "Expert endurance training (10 minutes)",
            difficulty: "Extreme",
            interactiveType: "focus-hold",
            story: "Master-level endurance with 10-minute sessions for true gooners.",
            duration: 600,
            instructions: "Ultimate challenge - maintain arousal for 10 full minutes",
            interactiveData: {
                title: "Expert Endurance Mastery",
                description: "Master-level endurance with 10-minute sessions...",
                initialText: "Ultimate challenge - maintain excitement for 10 full minutes...",
                sustainText: "Legendary endurance! Only true gooners achieve this...",
                breakText: "Perfect focus! You're demonstrating mastery...",
                successText: "INCREDIBLE! You've mastered expert-level endurance."
            }
        },
        {
            id: 'progressive-endurance-timer',
            text: "Progressive endurance building (4 minutes)",
            difficulty: "Variable",
            interactiveType: "focus-hold",
            story: "Adaptive training that increases with your ability.",
            duration: 240,
            instructions: "This session adapts to your current level - build progressively",
            interactiveData: {
                title: "Progressive Endurance Training",
                description: "Adaptive training that increases with your ability...",
                initialText: "This session adapts to your current level...",
                sustainText: "Building endurance progressively...",
                breakText: "Each session makes you stronger...",
                successText: "Progress achieved! Your endurance is growing."
            }
        },
        {
            id: 'marathon-endurance-timer',
            text: "Marathon endurance session (10 minutes)",
            difficulty: "Extreme",
            interactiveType: "focus-hold",
            story: "Ultimate endurance test for dedicated gooners.",
            duration: 600,
            instructions: "Marathon session - this separates true gooners from casual users",
            interactiveData: {
                title: "Marathon Endurance Challenge",
                description: "Ultimate endurance test for dedicated gooners...",
                initialText: "Marathon session - this separates true gooners from casual users...",
                sustainText: "Incredible stamina! You're in the endurance elite...",
                breakText: "Legendary focus! Keep going, you're almost there...",
                successText: "PHENOMENAL! You've achieved marathon endurance mastery."
            }
        }
    ],

    // Configuration for progressive endurance mode
    config: {
        durationLevels: {
            beginner: { duration: 30, maxDuration: 60 },       // 30 seconds to 1 minute
            intermediate: { duration: 120, maxDuration: 180 },  // 2-3 minutes
            advanced: { duration: 300, maxDuration: 480 },      // 5-8 minutes
            expert: { duration: 600, maxDuration: 600 }         // 10 minutes maximum
        },
        progressionRules: {
            minSuccessRate: 0.8,  // 80% success rate to advance
            timeBetweenLevels: 3,  // 3 successful sessions before advancing
            maxTimerDuration: 600  // 10 minutes maximum as requested
        },
        mood: "progressive",
        theme: "endurance_training"
    }
};

// Make endurance game data available globally
window.enduranceGameData = enduranceGameData;
