opening = {
'detective': 'KEY_DETECTIVE',
'crime': 'KEY_CRIME',
'setting': 'KEY_SETTING',
'atmosphere': 'KEY_ATMOSPHERE',
'suspense_tension': 'KEY_SUSPENSE_TENSION',
'initial_clues': 'KEY_INITIAL_CLUES',
'character_reactions': 'KEY_CHARACTER_REACTIONS'
}

act_one = {
'supporting_characters': {
'suspects': ['KEY_SUSPECT_1', 'KEY_SUSPECT_2', 'KEY_SUSPECT_3', 'KEY_SUSPECT_4'],
'motives': ['KEY_MOTIVE_1', 'KEY_MOTIVE_2', 'KEY_MOTIVE_3', 'KEY_MOTIVE_4'],
'connections': ['KEY_CONNECTION_1', 'KEY_CONNECTION_2', 'KEY_CONNECTION_3', 'KEY_CONNECTION_4']
},
'setting_description': 'KEY_SETTING_DESCRIPTION',
'landmarks': 'KEY_LANDMARKS',
'atmosphere': 'KEY_ATMOSPHERE_DESCRIPTION',
'subplots': {
'subplot_1': 'KEY_SUBPLOT_1',
'subplot_2': 'KEY_SUBPLOT_2'
},
'relationships': 'KEY_RELATIONSHIPS_DESCRIPTION',
'investigate_crime': {
'clues': 'KEY_GATHERED_CLUES',
'witnesses': 'KEY_INTERVIEWED_WITNESSES',
'evidence': 'KEY_ANALYZED_EVIDENCE',
'narrow_suspects': 'KEY_NARROWED_SUSPECTS'
}
}

act_two = {
'clues_red_herrings': {
'new_clues': ['KEY_NEW_CLUE_1', 'KEY_NEW_CLUE_2', 'KEY_NEW_CLUE_3', 'KEY_NEW_CLUE_4'],
'contradictory_evidence': 'KEY_CONTRADICTORY_EVIDENCE',
'red_herrings': 'KEY_RED_HERRINGS',
'unexpected_evidence': 'KEY_UNEXPECTED_EVIDENCE'
},
'subplots_advance': {
'subplot_1_advance': 'KEY_SUBPLOT_1_ADVANCE',
'subplot_2_advance': 'KEY_SUBPLOT_2_ADVANCE'
},
'investigate_suspects': {
'suspect_interrogations': {
'suspect_1': 'KEY_INTERROGATION_1',
'suspect_2': 'KEY_INTERROGATION_2',
'suspect_3': 'KEY_INTERROGATION_3',
'suspect_4': 'KEY_INTERROGATION_4'
}
},
'plot_twist': 'KEY_PLOT_TWIST_DESCRIPTION',
'deepen_investigation': 'KEY_DEEPEN_INVESTIGATION_DETAILS'
}

act_three = {
'climax': {
'confront_culprit': 'KEY_CONFRONT_CULPRIT_SCENE',
'reveal_truth': 'KEY_REVEAL_TRUTH_DETAILS',
'aftermath': 'KEY_AFTERMATH_DESCRIPTION'
},
'subplot_resolution': {
'subplot_1_resolution': 'KEY_SUBPLOT_1_RESOLUTION',
'subplot_2_resolution': 'KEY_SUBPLOT_2_RESOLUTION'
},
'investigation_wrap_up': 'KEY_INVESTIGATION_WRAP_UP_DETAILS',
'closing_scene': 'KEY_CLOSING_SCENE_DESCRIPTION'
}

Opening (400 words):
"Introduce {opening['detective']}, {opening['crime']}, {opening['setting']}, and {opening['atmosphere']}. Build {opening['suspense_tension']}, and introduce {opening['initial_clues']} and {opening['character_reactions']}."

Act One (2,400 words):
2a. Supporting characters (400 words): "Introduce {', '.join(act_one['supporting_characters']['suspects'])}, their {'; '.join(act_one['supporting_characters']['motives'])}, and {'; '.join(act_one['supporting_characters']['connections'])} to the crime."
2b. Setting (400 words): "Describe {act_one['setting_description']}, {act_one['landmarks']}, and {act_one['atmosphere']}."
2c. Subplots and relationships (400 words): "Introduce {act_one['subplots']['subplot_1']}, {act_one['subplots']['subplot_2']}, and {act_one['relationships']}."
2d. Investigate crime (1,200 words): "Gather {act_one['investigate_crime']['clues']}, interview {act_one['investigate_crime']['witnesses']}, analyze {act_one['investigate_crime']['evidence']}, and narrow down {act_one['investigate_crime']['narrow_suspects']}."

Act Two (3,200 words):
3a. Clues and red herrings (800 words): "Introduce {', '.join(act_two['clues_red_herrings']['new_clues'])}, {act_two['clues_red_herrings']['contradictory_evidence']}, {act_two['clues_red_herrings']['red_herrings']}, and {act_two['clues_red_herrings']['unexpected_evidence']}."
3b. Subplots (800 words): "Advance {act_two['subplots_advance']['subplot_1_advance']} and {act_two['subplots_advance']['subplot_2_advance']}."
3c. Investigate suspects (800 words): "Interrogate {act_two['investigate_suspects']['suspect_interrogations']['suspect_1']}, {act_two['investigate_suspects']['suspect_interrogations']['suspect_2']}, {act_two['investigate_suspects']['suspect_interrogations']['suspect_3']}, and {act_two['investigate_suspects']['suspect_interrogations']['suspect_4']}."
3d. Plot twist (400 words): "Introduce {act_two['plot_twist']}."
3e. Deepen investigation (400 words): "Follow {act_two['deepen_investigation']}."

Act Three (2,000 words):
4a. Climax (800 words): "Confront {act_three['climax']['confront_culprit']}, reveal {act_three['climax']['reveal_truth']}, and detail {act_three['climax']['aftermath']}."
4b. Subplot resolution (600 words): "Resolve {act_three['subplot_resolution']['subplot_1_resolution']} and {act_three['subplot_resolution']['subplot_2_resolution']}."
4c. Investigation wrap-up (400 words): "Tie up {act_three['investigation_wrap_up']}."
4d. Closing scene (200 words): "Conclude {act_three['closing_scene']}."
