/* ===================================================================== FULL-COURT PRESS — Sport on Earth Games arcade Single-file canvas game in the Family Arcade house style. EMBED (inline):
CONTROLS: drag on the court (pointer / touch) or use the arrow keys / WASD to move your defender. Press the STEAL button or Space to lunge for the ball — or tap a ball-handler on the court to lunge at him (same clean-steal / foul / whiff outcomes). RULES: ball handlers dribble down toward the bottom basket for 60 seconds. Watch for the flashing yellow ring — the dribble has popped loose and the steal window is open (0.55s). Steal inside the window to score; reach in while it is closed and it is a foul. SCORING: clean steal +3, reach-in foul -1, a handler who reaches the basket scores on you -2. The score never drops below 0. FIXES (Oct 14 PM): the steal lunge now prefers a handler whose window is OPEN in range over a nearer closed one (was: nearest, period — a foul magnet); window widened 0.45s -> 0.55s; the concurrency ramp is 1 -> 2 -> 3 handlers at 20s/40s (was a cliff from 1 to 3 at 30s); the final-whistle screen no longer freezes a half-faded steal animation behind it; Start/Save blur after click so Space/Enter can't re-trigger them; pressing steal while stunned now shows why nothing happened. ===================================================================== */ (function () { "use strict"; /* ================= LEADERBOARD BACKEND — UPGRADE HOOK ================= Default: LOCAL board (localStorage top-10) so the game runs standalone. To switch to the shared family KV leaderboard later, set KV_ENABLED to true. The site must then serve the paper's functions/api/arcade.js with "full-court-press" added to its GAMES list and ARCADE_KV bound — the fetch calls below already mirror that API exactly: GET /api/arcade/leaderboard?game=