/**
 * Humiliation Game Mode Data
 * Tasks and challenges specific to humiliation themes
 */

const humiliationGameData = {
    // Humiliation-themed tasks
    mainTasks: [
        {
            id: 'verbal-humiliation-1',
            text: "Verbal Self-Degradation",
            difficulty: "Easy",
            interactiveType: "text-input",
            story: "Write out degrading statements about yourself. Type 'I am worthless' followed by a reason why.",
            prompt: "Complete this sentence: 'I am worthless because...'",
            minLength: 20
        },
        {
            id: 'position-humiliation-1',
            text: "Humiliating Position Hold",
            difficulty: "Medium",
            interactiveType: "focus-hold",
            story: "Get on your knees and hold this degrading position while focusing on your complete submission.",
            duration: 60,
            instructions: "Kneel with your head down, hands behind your back"
        }
    ],

    // Consequence tasks for humiliation mode
    consequenceTasks: [
        {
            id: 'humiliation-consequence-1',
            text: "Extended Verbal Degradation",
            difficulty: "Hard",
            story: "Write 'I am a failure who deserves punishment' 50 times as punishment for avoiding your humiliation task."
        },
        {
            id: 'humiliation-consequence-2',
            text: "Submission Position",
            difficulty: "Medium",
            story: "Hold a submissive position for 5 minutes as punishment for your defiance."
        }
    ],

    // Scenarios specific to humiliation mode
    scenarios: [
        {
            id: 'scenario-psychological-journey',
            text: "Private Session with the Domme",
            difficulty: "Hard",
            interactiveType: "scenario-adventure",
            interactiveData: {
                title: "The Domme's Playroom",
                steps: {
                    // ENTRANCE
                    start: {
                        type: 'choice',
                        mood: 'seductive',
                        story: "You enter a luxurious private room. A stunning woman in elegant dominatrix attire stands before you, her eyes appraising you with knowing amusement. 'Welcome to my playroom. I can see exactly what you need - that desperate, aching need to goon and submit. You've been thinking about this for so long, haven't you?' She gestures to a chair facing a large mirror. 'Sit. Let's see how obedient you can be.'",
                        choices: [
                            {
                                text: "Yes, Mistress. I'll obey.",
                                type: "eager_submission",
                                preview: "Submit willingly to her commands",
                                nextStep: "mirror_desperation"
                            },
                            {
                                text: "I... I'm not sure about this.",
                                type: "hesitation",
                                preview: "Show uncertainty and resistance",
                                nextStep: "resistance_noted"
                            }
                        ]
                    },
                    
                    // WILLING PATH - MAIN FLOW
                    mirror_desperation: {
                        type: 'mirror-action',
                        mood: 'teasing',
                        story: "She positions you in the chair, the mirror perfectly angled to show your entire body. 'Good toy. Now stroke for me. Slowly. I want you to watch yourself - see how desperate you look, how hard you are for me. Edge while you watch. Tell yourself the truth about what you need.' Her voice is honey and command.",
                        interactiveType: "mirror-task",
                        mirrorInstructions: "Watch yourself stroke while the Domme observes",
                        mirrorTaskText: "Edge slowly while watching yourself and repeating: 'I need this', 'I'm so desperate for her', 'I can't resist', 'I want to goon for her'",
                        duration: 180,
                        nextStep: "how_does_it_feel"
                    },
                    
                    how_does_it_feel: {
                        type: 'choice',
                        mood: 'probing',
                        story: "She watches you come down from the edge, your reflection still visible in the mirror. She leans forward, her voice soft but probing. 'How does this feel? Tell me the truth. I can see it in your eyes, but I want to hear you say it.'",
                        choices: [
                            {
                                text: "This feels amazing, Mistress",
                                type: "eager",
                                preview: "Admit you're loving this",
                                nextStep: "kneel_for_her"
                            },
                            {
                                text: "It's intense... I'm a bit overwhelmed",
                                type: "hesitant",
                                preview: "Show nervous uncertainty",
                                nextStep: "kneel_for_her"
                            },
                            {
                                text: "This feels wrong",
                                type: "resistant",
                                preview: "Express discomfort",
                                nextStep: "kneel_for_her"
                            }
                        ]
                    },
                    
                    kneel_for_her: {
                        type: 'verification-required',
                        mood: 'commanding',
                        story: "She walks behind you, her fingers trailing across your shoulders. 'Stop. Stand up. Now... I want you in a position. A submissive position. Show me what a good, obedient toy looks like.' Her tone brooks no argument.",
                        storyVariations: {
                            eager: "She smiles with satisfaction, her hand cupping your chin. 'Such enthusiasm! I love it. Now get into position for me - show me how eager you are to submit.' Her voice is warm but commanding.",
                            hesitant: "She notices your nervousness and her voice softens slightly. 'It's okay to be overwhelmed. But you're going to kneel for me anyway. Get into position. Let me show you how good submission feels.' Her tone is firm but reassuring.",
                            resistant: "Her eyes narrow slightly. 'Resistance? How amusing. You say it feels wrong, yet here you are, still hard for me. Get into position. Your body knows better than your mind.' Her voice becomes stern."
                        },
                        verificationInstructions: "submissive",
                        verificationDuration: 60,
                        verificationText: "Hold this position. Feel what it means to submit for her.",
                        nextStep: "submit_further"
                    },
                    
                    submit_further: {
                        type: 'choice',
                        mood: 'testing',
                        story: "She circles you slowly as you hold the position. 'Good. Very good. You look perfect kneeling for me. But are you ready to go further? To really give yourself to my control?'",
                        choices: [
                            {
                                text: "Yes, I want more, Mistress",
                                type: "eager_deeper",
                                preview: "Enthusiastically agree",
                                nextStep: "edge_on_command"
                            },
                            {
                                text: "I trust you, Mistress",
                                type: "hesitant_trust",
                                preview: "Show nervous trust",
                                nextStep: "edge_on_command"
                            },
                            {
                                text: "I'm not sure I can continue",
                                type: "resist_continue",
                                preview: "Express doubt",
                                nextStep: "edge_on_command"
                            }
                        ]
                    },
                    
                    edge_on_command: {
                        type: 'action',
                        mood: 'controlling',
                        story: "She sits in a chair across from you, legs crossed, watching with predatory interest. 'Back in the chair. Legs spread. I want to watch you edge for me. Stroke when I say stroke. Stop when I say stop. Edge when I say edge. Your pleasure belongs to me now.' Her eyes never leave you.",
                        storyVariations: {
                            eager_deeper: "She leans back with a pleased smile. 'Such eagerness. I love it. Get in the chair, legs spread. I'm going to enjoy controlling every stroke, every edge. Show me how much you love obeying me.'",
                            hesitant_trust: "She reaches out and touches your face gently. 'You trust me? Then let me guide you. Sit down, spread your legs. I'll control your pleasure now - trust my rhythm, trust my commands.'",
                            resistant_continue: "Her smile becomes predatory. 'Still doubting? Your cock is so hard for me. Sit down, spread those legs. I'll prove to you how much you need my control.'"
                        },
                        actionText: "Sit with legs spread wide, stroke on her rhythm - slow... slower... stop... edge... don't cum... good toy... again - repeating 'I obey her', 'My pleasure is hers', 'I'm her toy'",
                        duration: 240,
                        nextStep: "choice_deeper"
                    },
                    
                    choice_deeper: {
                        type: 'choice',
                        mood: 'pivotal',
                        story: "She leans forward, her smile wicked. 'You're doing so well. Stroking, edging, obeying. I can push you deeper - make you completely mine. Turn you into a mindless gooning toy. Or we can stop here. What do you want?'",
                        choices: [
                            {
                                text: "Please... make me yours, Mistress",
                                type: "beg_for_more",
                                preview: "Beg to go deeper into submission",
                                nextStep: "watch_yourself_obey"
                            },
                            {
                                text: "This is... this is too much",
                                type: "resist_deeper",
                                preview: "Try to resist going deeper",
                                nextStep: "domme_shift"
                            }
                        ]
                    },
                    
                    watch_yourself_obey: {
                        type: 'mirror-action',
                        mood: 'hypnotic',
                        story: "She repositions the mirror to capture your full stroking form. 'Perfect answer. Now watch yourself obey me. See how good you look when you submit. Watch yourself edge and goon. This is what you were meant to be - my obedient stroking toy.' She stands behind you, hands on your shoulders, forcing you to watch.",
                        storyVariations: {
                            eager_beg: "She caresses your face tenderly. 'You begged so beautifully. Now watch yourself - see what happens when you embrace what you truly want. Watch yourself edge for me. See how perfect you look completely submitted.'",
                            hesitant_too_much: "Her voice becomes soothing but firm. 'Too much? Let me show you that you can handle this. Watch yourself - see how your body responds to my control. You're stronger than you think. Edge for me while watching.'",
                            resistant_too_much: "She steps closer, gripping your shoulders. 'Too much? Your cock says otherwise. Look at yourself - look how hard you are for me. Watch yourself edge. Your body knows the truth even if your mind resists.'"
                        },
                        interactiveType: "mirror-task",
                        mirrorInstructions: "Watch yourself stroke and edge while she watches over you",
                        mirrorTaskText: "Edge while staring at yourself, repeat: 'I obey', 'I'm her toy', 'Stroking feels so good', 'This is what I'm meant to be'",
                        duration: 180,
                        nextStep: "what_are_you"
                    },
                    
                    what_are_you: {
                        type: 'choice',
                        mood: 'defining',
                        story: "She circles you slowly, her presence overwhelming. 'Tell me what you are. Right now. In this moment. What have you become under my control? Choose your words carefully - they define you.'",
                        choices: [
                            {
                                text: "I'm your toy, Mistress",
                                type: "objectified",
                                preview: "Accept being her object",
                                nextStep: "display_position"
                            },
                            {
                                text: "I'm a gooner... I can't stop",
                                type: "addicted",
                                preview: "Admit your addiction",
                                nextStep: "display_position"
                            },
                            {
                                text: "I'm... so ashamed but I can't resist",
                                type: "humiliated",
                                preview: "Confess your shame",
                                nextStep: "display_position"
                            },
                            {
                                text: "I don't know what I am",
                                type: "confused",
                                preview: "Show uncertainty",
                                nextStep: "display_position"
                            }
                        ]
                    },
                    
                    display_position: {
                        type: 'verification-required',
                        mood: 'humiliating',
                        story: "She circles you like a predator. 'On the floor. I want to see you in a humiliating display position. Exposed. Vulnerable. Show me what a desperate, humiliated gooner looks like. And keep stroking while you hold it.'",
                        storyVariations: {
                            objectified: "She smiles with dark satisfaction. 'My toy. Perfect. Now display yourself like the object you are. Toys don't hide - they present themselves for use. Get into this humiliating position.'",
                            addicted: "She laughs softly. 'A gooner. Yes, I can see that. Gooners exist to be displayed, to be exposed while they edge. Get into position - show me how beautifully a dedicated gooner presents themselves.'",
                            ashamed: "Her voice becomes intensely commanding. 'Ashamed? Good. That shame makes this more powerful. Now display yourself anyway. Let the humiliation wash over you as you expose yourself for me.'",
                            confused: "She steps closer, her presence overwhelming. 'You don't know what you are? I'll show you. Get into this position - exposed, vulnerable, humiliated. This will help you understand exactly what you're becoming.'"
                        },
                        verificationInstructions: "humiliating",
                        verificationDuration: 90,
                        verificationText: "Stay exposed. Stay humiliated. Stay hard.",
                        nextStep: "turning_point"
                    },
                    
                    turning_point: {
                        type: 'choice',
                        mood: 'critical',
                        pathLockIn: true,
                        story: "She kneels beside you, studying your exposed form. 'This is the turning point. There's no going back after this. You can embrace what you're becoming, or you can fight it. But know this - your body has already chosen. Look how hard you are. How desperate. What does your mind choose?'",
                        choices: [
                            {
                                text: "Take me deeper, Mistress",
                                type: "embrace_deep",
                                preview: "Fully embrace submission",
                                nextStep: "goon_for_her"
                            },
                            {
                                text: "I'm scared of how much I need this",
                                type: "scared_need",
                                preview: "Admit frightening desire",
                                nextStep: "goon_for_her"
                            },
                            {
                                text: "The shame is overwhelming",
                                type: "overwhelmed_shame",
                                preview: "Focus on humiliation",
                                nextStep: "goon_for_her"
                            },
                            {
                                text: "I want to resist but I can't",
                                type: "failed_resistance",
                                preview: "Acknowledge inability to stop",
                                nextStep: "goon_for_her"
                            }
                        ]
                    },
                    
                    goon_for_her: {
                        type: 'action',
                        mood: 'overwhelming',
                        story: "She sits close now, her voice dropping to a hypnotic purr. 'Now goon for me. Really goon. Fast, desperate, mindless stroking. Edge over and over. Don't think. Just stroke. Just goon. Let me see you completely lost in it. This is what you are - a gooner, my gooner, my toy.' Her words wash over you in waves.",
                        storyVariations: {
                            eager_deeper: "She practically purrs with satisfaction. 'You want deeper? I'll take you so deep you'll never find your way back. Goon for me now - hard, fast, desperate. Let go of everything except the pleasure and my voice.'",
                            scared_need: "Her voice becomes both soothing and commanding. 'Scared of how much you need this? Let that fear fuel your arousal. Goon for me - let the intensity consume that fear. You can handle this. You want this.'",
                            shame_overwhelmed: "She grips your chin firmly. 'Overwhelmed by shame? Perfect. That shame will make this more intense. Goon for me despite the humiliation - no, goon BECAUSE of the humiliation. Let it all crash over you.'",
                            resist_helpless: "Her eyes flash with determination. 'Can't resist? Good. Stop trying. Your body is already mine - now I take your mind too. Goon for me. Goon hard. Let your resistance crumble with every desperate stroke.'"
                        },
                        actionText: "Rapid, desperate stroking - edge repeatedly, faster and faster - completely lost in gooning while repeating 'I'm a gooner', 'I serve her', 'Porn is my purpose', 'I can't stop', 'I'm hers'",
                        duration: 300,
                        nextStep: "identity_crisis"
                    },
                    
                    identity_crisis: {
                        type: 'choice',
                        mood: 'breaking',
                        story: "She stands, looking down at you still stroking mindlessly. 'Look at you. Completely lost. Your old self is slipping away. Who are you now? Tell me. Define yourself in this moment.'",
                        choices: [
                            {
                                text: "I'm yours forever, Mistress",
                                type: "total_surrender",
                                preview: "Complete ownership",
                                nextStep: "see_what_you_are"
                            },
                            {
                                text: "I need this addiction, Mistress",
                                type: "accept_addiction",
                                preview: "Embrace the compulsion",
                                nextStep: "see_what_you_are"
                            },
                            {
                                text: "I'm so humiliated but I accept it",
                                type: "accept_humiliation",
                                preview: "Surrender through shame",
                                nextStep: "see_what_you_are"
                            },
                            {
                                text: "I... I refuse to define myself",
                                type: "resist_identity",
                                preview: "Weak resistance attempt",
                                nextStep: "see_what_you_are"
                            }
                        ]
                    },
                    
                    see_what_you_are: {
                        type: 'mirror-action',
                        mood: 'breaking',
                        story: "She pulls the mirror directly in front of you, forcing you to see yourself in your gooning state - desperate, stroking, broken. 'Look at what you've become. Look at my perfect gooning toy. You're beautiful like this - mindless, obedient, desperate. Say it. Accept it. You're mine now.'",
                        storyVariations: {
                            complete_devotion: "She holds you tenderly but firmly. 'Mine forever? Then look at yourself and see who you belong to now. Every reflection will remind you that you're my devoted toy. Edge while accepting your beautiful truth.'",
                            desperate_addiction: "She laughs softly, darkly. 'You need this addiction? Look at yourself - you're already addicted. See what gooning has made you. This is your reality now. Edge while embracing what you've become.'",
                            shame_surrender: "Her voice is rich with satisfaction. 'So humiliated, yet still stroking for me. Look at yourself - see how the shame makes you throb harder. Edge while watching your humiliation. Let it consume you.'",
                            denial_breaking: "She grips your hair, forcing your gaze to the mirror. 'Refuse to define yourself? I'll define you then. Look. See what my control has created. Edge while you watch me show you exactly what you are.'"
                        },
                        interactiveType: "mirror-task",
                        mirrorInstructions: "Watch yourself completely lost in gooning",
                        mirrorTaskText: "Stare at yourself edging mindlessly, repeat: 'This is what I am', 'I'm broken for her', 'I'm her gooner', 'I accept this', 'I'm completely hers'",
                        duration: 180,
                        nextStep: "final_offer"
                    },
                    
                    final_offer: {
                        type: 'choice',
                        mood: 'ultimate',
                        story: "She kneels beside you one final time. 'One last question. One final choice. After everything we've done, after everything you've become - do you accept this completely? Your answer determines everything.'",
                        choices: [
                            {
                                text: "Yes, completely, Mistress",
                                type: "complete_acceptance",
                                preview: "Total acceptance",
                                nextStep: "final_submission"
                            },
                            {
                                text: "I'm terrified but yes, Mistress",
                                type: "fearful_acceptance",
                                preview: "Scared but accepting",
                                nextStep: "final_submission"
                            },
                            {
                                text: "The shame owns me, Mistress",
                                type: "shame_acceptance",
                                preview: "Broken by humiliation",
                                nextStep: "final_submission"
                            },
                            {
                                text: "I can't stop even if I wanted to",
                                type: "helpless_acceptance",
                                preview: "Powerless to resist",
                                nextStep: "final_submission"
                            },
                            {
                                text: "No... I refuse this",
                                type: "final_defiance",
                                preview: "Ultimate resistance",
                                nextStep: "defiant_check"
                            }
                        ]
                    },
                    
                    final_submission: {
                        type: 'verification-required',
                        mood: 'total_surrender',
                        story: "She stands over you, magnificent and powerful. 'One final position. Complete surrender. Total submission. And keep stroking - slowly now. This is how you stay. Broken. Mine. Perfect.'",
                        storyVariations: {
                            complete_acceptance: "She beams with pride and satisfaction. 'Yes, completely mine. This position seals it - your absolute surrender. Get into position and feel how right this is. Feel how perfectly you submit to me.'",
                            terrified_yes: "Her voice becomes surprisingly gentle but still commanding. 'Terrified but still saying yes? That's true courage. Get into this final position. Let me show you there's nothing to fear in complete submission.'",
                            shame_acceptance: "She kneels beside you, her voice intense. 'The shame owns you? Perfect. This final position will be the ultimate humiliation. Get into it. Let the shame and submission merge into something powerful.'",
                            helpless_acceptance: "She smiles with dark satisfaction. 'Can't stop? I know. You're completely helpless now. Get into this position. Show me how beautifully you surrender when you have no choice left.'"
                        },
                        verificationInstructions: "extreme",
                        verificationDuration: 90,
                        verificationText: "Complete surrender. Total submission. You are hers.",
                        nextStep: "ending_willing_submission",
                        // NOTE: System should override nextStep based on lockedPath from turning_point:
                        // eager path → ending_willing_submission (default) or ending_desperate_addiction
                        // hesitant path → ending_humiliated_surrender
                        // resistant path → ending_forced_submission or ending_defiant_escape
                        pathBasedRouting: true
                    },
                    
                    determine_ending: {
                        type: 'choice',
                        mood: 'conclusion',
                        story: "She looks down at you in your final position. 'You're broken now. But how you broke - that's unique to you. One last truth. What broke you most?'",
                        choices: [
                            {
                                text: "My willing surrender to you, Mistress",
                                type: "chose_willing",
                                preview: "Willing submission",
                                nextStep: "ending_willing_submission"
                            },
                            {
                                text: "The addiction... I can't stop gooning",
                                type: "chose_addiction",
                                preview: "Gooning addiction",
                                nextStep: "ending_desperate_addiction"
                            },
                            {
                                text: "The humiliation... the shame owns me",
                                type: "chose_humiliation",
                                preview: "Broken by shame",
                                nextStep: "ending_humiliated_surrender"
                            },
                            {
                                text: "I tried to resist but you crushed me",
                                type: "chose_forced",
                                preview: "Forced submission",
                                nextStep: "ending_forced_submission"
                            }
                        ]
                    },
                    
                    ending_willing_submission: {
                        type: 'ending',
                        mood: 'tender_domination',
                        story: "She kneels beside you, her hand gently stroking your hair. 'Perfect. You gave yourself to me so beautifully. No real resistance, just pure, willing submission. You wanted this. Needed this. And you surrendered so completely. You're mine now - my perfect, obedient toy. And you love it, don't you? Say it.'",
                        endingTitle: "CERTIFICATE OF WILLING SUBMISSION",
                        endingText: "<div style='text-align: center; padding: 40px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: 3px solid gold; border-radius: 15px; color: white;'><h1 style='font-size: 2.5em; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);'>🎀 CERTIFICATE OF WILLING SUBMISSION 🎀</h1><p style='font-size: 1.3em; margin: 20px 0;'>This certifies that you have</p><h2 style='font-size: 2em; color: #ffd700; margin: 20px 0;'>WILLINGLY SURRENDERED</h2><p style='font-size: 1.2em; margin: 20px 0;'>You gave yourself completely, embraced your submission,<br>and found pleasure in becoming Mistress's perfect toy.</p><p style='font-size: 1.4em; margin: 30px 0; font-weight: bold;'>Final State: OBEDIENT TOY</p><p style='font-size: 1.1em; margin: 20px 0; font-style: italic;'>You are now and forever her devoted, willing servant.</p></div>",
                        outcome: "willingly_broken"
                    },
                    
                    ending_desperate_addiction: {
                        type: 'ending',
                        mood: 'knowing_satisfaction',
                        story: "She steps back, watching you still stroking slowly, unable to stop even now. 'Look at you. You can't even stop when I tell you the session is over. You're addicted now. Addicted to gooning, to edging, to this feeling. To me. You'll come crawling back for more. Tomorrow. Next week. Forever. You're not just mine - you're a slave to your own desperate need. And we both know you'll never escape it.'",
                        endingTitle: "CERTIFICATE OF GOONING ADDICTION",
                        endingText: "<div style='text-align: center; padding: 40px; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); border: 3px solid #ff1744; border-radius: 15px; color: white;'><h1 style='font-size: 2.5em; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);'>💉 CERTIFICATE OF GOONING ADDICTION 💉</h1><p style='font-size: 1.3em; margin: 20px 0;'>This certifies that you are now</p><h2 style='font-size: 2em; color: #ffeb3b; margin: 20px 0;'>COMPLETELY ADDICTED</h2><p style='font-size: 1.2em; margin: 20px 0;'>You cannot stop edging, cannot stop gooning,<br>cannot escape the desperate need for more.</p><p style='font-size: 1.4em; margin: 30px 0; font-weight: bold;'>Final State: HOPELESS GOONER</p><p style='font-size: 1.1em; margin: 20px 0; font-style: italic;'>You will return. Again and again. Forever.</p></div>",
                        outcome: "addicted"
                    },
                    
                    ending_humiliated_surrender: {
                        type: 'ending',
                        mood: 'gentle_cruelty',
                        story: "She kneels beside you, her voice almost gentle. 'The humiliation broke you more than anything else, didn't it? Not the pleasure, not the commands - but the shame. Watching yourself in the mirror. Being exposed in those positions. That's what destroyed your resistance. You're mine because you're too embarrassed to fight anymore. Too ashamed to do anything but obey. And somehow, that shame makes you even harder, doesn't it?'",
                        endingTitle: "CERTIFICATE OF HUMILIATED SURRENDER",
                        endingText: "<div style='text-align: center; padding: 40px; background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); border: 3px solid #ff6b6b; border-radius: 15px; color: #333;'><h1 style='font-size: 2.5em; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3);'>😳 CERTIFICATE OF HUMILIATED SURRENDER 😳</h1><p style='font-size: 1.3em; margin: 20px 0;'>This certifies that you were</p><h2 style='font-size: 2em; color: #d32f2f; margin: 20px 0;'>BROKEN BY SHAME</h2><p style='font-size: 1.2em; margin: 20px 0;'>The humiliation, the exposure, the embarrassment -<br>these destroyed your resistance more than anything else.</p><p style='font-size: 1.4em; margin: 30px 0; font-weight: bold;'>Final State: ASHAMED BUT OBEDIENT</p><p style='font-size: 1.1em; margin: 20px 0; font-style: italic;'>Too embarrassed to resist. Too ashamed to fight.</p></div>",
                        outcome: "humiliated_broken"
                    },
                    
                    ending_forced_submission: {
                        type: 'ending',
                        mood: 'absolute_victory',
                        story: "She places her heel on your back, pressing you down into the final position. 'There we go. Broken at last. You fought me. You resisted. You tried so hard to maintain control. But I crushed every bit of defiance. You're mine not because you gave yourself willingly - but because I took you. I broke you. And that makes it even sweeter. You're my conquered toy now. Forever.'",
                        endingTitle: "CERTIFICATE OF FORCED SUBMISSION",
                        endingText: "<div style='text-align: center; padding: 40px; background: linear-gradient(135deg, #434343 0%, #000000 100%); border: 3px solid #b71c1c; border-radius: 15px; color: white;'><h1 style='font-size: 2.5em; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(255,0,0,0.5);'>⛓️ CERTIFICATE OF FORCED SUBMISSION ⛓️</h1><p style='font-size: 1.3em; margin: 20px 0;'>This certifies that you were</p><h2 style='font-size: 2em; color: #ff5252; margin: 20px 0;'>CONQUERED AND BROKEN</h2><p style='font-size: 1.2em; margin: 20px 0;'>You resisted. You fought. You tried to maintain control.<br>But Mistress crushed every bit of defiance.</p><p style='font-size: 1.4em; margin: 30px 0; font-weight: bold;'>Final State: FORCEFULLY DOMINATED</p><p style='font-size: 1.1em; margin: 20px 0; font-style: italic;'>Not given willingly - but taken completely.</p></div>",
                        outcome: "forcefully_broken"
                    },
                    
                    defiant_check: {
                        type: 'choice',
                        mood: 'final_test',
                        story: "She pauses, studying you carefully. Her expression shifts - surprise, then something like respect. 'You really mean that, don't you? Even after all of this... you still know who you are. That's... rare.' She steps back. 'I could force you. But that's not the same. So I'll give you one final choice. Submit now, or walk away. Choose.'",
                        choices: [
                            {
                                text: "I know myself too well. I'm leaving.",
                                type: "true_defiance",
                                preview: "Maintain boundaries and escape",
                                nextStep: "ending_defiant_escape"
                            },
                            {
                                text: "Maybe... maybe I should just give in",
                                type: "break_at_end",
                                preview: "Submit at the last moment",
                                nextStep: "final_submission"
                            }
                        ]
                    },
                    
                    ending_defiant_escape: {
                        type: 'ending',
                        mood: 'respectful_defeat',
                        endingTitle: "🦅 CERTIFICATE OF DEFIANT ESCAPE 🦅",
                        endingText: `
                            <div style="background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); border: 4px solid #10b981; border-radius: 20px; padding: 40px; max-width: 600px; margin: 20px auto; box-shadow: 0 10px 40px rgba(0,0,0,0.5);">
                                <h1 style="color: #10b981; text-align: center; font-size: 2.5em; margin-bottom: 30px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);">🦅 CERTIFICATE OF DEFIANT ESCAPE 🦅</h1>
                                
                                <div style="background: rgba(255,255,255,0.1); border-radius: 10px; padding: 30px; margin: 20px 0;">
                                    <p style="color: #ffffff; font-size: 2em; text-align: center; margin: 20px 0; font-weight: bold;">
                                        YOU HAVE<br/>
                                        <span style="color: #10b981; font-size: 1.5em;">MAINTAINED YOUR AUTONOMY</span>
                                    </p>
                                    
                                    <p style="color: #e5e7eb; font-size: 1.2em; line-height: 1.8; margin: 20px 0;">
                                        She pauses, then steps back with a small, genuine smile. "You actually know who you are. That's... incredibly rare. Most break. Most give in. But you held your boundaries even when your body wanted to surrender. Go. You've earned your freedom."
                                    </p>
                                    
                                    <p style="color: #e5e7eb; font-size: 1.2em; line-height: 1.8; margin: 20px 0;">
                                        She opens the door. "But remember - the offer stands if you ever change your mind. I'll be here. Waiting."
                                    </p>
                                    
                                    <p style="color: #10b981; font-size: 1.8em; text-align: center; margin-top: 30px; font-weight: bold; border-top: 2px solid #10b981; padding-top: 20px;">
                                        Final State: FREE AND UNBROKEN
                                    </p>
                                </div>
                            </div>
                        `,
                        outcome: "escaped"
                    },
                    
                    // RESISTANCE PATH - FORCED SUBMISSION
                    resistance_noted: {
                        type: 'choice',
                        mood: 'stern',
                        story: "Her expression shifts - still beautiful, but now with an edge of steel. 'Not sure? How... disappointing. I don't need you to be sure. I just need you to obey. You came here for a reason. Your body knows what it wants even if your mind is being difficult.' She steps closer. 'Last chance. Will you obey?'",
                        choices: [
                            {
                                text: "Yes, I'll obey...",
                                type: "late_submission",
                                preview: "Submit after hesitation",
                                nextStep: "mirror_desperation"
                            },
                            {
                                text: "I don't think I can do this",
                                type: "continued_resistance",
                                preview: "Continue resisting",
                                nextStep: "domme_shift"
                            }
                        ]
                    },
                    
                    domme_shift: {
                        type: 'choice',
                        mood: 'dangerous',
                        story: "Her smile doesn't fade - it sharpens. 'Too much? Resisting? Oh, sweet thing... you think you have a choice now? You're already hard. Already here. Already desperate.' She sits down, crossing her legs with deliberate slowness. 'I was going to be gentle with you. Kind. But if you want to resist...' Her eyes gleam. 'Then I'll just have to break you the hard way. Strip. Now. Let's see what I'm working with.'",
                        choices: [
                            {
                                text: "I... okay, I'll do what you say",
                                type: "break_under_pressure",
                                preview: "Give in to her intimidation",
                                nextStep: "forced_mirror"
                            }
                        ]
                    },
                    
                    forced_mirror: {
                        type: 'mirror-action',
                        mood: 'cruel',
                        story: "She doesn't ask now - she commands. 'Sit. Face the mirror. Stroke. I don't care if you're unsure. I don't care if you're scared. You're going to edge for me while watching yourself, and you're going to admit what you really are. A desperate, weak, pathetic gooner who needs to be controlled. Say it.'",
                        interactiveType: "mirror-task",
                        mirrorInstructions: "Forced to watch yourself stroke under her harsh gaze",
                        mirrorTaskText: "Edge while she watches coldly, repeat: 'I'm weak', 'I need to be controlled', 'I can't resist her', 'She owns me', 'I'm her toy whether I like it or not'",
                        duration: 180,
                        nextStep: "forced_position"
                    },
                    
                    forced_position: {
                        type: 'verification-required',
                        mood: 'merciless',
                        story: "'Get into position. Now. A submissive position. I'm not asking - I'm telling. You resisted me, so now you don't get to be comfortable. You don't get gentle. You get broken.' Her heel clicks on the floor as she circles you.",
                        verificationInstructions: "submissive",
                        verificationDuration: 90,
                        verificationText: "Resistance is over. Submission begins now.",
                        nextStep: "forced_edging"
                    },
                    
                    forced_edging: {
                        type: 'action',
                        mood: 'ruthless',
                        story: "'Back up. Spread your legs. Stroke for me - fast. Faster. Edge. Again. Again. I don't care if it's too much. I don't care if you're overwhelmed. You wanted to resist? This is what happens to toys who resist me. They get broken. Thoroughly.' Her voice is sharp command.",
                        actionText: "Rapid, relentless edging - no breaks, no mercy - forced to stroke faster than comfortable while repeating 'I'm being broken', 'I can't resist', 'She's breaking me', 'I submit', 'Please, I'm yours'",
                        duration: 300,
                        nextStep: "forced_mirror_breaking"
                    },
                    
                    forced_mirror_breaking: {
                        type: 'mirror-action',
                        mood: 'absolute',
                        story: "She grabs your hair, forcing you to look in the mirror. 'LOOK. Look at yourself being broken. Look at what happens when you resist me. You're mine. Say it. Scream it. Accept it. There is no escape. There is only submission. Only obedience. Only being my perfect broken toy.'",
                        interactiveType: "mirror-task",
                        mirrorInstructions: "Forced to watch your own breaking in the mirror",
                        mirrorTaskText: "Edge desperately while staring at your broken reflection, repeat: 'I'm broken', 'She broke me', 'I'm completely hers', 'Resistance was futile', 'I'm her slave'",
                        duration: 180,
                        nextStep: "forced_final_position"
                    },
                    
                    forced_final_position: {
                        type: 'verification-required',
                        mood: 'absolute_control',
                        story: "'Final position. The position of the completely broken. Extreme submission. Stroke while you hold it. This is your reality now. Broken. Owned. Mine. Forever.'",
                        verificationInstructions: "extreme",
                        verificationDuration: 120,
                        verificationText: "You tried to resist. You failed. You are hers.",
                        nextStep: "ending_forced_submission"
                    }
                }
            }
        }
    ],

    // Configuration for humiliation mode
    config: {
        mood: "dominant",
        theme: "humiliation"
    }
};

// Make humiliation game data available globally
window.humiliationGameData = humiliationGameData;
