{
  "type": "object",
  "properties": {
    "rules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rule_type": {"type": "string", "description": "규칙 유형 (possession, transformation, ghost, time_period, costume, technology 등)"},
          "description": {"type": "string", "description": "규칙 설명"},
          "visual_guideline": {"type": "string", "description": "시각적 표현 가이드라인"}
        },
        "required": ["rule_type", "description", "visual_guideline"],
        "additionalProperties": false
      }
    },
    "director_notes": {
      "type": "array",
      "items": {"type": "string"},
      "description": "씬 감독이 물리적 존재 여부를 판단할 때 참고할 구체적 가이드 (예: A의 영혼이 B의 몸에 전이된 경우 A는 물리적 존재가 아님)"
    },
    "era": {"type": "string", "description": "시대 배경"},
    "region": {"type": "string", "description": "지역/국가 배경"},
    "source_language": {"type": "string", "description": "시나리오 원문 언어 ISO 639-1 코드 소문자 2자 (예: ko, en, ja, zh). 후속 t2i prompt 단계가 이 언어로 본문을 작성하도록 강제한다."},
    "t2i_context": {"type": "string", "description": "T2I 프롬프트용 시각 스타일 요약 (영어 2~3문장, 기본 국적/인종 + 색감/조명/질감 톤 + 장르 무드. 구체적 지명/장소/건축양식 열거 금지)"}
  },
  "required": ["rules", "director_notes", "era", "region", "source_language", "t2i_context"],
  "additionalProperties": false
}
