Zero-backend high scores with useful constraints.
What to store
Keep score and ISO timestamp; sort descending and trim the array to top 50 entries.
When to store
Save on game over or explicit action; avoid spamming storage every frame.
Reset option
Let privacy-minded users clear scores. Respect their choice.