# Original prompt

build a fun goat simulator game

# Generated expansion

Continue building the plain HTML/CSS/JavaScript canvas game “Goat Giggle Simulator.” The player should control a playful goat in a bounded, colorful sunny farm meadow. Use the existing module structure (`src/state.js`, `src/input.js`, `src/update.js`, `src/render.js`, `src/game.js`, and `src/main.js`) and procedural shapes/colors; do not replace the project with external art or an unrelated framework. Implement and verify a clear browser entry point, animation/update/render loop, keyboard controls, responsive canvas, compact readable HUD, movement instructions, and reset/replay behavior. The core interaction is exploration: collect or munch every apple and headbutt every prop for points. Include satisfying impact feedback such as particles, brief “BONK!” or “MUNCH!” labels, and screen shake where supported by the existing code. First run the supplied project and resolve module, DOM, canvas, and event-loop errors; then test the primary interaction end to end. Use `docs/design-reference.png` as visual guidance only—the original request and functional behavior take priority. Do not claim completion or visual fidelity until the browser behavior has been checked.