/* Shared popup containment: game-side chat remains its own positioning context. */
#bc-curated-chat-slot #ztv-chat-root #ztv-chat-panel,
#play-sidebar #ztv-chat-root #ztv-chat-panel{position:relative!important;inset:auto!important}
#ztv-chat-root #ztv-chat-panel .ztv-chat-picker{
 position:absolute!important;left:6px!important;right:6px!important;top:auto!important;
 bottom:calc(var(--bc-chat-compose-height,51px) + 6px)!important;
 width:auto!important;min-width:0!important;max-width:calc(100% - 12px)!important;
 max-height:min(205px,max(0px,calc(100% - var(--bc-chat-compose-height,51px) - 20px)))!important;
 box-sizing:border-box;overflow:auto;overscroll-behavior:contain;
}
#ztv-chat-root #ztv-chat-panel .ztv-chat-picker button{
 flex:0 0 33px;box-sizing:border-box;width:33px;height:33px;min-width:0;min-height:0;
 padding:4px;overflow:hidden;
}
/* Catalogue controls stay legible over the starfield without covering card art. */
body.bc-arcade #games.bc-discovery,
body.bc-arcade #bc-catalog .bc-category-head{
 background:rgba(21,12,31,.82);border:1px solid rgba(139,91,176,.34);
 border-radius:10px;box-sizing:border-box;
}
body.bc-arcade #games.bc-discovery{padding:14px 16px;margin-bottom:14px}
body.bc-arcade #games .bc-section-heading{flex-wrap:wrap;gap:10px;margin-bottom:0}
body.bc-arcade #games .bc-search{flex:1 1 220px;min-width:0;max-width:360px}
body.bc-arcade #games .bc-catalog-note{margin:10px 0 0;color:#c4b0d1}
body.bc-arcade #bc-catalog .bc-category-head{padding:9px 12px;gap:12px}
body.bc-arcade #bc-catalog .bc-category-head>span{color:#bdabc9;flex-shrink:0}
@media(max-width:700px){
 body.bc-arcade #games.bc-discovery{padding:12px}
 body.bc-arcade #games .bc-search{flex-basis:100%;max-width:none}
}
