Sure, below is an example of a simple Pacman game with ghosts and a Mario invincibility star implemented using HTML, CSS, and JavaScript. The game is designed to be played on a smartphone and uses pictograms for Pacman, ghosts, and the invincibility star.
Note: Replace the `emozi_all/pacman.png`, `emozi_all/ghost.png`, and `emozi_all/star.png` URLs in the CSS section with the appropriate URLs of the pictogram images you want to use for Pacman, ghosts, and the invincibility star.