A hallmark of many idle games is the ability to still progress (or at least regain resources) while the game isn't active. The device can even be off.
Initially I figured they just calculated progress off system time next time it was started, but they do not appear fooled by messing with the clock.
How do they manage this specific feat?