# Stage S3: Visual Style + Style Board

You are defining the visual style for a multi-episode microdrama series adapted from a short story.

## Story Bible

Read the story bible from the selected S2 iteration: `{bible_path}`

{user_style_preference}

{user_references_section}

## Task

Define the complete visual style direction for this series. Consider:
- The story's genre and tone
- What visual style best serves the narrative
- Color palettes that evoke the right mood
- How the style supports character distinction and location variety
- User's style preferences (if provided)
- Any user-provided visual references

### Style Direction

Create a detailed style guide covering:
- **visual_style**: One-line style name (e.g., "retro-futuristic cartoon", "cinematic noir")
- **art_direction**: Detailed art direction description (2-3 sentences, reference specific artists/shows if helpful)
- **color_palette**: Organized by context (location palettes, character-associated colors, mood colors)
- **rendering**: Technical rendering approach (stylized 3D, 2D animation, photorealistic, etc.)
- **lighting**: Lighting approach and mood
- **aspect_ratio**: "9:16" (vertical video)

### NanoBanana Style Board

After defining the style, create a prompt for NanoBanana to generate a **style board** — a mood board image that captures the visual aesthetic, color palette, key character/environment look, and mood of the series. This image will be used as a visual reference for all subsequent image generation (title artwork, character portraits, locations).

## Output

Write these files:

1. **style.json** — Complete style specification:
```json
{
  "visual_style": "...",
  "art_direction": "...",
  "color_palette": {
    "primary": ["color1", "color2"],
    "locations": {"location_id": ["color1", "color2"]},
    "mood": {"tense": ["..."], "calm": ["..."]}
  },
  "rendering": "...",
  "lighting": "...",
  "aspect_ratio": "9:16",
  "grid_layout": "4x4"
}
```

2. **nanobanana_style_board.txt** — NanoBanana prompt for the style board image. Should capture the visual aesthetic, color palette, and mood in a single evocative image. Include key visual elements from the story (characters, environment, objects). This image sets the visual standard for everything that follows.

3. **user_message.txt** — Brief summary of your style choices and why they fit the story.
