/* The room hub is page chrome only; game clients and existing rooms are untouched. */
#room-hub .hub-heading-actions{flex-wrap:wrap;justify-content:flex-end}
#room-hub #hub-scope[hidden]{display:none!important}
#room-hub #hub-scope{white-space:nowrap;font-size:11px}
#room-hub .hub-private-badge{display:inline-block!important;margin-left:5px;padding:1px 5px;border:1px solid #b5a0c0;border-radius:4px;font-size:10px;color:#dccae6;white-space:nowrap}
#room-hub .hub-room[data-private="true"]{border-left-color:#b598cf}
#bvn-portal .directory-frame{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#bvn-portal .server-directory{flex:none;min-height:0}
#room-hub{margin:4px 0 18px;color:#eee8f6;font:14px/1.5 "Microsoft YaHei",sans-serif}
#room-hub *{box-sizing:border-box}
#room-hub .hub-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#room-hub h2{margin:0;font-size:26px;font-weight:800;letter-spacing:1px}
#room-hub .hub-heading p{margin:2px 0;color:#c2b9cb;font-size:12px}
#room-hub button,#room-hub select,#room-hub .hub-link{min-height:40px;border:1px solid #76637f;border-radius:5px;padding:8px 12px;background:#221a2c;color:#f1eafa;font:inherit;cursor:pointer;text-decoration:none;box-shadow:none;clip-path:none}
#room-hub button:disabled{opacity:.5;cursor:not-allowed}
#room-hub button:hover:not(:disabled),#room-hub .hub-link:hover{border-color:#a9def5;background:#30253d}
#room-hub :focus-visible{outline:2px solid #9fdcf7;outline-offset:3px}
#room-hub .hub-match{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto auto;gap:10px;align-items:end;margin:0}
#room-hub .hub-rule-fields{grid-column:1 / span 2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,.8fr);gap:8px;min-width:0}
#room-hub .hub-rule-fields>label{min-width:0}
#room-hub #hub-create{border-color:#dec16d;color:#f0d68d;font-weight:700;white-space:nowrap}
#room-hub .hub-room-actions{display:flex;gap:7px;align-items:center}
#room-hub .hub-watch{border-color:#80adbb;color:#bfe7ed}
#room-hub .hub-room-actions .hub-watch{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;min-height:44px;padding:0;box-sizing:border-box}
#room-hub .hub-watch svg{display:block;width:22px;height:22px;flex:none;pointer-events:none}
#room-hub .hub-watch:focus-visible{outline:2px solid currentColor;outline-offset:3px}
#room-hub label{display:grid;gap:4px;min-width:0;color:#cfc5d7;font-size:12px}
#room-hub select{width:100%;min-width:0;color-scheme:dark}
#room-hub #hub-start{background:#dec16d;color:#211922;border-color:#ebd295;font-weight:800;white-space:nowrap}
#room-hub .hub-note{margin:8px 0;color:#bfb5c8;font-size:12px;overflow-wrap:anywhere}
#room-hub .hub-feedback{margin:10px 0;color:#aee2f3;min-height:21px;font-size:13px}
#room-hub .hub-feedback[data-error="true"]{color:#ffb5ad}
#room-hub .hub-rooms{display:grid;gap:8px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#room-hub .hub-room{display:grid;grid-template-columns:60px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:76px;padding:10px 12px;border:1px solid #584961;border-left:3px solid #91cde3;background:linear-gradient(115deg,#262033dd,#15111fdd)}
#room-hub .hub-count{font-weight:800;color:#e5c875;font-size:20px;text-align:center;white-space:nowrap}
#room-hub .hub-count small{display:block;color:#bdb2c8;font-size:10px;font-weight:400}
#room-hub .hub-info{min-width:0}
#room-hub .hub-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
#room-hub .hub-info p{margin:2px 0 0;color:#bfb5c8;font-size:11px;overflow-wrap:anywhere}
#room-hub .hub-remark{color:#f0d68d;font-size:13px;font-weight:700}
#hub-note-dialog{width:min(420px,calc(100vw - 32px));border:1px solid #76637f;border-radius:8px;padding:16px;background:#1b1524;color:#f1eafa}
#hub-note-dialog::backdrop{background:#07060ccc}
#hub-note-dialog h3{margin:0 0 6px;font-size:18px}
#hub-note-dialog p{margin:0 0 12px;color:#cfc5d7;font-size:13px}
#hub-note-dialog input{width:100%;min-height:40px;border:1px solid #76637f;border-radius:5px;padding:8px 12px;background:#221a2c;color:#f1eafa;font:inherit}
#hub-note-dialog .hub-note-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
#hub-note-dialog .hub-note-actions button[type="submit"]{background:#dec16d;color:#211922;border-color:#ebd295;font-weight:800}
#room-hub .hub-room button,#room-hub .hub-room a{font-size:12px;white-space:nowrap}
#room-hub .hub-empty{padding:18px 12px;border:1px dashed #675770;color:#cfc2d9;text-align:center}
#bvn-portal.lobby{width:min(1280px,calc(100vw - 2 * clamp(100px,10vw,200px)));max-width:none}
#bvn-portal .directory-frame{overflow:hidden}
#bvn-portal .directory-frame>.server-directory{flex:1 1 auto;display:flex;flex-direction:column;min-height:0;width:100%;gap:8px}
#bvn-portal .hub-split{flex:1 1 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 22px;align-items:stretch;min-width:0;min-height:0}
#room-hub{margin:0;min-width:0;display:flex;flex-direction:column;min-height:0}
#room-hub .hub-heading{align-items:flex-start;gap:8px}
#room-hub .hub-heading>div{min-width:0;flex:1}
#room-hub #hub-refresh{flex:none;white-space:nowrap;min-width:4.5em}
#room-hub h2{font-size:22px}
#room-hub .hub-match{grid-template-columns:minmax(7.2em,1.15fr) minmax(7.2em,1fr) max-content max-content;gap:8px}
#room-hub #hub-start,#room-hub #hub-create{width:auto;min-width:7.2em}
#room-hub .hub-note{margin:6px 0;font-size:11px}
#room-hub .hub-rooms{flex:1 1 auto;max-height:none;min-height:0}
#room-hub .hub-room{grid-template-columns:52px minmax(0,1fr) auto;gap:8px;min-width:0}
#room-hub .hub-info p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#bvn-portal .hub-original{margin:0;min-width:0;display:flex;flex-direction:column;min-height:0;color:#eee8f6;font:14px/1.5 "Microsoft YaHei",sans-serif}
#bvn-portal .hub-original *{box-sizing:border-box}
#bvn-portal .hub-original .hub-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
#bvn-portal .hub-original h2{margin:0;font-size:22px;font-weight:800;letter-spacing:1px}
#bvn-portal .hub-original .hub-heading p{margin:2px 0;color:#c2b9cb;font-size:12px}
#bvn-portal .hub-original .server-grid{margin:0;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#bvn-portal .hub-original .server-card{gap:8px;min-width:0}
#bvn-portal .hub-original .server-card>div{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden}
#bvn-portal .hub-original .server-card>div>p{position:static;left:auto;top:auto;max-width:none;transform:none;text-align:left;flex:1;min-width:0;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
@media(max-width:1360px){
 #bvn-portal.lobby{width:min(1280px,calc(100vw - 48px))}
}
@media(max-width:1180px){
 html,body{height:auto;min-height:100svh;overflow-x:clip;overflow-y:auto}
 #bvn-portal.lobby{width:calc(100vw - 22px);height:auto;min-height:100svh}
 #bvn-portal .lobby-fighter{opacity:.22;height:min(52svh,480px)}
 #bvn-portal .hub-split{grid-template-columns:1fr;gap:14px;align-items:start}
 #bvn-portal .directory-frame{height:auto;min-height:calc(100svh - var(--directory-top,128px) - 9px);overflow:visible}
 #bvn-portal .directory-frame>.server-directory,#room-hub,#bvn-portal .hub-original{flex:none;min-height:0}
 #room-hub .hub-rooms{max-height:min(42vh,360px);overflow-y:auto}
 #bvn-portal .hub-original .server-card>div{align-items:flex-start;overflow:visible}
 #bvn-portal .hub-original .server-card>div>p,#room-hub .hub-info p{white-space:normal;overflow:visible;text-overflow:unset}
}
@media(max-height:860px){
 html,body{height:auto;min-height:100svh;overflow-x:clip;overflow-y:auto}
 #bvn-portal.lobby{height:auto;min-height:100svh}
 #bvn-portal .directory-frame{height:auto;min-height:calc(100svh - var(--directory-top,128px) - 9px);overflow:visible}
 #bvn-portal .directory-frame>.server-directory,#room-hub,#bvn-portal .hub-original{flex:none;min-height:0}
 #room-hub .hub-rooms{max-height:min(42vh,360px);overflow-y:auto}
}
@media(max-width:720px){
 #bvn-portal.lobby{width:calc(100vw - 12px);--directory-top:108px;padding-top:108px}
 #bvn-portal .lobby-fighter{display:none}
 #bvn-portal .directory-frame{padding:10px 9px 8px}
 #room-hub .hub-match{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 #room-hub #hub-start,#room-hub #hub-create{width:100%}
 #room-hub h2,#bvn-portal .hub-original h2{font-size:20px}
 #room-hub .hub-room{grid-template-columns:40px minmax(0,1fr);gap:7px;padding:9px 7px}
 #room-hub .hub-room button,#room-hub .hub-room a{padding:7px}
 #room-hub .hub-room-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-end;align-items:center}
 #bvn-portal .tactics-card{flex-wrap:wrap;gap:8px;height:auto;min-height:0;overflow:visible}
 #bvn-portal .hub-original .server-card,#bvn-portal .server-card{height:auto;min-height:48px;flex-wrap:wrap;overflow:visible}
 #bvn-portal .hub-original .server-card>div{flex:1 1 12rem}
 #bvn-portal .hub-original .server-card a,#bvn-portal .server-card a{margin-left:auto}
 #bvn-portal .lobby-title-logo{width:min(58vw,220px);max-width:calc(100vw - 150px);top:10px}
 #bvn-portal .lobby-stage .game-icon{position:absolute;width:34px;height:34px;top:10px;left:10px}
 #bvn-portal .lobby-acknowledgements{top:58px}
 #bvn-portal .portal-account{top:8px;right:8px;padding:6px 8px;font-size:11px}
 #bvn-portal .server-badge{display:none}
}

