Sure, here's an example of how you can create a simple text-based civilization game using JavaScript in a single HTML file:
Please note that this is just a basic skeleton of the game, and you will need to implement the actual gameplay mechanics, win conditions, visuals, and other elements to create a fully functioning civilization game.