Full Prompt:
Build a fully playable chess app as a single interactive artifact. Requirements: complete legal move validation (including castling, en passant, pawn promotion, check and checkmate detection), an AI opponent with 3 selectable difficulty levels, a move history panel in algebraic notation, and a clean modern board design with smooth piece animations. Everything must work in one shot with no follow-ups.