@font-face{font-family:'BoYi Brand WenKai';src:url('/assets/fonts/boyi-brand-wenkai.ttf?v=456') format('truetype');font-weight:400;font-style:normal;font-display:swap}
/* Production C / 游戏放映厅. Legacy decorative sheets are enabled only for game/replay surfaces. */
@font-face{font-family:CinemaInterface;src:url('/assets/fonts/boyi-interface.woff2');font-display:swap}
@font-face{font-family:CinemaHeadline;src:url('/assets/fonts/catalogue-hanzi.ttf');font-display:swap}
body:has(#app.cinema-shell){--bg:#fffdf6;--bg-2:#f7f6f0;--surface:#fff;--surface-2:#f6f7fb;--surface-3:#edf0f6;--text:#24344b;--text-2:#6b778a;--text-3:#8691a3;--brand:#2162ee;--brand-2:#174dc1;--brand-3:#14388a;--brand-soft:#edf2ff;--border:#e7e9ef;--border-strong:#d2d9e5;--sel-bg:#2162ee;--sel-text:#fff;--sel-border:#2162ee;--header-height:64px;background:#fffdf6;font-family:CinemaInterface,'Microsoft YaHei',sans-serif}
html[data-theme=dark] body:has(#app.cinema-shell){--bg:#121b29;--bg-2:#182334;--surface:#1b283b;--surface-2:#223148;--surface-3:#2b3e56;--text:#edf2f9;--text-2:#b5c1d2;--text-3:#92a5bc;--brand:#82adff;--brand-2:#b2cdff;--brand-soft:#273c5d;--border:#34445c;--border-strong:#516782;background:var(--bg)}
#app.cinema-shell{font-family:CinemaInterface,'Microsoft YaHei',sans-serif;--header-height:64px}
/* Cinema shell: a narrow navigation rail and an open, poster-led lobby. */
html[data-theme] #app.cinema-shell{--header-height:64px}
html[data-theme] #app.cinema-shell[data-page] .bga-header{background:var(--surface);border-bottom:1px solid var(--border);box-shadow:none}
html[data-theme] #app.cinema-shell[data-page] .bga-header::before,html[data-theme] #app.cinema-shell[data-page] .bga-header::after{content:none;background:none}
html[data-theme] #app.cinema-shell[data-page] .bga-header-inner{height:64px;min-height:64px;padding:8px 24px}
html[data-theme] #app.cinema-shell[data-page] .bga-nav,html[data-theme] #app.cinema-shell[data-page] .bga-header .nav-toggle{display:none}
html[data-theme] #app.cinema-shell[data-page] .bga-logo-text,html[data-theme] #app.cinema-shell[data-page] .bga-username{color:var(--text);text-shadow:none}
html[data-theme] #app.cinema-shell[data-page] .bga-main{background:var(--bg);max-width:none}
html[data-theme] #app.cinema-shell[data-page] .cinema-rail{width:94px;min-width:94px;position:fixed;top:0;left:0;height:100dvh;padding:18px 8px;align-self:flex-start;display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--border);box-shadow:none;overflow:visible}
.cinema-rail-nav{display:grid;gap:10px}.cinema-rail-nav a,.cinema-rail-personal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:66px;padding:10px 4px;border-radius:10px;font-size:12px;color:var(--text-2);text-decoration:none}.cinema-rail-nav :is(img,svg),.cinema-rail-personal :is(img,svg){width:23px;height:23px;object-fit:contain}.cinema-rail-nav a:hover,.cinema-rail-personal:hover{background:var(--surface-2)}.cinema-rail-nav a[aria-current=page],.cinema-rail-personal[aria-current=page]{background:#fff0bd;color:#77591a}.cinema-rail-personal{margin-top:auto}.personal-links{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 24px;font-size:14px}.personal-links a{padding:8px 0;color:var(--text-2)}
html[data-theme] #app.cinema-shell[data-page] .bga-content>.card{background:var(--surface);box-shadow:none;border-color:var(--border)}
html[data-theme] #app.cinema-shell[data-page] .btn-primary{background:#2162ee;color:white;box-shadow:none}
html[data-theme] #app.cinema-shell[data-page] .btn-primary::before{content:none}
.site-bottom-nav{display:none}
/* Dialog is appended to body, independent of the lobby shell. */
.lobby-create-dialog{width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:auto;padding:24px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);box-shadow:0 24px 80px #0004}.lobby-create-dialog::backdrop{background:#10203099}.lobby-create-dialog h2{font-size:22px;margin:0}.lobby-create-dialog button,.lobby-create-dialog select{min-height:44px;font-size:15px}.create-game-label{display:grid;gap:10px;margin-top:24px}.create-game-label select{width:100%}.create-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.lobby-create-dialog .room-options{margin:20px 0}.lobby-create-dialog .dim{font-size:14px;line-height:1.7}
/* Lobby sections are open surfaces; only controls and the banner need a shape. */
html[data-theme] #app.cinema-shell[data-page=lobby] .bga-main{background:#fffdf7}
html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content{max-width:1450px;width:100%;min-width:0;margin:0 auto;padding:24px 32px 40px;box-sizing:border-box}
html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content>.card{padding:0;margin:0 0 30px;background:none;border:0;box-shadow:none;border-radius:0}
html[data-theme] #app.cinema-shell[data-page=lobby] .section-title{font-size:21px;line-height:1.5;letter-spacing:0;border:0;color:var(--text);padding:0;margin:0;font-weight:700}
html[data-theme] #app.cinema-shell[data-page=lobby] .section-title::before{content:none}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-launch{display:flex;align-items:center;gap:12px;padding:0;margin:4px 0 30px;background:none;border:0;border-radius:0;box-shadow:none}
.lobby-join-form{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.lobby-join-form input{min-width:0;flex:1;width:0;min-height:44px;font-size:15px}.lobby-launch button{min-height:44px;font-size:14px;white-space:nowrap}.lobby-launch>.quick-create{min-width:140px;justify-content:center}
.lobby-resume{margin:0 0 14px;font-size:14px}.lobby-resume[hidden]{display:none}.lobby-resume a{color:var(--text);text-decoration:underline;text-underline-offset:4px}
.lobby-library-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0 20px;min-width:0}.lobby-library-tools input{flex:1;min-width:150px;min-height:44px;font-size:15px}.lobby-library-tools select{max-width:150px;min-height:44px;font-size:14px}
.lobby-categories{display:flex;gap:8px;width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px;scrollbar-width:thin}.lobby-categories button{flex-shrink:0;min-height:44px;padding:8px 15px;font-size:14px;background:transparent;color:var(--text-2);border:0;border-radius:6px}.lobby-categories button[aria-pressed=true]{background:#fff0bd;color:#77591a;font-weight:700}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 22px}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card{border:0;background:none;box-shadow:none;border-radius:0;overflow:hidden;transform:none}
@media (hover: hover) {
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card {
    transition: transform .2s, box-shadow .2s;
  }
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px #2f7f7022;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card { transition: none; }
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card:hover { transform: none; }
}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card>.game-cover{border-radius:10px;overflow:hidden;box-shadow:none;border:0}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-body{padding:12px 0 8px}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-name{font-size:18px;color:var(--text)}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-meta{font-size:13px;color:var(--text-2)}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-desc{font-size:13px;line-height:1.7;color:var(--text-2)}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card>.quick-create{min-height:44px;margin:0;padding:6px 0;border:0;border-radius:0;background:none;color:#2162ee;box-shadow:none;justify-content:flex-start;font-size:14px}
html[data-theme] #app.cinema-shell[data-page=lobby] .quick-create::before{content:none}
html[data-theme] #app.cinema-shell[data-page=lobby] .room-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;margin:14px 0 0}
html[data-theme] #app.cinema-shell[data-page=lobby] .room-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:16px 0;margin:0;min-width:0;background:none;border:0;border-bottom:1px solid var(--border);border-radius:0;box-shadow:none}
html[data-theme] #app.cinema-shell[data-page=lobby] .room-row .rid{display:none}
html[data-theme] #app.cinema-shell[data-page=lobby] .room-row .room-summary{flex:1 1 100%!important;min-width:0}
html[data-theme] #app.cinema-shell[data-page=lobby] .r-name{font-size:16px;line-height:1.5;overflow-wrap:anywhere}.r-sub{line-height:1.7;font-size:13px}
html[data-theme] #app.cinema-shell[data-page=lobby] .room-row .avatar-stack{display:flex;margin:0;margin-right:auto}
html[data-theme] #app.cinema-shell[data-page=lobby] .room-row>.tag{font-size:11px;background:none;border:0;padding:0;color:var(--text-2)}
html[data-theme] #app.cinema-shell[data-page=lobby] .room-row>button{min-height:44px;font-size:13px;border:0;border-radius:0;background:none;color:#2162ee;box-shadow:none;padding:8px 0 8px 8px}
html[data-theme] #app.cinema-shell[data-page=lobby] .room-row>button::before{content:none}
html[data-theme] #app.cinema-shell[data-page=lobby] .room-list>.empty{grid-column:1/-1;padding:20px 0;text-align:left;background:none;font-size:14px;color:var(--text-2)}
.lobby-all-tables{font-size:13px;color:var(--text-2);white-space:nowrap}
.lobby-community{display:flex;align-items:center;justify-content:space-between;gap:20px;border:0;border-top:1px solid var(--border);border-radius:0;box-shadow:none;background:none;padding:24px 0;margin-top:8px}.lobby-community h2{font-size:20px;margin:0 0 8px;color:var(--text)}.lobby-community p{font-size:14px;margin:0;color:var(--text-2)}html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-community>a{background:none;color:#2162ee;border:0;box-shadow:none;white-space:nowrap;padding:12px 0;min-height:44px}
/* A short stage with a row of dots below it, matching ordinary site carousels. */
.lobby-spotlight{position:relative;margin-bottom:10px;min-width:0}.spotlight-stage{height:108px;display:grid;grid-template-columns:minmax(0,1fr) 35%;background:#ffdb3d;border-radius:10px;overflow:hidden;position:relative}.spotlight-copy{padding:13px 22px;min-width:0;display:flex;flex-direction:column;justify-content:center}.spotlight-eyebrow{font-size:10px;letter-spacing:1px;color:#705417;line-height:1.5}.spotlight-copy h1{font-size:27px;line-height:1.3;letter-spacing:0;margin:5px 0;color:#26394d;font-weight:700;font-family:inherit}.spotlight-copy p{font-size:13px;line-height:1.6;color:#765e26;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0}.spotlight-art{min-width:0;height:108px;position:relative}.spotlight-game{display:block;padding:0;width:100%;height:100%;border:0;border-radius:0;overflow:hidden;background:none;position:relative}.spotlight-poster{display:block;width:100%;height:100%;object-fit:cover}.spotlight-game>span{position:absolute;bottom:8px;right:12px;font-size:12px;background:#142435d9;color:white;padding:6px 10px;border-radius:4px;line-height:1.5}.spotlight-meeple{display:block;position:absolute;right:22%;top:50%;transform:translateY(-50%);width:78px;height:78px;object-fit:contain}.spotlight-pagination{height:44px;display:flex;align-items:center;justify-content:center;position:relative}.spotlight-dots{display:flex;gap:0;align-items:center;justify-content:center}.spotlight-dot{display:grid;place-items:center;width:44px;height:44px;border:0;background:none;padding:0}.spotlight-dot span{width:7px;height:7px;border-radius:50%;background:#c6c6bc;display:block}.spotlight-dot[aria-pressed=true] span{background:#26394d}.spotlight-pause{position:absolute;right:0;top:0;width:44px;height:44px;padding:0;border:0;background:none;color:var(--text-2);font-size:13px}.spotlight-pause[hidden]{display:none}
html[data-theme=dark] #app.cinema-shell[data-page=lobby] .bga-main{background:var(--bg)}html[data-theme=dark] #app.cinema-shell .cinema-rail-nav a[aria-current=page],html[data-theme=dark] #app.cinema-shell .cinema-rail-personal[aria-current=page]{background:#3e3928;color:#ffe6a1}html[data-theme=dark] .lobby-categories button[aria-pressed=true]{background:#3e3928;color:#ffe6a1}html[data-theme=dark] .spotlight-dot[aria-pressed=true] span{background:#ffe6a1}html[data-theme=dark] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card>.quick-create,html[data-theme=dark] #app.cinema-shell[data-page=lobby] .room-row>button,html[data-theme=dark] #app.cinema-shell[data-page=lobby] .lobby-community>a{color:#9fc7ff}
@media(max-width:1200px){html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] #app.cinema-shell[data-page=lobby] .room-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:880px){html[data-theme] #app.cinema-shell[data-page] .cinema-rail{display:none}html[data-theme] #app.cinema-shell[data-page] .bga-content:not(.community-workspace){padding-bottom:90px}.site-bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:90;justify-content:space-around;background:var(--surface);border-top:1px solid var(--border);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}.site-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;min-width:56px;font-size:13px;color:var(--text-2);text-decoration:none}.site-bottom-nav a[aria-current=page]{color:#2162ee;font-weight:700}.site-bottom-nav :is(svg,img){width:22px;height:22px;object-fit:contain}}
@media(max-width:700px){html[data-theme] #app.cinema-shell[data-page] .bga-header-inner{padding:8px 14px}html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content{padding:14px 16px 90px}html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content>.card{margin-bottom:24px}html[data-theme] #app.cinema-shell[data-page=lobby] .section-title{font-size:20px}html[data-theme] #app.cinema-shell[data-page=lobby] .room-list{grid-template-columns:1fr;margin-top:8px}html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-grid{gap:22px 14px}.spotlight-stage{height:104px;grid-template-columns:minmax(0,1fr) 29%}.spotlight-art{height:104px}.spotlight-copy{padding:10px 14px}.spotlight-copy h1{font-size:20px;line-height:1.25;margin:4px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.spotlight-eyebrow{display:none}.spotlight-copy p{font-size:11px}.spotlight-meeple{width:56px;height:56px;right:18%}.spotlight-game>span{font-size:10px;bottom:7px;right:6px;padding:4px 6px}.spotlight-pagination{height:44px}.spotlight-dot{height:44px;width:44px}.lobby-spotlight{margin-bottom:8px}html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-launch{flex-wrap:wrap;gap:8px;margin-bottom:24px}.lobby-join-form{flex-basis:100%}.lobby-join-form input{font-size:16px}.lobby-launch>.quick-create{width:100%;justify-content:center}.lobby-library-tools input{font-size:16px;min-width:90px}.lobby-library-tools select{max-width:120px;font-size:16px}.lobby-categories{gap:4px}.lobby-categories button{padding:8px 12px}.lobby-all-tables{font-size:12px}html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-body{padding:10px 0 4px}html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-name{font-size:16px}html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-meta{font-size:12px}html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-desc{display:none}.lobby-community{display:block;padding:20px 0}.lobby-community h2{font-size:18px}.lobby-community>a{display:inline-block;margin-top:10px}.lobby-create-dialog{padding:20px}}
@media(max-width:359px){html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-grid{grid-template-columns:1fr}.spotlight-copy h1{font-size:18px}.spotlight-copy{padding:10px}.spotlight-meeple{width:46px;height:46px}}
@media(prefers-reduced-motion:reduce){.lobby-spotlight *{transition:none;animation:none}}
/* Pagination buttons keep a large hit area while painting only the small circles. */
html[data-theme] #app.cinema-shell[data-page=lobby] .spotlight-dot,html[data-theme] #app.cinema-shell[data-page=lobby] .spotlight-dot[aria-pressed=true]{background:transparent;border:0;box-shadow:none;border-radius:0;transform:none;padding:0}
html[data-theme] #app.cinema-shell[data-page=lobby] .spotlight-dot::before,html[data-theme] #app.cinema-shell[data-page=lobby] .spotlight-dot::after{content:none}
html[data-theme] #app.cinema-shell[data-page=lobby] .spotlight-pause{background:transparent;border:0;box-shadow:none}

/* C's logo rail, contextual header and shared surfaces apply to every non-room page. */
html[data-theme] #app.cinema-shell[data-page] .bga-header{margin-left:94px;width:calc(100% - 94px);position:sticky;top:0;z-index:80}
html[data-theme] #app.cinema-shell[data-page] .bga-main{display:block;margin-left:94px;min-width:0}
html[data-theme] #app.cinema-shell[data-page] .bga-content{width:100%;max-width:1450px;margin:0 auto;padding:26px 34px 40px;min-width:0;box-sizing:border-box}
html[data-theme] #app.cinema-shell[data-page] .bga-header .bga-logo{display:none}
html[data-theme] #app.cinema-shell[data-page] .cinema-rail{padding:22px 8px;z-index:90}
.cinema-brand{display:flex;justify-content:center;padding:0 0 26px}.cinema-brand img{width:50px;height:50px;object-fit:contain}.cinema-context{display:flex;align-items:center;gap:18px;font-size:12px;color:var(--text-2);flex:1;min-width:0}.cinema-context b{font-weight:500;color:var(--text)}.cinema-rail-nav{gap:7px}.cinema-rail-nav a{font-size:11px;min-height:65px;font-weight:500}.cinema-rail-nav a:nth-child(1) :is(img,svg){color:#eb3549}.cinema-rail-nav a:nth-child(2) :is(img,svg){color:#b38613}.cinema-rail-nav a:nth-child(3) :is(img,svg){color:#2162ee}.cinema-rail-nav a:nth-child(4) :is(img,svg){color:#16a974}.cinema-rail-account{margin-top:auto;min-height:54px;border:0;background:none;display:flex;justify-content:center;align-items:center;padding:8px}.cinema-rail-account .avatar{width:36px;height:36px;border-radius:0;overflow:hidden}.cinema-rail-account .avatar-face{width:36px;height:36px;object-fit:cover}.cinema-rail-account .avatar-crown{display:none}
#app.cinema-shell button,#app.cinema-shell input,#app.cinema-shell select{font-family:inherit;box-shadow:none;text-shadow:none;background-image:none}
#app.cinema-shell input:not([type=checkbox]):not([type=range]),#app.cinema-shell select{border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--text);min-height:44px;font-size:14px;padding:10px 12px}
html[data-theme] #app.cinema-shell[data-page] .btn-primary{border:0;border-radius:8px;min-height:44px;background:#2162ee;color:white;box-shadow:none}
#app.cinema-shell .btn-ghost{border:0;background:none;color:var(--text-2);box-shadow:none}
#app.cinema-shell .page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 26px}.page-header .page-title{font-family:inherit;font-size:30px;line-height:1.4;letter-spacing:0;color:var(--text)}#app.cinema-shell .page-subtitle{font-size:14px;line-height:1.8;color:var(--text-2);margin:8px 0 0}
#app.cinema-shell .card,#app.cinema-shell .profile-header-card,#app.cinema-shell .stats-card,#app.cinema-shell .ach-item,#app.cinema-shell .replay-item{border:1px solid var(--border);background:var(--surface);box-shadow:none;border-radius:12px;color:var(--text)}
#app.cinema-shell .section-title{font-family:inherit;font-size:19px;font-weight:700;letter-spacing:0;color:var(--text)}
/* Four-color doors and clean, captioned posters are the C design's signature. */
.cinema-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:6px 0 24px}
.cinema-category{display:grid;grid-template-columns:28px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 12px;align-items:center;text-align:left;padding:18px;border:0;border-radius:10px;color:white;min-height:84px}
.cinema-category :is(svg,img){width:25px;height:25px;object-fit:contain;grid-row:1/3}.cinema-category b{font-size:17px}.cinema-category span{font-size:12px;opacity:.9}.cinema-category.tone-0{background:#eb3549}.cinema-category.tone-1{background:#ffcf25;color:#6a4d0d}.cinema-category.tone-2{background:#2162ee}.cinema-category.tone-3{background:#16a974}
html[data-theme] #app.cinema-shell[data-page] .game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 20px}
html[data-theme] #app.cinema-shell[data-page] .game-card{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface);box-shadow:none;transform:none;padding:0;min-width:0;position:relative}
html[data-theme] #app.cinema-shell[data-page] .game-card>.game-cover{display:block;width:100%;height:190px;min-height:190px;border:0;border-radius:0;margin:0;padding:0;background:var(--surface-2);position:relative;overflow:hidden;box-shadow:none;aspect-ratio:auto}
html[data-theme] #app.cinema-shell[data-page] .game-cover>.cover-backdrop{display:block;width:100%;height:100%;object-fit:cover;position:static;opacity:1;filter:none;transform:none}
html[data-theme] #app.cinema-shell[data-page] .game-cover::before,html[data-theme] #app.cinema-shell[data-page] .game-cover::after{content:none}
html[data-theme] #app.cinema-shell[data-page] .game-card .g-body{padding:16px 16px 8px;flex:1}.g-body .g-name{font-size:18px;color:var(--text)}.g-body .g-meta{font-size:12px;color:var(--text-2);margin:6px 0}.g-body .g-desc{font-size:13px;line-height:1.7;color:var(--text-2)}
html[data-theme] #app.cinema-shell[data-page] .game-card>.quick-create{display:flex;justify-content:flex-end;min-height:44px;margin:0 16px 10px;padding:6px 0;border:0;background:none;color:#2162ee;border-radius:0;box-shadow:none;font-size:14px}
html[data-theme] #app.cinema-shell[data-page] .game-card>.quick-create::before{content:none}
#app.cinema-shell .filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}#app.cinema-shell .filter-btn{min-height:44px;background:var(--surface);color:var(--text-2);border:1px solid var(--border);border-radius:8px;padding:8px 14px}#app.cinema-shell .filter-btn.active{background:#fff0bd;color:#77591a;border-color:#fff0bd}
/* Table, profile, preferences and replay pages share the production C surfaces. */
html[data-theme] #app.cinema-shell[data-page] .room-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
html[data-theme] #app.cinema-shell[data-page] .room-row{padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:12px;display:flex;flex-wrap:wrap;gap:12px;min-width:0;box-shadow:none}
html[data-theme] #app.cinema-shell[data-page] .room-row .room-summary{flex-basis:100%!important}.room-row .r-name{font-size:16px;color:var(--text)}.room-row .r-sub{font-size:13px;color:var(--text-2)}
html[data-theme] #app.cinema-shell[data-page] .room-row>button{border:0;background:none;color:#2162ee;min-height:44px;box-shadow:none;padding:8px 0;margin-left:auto}
html[data-theme] #app.cinema-shell[data-page] .room-row>.tag{background:var(--surface-2);color:var(--text-2);padding:5px 8px;border-radius:5px;font-size:11px;border:0}
#app.cinema-shell .profile-header-card{padding:24px}#app.cinema-shell .profile-username{color:var(--text);font-size:24px}.profile-user-info .profile-rank-badge{background:#fff0bd;color:#77591a}.profile-user-info .profile-joined{color:var(--text-2)}#app.cinema-shell .stats-card{padding:22px;margin:20px 0}.stats-card .stat-value{color:var(--text);font-size:26px}#app.cinema-shell .setting-row{padding:18px 0;border-color:var(--border)}#app.cinema-shell .setting-title{font-size:15px;color:var(--text)}#app.cinema-shell .setting-desc{font-size:13px;line-height:1.8;color:var(--text-2)}#app.cinema-shell .ach-item{padding:20px}#app.cinema-shell .ach-item.locked{opacity:.65}#app.cinema-shell .ach-title{color:var(--text)}#app.cinema-shell .ach-desc{color:var(--text-2)}
body:has(#app.cinema-shell) .lobby-create-dialog,body:has(#app.cinema-shell) .cinema-profile-dialog{font-family:CinemaInterface,'Microsoft YaHei',sans-serif;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:0 24px 80px #15243c35}
.cinema-profile-dialog{width:min(500px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;padding:24px}.cinema-profile-dialog::backdrop{background:#182b4566}.cinema-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.cinema-dialog-heading h2{font-size:22px;margin:0}.cinema-dialog-heading button{width:44px;height:44px;border:0;background:none;font-size:24px}.cinema-profile-preview{display:flex;align-items:center;gap:18px;margin:20px 0}.cinema-profile-face{width:64px;height:64px;display:grid;place-items:center;background:var(--surface-2);overflow:hidden;font-size:40px}.cinema-profile-face img{width:64px;height:64px;object-fit:cover}.cinema-profile-preview b{font-size:18px}.cinema-profile-preview p{font-size:13px;color:var(--text-2);line-height:1.7}.cinema-profile-dialog label{display:block;font-size:14px;margin:14px 0 8px}.cinema-profile-dialog input{width:100%;min-height:44px;border:1px solid var(--border-strong);border-radius:8px;padding:10px 12px;font-size:16px;background:var(--surface);color:var(--text)}.cinema-profile-dialog h3{font-size:14px;margin:20px 0 12px}.cinema-avatar-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.cinema-avatar-choices button{aspect-ratio:1;min-width:0;min-height:44px;border:1px solid var(--border);border-radius:8px;padding:3px;background:var(--surface);overflow:hidden;display:grid;place-items:center;font-size:32px}.cinema-avatar-choices img{display:block;width:100%;height:100%;object-fit:cover}.cinema-avatar-choices button[aria-pressed=true]{border:2px solid #2162ee;background:#edf2ff;box-shadow:none}.cinema-profile-dialog .color-grid{display:flex;gap:10px;flex-wrap:wrap}.cinema-profile-dialog .color-grid button{width:32px;height:32px;min-height:32px;border-radius:50%;padding:0;border:2px solid transparent}.cinema-profile-dialog .color-grid button[aria-pressed=true]{outline:2px solid #2162ee;outline-offset:2px}.cinema-form-error{font-size:13px;color:#bf3047}.cinema-profile-dialog .btn-primary{background:#2162ee;color:#fff;box-shadow:none;border:0;min-height:44px}
@media(max-width:1200px){html[data-theme] #app.cinema-shell[data-page] .game-grid,html[data-theme] #app.cinema-shell[data-page] .room-list{grid-template-columns:repeat(2,minmax(0,1fr))}.cinema-category{grid-template-columns:1fr;padding:14px}.cinema-category :is(img,svg){grid-row:auto}.cinema-category b{font-size:15px}.cinema-category span{font-size:11px}}
@media(max-width:880px){html[data-theme] #app.cinema-shell[data-page] .bga-header{margin-left:0;width:100%}html[data-theme] #app.cinema-shell[data-page] .bga-main{margin-left:0}html[data-theme] #app.cinema-shell[data-page] .bga-header .bga-logo{display:flex}.cinema-context{display:none}html[data-theme] #app.cinema-shell[data-page] .bga-content:not(.community-workspace){padding:20px 16px 90px}html[data-theme] #app.cinema-shell[data-page] .cinema-rail{display:none}}
@media(max-width:700px){.cinema-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:6px 0 18px}.cinema-category{grid-template-columns:24px minmax(0,1fr);gap:4px 8px;padding:12px;min-height:72px}.cinema-category :is(img,svg){grid-row:1/3;width:21px;height:21px}.cinema-category b{font-size:14px}.cinema-category span{font-size:10px}html[data-theme] #app.cinema-shell[data-page] .game-grid{gap:14px 12px}html[data-theme] #app.cinema-shell[data-page] .room-list{grid-template-columns:1fr}html[data-theme] #app.cinema-shell[data-page] .game-card>.game-cover{height:130px;min-height:130px}html[data-theme] #app.cinema-shell[data-page] .game-card .g-body{padding:12px 10px 4px}html[data-theme] #app.cinema-shell[data-page] .game-card .g-name{font-size:15px}html[data-theme] #app.cinema-shell[data-page] .game-card .g-meta{font-size:11px}html[data-theme] #app.cinema-shell[data-page] .game-card .g-desc{display:none}html[data-theme] #app.cinema-shell[data-page] .game-card>.quick-create{font-size:13px;margin:0 10px 8px}#app.cinema-shell .page-header{align-items:flex-start;flex-wrap:wrap}.page-header .page-title{font-size:26px}.cinema-profile-dialog{padding:20px}.cinema-avatar-choices{gap:6px}.cinema-profile-preview{gap:12px}.cinema-profile-preview p{font-size:12px}}
@media(max-width:359px){html[data-theme] #app.cinema-shell[data-page] .game-grid{grid-template-columns:1fr}.cinema-category b{font-size:13px}.cinema-category span{font-size:9px}}
.lobby-create-dialog .room-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.lobby-create-dialog .room-setting-tile{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);font-size:14px}.lobby-create-dialog .room-setting-tile>input{width:18px;height:18px;min-height:18px;accent-color:#2162ee}.lobby-create-dialog .room-setting-tile>img,.lobby-create-dialog .room-setting-tile>svg{display:none}.lobby-create-dialog .room-setting-copy small{display:block;font-size:11px;color:var(--text-2);margin-top:5px}.lobby-create-dialog .room-setting-copy b{font-size:14px}.lobby-create-dialog .room-setting-tile:has(input:checked){border-color:#2162ee;background:#edf2ff}
#app.cinema-shell .bga-header .bga-trademark{display:block;width:36px;height:36px;object-fit:contain;flex:none}#app.cinema-shell .bga-header .bga-logo{flex:none;line-height:1;gap:10px}#app.cinema-shell .bga-header .bga-logo-text{font-size:18px}#app.cinema-shell .bga-header .bga-user{margin-left:auto;flex-shrink:0}.cinema-rail .cinema-brand img{width:50px;height:50px;max-width:50px}
@media(max-width:700px){#app.cinema-shell .bga-header .bga-logo-text{display:none}}
#app.cinema-shell .ui-line-icon,#app.cinema-shell .interface-icon,#app.cinema-shell .btn-icon,#app.cinema-shell .btn-icon-18{width:18px;height:18px;min-width:18px;object-fit:contain;flex-shrink:0}#app.cinema-shell>.panel-scrim{display:none}#app.cinema-shell button{display:inline-flex;align-items:center;justify-content:center;gap:8px}#app.cinema-shell .cinema-category{display:grid;justify-content:initial}#app.cinema-shell .spotlight-dot{display:grid}#app.cinema-shell .spotlight-game{display:block}#app.cinema-shell .cinema-avatar-choices button{display:grid}
/* Full-width image stage; pagination sits on the image, not below it. */
.lobby-spotlight{margin-bottom:20px}.spotlight-stage{display:block;height:180px;isolation:isolate}.spotlight-art{position:absolute;inset:0;width:100%;height:100%;z-index:0}.spotlight-game{height:100%;width:100%}.spotlight-copy{position:relative;z-index:1;max-width:65%;height:100%;padding:20px 28px 36px;pointer-events:none;background:linear-gradient(90deg,#ffdc38fa,#ffdc38e6 55%,#ffdc3800)}.spotlight-copy h1{font-size:30px;margin:7px 0}.spotlight-copy p{max-width:540px;font-size:14px}.spotlight-meeple{right:14%;width:112px;height:112px}.spotlight-pagination{position:absolute;bottom:2px;left:0;right:0;height:44px;z-index:3;pointer-events:none}.spotlight-dots,.spotlight-pause{pointer-events:auto}.spotlight-dot span{width:8px;height:8px;background:#ffffffc9;border:1px solid #26394d55;box-shadow:0 1px 3px #17283c33}.spotlight-dot[aria-pressed=true] span{background:#2162ee;border-color:#ffffffc9}.spotlight-pause{right:8px;color:#26394d}.spotlight-game>span{top:12px;bottom:auto;right:12px;min-height:36px;display:flex;align-items:center;padding:7px 12px;font-size:12px}
.lobby-spotlight.is-welcome .spotlight-copy{background:none}.lobby-spotlight.is-welcome .spotlight-dot span{background:#26394d40;border-color:#26394d40}.lobby-spotlight.is-welcome .spotlight-dot[aria-pressed=true] span{background:#26394d}
@media(max-width:700px){.spotlight-stage{height:160px}.spotlight-copy{max-width:78%;padding:16px 16px 38px;background:linear-gradient(90deg,#ffdc38fa,#ffdc38db 55%,#ffdc3800)}.spotlight-copy h1{font-size:23px;line-height:1.3}.spotlight-copy p{font-size:12px;max-width:230px}.spotlight-meeple{width:72px;height:72px;right:7%}.lobby-spotlight.is-welcome .spotlight-copy{max-width:77%;padding-right:20px}.lobby-spotlight.is-welcome .spotlight-copy h1{font-size:21px;max-width:220px}.spotlight-pagination{height:44px}.spotlight-game>span{font-size:11px;right:8px;top:8px;min-height:32px;padding:5px 8px}}
@media(max-width:359px){.spotlight-stage{height:156px}.spotlight-copy{max-width:82%;padding-left:12px}.lobby-spotlight.is-welcome .spotlight-copy h1{font-size:19px;max-width:180px}.spotlight-meeple{width:56px;height:56px;right:6%}.spotlight-copy p{font-size:11px;max-width:180px}}
/* The recommendation area needs enough height for the poster, with dots on-image. */
.spotlight-stage{height:320px}.spotlight-copy{padding:30px 38px 48px}.spotlight-copy h1{font-size:40px;line-height:1.35;margin:12px 0}.spotlight-eyebrow{font-size:12px}.spotlight-copy p{font-size:15px;line-height:1.8;white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.spotlight-meeple{width:174px;height:174px}.spotlight-art{height:100%}
@media(max-width:1000px){.spotlight-stage{height:280px}.spotlight-copy h1{font-size:34px}.spotlight-copy{padding:26px 28px 46px}}
@media(max-width:700px){.spotlight-stage{height:240px}.spotlight-copy{padding:22px 18px 46px;max-width:82%}.spotlight-copy h1{font-size:29px;line-height:1.4}.lobby-spotlight.is-welcome .spotlight-copy h1{font-size:26px;max-width:235px}.spotlight-copy p{font-size:13px;line-height:1.7;max-width:240px;-webkit-line-clamp:2}.spotlight-meeple{width:90px;height:90px;right:7%}}
@media(max-width:359px){.spotlight-stage{height:230px}.spotlight-copy h1{font-size:25px}.lobby-spotlight.is-welcome .spotlight-copy h1{font-size:23px;max-width:195px}.spotlight-copy p{font-size:12px;max-width:195px}.spotlight-meeple{width:68px;height:68px;right:6%}}
html[data-theme] #app.cinema-shell[data-page] .bga-main{width:calc(100% - 94px);box-sizing:border-box}
@media(max-width:880px){html[data-theme] #app.cinema-shell[data-page] .bga-main{width:100%;margin-left:0}}
#app.cinema-shell [hidden]{display:none!important}
#app.cinema-shell .setting-row{gap:20px;align-items:center}#app.cinema-shell .setting-row>div:first-child{min-width:0;flex:1}.setting-row:has(.seg){flex-wrap:wrap}.setting-row:has(.seg)>div:first-child{min-width:220px}.setting-row:has(.seg) .seg{flex-shrink:0}#app.cinema-shell .switch:checked{background:#2162ee;border-color:#2162ee}
#app.cinema-shell :is(.profile-avatar-large,.bga-avatar,.cinema-rail-account .avatar){border-radius:50%;overflow:hidden}#app.cinema-shell .profile-avatar-large{box-shadow:none;border:0}#app.cinema-shell :is(.profile-avatar-large,.bga-avatar,.cinema-rail-account .avatar) img{border-radius:inherit;object-fit:cover;width:100%;height:100%}.cinema-profile-face{border-radius:50%}
@media(max-width:700px){#app.cinema-shell .setting-row:has(.seg){display:flex;flex-direction:column;align-items:stretch;gap:14px}#app.cinema-shell .setting-row:has(.seg)>div:first-child{min-width:0;width:100%}#app.cinema-shell .setting-row:has(.seg) .seg{align-self:flex-start;max-width:100%}html[data-theme] #app.cinema-shell[data-page=community] .community-workspace{padding:0;max-width:none}}
/* Shared top-bar actions: search, create and join stay with the navigation. */
html[data-theme] #app.cinema-shell[data-page] .bga-header-inner{gap:16px}
#app.cinema-shell .cinema-context{flex:0 0 auto;gap:12px}
#app.cinema-shell .cinema-header-tools{display:flex;align-items:center;gap:10px;flex:1;min-width:0;margin-left:auto;max-width:860px}
#app.cinema-shell .cinema-header-search{display:flex;align-items:center;flex:1;min-width:0;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface-2);overflow:hidden;margin:0}
#app.cinema-shell .cinema-header-search input[type=search]{border:0;background:none;min-width:0;width:100%;flex:1;min-height:42px;padding:8px 12px;font-size:14px;border-radius:0}
#app.cinema-shell .cinema-header-search button{flex:none;width:38px;height:40px;min-height:40px;border:0;background:none;padding:8px;color:var(--text-2)}
#app.cinema-shell .cinema-header-create,#app.cinema-shell .cinema-header-join{min-height:44px;white-space:nowrap;padding:8px 14px;font-size:13px;border-radius:8px;flex:none;margin:0;box-shadow:none}
#app.cinema-shell .cinema-header-create::before,#app.cinema-shell .cinema-header-join::before{content:none}
#app.cinema-shell .cinema-header-join{background:var(--surface);border:1px solid var(--border-strong);color:var(--text)}
#app.cinema-shell .cinema-header-join-form{display:flex;align-items:center;gap:8px;margin:0;min-width:0;flex:none}
#app.cinema-shell .cinema-header-join-form input{width:106px;min-width:0;min-height:44px;padding:8px 10px;text-transform:uppercase}
#app.cinema-shell .game-grid{scroll-margin-top:85px}
/* Poster baseline v146: four desktop columns, 16:9 complete artwork.
   Keep intrinsic proportions with contain, including near-16:9 source images. */
html[data-theme] #app.cinema-shell[data-page] .game-grid{--game-poster-ratio:16/9;grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-theme] #app.cinema-shell[data-page] .game-card>.game-cover{height:auto;min-height:0;aspect-ratio:var(--game-poster-ratio)}
html[data-theme] #app.cinema-shell[data-page] .game-cover>.cover-backdrop{object-fit:contain;object-position:center}
.lobby-spotlight:not(.is-welcome) .spotlight-art{left:44%;width:56%}
.lobby-spotlight:not(.is-welcome) .spotlight-copy{max-width:44%;background:none;box-sizing:border-box}
.lobby-spotlight .spotlight-poster{object-fit:contain;object-position:center}
.lobby-spotlight{container-type:inline-size}
.lobby-spotlight:not(.is-welcome) .spotlight-pagination{left:44%;bottom:max(2px,calc(50% - 15.75cqw));padding-right:44px;box-sizing:border-box}
@media(max-width:880px){html[data-theme] #app.cinema-shell[data-page] .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby-spotlight:not(.is-welcome) .spotlight-art{left:48%;width:52%}.lobby-spotlight:not(.is-welcome) .spotlight-copy{max-width:48%;padding-right:6px}.lobby-spotlight:not(.is-welcome) .spotlight-copy h1{font-size:24px}.lobby-spotlight:not(.is-welcome) .spotlight-pagination{left:48%;bottom:max(2px,calc(50% - 14.625cqw))}}
@media(max-width:700px){.lobby-spotlight:not(.is-welcome) .spotlight-dot{width:24px}.lobby-spotlight:not(.is-welcome) .spotlight-pause{width:32px;right:4px}.lobby-spotlight:not(.is-welcome) .spotlight-pagination{padding-right:36px}}
@media(max-width:359px){html[data-theme] #app.cinema-shell[data-page] .game-grid{grid-template-columns:1fr}}
/* Compact mobile catalogue: preserve the complete 16:9 artwork and 44px action. */
@media(max-width:700px){
 html[data-theme] #app.cinema-shell[data-page] .game-card .g-body{padding:9px 10px 2px}
 html[data-theme] #app.cinema-shell[data-page] .game-card .g-meta{margin:4px 0 0}
 html[data-theme] #app.cinema-shell[data-page] .game-card>.quick-create{margin:0 10px 4px}
}
@media(max-width:359px){html[data-theme] #app.cinema-shell[data-page] .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cinema-profile-dialog .cinema-avatar-choices button:focus-visible{outline:3px solid #2162ee;outline-offset:2px}
@media(max-width:1150px){#app.cinema-shell .cinema-context>span{display:none}#app.cinema-shell .bga-user-info{display:none}#app.cinema-shell .cinema-header-tools{max-width:none}}
/* Keep mobile navigation geometry and type identical on every destination. */
@media(max-width:880px){
 #app.cinema-shell .site-bottom-nav{box-sizing:border-box;height:calc(61px + env(safe-area-inset-bottom));flex-shrink:0;align-items:center;text-size-adjust:100%;-webkit-text-size-adjust:100%}
 #app.cinema-shell .site-bottom-nav a{box-sizing:border-box;flex:1 1 0;min-width:0;width:0;height:48px;min-height:48px;gap:4px;padding:0;font-size:13px;line-height:20px;font-weight:400;transform:none;transition:none}
 #app.cinema-shell .site-bottom-nav a[aria-current=page]{font-weight:400}
 #app.cinema-shell .site-bottom-nav a>span{display:block;height:20px;line-height:20px;font-size:13px;white-space:nowrap}
 #app.cinema-shell .site-bottom-nav a>:is(svg,img){display:block;flex:0 0 18px;width:18px;height:18px;min-width:18px;max-width:18px;transform:none;transition:none}
}


/* The middle pane owns scrolling; both navigation bars span the viewport. */
@media(max-width:880px){
 html:has(#app.cinema-shell){overflow:hidden;scrollbar-gutter:auto}
 body:has(#app.cinema-shell){overflow:hidden}
 html[data-theme] #app.cinema-shell[data-page]{position:fixed;inset:0;display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
 html[data-theme] #app.cinema-shell[data-page=community]{height:var(--community-window-height,100dvh)}
 html[data-theme] #app.cinema-shell[data-page] .bga-header{position:relative;top:auto;flex:none;margin:0;width:100%}
 html[data-theme] #app.cinema-shell[data-page] .bga-main{flex:1 1 0;min-height:0;height:auto;margin:0;width:100%;overflow-y:auto;overflow-x:hidden}
 html[data-theme] #app.cinema-shell[data-page] .bga-content:not(.community-workspace){padding-bottom:24px}
 html[data-theme] #app.cinema-shell[data-page=community] .bga-main{overflow:hidden}
 #app.cinema-shell .site-bottom-nav{position:relative;bottom:auto;left:auto;right:auto;flex:none;width:100%}
 #app.cinema-shell .game-grid{scroll-margin-top:16px}
}

/* Mobile catalogue: title on one row, player count and action on the next. */
@media(max-width:700px){
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;align-content:start}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card>.game-cover{grid-column:1/-1;grid-row:1}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-body{display:contents}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-name{grid-column:1/-1;grid-row:2;min-width:0;margin:8px 8px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-meta{grid-column:1;grid-row:3;align-self:center;min-width:0;margin:0 0 0 8px;white-space:nowrap}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card>.quick-create{grid-column:2;grid-row:3;align-self:center;min-width:0;min-height:44px;margin:0 4px 0 0;padding:4px 4px;font-size:12px;gap:2px;white-space:nowrap}
}

/* Keep the primary game action beside the player count on wide screens too. */
@media(min-width:701px){
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;align-content:start}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card>.game-cover{grid-column:1/-1;grid-row:1}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-body{display:contents}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-name{grid-column:1/-1;grid-row:2;margin:12px 10px 0}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-meta{grid-column:1;grid-row:3;align-self:center;margin:0 0 0 10px;min-width:0}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card>.quick-create{grid-column:2;grid-row:3;align-self:center;margin:0 10px 0 0;padding:6px 0;min-height:44px;white-space:nowrap}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-desc{grid-column:1/-1;grid-row:4;margin:0 10px 8px}
}

/* Name and create action share the first row under the cover. */
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-name{grid-column:1;grid-row:2;align-self:center;min-width:0;margin:0 0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card>.quick-create{grid-column:2;grid-row:2}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-meta{grid-column:1/-1;grid-row:3;margin:0 8px 4px}

/* Game selection leads the home page; keep the first action within reach. */
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools{margin:12px 0 16px;gap:0}
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-categories{align-items:center;gap:6px;flex-wrap:wrap;overflow:visible;padding:0}
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-categories button{min-height:44px;padding:8px 12px;border-radius:8px;white-space:nowrap}
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-categories select{flex:none;width:92px;max-width:92px;height:36px;min-height:36px;box-sizing:border-box;padding:0 6px;border-color:var(--border);background:var(--surface);font-size:14px;line-height:1.4;border-radius:8px;color:var(--text-2)}
#app.cinema-shell[data-page=lobby] .lobby-resume{margin:0 0 12px}
#app.cinema-shell[data-page=lobby] .lobby-resume a{display:flex;align-items:center;min-height:44px;padding:8px 12px;box-sizing:border-box;border:1px solid var(--border);border-radius:8px;background:var(--brand-soft);color:var(--brand);font-size:14px;overflow-wrap:anywhere}
@media(max-width:880px){
 html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content:not(.community-workspace){padding:12px 16px 24px}
 #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools{margin:6px 0 12px}
 #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-categories button{padding:8px 10px;font-size:13px}
}
@media(min-width:701px) and (max-width:880px) and (max-height:500px){
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Shared compact header: identical controls across all four destinations. */
#app.cinema-shell .header-compact-label{display:none}
@media(min-width:881px){
 #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools{margin:16px 0 20px}
}
@media(max-width:880px){
 html[data-theme] #app.cinema-shell[data-page]{--header-height:60px}
 html[data-theme] #app.cinema-shell[data-page] .bga-header-inner{display:grid;grid-template-columns:32px minmax(0,1fr) 44px 108px 32px;grid-template-rows:40px;height:60px;min-height:60px;gap:4px;padding:10px 8px;box-sizing:border-box}
 html[data-theme] #app.cinema-shell[data-page] .bga-header .bga-logo{display:flex;grid-column:1;grid-row:1;width:32px;height:40px;min-width:0;min-height:40px;margin:0;padding:0;align-items:center;justify-content:center}
 #app.cinema-shell .bga-header .bga-trademark{display:block;width:30px;height:30px;min-width:0;object-fit:contain}
 #app.cinema-shell .bga-header :is(.cinema-context,.net-dot,.bga-logo-text,.bga-user-info){display:none}
 #app.cinema-shell .cinema-header-tools{display:contents}
 #app.cinema-shell .cinema-header-search{grid-column:2;grid-row:1;width:100%;height:40px;box-sizing:border-box;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface-2);margin:0}
 #app.cinema-shell .cinema-header-search input[type=search]{min-height:0;height:38px;padding:0 4px;font:400 16px/1.25 var(--ui-font);box-sizing:border-box;border:0;background:transparent}
 #app.cinema-shell .cinema-header-search button{display:none}
 html[data-theme] #app.cinema-shell[data-page] .cinema-header-create{grid-column:3;grid-row:1;width:44px;min-width:0;min-height:40px;height:40px;padding:0 4px;font:400 16px/1.25 var(--ui-font);box-sizing:border-box}
 #app.cinema-shell .cinema-header-create>:not(.header-compact-label),#app.cinema-shell .header-full-label{display:none}
 #app.cinema-shell .header-compact-label{display:inline;font:inherit}
 #app.cinema-shell .cinema-header-join-form{display:flex;grid-column:4;grid-row:1;width:108px;height:40px;gap:4px;margin:0}
 #app.cinema-shell .cinema-header-join-form input[type=text]{flex:1;min-width:0;width:0;min-height:40px;height:40px;padding:0 4px;font:400 16px/1.25 var(--ui-font);box-sizing:border-box}
 #app.cinema-shell .cinema-header-join{width:44px;min-width:44px;min-height:40px;height:40px;padding:0 4px;font:400 16px/1.25 var(--ui-font);box-sizing:border-box}
 #app.cinema-shell .bga-header .bga-user{grid-column:5;grid-row:1;width:32px;height:40px;margin:0;gap:0}
 #app.cinema-shell .bga-header .bga-avatar{width:32px;height:32px}
 #app.cinema-shell[data-page=lobby] :is(.lobby-spotlight,.cinema-categories){display:none}
 html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content>.room-list-section{margin-bottom:14px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-list-section .section-title{font-size:18px;white-space:nowrap}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-list-section>.row{gap:8px;flex-wrap:nowrap;min-height:36px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-list-section>.row>button{min-height:36px;padding:4px;font-size:13px;gap:4px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-list{grid-template-columns:1fr;gap:0;margin-top:4px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-list>.empty{padding:6px 0;font-size:13px;line-height:20px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:8px 0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:none}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-row:nth-child(n+3){display:none}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-row .room-summary{grid-column:1;grid-row:1;min-width:0}
 #app.cinema-shell[data-page=lobby] .room-row .r-name{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #app.cinema-shell[data-page=lobby] .room-row .r-sub{font-size:12px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-row>:is(.avatar-stack,.tag){display:none}
 html[data-theme] #app.cinema-shell[data-page=lobby] .room-row>button{grid-column:2;grid-row:1;min-height:44px;min-width:64px;margin:0;padding:4px;font-size:13px}
}

/* Measure the actual input border box, including the search field. */
#app.cinema-shell{--site-control-height:44px}
#app.cinema-shell .bga-header .cinema-header-tools :is(input[type=search],input[type=text],.cinema-header-create,.cinema-header-join){height:var(--site-control-height);min-height:var(--site-control-height);box-sizing:border-box;font:400 16px/1.25 var(--ui-font);padding-top:0;padding-bottom:0}
#app.cinema-shell .bga-header .cinema-header-search{position:relative;height:var(--site-control-height);border:0;background:none;padding:0;overflow:visible}
#app.cinema-shell .bga-header .cinema-header-search input[type=search]{border:1px solid var(--border-strong);border-radius:8px;background:var(--surface-2);padding-left:10px;padding-right:38px}
#app.cinema-shell .bga-header .cinema-header-search button{position:absolute;right:0;top:0;height:var(--site-control-height);min-height:var(--site-control-height);width:36px;border-radius:0 8px 8px 0}
#app.cinema-shell .bga-header .cinema-header-join-form{height:var(--site-control-height)}
#app.cinema-shell .bga-header :is(.header-full-label,.header-compact-label){font:inherit}
@media(max-width:880px){
 #app.cinema-shell{--site-control-height:40px}
 #app.cinema-shell .bga-header .cinema-header-search input[type=search]{padding-left:4px;padding-right:4px}
}

/* Desktop recommendations pair complete cover art with a clear game action. */
#app.cinema-shell .featured-lobby{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--surface);margin:0 auto 24px;container-type:normal}
.featured-stage{display:grid;grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);height:300px}
.featured-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:24px 32px;min-width:0;box-sizing:border-box}
.featured-eyebrow{font-size:13px;line-height:1.5;color:var(--text-2);letter-spacing:1px}
.featured-copy h1{font:700 32px/1.25 var(--ui-font);margin:10px 0 12px;color:var(--text);overflow-wrap:anywhere}
.featured-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;line-height:1.5;color:var(--text-2)}
.featured-meta span{padding:3px 8px;background:var(--surface-2);border-radius:6px}
.featured-copy p{font-size:14px;line-height:1.7;color:var(--text-2);margin:12px 0 16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.featured-art{min-width:0;min-height:0;padding:16px;background:var(--surface-2);display:flex;align-items:center;justify-content:center}
#app.cinema-shell .featured-poster{display:block;width:100%;height:100%;min-height:0;min-width:0;padding:0;border:0;border-radius:8px;background:none;overflow:hidden;cursor:pointer}
.featured-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.featured-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
#app.cinema-shell .featured-actions button{min-height:44px;border-radius:8px;font-size:14px;white-space:nowrap}
#app.cinema-shell .featured-create{padding:10px 18px}
#app.cinema-shell .featured-browse{padding:8px 0;border:0;background:none;color:var(--text-2)}
#app.cinema-shell .featured-browse:hover{text-decoration:underline;color:var(--brand)}
.featured-footer{display:flex;align-items:center;gap:16px;padding:12px 16px;border-top:1px solid var(--border)}
.featured-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;flex:1;min-width:0}
#app.cinema-shell .featured-choice{justify-content:flex-start;gap:10px;min-width:0;min-height:60px;padding:6px 10px;border:1px solid transparent;border-radius:8px;background:none;text-align:left;color:var(--text-2)}
#app.cinema-shell .featured-choice[aria-pressed=true]{border-color:var(--border-strong);background:var(--brand-soft);color:var(--text)}
.featured-thumb{display:block;width:72px;height:40.5px;object-fit:contain;flex:none;border-radius:4px;background:var(--surface-2)}
.featured-choice>span{min-width:0;display:grid;gap:4px}
.featured-choice b{font-size:14px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.featured-choice small{font-size:12px;line-height:1.4}
.featured-controls{display:flex;align-items:center;gap:4px;flex:none}
#app.cinema-shell .featured-controls button{width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text);font:24px/1 var(--ui-font)}
.featured-position{min-width:48px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums;color:var(--text-2)}
@media(min-width:881px) and (max-width:1150px){
 .featured-stage{height:280px;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr)}
 .featured-copy{padding:20px 24px}.featured-copy h1{font-size:28px}
 .featured-footer{gap:8px;padding:10px}.featured-thumb{width:50px;height:28.125px}
 #app.cinema-shell .featured-choice{gap:6px;padding:6px}.featured-choice b{font-size:13px}
 .featured-controls{gap:2px}.featured-position{min-width:40px}
}
@media(max-width:880px){
 #app.cinema-shell[data-page=lobby] .room-list-section{display:none}
}

/* Quiet search surface, one primary action and a joined room-code control. */
html[data-theme] #app.cinema-shell[data-page] .bga-header{background:var(--surface);box-shadow:none;border-bottom:1px solid var(--border)}
#app.cinema-shell .bga-header .cinema-context{gap:0}
#app.cinema-shell .bga-header .cinema-context>span{display:none}
#app.cinema-shell .bga-header .cinema-context b{font-size:16px;font-weight:600;color:var(--text)}
#app.cinema-shell .bga-header .cinema-header-tools{gap:12px;margin-left:8px;max-width:1040px}
#app.cinema-shell .bga-header .cinema-header-search input[type=search]{background:var(--surface-2);border-color:transparent;padding-left:40px;padding-right:12px;transition:border-color .15s,background-color .15s}
#app.cinema-shell .bga-header .cinema-header-search input[type=search]::placeholder,#app.cinema-shell .bga-header .cinema-header-join-form input::placeholder{color:var(--text-2);opacity:1}
#app.cinema-shell .bga-header .cinema-header-search input[type=search]:hover{border-color:var(--border-strong)}
#app.cinema-shell .bga-header .cinema-header-search input[type=search]:focus{background:var(--surface);border-color:var(--brand)}
#app.cinema-shell .bga-header .cinema-header-search button{display:flex;align-items:center;justify-content:center;left:0;right:auto;width:36px;padding:8px;color:var(--text-2);border-radius:8px 0 0 8px}
#app.cinema-shell .bga-header .cinema-header-search button img{width:16px;height:16px}
#app.cinema-shell .bga-header .cinema-header-join-form{gap:0;overflow:hidden;border-radius:8px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--border)}
#app.cinema-shell .bga-header .cinema-header-join-form:focus-within{outline:2px solid var(--brand);outline-offset:2px}
#app.cinema-shell .bga-header .cinema-header-join-form input[type=text]{border:0;border-radius:8px 0 0 8px;background:transparent;padding-left:12px;padding-right:8px}
#app.cinema-shell .bga-header .cinema-header-join{border:0;border-left:1px solid var(--border);border-radius:0 8px 8px 0;background:transparent;color:var(--brand)}
#app.cinema-shell .bga-header .cinema-header-join:hover{background:var(--brand-soft)}
#app.cinema-shell .bga-header .cinema-header-create:hover{background:#174dc1}
#app.cinema-shell .bga-header .net-dot,#app.cinema-shell .bga-header .bga-elo{display:none}
#app.cinema-shell .bga-header .bga-user{padding-left:16px;border-left:1px solid var(--border);gap:10px}
#app.cinema-shell .bga-header .bga-username{font-size:14px;font-weight:600;line-height:1.4}
#app.cinema-shell .bga-header .bga-avatar{border:0;box-shadow:0 0 0 1px var(--border);background:var(--surface-2)}
@media(max-width:880px){
 html[data-theme] #app.cinema-shell[data-page] .bga-header-inner{grid-template-columns:32px minmax(0,1fr) 48px 112px 32px;gap:8px;padding:10px 12px}
 html[data-theme] #app.cinema-shell[data-page] .cinema-header-create{width:48px}
 #app.cinema-shell .bga-header .cinema-header-tools{margin:0}
 #app.cinema-shell .bga-header .cinema-header-search input[type=search]{padding-left:28px;padding-right:6px}
 #app.cinema-shell .bga-header .cinema-header-search button{width:28px;padding:6px}
 #app.cinema-shell .bga-header .cinema-header-search button img{width:14px;height:14px}
 #app.cinema-shell .bga-header .cinema-header-join-form{width:112px}
 #app.cinema-shell .bga-header .cinema-header-join-form input[type=text]{padding-left:6px;padding-right:6px}
 #app.cinema-shell .bga-header .bga-user{padding-left:0;border-left:0;gap:0}
}
@media(max-width:359px){
 html[data-theme] #app.cinema-shell[data-page] .bga-header-inner{grid-template-columns:32px minmax(0,1fr) 44px 104px 32px;gap:4px;padding:10px 8px}
 html[data-theme] #app.cinema-shell[data-page] .cinema-header-create{width:44px}
 #app.cinema-shell .bga-header .cinema-header-join-form{width:104px}
}
@media(prefers-reduced-motion:reduce){#app.cinema-shell .bga-header .cinema-header-search input[type=search]{transition:none}}

/* Preserve card width while allowing ultrawide displays to fit more columns. */
.replay-return-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;scroll-margin-top:80px}
.replay-return-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:var(--surface);color:var(--brand);font-size:14px;text-decoration:none}
.replay-return-links a:hover{background:var(--brand-soft);border-color:var(--border-strong)}
@media(max-width:880px){.replay-return-links{scroll-margin-top:12px}}
.viewpoint-picker{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0;padding:12px;background:var(--surface,#fff);border:1px solid var(--border,#dbe3ea);border-radius:8px}
.viewpoint-label{font-size:13px;color:var(--text-dim,#65748a);margin-right:4px}
.viewpoint-person{display:flex;flex-direction:column;align-items:center;gap:0;min-height:44px;width:64px;padding:4px;border:1px solid transparent;border-radius:8px;background:transparent;font:inherit;font-size:12px;color:inherit}
.viewpoint-person img{display:block;width:54px;height:54px;object-fit:cover;border:2px solid #dbc382;box-sizing:border-box;border-radius:2px}.viewpoint-person span{box-sizing:border-box;display:block;width:54px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;padding:2px 3px;border:1px solid var(--player-name-border,#c6bfe4);border-radius:999px;background:var(--player-name-bg,#e4e1f5);color:var(--player-name-ink,#4b407b);line-height:1.3}
.viewpoint-person[aria-pressed=true]{background:#e8f0ff;border-color:#467ac6;color:#244f8c}
[data-viewpoint] .player-identity-avatar[role=button],[data-viewpoint] .mj-player-avatar[role=button]{cursor:pointer}
[data-viewpoint] .player-identity-avatar[aria-pressed=true],[data-viewpoint] .mj-player-avatar[aria-pressed=true]{outline:3px solid #5da4f8;outline-offset:2px}
[data-viewpoint] [role=button]:focus-visible{outline:3px solid #eab35c;outline-offset:3px}
/* Compact recommendation and the social banner share one continuous strip. */
#app.cinema-shell .featured-quick{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);height:208px;background:var(--surface);margin-bottom:20px}
.featured-quick .featured-game-pane{min-width:0;display:grid;grid-template-rows:144px 64px}
.featured-quick .featured-stage{height:144px;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}
.featured-quick .featured-copy{padding:14px 18px;justify-content:center;gap:0}
.featured-quick .featured-title{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%}
.featured-quick .featured-copy h1{font-size:23px;line-height:1.3;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.featured-quick .featured-meta{gap:5px;flex:none;font-size:11px}
.featured-quick .featured-meta span{padding:2px 5px}
.featured-quick .featured-meta span:first-child{display:none}
.featured-quick .featured-copy p{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:20px;margin:5px 0 9px}
.featured-quick .featured-art{padding:12px;background:var(--surface-2)}
.featured-quick .featured-actions{gap:12px;flex-wrap:nowrap}
#app.cinema-shell .featured-quick .featured-actions button{font-size:13px}
#app.cinema-shell .featured-quick .featured-create{padding:8px 14px}
.featured-quick .featured-footer{padding:9px 12px;gap:8px}
.featured-quick .featured-choices{gap:4px}
#app.cinema-shell .featured-quick .featured-choice{min-height:44px;height:44px;padding:4px;gap:7px}
.featured-quick .featured-thumb{width:42px;height:23.625px}
.featured-quick .featured-choice b{font-size:12px}.featured-quick .featured-choice small{display:none}
.featured-quick .featured-position{font-size:11px;min-width:38px}
.featured-quick .featured-controls{gap:2px}
.featured-community{position:relative;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-width:0;overflow:hidden;background:#fff0be;color:#1d3456}
.featured-community-copy{padding-left:24px;position:relative;z-index:1}.featured-community-copy small{font-size:12px;color:#81703e;white-space:nowrap}.featured-community-copy p{font:700 23px/1.5 var(--ui-font);margin:10px 0 0;white-space:nowrap;letter-spacing:-.03em}
.featured-community-art{position:relative;display:flex;align-items:center;justify-content:center;height:100%;border-radius:150px 0 0 150px;background:#ffd233;min-width:0}
.featured-community-art>img{width:88%;height:144px;object-fit:contain;filter:drop-shadow(0 10px 10px #b76d2420)}
.featured-chip{position:absolute;font-size:11px;font-weight:600;padding:6px 10px;border-radius:6px;box-shadow:0 5px 15px #a26f1620;white-space:nowrap}.featured-chip.chip-red{left:-5px;top:18%;background:#eb3549;color:#fff;transform:rotate(-9deg)}.featured-chip.chip-blue{right:9px;bottom:15%;background:#2162ee;color:#fff;transform:rotate(8deg)}
/* The quick row uses the very same tracks as the game library. */
html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content>.lobby-quick-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px;width:100%;max-width:none;margin:0 auto 22px;padding:0}
.lobby-quick-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:36px}.lobby-quick-heading h2{font-size:17px;margin:0}.lobby-quick-heading>div{display:flex;gap:14px;align-items:center}.lobby-quick-heading a{font-size:13px;color:var(--text-2)}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-list-section,html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-list{display:contents}
.lobby-quick-row .room-list-section>.row{display:none}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:16px 38px 44px;gap:6px 8px;padding:12px 14px;margin:0;border:1px solid var(--border);border-radius:8px;min-width:0;min-height:136px;box-shadow:none;background:var(--surface)}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row .rid{display:block;grid-row:1;grid-column:1;font-size:11px;color:var(--text-2);white-space:nowrap}.lobby-quick-row .room-row .rid::before{content:'公开房间 · '}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row>.tag{grid-row:1;grid-column:2;font-size:11px;text-align:right}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-summary{grid-row:2;grid-column:1/-1;display:block;min-width:0}.lobby-quick-row .room-summary .r-name{font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lobby-quick-row .room-summary .r-sub{font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row .avatar-stack{grid-row:3;grid-column:1;margin:0;align-self:center;overflow:hidden}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row>button{grid-row:3;grid-column:2;justify-self:end;padding:8px 0 8px 8px;min-height:44px;font-size:13px;border-radius:6px}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume{display:flex;flex-direction:column;gap:7px;min-width:0;min-height:136px;margin:0;padding:12px 14px;background:var(--brand-soft);border:1px solid var(--border-strong);border-radius:8px;box-sizing:border-box}
.lobby-resume-label{font-size:12px;font-weight:600;color:var(--brand)}.lobby-resume-summary{display:flex;gap:10px;min-width:0;align-items:center}.lobby-resume-summary>img{width:64px;height:36px;object-fit:contain;border-radius:4px}.lobby-resume-summary>div{min-width:0;flex:1}.lobby-resume-summary b{display:block;font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lobby-resume-summary small{display:block;font-size:12px;line-height:18px;color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app.cinema-shell .lobby-resume-action{display:flex;align-items:center;justify-content:flex-end;min-height:44px;margin-top:auto;font-size:13px;color:var(--brand);text-decoration:none}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-list>.empty{grid-column:span 1;min-height:136px;padding:20px 14px;border:1px dashed var(--border);border-radius:8px;font-size:13px}
@media(min-width:1560px){html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content>.lobby-quick-row{grid-template-columns:repeat(auto-fill,330.5px);justify-content:center;max-width:3835.5px}}
@media(min-width:881px) and (max-width:1200px){html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content>.lobby-quick-row{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-community{grid-template-columns:1fr}.featured-community-copy{padding:0 18px;align-self:start;margin-top:20px}.featured-community-copy p{font-size:20px;margin-top:6px}.featured-community-art{position:absolute;width:115px;height:115px;right:0;bottom:0;border-radius:90px 0 0 0}.featured-community-art>img{height:94px}.featured-chip{font-size:9px;padding:4px 6px}.featured-chip.chip-red{top:10%;left:-10px}.featured-chip.chip-blue{bottom:8%;right:4px}.featured-quick .featured-stage{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.featured-quick .featured-copy{padding:12px}.featured-quick .featured-copy h1{font-size:20px}#app.cinema-shell .featured-quick .featured-browse{display:none}.featured-quick .featured-footer{padding:9px 6px;gap:4px}.featured-quick .featured-thumb{display:none}.featured-quick .featured-controls button{width:36px}.featured-quick .featured-position{min-width:32px;font-size:10px}.featured-quick .featured-controls{gap:0}.featured-quick .featured-choice b{font-size:11px}}
@media(max-width:880px){
 #app.cinema-shell .featured-quick{display:none}
 html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content>.lobby-quick-row{grid-template-columns:minmax(0,1fr);gap:0;margin:0 0 14px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row:not(.has-resume){display:none}
 .lobby-quick-heading{display:none}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-list-section,html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-list{display:none}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;min-height:78px;padding:10px 12px}
 .lobby-resume-label{grid-column:1;grid-row:1;font-size:11px}.lobby-resume-summary{grid-column:1;grid-row:2;gap:8px}.lobby-resume-summary>img{width:48px;height:27px}.lobby-resume-summary b{font-size:13px;line-height:17px}.lobby-resume-summary small{font-size:11px;line-height:16px}
 #app.cinema-shell .lobby-resume-action{grid-column:2;grid-row:1/3;align-self:center;margin:0;font-size:12px}
}
html[data-theme=dark] .featured-community{background:#443a22;color:#fff0c5}html[data-theme=dark] .featured-community-copy small{color:#d6c89d}html[data-theme=dark] .featured-community-art{background:#64501c}
@media(min-width:881px) and (max-width:1200px){html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content>.lobby-quick-row{grid-template-columns:repeat(4,minmax(0,1fr))}html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row,html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume{padding-left:10px;padding-right:10px}.lobby-resume-summary>img{width:40px;height:28px}.lobby-resume-summary{gap:6px}}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .r-name{font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .r-sub{font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row .rid{overflow:hidden;text-overflow:ellipsis}
/* Each short room strip spans two game columns. */
@media(min-width:881px){
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row,
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume{grid-column:span 2;display:grid;grid-template-columns:64px minmax(0,1fr) auto;grid-template-rows:14px 32px;column-gap:10px;row-gap:2px;height:70px;min-height:70px;padding:10px 14px;align-content:center}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume-label{grid-column:2;grid-row:1;font-size:11px;line-height:14px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume-summary{display:contents}
 .lobby-quick-row .lobby-resume-summary>img{grid-column:1;grid-row:1/3;width:64px;height:36px;align-self:center}
 .lobby-quick-row .lobby-resume-summary>div{grid-column:2;grid-row:2;align-self:center}
 .lobby-quick-row .lobby-resume-summary b{font-size:13px;line-height:17px}.lobby-quick-row .lobby-resume-summary small{font-size:11px;line-height:14px}
 #app.cinema-shell .lobby-quick-row .lobby-resume-action{grid-column:3;grid-row:1/3;align-self:center;min-height:44px;margin:0;padding:0 8px;font-size:13px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row .avatar-stack{grid-column:1;grid-row:1/3;align-self:center;max-width:64px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row .rid{grid-column:2;grid-row:1;font-size:11px;line-height:14px;width:100%;padding-right:56px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row>.tag{grid-column:2;grid-row:1;justify-self:end;line-height:14px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-summary{grid-column:2;grid-row:2;align-self:center}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .r-name{font-size:13px;line-height:17px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .r-sub{font-size:11px;line-height:14px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row>button{grid-column:3;grid-row:1/3;align-self:center;min-height:44px;padding:8px}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-list>.empty{grid-column:span 2;height:70px;min-height:70px;padding:20px 14px}
}
@media(max-width:880px){html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume{height:70px;min-height:70px;padding:7px 12px}}
/* Resume and public rooms are the same kind of quick-play card. */
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row{background:var(--brand-soft);border-color:var(--border-strong)}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row .avatar-stack{display:none}
.lobby-room-cover{grid-column:1;grid-row:1/3;align-self:center;width:64px;height:36px;overflow:hidden;border-radius:4px}.lobby-room-cover img{display:block;width:100%;height:100%;object-fit:contain}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row .rid{background:none;border:0;border-radius:0;box-shadow:none;color:var(--brand);font:600 11px/14px var(--ui-font);letter-spacing:normal;padding-left:0;padding-top:0;padding-bottom:0}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row>.tag{background:none;color:var(--text-2);font:400 11px/14px var(--ui-font);padding:0}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row>button,
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume-action{display:inline-flex;align-items:center;justify-content:center;height:44px;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:var(--brand-soft);color:var(--brand);font:500 13px/1.4 var(--ui-font);text-decoration:none;box-shadow:none;white-space:nowrap}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-row>button:hover,
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume-action:hover{background:var(--surface);border-color:var(--border-strong)}
/* E: sage green and a clear action, within the existing compact strip. */
.featured-quick .featured-game-pane{background:#e6eedc;color:#213b2b}
.featured-quick .featured-stage{background:#e6eedc}
.featured-quick .featured-copy{gap:0;padding:10px 18px}
.featured-launch-kicker{font-size:11px;line-height:14px;font-weight:600;color:#617345;letter-spacing:.03em}
.featured-quick .featured-copy h1{color:#213b2b;font-size:25px;line-height:31px;margin:3px 0 0}
.featured-quick .featured-copy p.featured-launch-recommendation{font-size:12px;line-height:18px;color:#617345;margin:3px 0 8px}
.featured-quick .featured-art{background:#dce9bc}
.featured-quick .featured-footer{background:#f1f5ea;border-top-color:#d9e2cc}
#app.cinema-shell .featured-quick .featured-pick{background:#285b48;border:1px solid #285b48;color:#fff;padding:8px 14px;box-shadow:none}
#app.cinema-shell .featured-quick .featured-pick:hover{background:#204b3a}
#app.cinema-shell .featured-quick .featured-create{color:#285b48;background:none;border:0;padding:8px 0;max-width:47%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app.cinema-shell .featured-quick .featured-choice{color:#526846}
#app.cinema-shell .featured-quick .featured-choice[aria-pressed=true]{background:#e1ebd3;border-color:#bacda5;color:#284a35}
/* H: fewer discovery sections, each led by a coloured circular icon. */
#app.cinema-shell .lobby-categories{gap:8px;align-items:center}
#app.cinema-shell .lobby-categories button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 6px;background:none;border:0;border-radius:8px;color:var(--text-2)}
#app.cinema-shell .lobby-categories button[aria-pressed=true]{color:var(--text);background:none;font-weight:600}
.lobby-category-icon{--category-ink:#2b92b5;display:inline-grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:#ebf6fc;color:var(--category-ink)}
.lobby-category-icon.tone-1{--category-ink:#cf587b;background:#fff0f4}.lobby-category-icon.tone-2{--category-ink:#9972c7;background:#f2eefc}.lobby-category-icon.tone-3{--category-ink:#649a56;background:#eef7ed}
.lobby-category-icon .ui-line-icon{width:18px;height:18px}
.lobby-categories button[aria-pressed=true] .lobby-category-icon{background:var(--category-ink);color:#fff}
@media(min-width:881px) and (max-width:1150px){.featured-quick .featured-copy{padding:10px 12px}.featured-quick .featured-copy h1{font-size:23px}#app.cinema-shell .featured-quick .featured-create{display:none}#app.cinema-shell .featured-quick .featured-pick{font-size:12px;padding:8px 10px}}
@media(max-width:880px){#app.cinema-shell .lobby-categories{gap:4px}#app.cinema-shell .lobby-categories button{gap:4px;padding:0;min-height:44px;font-size:13px}.lobby-category-icon{width:20px;height:20px}.lobby-category-icon .ui-line-icon{width:13px;height:13px}}
html[data-theme=dark] .featured-quick .featured-game-pane,html[data-theme=dark] .featured-quick .featured-stage{background:#283b2d}html[data-theme=dark] .featured-quick .featured-art{background:#33482f}html[data-theme=dark] .featured-quick .featured-copy h1{color:#edf4e5}html[data-theme=dark] .featured-launch-kicker,html[data-theme=dark] .featured-quick .featured-copy p.featured-launch-recommendation{color:#bfd0ad}html[data-theme=dark] .featured-quick .featured-footer{background:#243329;border-top-color:#41513b}html[data-theme=dark] #app.cinema-shell .featured-quick .featured-create,html[data-theme=dark] #app.cinema-shell .featured-quick .featured-choice{color:#c5dbb8}html[data-theme=dark] .lobby-category-icon{background:#263b45}html[data-theme=dark] .lobby-category-icon.tone-1{background:#482f3b}html[data-theme=dark] .lobby-category-icon.tone-2{background:#39304c}html[data-theme=dark] .lobby-category-icon.tone-3{background:#2b402e}
html[data-theme] #app.cinema-shell[data-page=lobby] .featured-quick .featured-pick{background:#285b48;border:1px solid #285b48;color:#fff}
html[data-theme] #app.cinema-shell[data-page=lobby] .featured-quick .featured-pick:hover{background:#204b3a}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-categories{gap:8px}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-categories button{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 6px;background:none;border:0;border-radius:8px}
@media(max-width:880px){html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-categories{gap:4px}html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-categories button{gap:4px;padding:0;min-height:44px;font-size:13px}}
/* Poster carousel: no visible game list or copy panel. */
.featured-carousel .featured-game-pane{grid-template-rows:160px 48px;background:#162332;min-height:0}
#app.cinema-shell .featured-carousel .featured-carousel-poster{position:relative;isolation:isolate;min-height:0;overflow:hidden;border-radius:0;background:#162332;box-shadow:none}
.featured-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s ease;pointer-events:none;overflow:hidden}
.featured-slide.is-current{opacity:1;visibility:visible}
.featured-ambient{position:absolute;inset:-25px;width:calc(100% + 50px);height:calc(100% + 50px);object-fit:cover;filter:blur(22px) brightness(.55) saturate(1.15);opacity:.9}
.featured-carousel .featured-image{position:relative;display:block;box-sizing:border-box;width:100%;height:100%;padding:6px 16px;object-fit:contain;object-position:center;filter:drop-shadow(0 2px 9px #0004)}
.featured-carousel-footer{display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:#162332;min-width:0}
.featured-dots{display:flex;align-items:center;min-width:0}
#app.cinema-shell .featured-dot{display:grid;place-items:center;width:30px;height:44px;min-height:44px;padding:0;border:0;background:none;box-shadow:none;border-radius:7px}
.featured-dot>span{display:block;width:7px;height:7px;border-radius:50%;background:#ffffff70;transition:width .2s,background .2s}
.featured-dot[aria-pressed=true]>span{width:20px;height:7px;border-radius:7px;background:#fff}
.featured-carousel-controls{display:flex;gap:4px}
#app.cinema-shell .featured-carousel-controls button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:8px;background:#ffffff0f;color:#fff;font:25px/1 var(--ui-font);box-shadow:none}
#app.cinema-shell .featured-carousel-controls button:hover{background:#ffffff25}
.featured-carousel button:focus-visible{outline:2px solid #81ceff;outline-offset:-3px}
@media(prefers-reduced-motion:reduce){.featured-slide,.featured-dot>span{transition:none}}
/* Introductory copy stays; indicators float on the full-height carousel. */
.featured-carousel .featured-game-pane{position:relative;display:block;grid-template-rows:none;min-height:0}
#app.cinema-shell .featured-carousel .featured-carousel-poster{position:absolute;inset:0;width:100%;height:100%}
.featured-carousel .featured-image{position:absolute;inset:10px 14px 10px auto;width:44%;height:calc(100% - 20px);padding:0;object-fit:contain}
.featured-carousel .featured-ambient{filter:blur(22px) brightness(.4) saturate(.9)}
.featured-carousel-copy{position:absolute;z-index:2;left:24px;top:18px;bottom:56px;width:calc(56% - 40px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;pointer-events:none;color:#fff;text-shadow:0 1px 8px #0004}
.featured-carousel-copy h1{font:700 27px/1.25 var(--ui-font);margin:0;white-space:nowrap;letter-spacing:-.02em}
.featured-carousel-copy p{font-size:13px;line-height:19px;margin:6px 0 8px;color:#ffffffd6}
html[data-theme] #app.cinema-shell[data-page=lobby] .featured-carousel-copy .featured-pick{pointer-events:auto;display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;background:#fff;color:#20382e;border:0;border-radius:8px;font-size:13px;box-shadow:0 2px 10px #0002;text-shadow:none;white-space:nowrap}
html[data-theme] #app.cinema-shell[data-page=lobby] .featured-carousel-copy .featured-pick:hover{background:#eaf3e4}
.featured-carousel-footer{position:absolute;z-index:3;left:0;right:0;bottom:0;height:52px;box-sizing:border-box;padding:0 12px;background:linear-gradient(transparent,#101c2b80);pointer-events:none}
.featured-carousel-footer button{pointer-events:auto}
.featured-dot>span{width:7px;height:7px;border-radius:50%;transition:width .2s,height .2s,background .2s}
.featured-dot[aria-pressed=true]>span{width:11px;height:11px;border-radius:50%;background:#fff}
@media(min-width:881px) and (max-width:1150px){.featured-carousel-copy{left:16px;width:calc(56% - 38px);top:14px;bottom:56px}.featured-carousel-copy h1{font-size:23px}.featured-carousel-copy p{font-size:12px;line-height:18px;margin:6px 0 8px}html[data-theme] #app.cinema-shell[data-page=lobby] .featured-carousel-copy .featured-pick{font-size:12px;padding:8px 10px}}
/* Keep E's sage palette while retaining the floating carousel controls. */
.featured-carousel .featured-game-pane,
#app.cinema-shell .featured-carousel .featured-carousel-poster{background:#e6eedc}
.featured-carousel .featured-slide{background:linear-gradient(90deg,#e6eedc 0%,#e6eedc 54%,#dce9bc 100%)}
.featured-carousel .featured-ambient{display:none}
.featured-carousel-copy,.featured-carousel-copy h1{color:#213b2b;text-shadow:none}
.featured-carousel-copy p{color:#617345}
html[data-theme] #app.cinema-shell[data-page=lobby] .featured-carousel-copy .featured-pick{background:#285b48;color:#fff;box-shadow:none}
html[data-theme] #app.cinema-shell[data-page=lobby] .featured-carousel-copy .featured-pick:hover{background:#204b3a}
.featured-carousel-footer{background:linear-gradient(transparent,#dce9bc55)}
.featured-carousel .featured-dot>span{background:#285b4855}
.featured-carousel .featured-dot[aria-pressed=true]>span{background:#285b48}
#app.cinema-shell .featured-carousel-controls button{color:#285b48;background:#e6eedce8;box-shadow:0 1px 6px #1c392018}
#app.cinema-shell .featured-carousel-controls button:hover{background:#dce9bc}
.featured-carousel button:focus-visible{outline-color:#285b48}
html[data-theme=dark] .featured-carousel .featured-game-pane,
html[data-theme=dark] #app.cinema-shell .featured-carousel .featured-carousel-poster{background:#283b2d}
html[data-theme=dark] .featured-carousel .featured-slide{background:linear-gradient(90deg,#283b2d 0%,#283b2d 54%,#33482f 100%)}
html[data-theme=dark] .featured-carousel-copy,html[data-theme=dark] .featured-carousel-copy h1{color:#edf4e5}
html[data-theme=dark] .featured-carousel-copy p{color:#bfd0ad}
html[data-theme=dark] .featured-carousel-footer{background:linear-gradient(transparent,#33482f66)}
html[data-theme=dark] .featured-carousel .featured-dot>span{background:#c5dbb866}
html[data-theme=dark] .featured-carousel .featured-dot[aria-pressed=true]>span{background:#c5dbb8}
html[data-theme=dark] #app.cinema-shell .featured-carousel-controls button{color:#c5dbb8;background:#ffffff10}
/* W3: overlapping paper posters shuffle through the top of the deck. */
.featured-carousel .featured-game-pane{container-type:inline-size}
.featured-carousel .featured-slide{--deck-spread:clamp(12px,calc((100cqw - 560px) / 4),64px);--deck-curve:clamp(10px,2cqw,14px);inset:auto 22px auto auto;top:calc(50% - 4px);width:clamp(160px,calc(48% - 42px),264px);height:auto;aspect-ratio:16/9;box-sizing:border-box;border:0;border-radius:10px;background:transparent;box-shadow:10px 14px 26px #3b422c42,0 4px 8px #213b2b20;opacity:1;visibility:visible;overflow:hidden;transition:none;transform-origin:center;z-index:5;transform:translateY(-50%) rotate(6deg)}
.featured-carousel .featured-slide[data-depth="1"]{z-index:4;transform:translate(calc(-1 * var(--deck-spread)),calc(-50% - var(--deck-curve))) rotate(-2deg)}
.featured-carousel .featured-slide[data-depth="2"]{z-index:3;transform:translate(calc(-2 * var(--deck-spread)),-50%) rotate(-5deg)}
.featured-carousel .featured-slide[data-depth="3"]{z-index:2;transform:translate(calc(-3 * var(--deck-spread)),calc(-50% + var(--deck-curve))) rotate(-2deg)}
.featured-carousel .featured-slide[data-depth="4"]{z-index:1;transform:translate(calc(-4 * var(--deck-spread)),-50%) rotate(4deg)}
.featured-carousel .featured-slide{pointer-events:auto;cursor:pointer}
#app.cinema-shell .featured-carousel .featured-carousel-poster{cursor:default}
.featured-carousel .featured-slide .featured-image{position:absolute;inset:0;width:100%;height:100%;padding:0;filter:none;object-fit:cover}
.featured-party-invitation{position:absolute;z-index:4;right:22px;top:calc(50% - 4px);width:clamp(160px,calc(48% - 42px),264px);aspect-ratio:16/9;transform:translateY(-50%);pointer-events:none}
.featured-party-badge{position:absolute;left:-40px;top:-2px;display:grid;place-items:center;width:74px;height:74px;box-sizing:border-box;border:6px solid #fff;border-radius:50%;background:#e27661;color:#fffdf5;font:700 10px/1 var(--ui-font);letter-spacing:.02em;transform:rotate(-18deg);box-shadow:0 6px 14px #a3443430}
.featured-party-tag{position:absolute;left:-24px;bottom:-2px;max-width:clamp(136px,calc(100% - 90px),174px);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 10px;border-radius:5px;background:#c6eaff;color:#000;font:500 12px/17px var(--ui-font);transform:rotate(-6deg);box-shadow:0 4px 12px #34557725}
.featured-community-art>img{width:144px;max-width:85%;height:144px;transform:rotate(12deg)}
/* W3's yellow room-code ticket and paper cover fit the existing 70px strips. */
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.room-row,.lobby-resume){display:grid;position:relative;container:room-ticket / inline-size;grid-template-columns:84px minmax(0,1fr) auto;grid-template-rows:1fr;gap:12px;align-items:center;align-content:center;height:70px;min-height:70px;padding:8px 14px;background:#fffdf5;border:1px solid #e8e4d6;border-radius:10px;box-shadow:0 3px 0 #e8e0cc55;overflow:visible}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.room-row,.lobby-resume) .lobby-room-code{display:flex;flex-direction:row;align-items:center;justify-content:center;align-self:start;grid-column:1;grid-row:1;width:84px;height:22px;box-sizing:border-box;gap:4px;padding:0 5px;background:#ffe6a0;border:0;border-radius:5px;color:#39352d;transform:rotate(-3deg);box-shadow:3px 4px 0 #ead49b88;overflow:visible;white-space:nowrap;text-overflow:clip}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .rid::before{content:none}
.lobby-room-code small{font:400 8px/11px var(--ui-font);letter-spacing:0}.lobby-room-code b{font:700 11px/18px var(--ui-font);letter-spacing:.04em}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .lobby-resume-summary{display:contents}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-summary>img,.lobby-room-cover){position:absolute;grid-area:auto;left:32px;top:34px;width:48px;height:27px;align-self:center;border:2px solid #fffdf5;border-radius:5px;box-sizing:border-box;background:#fffdf5;box-shadow:3px 4px 0 #edddd0;transform:rotate(5deg);object-fit:contain}
:is(.lobby-quick-row,.tables-room-list) .lobby-room-cover img{object-fit:contain}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .room-row .lobby-room-cover{border:0}
:is(.lobby-quick-row,.tables-room-list) .lobby-room-cover img{border:2px solid #fffdf5;border-radius:5px;box-sizing:border-box}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-summary>div,.room-summary){grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;gap:0;min-width:0;align-self:center}
.lobby-room-title{display:flex;align-items:center;gap:8px;min-width:0}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-room-title>b,.r-name){font:700 13px/17px var(--ui-font);color:#292d3e;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-label,.tag){flex:none;font:400 10px/15px var(--ui-font);color:#5b60c9;background:none;padding:0;white-space:nowrap}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-summary small,.r-sub){font:400 11px/15px var(--ui-font);color:#8b887b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lobby-room-tagline{display:block;font:400 10px/14px var(--ui-font);color:#7b796c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.room-row>button,.lobby-resume-action){grid-column:3;grid-row:1;align-self:center;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:44px;min-height:44px;padding:0 12px;border-radius:8px;background:#efedfc;border:1px solid #e3def6;color:#5b60c9;font:500 13px/1.4 var(--ui-font);text-decoration:none;box-shadow:none;white-space:nowrap}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.room-row>button,.lobby-resume-action):hover{background:#e4e0f8;border-color:#c5bfe8}
@media(max-width:880px){
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume,.room-row){grid-template-columns:58px minmax(0,1fr) auto;grid-template-rows:23px 27px;gap:2px 10px;padding:8px 12px}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume,.room-row) .lobby-room-code{width:58px;height:23px;grid-column:1;grid-row:1;padding:0 4px;box-shadow:2px 3px 0 #ead49b88}
 .lobby-room-code small{display:none}.lobby-room-code b{font-size:11px;line-height:18px;letter-spacing:.04em}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .lobby-resume-summary>img{left:17px;top:34px;width:48px;height:27px;border-width:1px;box-shadow:2px 2px 0 #edddd0}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .lobby-resume-summary>div{grid-column:2;grid-row:1/3}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .lobby-resume>.lobby-resume-action{grid-column:3;grid-row:1/3;align-self:center;box-sizing:border-box;height:44px;min-height:44px;max-width:100%;padding:0 8px;font-size:16px}
 .lobby-room-title{gap:4px}html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .lobby-resume-label{font-size:9px}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .lobby-resume-summary small{font-size:10px}
 .lobby-room-tagline{font-size:10px}
}
@media(min-width:881px){@container room-ticket (min-width:440px){
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.room-row,.lobby-resume) .lobby-room-code{height:40px;align-self:center;flex-direction:column;gap:1px}
 .lobby-room-code b{font-size:14px}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-summary>img,.lobby-room-cover){left:114px;top:16px;width:64px;height:36px}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-summary>div,.room-summary){padding-left:76px}
}}
html[data-theme=dark] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.room-row,.lobby-resume){background:#302f2c;border-color:#4c473e;box-shadow:0 3px 0 #15130e55}
html[data-theme=dark] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-room-title>b,.r-name){color:#f2eedf}
html[data-theme=dark] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-summary small,.r-sub,.lobby-room-tagline){color:#c1baaa}
html[data-theme=dark] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-label,.tag){color:#c6bcff}
html[data-theme=dark] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.room-row>button,.lobby-resume-action){background:#3d3654;border-color:#55496c;color:#d4ccff}
/* Open tables reuse the same tickets, without changing their join/watch rules. */
html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list{padding:0;border:0;background:transparent;box-shadow:none}
html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .room-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 20px;margin-top:16px}
html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .room-row{grid-column:auto;margin:0;min-width:0;box-sizing:border-box}
html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .avatar-stack{display:none}
html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .lobby-room-code::before{content:none}
#app.cinema-shell .lobby-resume-action{gap:6px}
@media(max-width:880px){
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .lobby-room-title>b,
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .lobby-room-title .r-name{font-size:16px;line-height:20px}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-label,.tag){font-size:12px;line-height:16px}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.lobby-resume-summary small,.r-sub){font-size:13px;line-height:18px}
 html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) .lobby-room-tagline{font-size:12px;line-height:16px}
 .lobby-room-code b{font-size:14px;line-height:20px}
 html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .lobby-room-cover{left:17px;top:34px;width:48px;height:27px}
 html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .room-row .room-summary{grid-column:2;grid-row:1/3}
 html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .room-row>button{grid-column:3;grid-row:1/3;align-self:center;box-sizing:border-box;height:44px;min-height:44px;padding:0 8px;font-size:16px}
}
@media(max-width:359px){
 #app.cinema-shell .lobby-resume-arrow{display:none}
 html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .lobby-resume-label{display:none}
 html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .lobby-room-title .tag{font-size:11px}
}
/* A room takes one full-sized game track, or two when a track is too narrow. */
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=tables]) :is(.lobby-quick-row,.tables-room-list) :is(.room-row,.lobby-resume){grid-column:span var(--room-card-span,2)}
html[data-theme] #app.cinema-shell[data-page=lobby] .lobby-quick-row .room-list>.empty{grid-column:span var(--room-card-span,2)}
@media(max-width:880px){html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .room-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}}
@media(min-width:701px) and (max-width:880px) and (max-height:500px){html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .room-list{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:20px}}
@media(min-width:1560px){
 html[data-theme] #app.cinema-shell[data-page=tables] .bga-content{max-width:3903.5px}
 html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .room-list{grid-template-columns:repeat(auto-fill,330.5px);justify-content:center}
}

.table-filters{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}.table-filters button{min-height:40px}.profile-header-card .profile-edit{margin-left:auto;flex:none;min-height:44px}.profile-function-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:16px}.profile-function-grid a{display:flex;flex-direction:column;gap:5px;min-height:64px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:16px}.profile-function-grid small{font-size:12px;color:var(--text-2);font-weight:400}.profile-function-grid a:nth-last-child(-n+2){min-height:42px;padding:10px;font-size:13px}.profile-header-card .profile-username{overflow-wrap:anywhere}.profile-header-card .profile-user-info{min-width:0}@media(max-width:480px){.profile-header-card{gap:12px;flex-wrap:wrap;padding:14px}.profile-header-card .profile-avatar-large{width:64px;height:64px}.profile-header-card .profile-edit{margin-left:0;width:100%}.profile-function-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.profile-function-grid a{padding:10px;font-size:14px}.profile-function-grid small{line-height:1.5}.profile-function-grid a:nth-last-child(-n+2){font-size:12px}.table-filters{gap:4px}.table-filters button{font-size:13px;padding:5px 10px}}

/* Personal portraits retain the complete square artwork; room circles stay unchanged. */
#app.cinema-shell[data-page=profile] .profile-avatar-large{width:200px;height:200px;border-radius:8px}
#app.cinema-shell[data-page=profile] .profile-avatar-large img{object-fit:contain}
.cinema-profile-face{width:144px;height:144px;flex:none;border-radius:8px}
.cinema-profile-face img{width:100%;height:100%;object-fit:contain}
.cinema-profile-preview>div:last-child{min-width:0;overflow-wrap:anywhere}
.profile-avatar-hover{position:fixed;inset:auto;margin:0;padding:0;border:2px solid var(--border-strong);border-radius:8px;background:var(--surface);box-shadow:0 12px 40px #14243744;pointer-events:none;box-sizing:border-box;overflow:hidden}
.profile-avatar-hover img{display:block;width:100%;height:100%;object-fit:contain}
@media(max-width:480px){
 #app.cinema-shell[data-page=profile] .profile-avatar-large{width:160px;height:160px}
 .profile-header-card .profile-user-info{flex:1 1 90px}
 .cinema-profile-face{width:112px;height:112px}
}

/* v452: reference header on desktop destinations; narrow layouts stay unchanged. */
.home-header-nav,.header-wide-brand,.header-wide-mine{display:none}
@media(min-width:881px){
 html[data-theme] #app.cinema-shell[data-page] .bga-header{margin-left:0;width:100%;background:var(--surface);border-bottom:1px solid var(--border);backdrop-filter:blur(10px)}
 html[data-theme] #app.cinema-shell[data-page] .bga-main{margin-left:0}
 html[data-theme] #app.cinema-shell[data-page] .cinema-rail{display:none}
 html[data-theme] #app.cinema-shell[data-page] .bga-header-inner{display:flex;align-items:center;gap:12px;max-width:1280px;margin:0 auto;padding:0 32px;height:64px;min-height:64px;box-sizing:border-box;font:400 14px/1.6 system-ui,'PingFang SC','Microsoft YaHei',sans-serif}
 html[data-theme] #app.cinema-shell[data-page] .bga-header .bga-logo{display:flex;align-items:center;gap:10px;flex:none;margin:0;font-size:18px;font-weight:700;text-decoration:none}
 #app.cinema-shell .bga-header .bga-trademark{width:34px;height:34px;min-width:34px;border-radius:50%;object-fit:cover}
 html[data-theme] #app.cinema-shell[data-page] .bga-header .bga-logo-text{display:block;color:#2f7f70;font:500 22px/1.3 CinemaInterface,'Microsoft YaHei',sans-serif;text-decoration:none}
 #app.cinema-shell .header-narrow-brand{display:none}
 #app.cinema-shell .header-wide-brand{display:inline}
 #app.cinema-shell .cinema-context{display:none}
 #app.cinema-shell .home-header-nav{display:flex;align-items:center;order:1;gap:4px;margin:0 auto 0 20px;min-width:0}
 #app.cinema-shell .home-header-nav a{display:flex;align-items:center;justify-content:center;min-height:36px;padding:6px 16px;box-sizing:border-box;border-radius:999px;color:#56706a;white-space:nowrap;text-decoration:none}
 #app.cinema-shell .home-header-nav a:hover{background:#e3f4ef}
 #app.cinema-shell .home-header-nav a[aria-current=page]{background:#e3f4ef;color:#2f7f70;font-weight:600}
 #app.cinema-shell .bga-header .cinema-header-tools{order:2;flex:1;min-width:0;max-width:620px;margin:0;gap:12px}
 #app.cinema-shell .bga-header .cinema-header-search{order:0;min-width:100px;height:40px}
 #app.cinema-shell .bga-header .cinema-header-tools :is(input[type=search],input[type=text],.cinema-header-create,.cinema-header-join){height:40px;min-height:40px;font-size:14px;font-weight:600;line-height:1.6;border-radius:999px;box-shadow:none}
 #app.cinema-shell .bga-header .cinema-header-search input[type=search]{font:400 14px/1.6 system-ui,'Microsoft YaHei',sans-serif;border:1px solid #d3e3de;background:var(--surface);padding-left:40px}
 #app.cinema-shell .bga-header .cinema-header-search button{height:40px;min-height:40px;border-radius:999px 0 0 999px}
 #app.cinema-shell .bga-header .cinema-header-join-form{order:1;flex:none;gap:6px;background:none;border-radius:0;box-shadow:none;overflow:visible}
 #app.cinema-shell .bga-header .cinema-header-join-form input[type=text]{flex:none;width:120px;box-sizing:border-box;border:1px solid #d3e3de;background:var(--surface);padding:0 16px;font-weight:400}
 #app.cinema-shell .bga-header .cinema-header-join-form .cinema-header-join{padding:0 18px;border:1px solid #d4eee7;background:#e3f4ef;color:#1f6b5d;border-radius:999px}
 html[data-theme] #app.cinema-shell[data-page] .bga-header .cinema-header-create{order:2;gap:6px;padding:0 18px;border:1px solid #2f7f70;background:#2f7f70;color:#fff;border-radius:999px}
 #app.cinema-shell .bga-header .cinema-header-create:hover{background:#246757;box-shadow:0 4px 14px #2f7f7026}
 #app.cinema-shell .bga-header .bga-user{order:3;display:flex;align-items:center;gap:6px;flex:none;padding:0;margin:0;border:0;cursor:pointer}
 #app.cinema-shell .bga-header .bga-user-info{display:none}
 #app.cinema-shell .bga-header .bga-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden}
 #app.cinema-shell .header-wide-mine{display:inline;color:#56706a;white-space:nowrap}
 #app.cinema-shell .bga-header .bga-user:focus-visible{outline:3px solid #9fd6c8;outline-offset:4px;border-radius:999px}
 html[data-theme=dark] #app.cinema-shell .home-header-nav a,
 html[data-theme=dark] #app.cinema-shell .header-wide-mine{color:var(--text-2)}
 html[data-theme=dark] #app.cinema-shell .home-header-nav a:is(:hover,[aria-current=page]){background:#244b43;color:#b0e3d5}
 html[data-theme=dark] #app.cinema-shell .bga-header .bga-logo-text{color:#b0e3d5}
 html[data-theme=dark] #app.cinema-shell .bga-header .cinema-header-tools input{border-color:var(--border-strong)}
}
@media(min-width:881px) and (max-width:1050px){
 html[data-theme] #app.cinema-shell[data-page] .bga-header-inner{gap:8px;padding-inline:16px}
 #app.cinema-shell .home-header-nav{margin-left:8px}
 #app.cinema-shell .home-header-nav a{padding-inline:10px}
 #app.cinema-shell .bga-header .cinema-header-tools{gap:8px}
}

/* v457: one room-code capsule, shared by desktop and narrow headers. */
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form{display:flex;align-items:center;gap:0;height:40px;box-sizing:border-box;border:1px solid #d4eee7;border-radius:999px;background:#e3f4ef;box-shadow:none;overflow:hidden}
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form input[type=text]{height:38px;min-height:38px;border:0;border-radius:0;background:transparent;box-shadow:none}
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form .cinema-header-join{height:38px;min-height:38px;border:0;border-left:1px solid #c4e1d8;border-radius:0;background:transparent;color:#1f6b5d;box-shadow:none}
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form .cinema-header-join:hover{background:#d4eee7}
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form:focus-within{outline:2px solid #2f7f70;outline-offset:2px}
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form :is(input,button):focus-visible{outline:0}
html[data-theme=dark] #app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form{background:#244b43;border-color:#3d685d}
html[data-theme=dark] #app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form .cinema-header-join{color:#b0e3d5;border-left-color:#3d685d}
html[data-theme=dark] #app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form .cinema-header-join:hover{background:#315d52}
@media(max-width:880px){
 #app.cinema-shell .bga-header .cinema-header-tools .cinema-header-search input[type=search]{border-radius:999px}
 #app.cinema-shell .bga-header .cinema-header-tools .cinema-header-search button{border-radius:999px 0 0 999px}
 html[data-theme] #app.cinema-shell[data-page] .bga-header .cinema-header-create{border:1px solid #2f7f70;border-radius:999px;background:#2f7f70;color:#fff}
 #app.cinema-shell .bga-header .cinema-header-create:hover{background:#246757}
}

/* Header controls share their typography and room-code width. */
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-search input[type=search],
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form :is(input[type=text],.cinema-header-join),
#app.cinema-shell .bga-header .header-wide-mine {
  font-size: 14px;
}
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form {
  width: max-content;
}
#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form input[type=text] {
  flex: none;
  width: calc(3em + 14px);
  padding-inline: 7px;
}
#app.cinema-shell .bga-header .bga-user {
  gap: 6px;
  cursor: pointer;
}
#app.cinema-shell .bga-header .header-wide-mine {
  display: inline;
  color: var(--text-2);
  white-space: nowrap;
}
@media (max-width: 880px) {
  html[data-theme] #app.cinema-shell[data-page] .bga-header-inner {
    grid-template-columns: 32px minmax(0, 1fr) auto auto;
  }
  #app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form {
    grid-column: 3;
  }
  #app.cinema-shell .bga-header .bga-user {
    grid-column: 4;
    width: auto;
  }
}

/* The viewport belongs to the shell, while the middle pane owns scrolling. */
html:has(#app.cinema-shell),
body:has(#app.cinema-shell) {
  overflow: hidden;
  scrollbar-gutter: auto;
}
html[data-theme] #app.cinema-shell[data-page] {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
html[data-theme] #app.cinema-shell[data-page=community] {
  height: var(--community-window-height, 100dvh);
}
html[data-theme] #app.cinema-shell[data-page] .bga-header {
  flex: none;
}
html[data-theme] #app.cinema-shell[data-page] .bga-main {
  flex: 1 1 0;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden auto;
  overscroll-behavior-y: contain;
}
html[data-theme] #app.cinema-shell[data-page=community] .bga-main {
  height: auto;
  overflow: hidden;
}

@media (max-width: 880px) {
  #app.cinema-shell .bga-header .header-wide-mine { display: none; }
}

/* Catalogue captions follow the reference while the poster keeps its existing size. */
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card {
  grid-template-rows: auto auto auto;
  column-gap: 4px;
}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-body { display: contents; }
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-name {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  margin: 8px 0 0 10px;
  font: 600 15px/1.5 var(--ui-font);
}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-meta {
  grid-column: 1;
  grid-row: 3;
  margin: 0 0 10px 10px;
  font: 400 12px/1.5 var(--ui-font);
  color: var(--text-2);
}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-desc { display: none; }
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-category::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--category-dot, #5fbfa8);
}
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .g-category[data-category="卡牌"] { --category-dot: #6aa8d8; }
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .g-category[data-category="聚会"] { --category-dot: #f4a38a; }
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .g-category[data-category="身份推理"] { --category-dot: #f2cf7a; }
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .g-category[data-category="双人"] { --category-dot: #b3a6e0; }
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card > .quick-create {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: center;
  min-height: 44px;
  margin: 0 8px 0 0;
  padding: 0 5px;
  color: #2f7f70;
  font: 600 13px/1.5 var(--ui-font);
}
#app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card > .quick-create > :is(img,svg) { display: none; }
html[data-theme=dark] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card > .quick-create { color: #a8dcca; }

#app.cinema-shell .room-list-card .lobby-resume-detail {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font: 400 11px/1.5 var(--ui-font);
  color: var(--text-2);
}
#app.cinema-shell .room-list-card .lobby-resume-status {
  padding: 0 6px;
  border-radius: 999px;
  background: #e6f1fa;
  color: #2f5f86;
  font-weight: 600;
}
#app.cinema-shell .room-list-card .lobby-resume-status.is-playing {
  background: #fdeee8;
  color: #9a4326;
}
#app.cinema-shell .room-list-card .lobby-resume-occupancy {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}
#app.cinema-shell .room-list-card .lobby-resume-occupancy > span {
  flex: 1;
  max-width: 16px;
  height: 5px;
  border-radius: 3px;
  background: #e1ece8;
}
#app.cinema-shell .room-list-card .lobby-resume-occupancy > .is-filled { background: #7cc6b5; }
@media (max-width: 420px) {
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-meta { font-size: 11px; }
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card :is(.g-name,.g-meta) { margin-left: 6px; }
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card > .quick-create { margin-right: 3px; }
}

/* Catalogue filters use the round controls and category colors of the reference. */
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools :is(input[type=search],select) {
  flex: none;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  box-sizing: border-box;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 400 14px/1.5 var(--ui-font);
}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools .lobby-categories {
  width: auto;
  max-width: 100%;
  margin-right: auto;
  gap: 8px;
}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools .lobby-categories button {
  min-height: 36px;
  padding: 0 14px;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 500 14px/1.5 var(--ui-font);
}
html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools .lobby-categories button[aria-pressed=true] {
  border-color: #9fd6c8;
  background: #d4eee7;
  color: #1f6b5d;
  font-weight: 600;
}
html[data-theme=dark] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools .lobby-categories button[aria-pressed=true] {
  border-color: #3d685d;
  background: #244b43;
  color: #b0e3d5;
}
.lobby-filter-dot {
  flex: 0 0 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--filter-dot, #5fbfa8);
}
.lobby-categories [data-category=cards] { --filter-dot: #6aa8d8; }
.lobby-categories [data-category=party] { --filter-dot: #f4a38a; }
.lobby-categories [data-category=deduction] { --filter-dot: #f2cf7a; }
.lobby-categories [data-category=duo] { --filter-dot: #b3a6e0; }
.lobby-library-count, .lobby-categories button small {
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 640px) {
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools .lobby-categories {
    flex-basis: 100%;
  }
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools .lobby-categories button {
    padding-inline: 10px;
  }
}


/* Site controls keep the same shape and typography across viewport sizes. */
html[data-theme] #app.cinema-shell[data-page] .bga-content :is(
  button:not(.community-send,.game-cover-action,.featured-carousel-poster,.emoji-panel button),
  input:not([type=checkbox],[type=radio],[type=range]),
  select,
  a:is(.btn-primary,.btn-ghost,.btn-sm,.lobby-resume-action)
),
#app.cinema-shell .lobby-quick-heading > div > button,
#app.cinema-shell .site-bottom-nav > a,
body:has(#app.cinema-shell) :is(.lobby-create-dialog,.cinema-profile-dialog) :is(button:not([data-avatar-id]),input,select) {
  border-radius: 999px;
}

#app.cinema-shell .game-cover > .game-cover-action {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
  transform: none;
}

#app.cinema-shell .game-cover > .game-cover-action:focus-visible {
  outline-offset: -3px;
}

#app.cinema-shell :is(.home-header-nav,.site-bottom-nav) > a[href="#/community"] {
  position: relative;
}

#app.cinema-shell[data-community-unread] :is(.home-header-nav,.site-bottom-nav) > a[href="#/community"]::after {
  content: '';
  position: absolute;
  inset-block-start: 5px;
  inset-inline-start: calc(50% + 14px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #db3445;
  pointer-events: none;
}

@media (max-width: 880px) {
  #app.cinema-shell .game-cover > .game-cover-action { display: none; }
}

#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-search {
  height: 40px;
}

#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-search input[type=search] {
  height: 40px;
  min-height: 40px;
  padding: 0 8px 0 30px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font: 400 14px/1.25 var(--ui-font);
}

#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-search button {
  display: flex;
  width: 28px;
  height: 40px;
  min-height: 40px;
  padding: 6px;
  border-radius: 999px 0 0 999px;
}

#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-search button img {
  width: 14px;
  height: 14px;
}

#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form :is(input[type=text],.cinema-header-join) {
  font: 400 14px/1.25 var(--ui-font);
}

#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-join-form .cinema-header-join {
  width: 44px;
  min-width: 44px;
  padding-inline: 4px;
}

@media (max-width: 880px) {
  #app.cinema-shell .site-bottom-nav {
    height: calc(49px + env(safe-area-inset-bottom));
    padding-block: 4px calc(4px + env(safe-area-inset-bottom));
  }

  #app.cinema-shell .site-bottom-nav a {
    flex-direction: row;
    height: 40px;
    min-height: 40px;
    gap: 5px;
  }

  #app.cinema-shell .site-bottom-nav a > span {
    font-size: 14px;
  }

  #app.cinema-shell .site-bottom-nav a[aria-current=page] {
    background: #e3f4ef;
    color: #1f6b5d;
  }

  html[data-theme=dark] #app.cinema-shell .site-bottom-nav a[aria-current=page] {
    background: #244b43;
    color: #b0e3d5;
  }
}

/* One lobby frame for header, banner and every content row. */
#app.cinema-shell:is([data-page=lobby],[data-page=games],[data-page=tables]) {
  --lobby-frame-width: 3840px;
  --lobby-frame-gutter: clamp(16px, 2.4vw, 48px);
  --lobby-columns: 4;
}

html[data-theme] #app.cinema-shell[data-page] :is(.bga-header,.bga-main) {
  scrollbar-gutter: stable;
}

html[data-theme] #app.cinema-shell[data-page] .bga-header {
  overflow: hidden;
}

html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games],[data-page=tables]) :is(.bga-header-inner,.bga-content) {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--lobby-frame-width);
  padding-inline: var(--lobby-frame-gutter);
}

html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content > :is(.featured-lobby,.lobby-quick-row,.game-library-section) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content > .game-library-section {
  display: block;
}

#app.cinema-shell[data-page=lobby] .lobby-quick-heading {
  justify-content: flex-end;
}

#app.cinema-shell[data-page=lobby] .lobby-quick-heading .lobby-all-tables {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 10px;
  border-radius: 999px;
}

html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools .lobby-categories {
  flex: 0 1 auto;
}

@media (min-width: 881px) {
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    column-gap: 20px;
  }

  html[data-theme] #app.cinema-shell[data-page=lobby] .bga-content > .lobby-quick-row {
    grid-template-columns: repeat(var(--lobby-columns), minmax(0, 1fr));
    justify-content: stretch;
    column-gap: 20px;
  }

  #app.cinema-shell[data-page] .bga-header .cinema-header-tools {
    max-width: clamp(320px, 34vw, 620px);
  }

  #app.cinema-shell[data-page=lobby] .featured-quick {
    grid-template-columns: minmax(0, 1fr) clamp(250px, 38%, 560px);
  }
}

@media (min-width: 1760px) {
  #app.cinema-shell:is([data-page=lobby],[data-page=games],[data-page=tables]) { --lobby-columns: 6; }
}
@media (min-width: 2380px) {
  #app.cinema-shell:is([data-page=lobby],[data-page=games],[data-page=tables]) { --lobby-columns: 8; }
}
@media (min-width: 3000px) {
  #app.cinema-shell:is([data-page=lobby],[data-page=games],[data-page=tables]) { --lobby-columns: 10; }
}
@media (min-width: 3620px) {
  #app.cinema-shell:is([data-page=lobby],[data-page=games],[data-page=tables]) { --lobby-columns: 12; }
}

@media (max-width: 700px) {
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-meta {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card .g-player-count {
    white-space: nowrap;
  }
}

/* One room card for the lobby, its return entry, and the Rooms page. */
html[data-theme] #app.cinema-shell[data-page] :is(.lobby-quick-row,.tables-room-list) .room-list-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  grid-template-rows: 23px 28px;
  grid-template-areas: "code info action" "cover info action";
  align-content: center;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  height: auto;
  min-height: 84px;
  padding: 8px 12px;
}
html[data-theme] #app.cinema-shell[data-page] :is(.lobby-quick-row,.tables-room-list) .room-list-card .lobby-room-code {
  grid-area: code;
  align-self: center;
  flex-direction: row;
  width: 100%;
  height: 23px;
  padding: 0 4px;
  transform: rotate(-3deg);
  box-shadow: 2px 3px 0 #b693422d;
}
html[data-theme] #app.cinema-shell[data-page] .room-list-card .lobby-room-code small {
  display: none;
}
html[data-theme] #app.cinema-shell[data-page] :is(.lobby-quick-row,.tables-room-list) .room-list-card .lobby-room-cover {
  position: static;
  grid-area: cover;
  width: 100%;
  height: 28px;
  transform: rotate(5deg);
  box-shadow: 2px 3px 0 #99744d29;
}
html[data-theme] #app.cinema-shell[data-page] .room-list-card .lobby-room-cover img {
  height: 100%;
  object-fit: contain;
}
html[data-theme] #app.cinema-shell[data-page] :is(.lobby-quick-row,.tables-room-list) .room-list-card .room-card-copy {
  grid-area: info;
  min-width: 0;
  padding: 0;
  gap: 2px;
}
html[data-theme] #app.cinema-shell[data-page] :is(.lobby-quick-row,.tables-room-list) .room-list-card .r-name {
  font: 600 14px/1.4 var(--ui-font);
}
#app.cinema-shell .room-card-password {
  flex: none;
  color: var(--text-2);
  font-size: 10px;
  white-space: nowrap;
}
#app.cinema-shell .room-list-card .lobby-resume-detail {
  color: var(--text-2);
  font-size: 11px;
}
html[data-theme] #app.cinema-shell[data-page] :is(.lobby-quick-row,.tables-room-list) .room-list-card > .lobby-resume-action {
  grid-area: action;
  margin: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #2f7f70;
  border-radius: 999px;
  background: #2f7f70;
  color: #fff;
  font: 500 13px/1.4 var(--ui-font);
}
html[data-theme] #app.cinema-shell[data-page] :is(.lobby-quick-row,.tables-room-list) .room-list-card > .lobby-resume-action:hover:not(:disabled) {
  border-color: #246757;
  background: #246757;
}
#app.cinema-shell .room-list-card > .lobby-resume-action:disabled {
  cursor: wait;
  opacity: .65;
}
html[data-theme] #app.cinema-shell[data-page=games] .bga-content > .game-library-section {
  padding: 0;
  border: 0;
  background: none;
}
html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .room-list > .empty,
html[data-theme] #app.cinema-shell[data-page=games] .game-grid > .empty {
  grid-column: 1 / -1;
}
@media (min-width: 881px) {
  html[data-theme] #app.cinema-shell[data-page=tables] .tables-room-list .room-list {
    grid-template-columns: repeat(var(--lobby-columns), minmax(0, 1fr));
    justify-content: stretch;
  }
}
@media (max-width: 880px) {
  html[data-theme] #app.cinema-shell[data-page] :is(.lobby-quick-row,.tables-room-list) .room-list-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    column-gap: 8px;
  }
}

#app.cinema-shell[data-page=tables] .room-directory-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
#app.cinema-shell[data-page=tables] .room-directory-tools .table-filters {
  margin: 0;
}
#app.cinema-shell[data-page=tables] .room-directory-tools > button {
  border-radius: 999px;
}

/* Four shared game categories; filtering controls fit in one mobile row. */
#app.cinema-shell :is(.lobby-categories button,.g-category)[data-category=luck] { --game-group-color: #e2b75e; }
#app.cinema-shell :is(.lobby-categories button,.g-category)[data-category=strategy] { --game-group-color: #5fbfa8; }
#app.cinema-shell :is(.lobby-categories button,.g-category)[data-category=party] { --game-group-color: #f4a38a; }
#app.cinema-shell :is(.lobby-categories button,.g-category)[data-category=duo] { --game-group-color: #b3a6e0; }
#app.cinema-shell .lobby-categories button .lobby-filter-dot,
#app.cinema-shell :is([data-page=lobby],[data-page=games]) .game-card .g-category::before {
  background: var(--game-group-color, #5fbfa8);
}

@media (max-width: 880px) {
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
  }
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools .lobby-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    margin: 0;
    min-width: 0;
  }
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools .lobby-categories button {
    min-width: 0;
    min-height: 40px;
    gap: 3px;
    padding: 0 2px;
    font-size: 12px;
    white-space: nowrap;
  }
  #app.cinema-shell .lobby-categories button .lobby-filter-dot {
    flex-basis: 5px;
    height: 5px;
  }
  #app.cinema-shell .lobby-categories button small {
    display: none;
  }
  html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .lobby-library-tools select {
    max-width: 80px;
    min-height: 40px;
    height: 40px;
    padding: 0 6px;
    font-size: 12px;
  }
  #app.cinema-shell .lobby-library-count {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* Rooms: availability filters on the left, refresh and creation on the right. */
#app.cinema-shell[data-page=tables] .room-directory-tools {
  padding: 8px 0;
}
#app.cinema-shell[data-page=tables] .room-directory-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}
#app.cinema-shell[data-page=tables] .room-directory-actions > :is(button,a) {
  border-radius: 999px;
  white-space: nowrap;
}
#app.cinema-shell[data-page=tables] .room-directory-actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  background: #2f7f70;
  color: #fff;
  text-decoration: none;
}
#app.cinema-shell[data-page=tables] .table-filters button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#app.cinema-shell[data-page=tables] .table-filters button[aria-pressed=true] {
  background: #d4eee7;
  color: #1f6b5d;
  border-color: #9fd6c8;
}
html[data-theme=dark] #app.cinema-shell[data-page=tables] .table-filters button[aria-pressed=true] {
  background: #244b43;
  color: #b0e3d5;
  border-color: #3d685d;
}
#app.cinema-shell .room-filter-count {
  color: inherit;
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* The shared header uses one frame on every site destination. */
html[data-theme] #app.cinema-shell[data-page] .bga-header-inner {
  width: 100%;
  max-width: 3840px;
  padding-inline: clamp(16px, 2.4vw, 48px);
  box-sizing: border-box;
}

#app.cinema-shell .bga-header .cinema-header-tools .cinema-header-search:focus-within {
  outline: 2px solid #2f7f70;
  outline-offset: 2px;
  border-radius: 999px;
}
html[data-theme] #app.cinema-shell .bga-header .cinema-header-tools .cinema-header-search :is(input,button):focus-visible {
  outline: 0;
}

/* Room directory scrolls between its own toolbar and any footer. */
html[data-theme] #app.cinema-shell[data-page=tables] .bga-main {
  overflow: hidden;
}

html[data-theme] #app.cinema-shell[data-page=tables] .bga-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

html[data-theme] #app.cinema-shell[data-page=tables] .bga-content > :not(.tables-room-list) {
  flex: none;
}

html[data-theme] #app.cinema-shell[data-page=tables] .bga-content > .tables-room-list {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* Rooms and community have their own scrollers, so the outer pane needs no gutter. */
html[data-theme] #app.cinema-shell:is([data-page=tables],[data-page=community]) .bga-main,
html[data-theme] #app.cinema-shell[data-page=tables] .bga-content > .tables-room-list {
  scrollbar-gutter: auto;
}

html[data-theme] #app.cinema-shell:is([data-page=lobby],[data-page=games]) .game-card>.catalogue-game-info {
  grid-column:2;
  grid-row:2 / 4;
  align-self:center;
  min-height:44px;
  margin-right:6px;
  padding:0 4px;
  border:0;
  background:none;
  color:var(--text-2);
  font:600 12px/1.5 var(--ui-font);
  white-space:nowrap;
  cursor:pointer;
}
