The classic lemonade-stand tycoon loop, reverse-engineered and rebuilt from scratch as an offline-first browser game

A personal reverse-engineering project. I studied how a classic lemonade-stand tycoon game behaves, modelled its rules (weather, recipe, price and demand) and rebuilt the whole loop from scratch for the browser. It runs offline on a phone, keeps saves on the device and serves every player the same daily challenge.
JavaScript, HTML Canvas, Cloudflare Workers, Offline storage