#room-hub .hub-info>strong{white-space:normal;overflow-wrap:anywhere;font-size:16px;line-height:1.4}

/* Compact manga lobby. Keep the game entry points and room DOM unchanged. */
html,body{height:auto;min-height:100svh;overflow-x:clip;overflow-y:auto}
body{--hall-width:min(980px,calc(100vw - 440px))}
#bvn-portal.lobby{width:var(--hall-width);max-width:none;height:auto;min-height:100svh;margin:0 auto;padding:144px 0 20px;--directory-top:144px}
#bvn-portal .lobby-title-logo{top:42px;width:min(470px,68vw);max-width:none}
#bvn-portal .lobby-acknowledgements{top:108px;width:100%;gap:0}
#bvn-portal .lobby-fighter{position:fixed;display:block;width:auto;height:min(71svh,790px);max-width:none;max-height:none;object-fit:contain;bottom:clamp(8px,2.6svh,30px);transform:none;opacity:.96;filter:drop-shadow(0 10px 24px #0008)}
#bvn-portal .lobby-ichigo{left:clamp(-76px,-2.7vw,-28px)}
#bvn-portal .lobby-naruto{right:clamp(-100px,-3.7vw,-46px);opacity:.95}
#bvn-portal .lobby-stage .game-icon{position:absolute;left:calc((var(--hall-width) - 100vw)/2 + 20px);top:16px;width:40px;height:40px}
#bvn-portal .server-badge{position:fixed;right:20px;bottom:14px;font-size:10px;background:#101219b8;color:#b7b5bd}
body .portal-identity{position:absolute;top:12px;right:20px;max-width:calc(100vw - 90px);gap:6px}
body .portal-identity>button,body .portal-identity>a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 10px;background:#17181de8;border-color:#c8b88755;font-size:12px}
#bvn-portal .directory-frame{height:auto;min-height:0;padding:14px 16px;border:1px solid #c7bea138;border-radius:12px;background:#0c101854;box-shadow:0 20px 64px #0005;backdrop-filter:none;-webkit-backdrop-filter:none;overflow:visible}
html[data-bvn-theme] #bvn-portal .directory-frame{background:#0c101854!important}
#bvn-portal .directory-frame>.server-directory{flex:none;gap:10px;min-width:0}
#bvn-portal .directory-heading{grid-template-columns:auto 1fr auto;padding:0 0 9px;gap:10px}
#bvn-portal .directory-heading h2{font-size:20px!important}
#bvn-portal .directory-heading .service-state-text{display:none}
#bvn-portal .hub-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
#room-hub,#bvn-portal .hub-original{flex:none;min-height:0}
#room-hub .hub-heading,#bvn-portal .hub-original .hub-heading{align-items:center;min-height:32px;margin-bottom:7px}
#room-hub h2,#bvn-portal .hub-original h2{font-size:17px;letter-spacing:.03em}
#room-hub .hub-match{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#room-hub .hub-rule-fields{grid-column:1/-1;grid-template-columns:.8fr 1.25fr 1fr;gap:7px}
#room-hub #hub-start,#room-hub #hub-create{min-width:0;width:100%}
#room-hub button,#room-hub select,#room-hub .hub-link{min-height:32px;padding:5px 8px;font-size:12px}
#room-hub select{padding-left:8px;padding-right:3px}
#room-hub .hub-note{line-height:1.4;margin:4px 0}
#room-hub .hub-feedback{margin:5px 0;min-height:18px;font-size:11px}
#room-hub .hub-feedback:empty,#room-hub .hub-note:empty{display:none}
#room-hub label{gap:2px;font-size:11px}
#room-hub .hub-rooms{flex:none;max-height:392px;gap:5px;overflow:auto}
#room-hub .hub-room{grid-template-columns:28px minmax(0,1fr) auto;gap:6px;padding:7px 8px;min-height:0;border-color:#b2a98a33;border-left-color:#91cde3;background:#131820a6}
#room-hub .hub-info{text-align:center}
#room-hub .hub-info>strong{font-size:13px;line-height:1.35}
#room-hub .hub-count{font-size:18px;line-height:1.3}
#room-hub .hub-info p{white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.35;margin-top:1px}
#room-hub .hub-room-actions{grid-column:3;grid-row:1;justify-content:flex-end;flex-wrap:nowrap;gap:4px;margin:0}
#room-hub .hub-room-actions>*{min-width:46px;padding:5px 6px;font-size:11px}
#bvn-portal .hub-original .server-grid{flex:none;overflow:visible;gap:5px}
#bvn-portal .hub-original .server-card{height:auto;min-height:42px;gap:7px;padding:4px 8px 4px 10px;border-radius:5px;border-color:#b2a98a33;background:#131820a6;backdrop-filter:none;-webkit-backdrop-filter:none;flex-wrap:nowrap}
#bvn-portal .hub-original .server-card>div{flex:1;display:grid;gap:0;overflow:visible;min-width:0}
#bvn-portal .hub-original .server-card h3{font-size:13px!important;letter-spacing:0;white-space:normal;line-height:1.35}
#bvn-portal .hub-original .server-card>div>p{position:static;transform:none;white-space:normal;overflow:visible;max-width:none;font-size:11px;line-height:1.4}
#bvn-portal .hub-original .server-card a{min-height:32px;min-width:80px;padding:5px 6px;margin:0;font-size:12px;border-color:#aeb9c137;background:#242831;white-space:nowrap}
#bvn-portal .tactics-card{min-height:40px;padding:7px 10px;gap:10px;border-radius:5px;backdrop-filter:none;-webkit-backdrop-filter:none}
#bvn-portal .tactics-card span{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px}
#bvn-portal .tactics-card small{white-space:normal;line-height:1.5}
#bvn-portal .directory-frame>.project-thanks{margin-top:10px;padding-top:8px;gap:4px}
#bvn-portal .project-thanks>header{min-height:28px}
#bvn-portal .project-thanks>header a,#bvn-portal .project-thanks>header button{min-height:28px;display:inline-flex;align-items:center}
#bvn-portal .credits-marquee{backdrop-filter:none;-webkit-backdrop-filter:none}
@media(min-width:981px) and (max-width:1179px){
 body{--hall-width:calc(100vw - 360px)}
 #bvn-portal .directory-frame{padding:16px}
 #bvn-portal .hub-split{grid-template-columns:1fr;gap:14px}
 #bvn-portal .hub-original .server-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #bvn-portal .hub-original .server-card{flex-wrap:nowrap}
 #bvn-portal .hub-original .server-card a{width:auto}
}
@media(max-width:980px){
 #room-hub button,#room-hub select,#room-hub .hub-link{min-height:40px}
 #room-hub .hub-room-actions>*{min-height:44px}
 #bvn-portal .hub-original .server-card a{min-height:40px}
 #bvn-portal .hub-original .server-grid{gap:6px}
 body{--hall-width:min(680px,calc(100vw - 32px))}
 #bvn-portal.lobby{padding-top:276px;--directory-top:276px}
 #bvn-portal .lobby-stage{position:absolute;display:block;left:0;right:0;top:58px;height:218px;overflow:hidden;isolation:isolate}
 #bvn-portal .lobby-title-logo{top:10px;width:min(52vw,370px)}
 #bvn-portal .lobby-acknowledgements{top:77px;width:100%}
 #bvn-portal .lobby-fighter{position:absolute;top:18px;bottom:auto;width:auto;height:240px;max-height:none;transform:none;z-index:-1;opacity:1}
 #bvn-portal .lobby-ichigo{left:0}
 #bvn-portal .lobby-naruto{right:0}
 #bvn-portal .lobby-stage .game-icon{display:none}
 #bvn-portal .server-badge{display:none}
 body .portal-identity{top:max(8px,env(safe-area-inset-top));left:16px;right:16px;max-width:none;justify-content:center;gap:6px}
 body .portal-identity>button,body .portal-identity>a{min-height:44px;padding:9px 12px}
 #bvn-portal .hub-split{grid-template-columns:1fr;gap:14px}
 #room-hub .hub-rooms{max-height:420px}
 #bvn-portal .hub-original .server-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #bvn-portal .hub-original .server-card{flex-wrap:nowrap}
 #bvn-portal .hub-original .server-card a{width:auto}
}
@media(max-width:560px){
 body{--hall-width:calc(100vw - 24px)}
 #bvn-portal.lobby{width:calc(100% - 24px);padding-top:260px;padding-bottom:max(20px,env(safe-area-inset-bottom));--directory-top:260px}
 #bvn-portal .lobby-stage{left:-12px;right:-12px;top:58px;height:202px}
 #bvn-portal .lobby-title-logo{top:9px;width:min(68vw,290px)}
 #bvn-portal .lobby-acknowledgements{top:64px}
 #bvn-portal .lobby-acknowledgements .bvn-creator-credit{gap:4px}
 #bvn-portal .lobby-fighter{top:44px;height:225px}
 #bvn-portal .lobby-ichigo{left:-16px}
 #bvn-portal .lobby-naruto{right:-16px}
 #bvn-portal .directory-frame{padding:12px 10px;border-radius:10px}
 #bvn-portal .directory-heading h2{font-size:19px!important}
 #bvn-portal .directory-heading small.service-state{display:inline-flex!important;font-size:11px}
 #bvn-portal .directory-heading{gap:7px}
 #bvn-portal .directory-heading .bvn-latency{font-size:10px}
 #bvn-portal .hub-original .server-grid{grid-template-columns:1fr}
 #bvn-portal .hub-original .server-card{flex-wrap:nowrap;min-height:50px}
 #bvn-portal .hub-original .server-card a{width:auto}
 #room-hub .hub-rooms{max-height:min(60svh,480px);overflow:auto;overscroll-behavior-y:auto}
 #room-hub .hub-room-actions{grid-column:3;justify-content:flex-end}
 #room-hub .hub-room-actions>*{flex:none;min-width:44px}
 #bvn-portal .project-thanks .credits-marquee{min-height:25px}
 body .portal-identity{left:8px;right:8px;gap:5px}
 body .portal-identity>button,body .portal-identity>a{padding:8px 10px;font-size:11px}
 body .portal-identity .portal-review{position:absolute;top:46px;right:0}
 #hub-note-dialog{max-height:calc(100dvh - 32px);overflow:auto}
 #hub-note-dialog input{font-size:16px;min-height:44px}
 #hub-note-dialog .hub-note-actions button{min-height:44px;min-width:76px}
}
