Build me a complete Snake game - AI

Build me a complete Snake game as a single self-contained HTML file with inline CSS and vanilla JavaScript on an HTML5 <canvas>. It must run instantly in any browser with no setup, no libraries, and no external assets.

Specs:
- Grid: 20×20 cells on a square canvas
- Color theme: neon on dark — deep navy background (#080b14), bright cyan snake body (#45f5ff), green snake head (#8cff6a), pink/magenta food (#ff4fd8), cyan glowing border around the board
- Title "SNAKE" in glowing cyan above the board, with live SCORE and BEST counters top-right
- Starting speed: 145 ms per move, speeding up by 10 ms every 5 foods eaten, capped at 62 ms minimum
- Controls: Arrow Keys + WASD on desktop; swipe gestures + on-screen d-pad buttons on mobile/touch screens
- The snake cannot reverse directly into itself; a small input queue prevents missed keypresses
- Wall collision and self-collision both trigger game over
- Game-over: dark blurred overlay with final score, best score, and a prompt to restart (Enter/Space/arrow key on desktop, tap on mobile)
- Persistent high score saved to localStorage
- Uses requestAnimationFrame with a fixed time-step accumulator so speed is frame-rate independent
- On-screen hint showing available controls, auto-updated to show swipe/tap instructions on touch devices
- All CSS, JS, and HTML in one file — no imports, no frameworks, no external fonts or images