Removes better-sqlite3 and its types, installs mysql2 (async MariaDB
driver) along with jsonwebtoken, bcrypt, cookie-parser, and dotenv.
Rewrites db.ts to export a mysql2 connection pool pointed at the
Darkwatch MariaDB instance (port 3307).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Torch timer: 60min countdown per character, visual warnings at 10m/5m/1m
- Fog overlay: CSS radial gradient layers with seamless infinite drift
- Fog synced across all clients via socket, adapts to light/dark themes
- DM card redesign: compact layout with HP/AC/luck/torch + modifier row
- Grid changed to 3-up (from 4) with larger fonts
- DiceBear avatars on cards and character sheets with style picker
- Campaign name shown in header
- Server: JSON.stringify fix for object fields in PATCH handler
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Luck token: star toggle (filled/empty) in header, always clickable
- Color picker: input[type=color] next to name in edit mode
- Ability scores: InlineNumber click-to-edit replaces +/- buttons
- Server: added color and luck_token to allowed update fields
- DB: luck_token column migration (default 1)
- Fix dice color for hex color values (was only handling HSL)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>