Sure! Here's a complete implementation of the game you described using HTML, JavaScript, and CSS. You can save the code in a single HTML file and open it in any web browser to play the game.
To play the game, save this code in an HTML file (e.g., `food_game.html`) and open it in a web browser on your smartphone. You'll see a canvas where you can click on the food items to eat them. Be careful not to click on the red circles as they disappear every 3 seconds but will cause you to lose the game if clicked. Your score will be displayed, and the game will end when you click a red circle or when all the food has been eaten.