.bc-curated-player{width:calc(100% - 24px);max-width:none;margin:8px auto 24px;color:#e5d7f2;box-sizing:border-box}
.bc-game-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-height:44px;margin-bottom:8px}.bc-game-heading h1{margin:0;color:#d5aaff;font-size:22px}.bc-game-heading>span{font-size:12px;color:#baa6ca}
.bc-game-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(280px,24vw,360px);gap:12px;height:var(--bc-game-height,calc(100dvh - var(--ztv-chrome-height,100px) - 72px));min-height:300px}
.bc-game-main{display:flex;flex-direction:column;min-width:0;min-height:0;gap:7px}
.bc-game-stage{position:relative;flex:1;min-height:0;background:#08050d;border:1px solid #8155a1;border-radius:10px;overflow:hidden}
.bc-game-stage iframe{width:100%;height:100%;display:block;border:0}
.bc-game-layout:fullscreen{width:100vw;height:100dvh;background:#130a1f;padding:8px;box-sizing:border-box}
.bc-game-placeholder{padding:24px;display:grid;place-content:center;height:100%;box-sizing:border-box;text-align:center}
.bc-game-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none}
.bc-curated-player button{font:inherit;background:#422360;color:#fff;border:1px solid #9766b6;border-radius:7px;padding:9px 13px;cursor:pointer}.bc-curated-player button:disabled{opacity:.5;cursor:default}.bc-curated-player a{color:#d5aaff}
.bc-game-volume{display:flex;align-items:center;gap:7px;font-size:12px}.bc-game-volume input{width:clamp(90px,12vw,170px);accent-color:#b77be0}.bc-game-volume output{min-width:4ch}
.bc-game-status{min-height:1.4em;margin:0;font-size:12px;line-height:1.4;flex:none}
.bc-game-sidebar{display:grid;grid-template-rows:minmax(180px,1fr) minmax(100px,28%);gap:10px;min-width:0;min-height:0}
.bc-game-sidebar #bc-curated-chat-slot{min-height:0;min-width:0}
body.bc-curated-game #bc-curated-chat-slot #ztv-chat-root{position:static!important;width:100%!important;height:100%!important;max-height:none!important;min-width:0!important}
body.bc-curated-game #bc-curated-chat-slot .ztv-chat-panel{position:static!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;max-height:none!important;min-height:0!important;box-sizing:border-box}
body.bc-curated-game #bc-curated-chat-slot .ztv-chat-toggle{display:none!important}
.bc-game-discord{overflow:auto;min-width:0;min-height:0;scrollbar-width:thin;border-radius:10px}
.bc-game-discord #ztv-network-rail-content{display:block!important}.bc-game-discord .ztv-network-card{margin:0;box-sizing:border-box;max-width:100%}
.bc-game-notes{padding:10px 12px;border:1px solid #61408b;border-radius:10px;background:#140e21;margin-top:12px}.bc-game-notes summary{cursor:pointer}.bc-game-notes p{line-height:1.6}
.bc-game-touch-note{display:none}
@media(pointer:coarse){.bc-game-touch-note{display:block;color:#ffd58a;font-size:12px}}
@media(max-width:900px){.bc-game-layout{display:flex;flex-direction:column;height:auto;min-height:0}.bc-game-stage{flex:none;aspect-ratio:16/9;min-height:180px}.bc-game-main{height:auto}.bc-game-sidebar{grid-template-rows:minmax(260px,60dvh) minmax(120px,280px)}.bc-game-heading{gap:8px}.bc-game-heading h1{font-size:18px}.bc-game-volume{flex:1}.bc-game-volume input{width:100%;min-width:90px}.bc-game-layout:fullscreen .bc-game-stage{flex:1;aspect-ratio:auto;min-height:0}}

@media(max-width:900px){.bc-game-layout:fullscreen{overflow:auto}.bc-game-layout:fullscreen .bc-game-main{min-height:50dvh;flex:none}.bc-game-layout:fullscreen .bc-game-stage{min-height:220px}}

#bc-game-frame-slot{width:100%;height:100%}
.bc-game-menu-open{position:absolute;top:10px;right:10px;z-index:2;opacity:.8}
.bc-game-menu{position:absolute;inset:0;z-index:3;display:grid;place-items:center;overflow:auto;background:#080510c9;padding:16px;box-sizing:border-box}
.bc-game-menu[hidden]{display:none}
.bc-game-menu-card{display:grid;gap:14px;width:min(100%,330px);padding:22px;box-sizing:border-box;border:1px solid #9766b6;border-radius:12px;background:#1b1029;box-shadow:0 12px 48px #0008}
.bc-game-menu-card h2,.bc-game-menu-card p{margin:0}.bc-game-menu-card small{line-height:1.5;color:#baa6ca}
.bc-game-menu-card .bc-game-volume{flex-wrap:wrap}.bc-game-menu-card .bc-game-volume input{flex:1;min-width:90px}
.bc-game-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.bc-game-status.bc-game-error{position:static;width:auto;height:auto;overflow:visible;clip-path:none}

/* Three columns fit the space below BORTCADE chrome. Only contained panels scroll. */
.bc-curated-player{margin-bottom:0}
.bc-game-layout{grid-template-columns:clamp(220px,19vw,290px) minmax(0,1fr) clamp(280px,25vw,380px);min-height:220px}
.bc-game-left{display:grid;grid-template-rows:minmax(110px,40%) minmax(0,1fr);gap:10px;min-width:0;min-height:0}
.bc-game-progress{min-height:0;overflow:auto;border:1px solid #61408b;border-radius:10px;background:#140e21;padding:10px;font-size:12px}
.bc-progress-tabs{display:flex;gap:4px;position:sticky;top:0;background:#140e21}.bc-progress-tabs button{flex:1;padding:8px 4px;font-size:12px}.bc-progress-tabs [aria-selected=true]{background:#68408b}
.bc-game-progress p{line-height:1.5}.bc-progress-award{border-top:1px solid #61408b;padding:10px 0}.bc-progress-award strong{display:block}.bc-progress-award small{display:block;color:#baa6ca;margin-top:4px;line-height:1.5}
.bc-game-sidebar{display:block;height:100%;overflow:hidden}
#bc-curated-chat-slot{height:100%;overflow:hidden}
body.bc-curated-game #bc-curated-chat-slot .ztv-chat-panel{display:flex!important;flex-direction:column;overflow:hidden!important}
body.bc-curated-game #bc-curated-chat-slot .ztv-chat-panel> *{flex-shrink:0}
body.bc-curated-game #bc-curated-chat-slot .ztv-chat-messages{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important}
.bc-game-notes{margin:6px 0;padding:0;border:0;background:transparent}.bc-game-notes:not([open]){height:0;overflow:hidden}
@media(max-width:1100px){.bc-game-layout{display:grid;height:auto;grid-template-columns:minmax(0,1fr) minmax(280px,35%);min-height:0}.bc-game-main{grid-column:1;grid-row:1;height:60dvh;min-height:300px}.bc-game-sidebar{grid-column:2;grid-row:1;height:60dvh;min-height:300px}.bc-game-left{grid-column:1/-1;grid-row:2;grid-template-columns:1fr 1fr;grid-template-rows:minmax(220px,40dvh)}.bc-game-stage{flex:1;aspect-ratio:auto;min-height:0}.bc-game-layout:fullscreen{overflow:auto}}
@media(max-width:700px){.bc-game-layout{display:flex;flex-direction:column}.bc-game-main{order:0;height:55dvh;min-height:260px}.bc-game-sidebar{order:1;height:65dvh;min-height:300px}.bc-game-left{order:2;display:grid;grid-template-columns:1fr;grid-template-rows:minmax(180px,35dvh) minmax(180px,40dvh)}.bc-game-volume input{width:auto}.bc-game-menu-card{gap:8px;padding:12px}}

.bc-game-stage{flex:none!important;box-sizing:border-box;margin:auto;aspect-ratio:auto!important;min-height:0!important;border-radius:0}
.bc-game-stage:focus-within{outline:2px solid #c69bf3;outline-offset:0}
.bc-game-menu .bc-game-notes{height:auto;overflow:visible;font-size:12px}.bc-game-menu .bc-game-notes:not([open]){height:auto;overflow:visible}

.bc-game-main{gap:0;justify-content:center;align-items:center}.bc-game-main .bc-game-stage{margin:0 auto}.bc-game-main .bc-game-profile{align-self:center}

.bc-game-menu-card select{font:inherit;background:#28183b;color:#f5e9ff;border:1px solid #9766b6;border-radius:6px;padding:7px;max-width:100%}#bc-game-quality-status{font-size:11px;color:#baa6ca;line-height:1.4}

/* BORTCADE shared responsive match menu: independent of page/chat layout. */
.bc-game-menu-card{width:min(100%,920px);max-height:100%;min-width:0;overflow:auto;overflow-x:hidden;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));align-content:start}
.bc-game-menu-card>h2,.bc-game-menu-card>p,.bc-game-menu-card>small,.bc-game-menu-card>details{grid-column:1/-1}
.bc-game-menu-card>*{min-width:0;max-width:100%}
.bc-game-menu-card button{white-space:normal}
@media(max-width:480px){.bc-game-menu{padding:8px}.bc-game-menu-card{padding:12px;grid-template-columns:minmax(0,1fr)}}
