/* ===================================================================== * now-playing.js — a single Discord-style presence card. (API edition) * * Base state is a compact profile pill (avatar + name + status dot). * It auto-expands a row for whatever is going on, in this order: * custom status · Spotify · development · games · streaming * Data comes live from Lanyard over a websocket. Album art drives the * card's accent colour. * * WHICH USER? The Discord user id is resolved, in priority order, from: * 1. the path /api/ * 2. the query ?u= (also ?id= / ?user=) * 3. the hash # * 4.