Add a persistent high score table

Retiring writes each player's closing balance to a top-ten table in
localStorage, reachable from the title screen and the standings, with
the summer just finished picked out in yellow.

Stored rows are user-editable, so every field is validated on load and
malformed entries are dropped. Storage being unavailable is a normal
case, not an error: the game plays on with an empty table.

Also stops the status line claiming DAY 00 on screens that have no day.
This commit is contained in:
2026-09-08 15:29:35 -07:00
parent 08b2cc5391
commit 71cbb02353
9 changed files with 280 additions and 5 deletions
+19
View File
@@ -268,6 +268,25 @@
.report-value { white-space: nowrap; }
.report-row.strong { color: var(--atari-bright); font-weight: 700; }
/* ------------------------------------------------------- high scores */
.score-days {
white-space: nowrap;
font-size: 0.82em;
padding-right: 0.8ch;
}
/* Runs added by the summer just finished. */
.score-row.is-new,
.score-row.is-new .report-value,
.score-row.is-new .score-days {
color: var(--atari-yellow);
text-shadow: 0 0 8px rgba(247, 222, 90, 0.45);
font-weight: 700;
}
.score-row.is-new .report-dots { border-bottom-color: rgba(247, 222, 90, 0.4); }
/* ------------------------------------------------------------ buttons */
.row {