Trending mode sets trendDown -25 so falling trends matter (base rules ignore
them at -200). Doc examples updated and tested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OIDC PKCE login, ID-token verification against Dex JWKS, a client-built wallet link message, an off-chain account and wallet store, and a mobile-safe login button.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Default UA unchanged; the testnet sets a contact URL in deploy/night only. Testnet wallet password moves to an env var.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live/trending presets freeze the engine's trend arrow from cached live data;
the host turn timer uses the ruleset's turnSeconds and applies the engine's
timeout action (logged, replayable AFK forfeits). Non-draft modes whose rules
make starter decks illegal are rejected at startup. HOSTING.md updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Modes are inert JSON (shared/game/modes.ts): rule overrides on the engine's
DEFAULT_RULESET, re-validated by parseRuleset; card-mapping presets from a
fixed list; deck policy and limits. server/game/ publishes this node's modes,
discovers configured peers' modes as data (byte cap, timeout, pinned origin),
and hosts lobbies, snake drafts and matches with the deterministic engine.
Finished matches are off-chain JSONL records with seed, decks and action log
(replayable). Per-mode and host leaderboards. Docs in docs/game/HOSTING.md,
including security notes and an on-chain host-reward proposal.
One mount line in server/testnet/http.ts; no consensus changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>