This is a dependency-free browser game prototype implementing the irreversible creature lifecycle and wipe/restart loop from the supplied system design. applyDamage() is the shared damage entry point.