// ============================================================================= // CARD ART — Router // Pulls from PRAGMA_ART, PIXEL_ART, PLAYROLL_ART, SAWBLADE_ART, NOBOUND_ART. // ============================================================================= function CardArt({ artKey, color = 'currentColor' }) { // Build a registry on first invocation const reg = window.__CARD_ART_REGISTRY = window.__CARD_ART_REGISTRY || { ...(window.PRAGMA_ART || {}), ...(window.PIXEL_ART || {}), ...(window.PLAYROLL_ART || {}), ...(window.SAWBLADE_ART || {}), ...(window.NOBOUND_ART || {}), }; const images = window.__CARD_ART_IMAGES = window.__CARD_ART_IMAGES || { ...(window.PRAGMA_ART_IMAGES || {}), }; // If the artKey maps to a raster image (curated illustration), render it // edge-to-edge within the art container. if (images[artKey]) { return ( ); } const renderer = reg[artKey]; return ( {renderer ? renderer(color) : ( ) } ); } window.CardArt = CardArt;