/* Cosmic changes the backdrop only: the Tabletop layout, art and fitting rules
   remain shared across desktop, tablet, phone and installed clients. */
body.desktop-play.faithful-target[data-board-background=cosmic][data-desktop-view=tabletop]{background:#17151e url(visuals/welcome/cosmos.webp?v=detail1) center/cover no-repeat!important}
body.desktop-play.faithful-target[data-board-background=cosmic] #desktop-shell{background:transparent!important}
body.desktop-play.faithful-target[data-board-background=cosmic] #worlds .planet-research-badge>span:last-child,
body.desktop-play.faithful-target[data-board-background=cosmic] #worlds .world.hidden .caption small,
body.desktop-play.faithful-target[data-board-background=cosmic] #worlds .trait-face>b{color:#fff1d8!important;text-shadow:0 1px 3px #120c21,0 0 4px #120c21}
body.phone-play[data-board-background=cosmic] #phone-faithful .mini{background:#17151e url(visuals/welcome/cosmos.webp?v=detail1) center/cover no-repeat}
body.phone-play[data-board-background=cosmic] #phone-faithful .board :is(.planet-research-badge,.trait-face>b,.unexplored-hint){color:#fff1d8!important;text-shadow:0 1px 3px #120c21,0 0 4px #120c21}
body.phone-play[data-board-background=cosmic] #phone-faithful :is(.event,.mobile-next-event){background:#efdbb5ed;color:#35271c}
/* Shared outer backdrop for account, online hub, lobby and settings. Illustrated
   parchment windows remain intact; only the space behind them follows Cosmic. */
body[data-board-background=cosmic]{background:#17151e url(visuals/welcome/cosmos.webp?v=detail1) center/cover fixed no-repeat!important}
body[data-board-background=cosmic] #online-screen:not(.welcome-screen){background:linear-gradient(#17121f45,#17121f65),url(visuals/welcome/cosmos.webp?v=detail1) center/cover no-repeat!important}
body[data-board-background=cosmic] #online-screen:not(.welcome-screen) :is(button,summary):hover:not(:disabled){background-color:#b9955a18!important;box-shadow:none;transform:none}

/* Approved shared map Traits: retain each view's existing badge geometry and
   external numeric/resource effect; inspector images remain unchanged. */
body:is([data-board-background=cosmic],[data-board-background=tabletop]) :is(#worlds,#phone-faithful .board) .trait-face>.trait-original-art{display:none!important}
body:is([data-board-background=cosmic],[data-board-background=tabletop]) :is(#worlds,#phone-faithful .board) .trait-face>.trait-dev-token{display:block!important;object-fit:contain;border-radius:9%}
