{
  "type": "object",
  "properties": {
    "rules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rule_type": {
            "type": "string",
            "enum": [
              "possession",
              "transformation",
              "ghost",
              "projection",
              "superpower",
              "body_deformation",
              "time_period",
              "costume",
              "technology",
              "other"
            ],
            "description": "규칙 유형 (possession, transformation, ghost, projection, superpower, body_deformation, time_period, costume, technology, other)"
          },
          "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": "씬 감독이 물리적 존재 여부를 판단할 때 참고할 구체적 가이드 (작품 전반에 적용 가능한 유형적 원칙만 — 특정 인물/씬/사건 묘사 금지)"
    },
    "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
}
