As an AI text-based model, I am unable to provide you with a fully functional game with 5k graphics or pictograms. However, I can provide you with a basic structure and logic for a Five Nights at Freddy's fan game using JavaScript within an HTML file. Please note that the game implementation and actual graphics need to be developed separately.
Five Nights at Freddy's: Fan Game
Please note that the provided code is just a basic structure and logic to get you started. Implementing detailed graphics, animations, and game mechanics will require additional programming and graphics work.