/* BurtyBurt keeps its existing viewport-fit engine, controls, and chat divider. */
body.ztv-shared-game #play-sidebar.bc-game-sidebar-with-discord{display:grid!important;grid-template-rows:minmax(180px,1fr) minmax(100px,28%);gap:10px;box-sizing:border-box;padding-bottom:8px!important}
body.ztv-shared-game #play-sidebar.bc-game-sidebar-with-discord>#ztv-chat-root{position:relative!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;overflow:hidden}
body.ztv-shared-game #play-sidebar.bc-game-sidebar-with-discord>#ztv-chat-root .ztv-chat-panel{height:100%!important;min-height:0!important;max-height:none!important;box-sizing:border-box}
body.ztv-shared-game #play-sidebar .bc-game-discord{overflow:auto;min-height:0;min-width:0;scrollbar-width:thin;margin:0 8px}
body.ztv-shared-game #play-sidebar .bc-game-discord #ztv-network-rail-content{display:block!important}
body.ztv-shared-game #play-sidebar .bc-game-discord .ztv-network-card{margin:0;max-width:100%;box-sizing:border-box}
body.ztv-shared-game #game-vol-slider{width:clamp(90px,10vw,150px)!important;accent-color:#b77be0}
@media(max-width:900px){body.ztv-shared-game #play-sidebar.bc-game-sidebar-with-discord{height:auto!important;min-height:0!important;grid-template-rows:minmax(260px,60dvh) minmax(120px,280px)}}
/* Scoped opt-in shell; legacy and Discord Activity pages keep existing rules. */
body.bb-explicit-shell #play-root{display:grid!important;grid-template-columns:clamp(220px,19vw,290px) minmax(0,1fr) clamp(280px,25vw,380px)!important;gap:12px!important;height:var(--bb-root-height)!important;max-height:var(--bb-root-height)!important;box-sizing:border-box!important;padding:8px 12px!important;overflow:hidden!important}
body.bb-explicit-shell #bb-community-left{display:grid;grid-template-rows:minmax(110px,40%) minmax(0,1fr);gap:10px;min-width:0;min-height:0;overflow:hidden}
body.bb-explicit-shell .bc-game-progress{min-height:0;overflow:auto;border:1px solid #61408b;border-radius:10px;background:#140e21;padding:10px;font:12px/1.5 'Courier New',monospace;color:#e5d7f2}
body.bb-explicit-shell .bc-progress-tabs{display:flex;gap:4px;position:sticky;top:0;background:#140e21}
body.bb-explicit-shell .bc-progress-tabs button{flex:1;font:inherit;padding:8px 4px;color:#fff;background:#422360;border:1px solid #9766b6;border-radius:7px;cursor:pointer}
body.bb-explicit-shell .bc-progress-tabs [aria-selected=true]{background:#68408b}
body.bb-explicit-shell .bc-progress-award{border-top:1px solid #61408b;padding:10px 0}
body.bb-explicit-shell .bc-progress-award strong,body.bb-explicit-shell .bc-progress-award small{display:block}
body.bb-explicit-shell #bb-discord-slot{min-height:0;overflow:auto}
body.bb-explicit-shell #bb-discord-slot .bc-game-discord{margin:0;overflow:visible}
body.bb-explicit-shell #bb-discord-slot #ztv-network-rail-content{display:block!important}
body.bb-explicit-shell #bb-discord-slot .ztv-network-card{margin:0;box-sizing:border-box;width:100%}
body.bb-explicit-shell #play-game-col{padding:0!important;overflow:hidden!important;width:auto!important;min-width:0!important;height:100%!important}
body.bb-explicit-shell #ztv-arcade-frame{width:var(--bb-frame-width,100%)!important;max-width:100%!important;max-height:100%!important;align-self:center!important;border-radius:10px 10px 0 0!important}
body.bb-explicit-shell #ztv-arcade-frame>.bc-game-profile{border:0;border-radius:0}
body.bb-explicit-shell #ztv-arcade-frame>#game-wrapper{position:relative!important;height:auto!important;aspect-ratio:640/400!important;flex:none!important;min-height:0!important}
body.bb-explicit-shell #game-canvas{width:100%!important;height:100%!important;outline:none}
body.bb-explicit-shell #game-wrapper:focus-within{outline:2px solid #c69bf3;outline-offset:-2px}
body.bb-explicit-shell #bb-menu-open{position:absolute;right:10px;top:10px;z-index:12;background:#422360;color:#fff;border:1px solid #9766b6;border-radius:7px;padding:8px 12px;cursor:pointer}
body.bb-explicit-shell #bb-pause-menu{position:absolute;inset:0;display:grid;place-items:center;z-index:13;background:#080510cf;overflow:auto;padding:12px;box-sizing:border-box}
body.bb-explicit-shell #bb-pause-menu[hidden],body.bb-explicit-shell #bb-menu-open[hidden]{display:none!important}
body.bb-explicit-shell .bb-pause-card{display:grid;gap:10px;width:min(100%,400px);padding:16px;background:#1b1029;border:1px solid #9766b6;border-radius:10px;box-sizing:border-box;color:#e5d7f2}
body.bb-explicit-shell .bb-pause-card h2,body.bb-explicit-shell .bb-pause-card p{margin:0}
body.bb-explicit-shell #bb-menu-resume,body.bb-explicit-shell #bb-menu-restart{font:inherit;padding:8px;border:1px solid #9766b6;border-radius:7px;background:#422360;color:#fff;cursor:pointer}
body.bb-explicit-shell #bb-menu-controls #game-controls{display:flex!important;flex-direction:column!important;width:100%!important;min-height:0!important;padding:0!important;border:0!important;gap:8px!important;background:transparent!important}
body.bb-explicit-shell #game-control-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
body.bb-explicit-shell #game-pause-btn,body.bb-explicit-shell #game-mute-btn{display:none!important}
body.bb-explicit-shell #powerup-guide{display:block!important;width:auto!important;min-width:0!important;max-height:none!important;height:auto!important;padding:8px!important;overflow:visible!important}
body.bb-explicit-shell #play-sidebar{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important}
body.bb-explicit-shell #play-sidebar #ztv-chat-root{height:100%!important;width:100%!important;position:relative!important;min-height:0!important}
body.bb-explicit-shell #play-sidebar .ztv-chat-panel{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body.bb-explicit-shell #play-sidebar .ztv-chat-panel>*{flex-shrink:0}
body.bb-explicit-shell #play-sidebar .ztv-chat-messages{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important}
body.bb-explicit-shell .ztv-chat-drag-handle{display:none!important}
@media(max-width:1100px) and (min-width:901px){body.bb-explicit-shell #play-root{grid-template-columns:220px minmax(0,1fr) 280px!important;gap:8px!important;padding:8px!important}}
@media(max-width:900px){body.bb-explicit-shell #play-root{display:flex!important;flex-direction:column!important;height:auto!important;max-height:none!important;overflow:visible!important}body.bb-explicit-shell #play-game-col{order:0;height:65dvh!important;min-height:320px!important;flex:none!important}body.bb-explicit-shell #play-sidebar{order:1;height:65dvh!important;min-height:320px!important;flex:none!important}body.bb-explicit-shell #bb-community-left{order:2;grid-template-columns:1fr 1fr;grid-template-rows:minmax(220px,40dvh);flex:none!important}body.bb-explicit-shell #ztv-arcade-frame{align-self:center!important}}
@media(max-width:600px){body.bb-explicit-shell #bb-community-left{grid-template-columns:1fr;grid-template-rows:minmax(180px,35dvh) minmax(200px,40dvh)}body.bb-explicit-shell .bb-pause-card{padding:10px;gap:8px}}
