#btn-game-hub{gap:7px;white-space:nowrap}#btn-game-hub svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}
.game-hub{box-sizing:border-box;position:fixed;inset:68px 16px auto auto;margin:0;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 88px);padding:0;background:#182735;color:var(--text);border:1px solid #486174;border-radius:16px;box-shadow:0 18px 60px #0008;overflow:hidden}
.game-hub::backdrop{background:#030a1226}.game-hub-content{display:flex;flex-direction:column;max-height:calc(100dvh - 90px);min-height:0}.game-hub-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid #ffffff18}.game-hub-heading h2{font-size:1.05rem;margin:0}.game-hub-list{min-height:80px;max-height:36dvh;overflow-y:auto;overscroll-behavior:contain;padding:10px 14px;scrollbar-gutter:stable}.game-hub-list ul{list-style:none;margin:0;padding:0;display:grid;gap:7px}.game-hub-list li{display:flex;gap:5px;min-width:0;align-items:center}.hub-game{flex:1;min-width:0;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px;border:1px solid #3d5266;border-radius:10px;background:#203446;color:var(--text);text-align:left;font:inherit;cursor:pointer}.hub-game:hover:not(:disabled){border-color:var(--accent)}.hub-game:disabled{opacity:.55;cursor:default}.hub-game>span:first-child{min-width:0}.hub-game strong,.hub-game small{display:block;overflow-wrap:anywhere}.hub-game small{margin-top:3px;font-size:.74rem;color:#bed0db}.hub-game-status{font-size:.72rem;flex:none}.hub-trash svg{fill:none;stroke:currentColor;stroke-width:1.7;width:19px;height:19px}.game-hub form{display:grid;gap:7px;margin:0;padding:14px 18px 18px;border-top:1px solid #ffffff28;overflow:auto;min-height:0}.game-hub form label{font-size:.78rem;color:var(--muted)}.game-hub form input{box-sizing:border-box;width:100%;min-width:0;padding:10px 12px;border:1px solid #486174;border-radius:9px;background:#101c28;color:var(--text);font:inherit}.game-hub form .btn{margin-top:6px}.game-hub-error{margin:0;padding:0 18px 12px;color:#ffcf91;font-size:.8rem;overflow-wrap:anywhere}#game-hub-resume-field:not([hidden]){display:grid;gap:7px}.game-hub button:focus-visible,.game-hub input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Per-game join controls are retained as internal adapters, never exposed as a second entry UI. */
#view-home>.home-panel>.tabs,#oca-setup>.tabs,#bg-setup>.tabs,#tab-find,#oca-tab-find,#bg-tab-find,#pane-find,#oca-pane-find,#bg-pane-find{display:none!important}
[data-hub-legacy]{display:none!important}
@media(max-width:600px){.game-hub{inset:auto 0 0;width:100%;max-height:90dvh;border-radius:20px 20px 0 0;border-bottom:0}.game-hub::backdrop{background:#0008}.game-hub-content{max-height:90dvh;padding-bottom:env(safe-area-inset-bottom)}.game-hub-heading:before{content:'';position:absolute;top:7px;left:calc(50% - 20px);width:40px;height:4px;background:#647d8b;border-radius:4px}.game-hub-heading{padding-top:20px}.game-hub-list{max-height:32dvh}#btn-game-hub{padding-inline:7px;font-size:.72rem;gap:4px}.topbar .brand-name>span{display:none}.topbar h1{font-size:.9rem;letter-spacing:.05em}.topbar-left{gap:4px}.topbar .brand-logo{width:29px;height:29px;margin-right:3px}.topbar-right{gap:4px}}

.privacy-button{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.privacy-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.privacy-assurance{padding:12px;border:1px solid #486174;border-radius:10px;background:#203446;color:var(--text)}
@media(max-width:600px){.topbar{flex-wrap:wrap}.topbar-left{flex-basis:100%}.topbar-right{width:100%;justify-content:flex-end}.privacy-button{gap:4px;padding-inline:7px;font-size:.72rem}#privacy{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:88dvh;box-sizing:border-box;overflow:auto;border-radius:20px 20px 0 0;padding:22px 18px calc(18px + env(safe-area-inset-bottom))}.oca-table{height:max(260px,calc(100dvh - 250px))}}

.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);position:relative;z-index:60}
.topbar-left{min-width:0;justify-content:flex-start;flex-basis:auto}.topbar-right{justify-self:end;justify-content:flex-end;width:auto;min-width:0}
/* Centro vuoto in home: sinistra e destra restano ai lati anche senza il titolo del gioco. */
@media(min-width:1101px){.topbar-left{grid-column:1}.topbar-game-title{grid-column:2}.topbar-right{grid-column:3}}
.brand-home{color:inherit;text-decoration:none;flex:none}.brand-home:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:6px}
.topbar .brand-name{display:inline!important}.topbar .brand-name>span{display:inline!important}
.topbar-home{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;text-decoration:none}.topbar-home svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.topbar-game-title:not([hidden]){display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;text-align:center}.topbar-game-title strong{font-size:1.02rem}.topbar-game-icon{display:grid;place-items:center;width:32px;height:32px;font-size:29px;flex:none}.topbar-game-icon svg{width:100%;height:100%}
@media(max-width:1100px){.topbar{grid-template-columns:minmax(0,1fr) auto}.topbar-game-title{grid-column:1/-1;grid-row:2}.topbar-left{grid-column:1;grid-row:1}.topbar-right{grid-column:2;grid-row:1}}
@media(max-width:600px){.topbar{grid-template-columns:minmax(0,1fr);gap:9px}.topbar-left{grid-column:1;grid-row:1;flex-basis:auto;gap:8px}.topbar-right{grid-column:1;grid-row:3;width:100%;justify-self:stretch;justify-content:flex-start;gap:5px;flex-wrap:wrap}.topbar-game-title{grid-column:1;grid-row:2}.topbar:has(.topbar-game-title[hidden]) .topbar-right{grid-row:2}.topbar-game-title strong{font-size:.95rem}.topbar .brand-home h1{font-size:.8rem}.topbar-home{padding-inline:8px;font-size:.72rem}.topbar-game-icon{width:27px;height:27px;font-size:25px}.topbar .brand-logo{width:28px;height:28px}}
@media(min-width:601px){.game-hub{top:calc(var(--gameroom-header-height,64px) + 6px);max-height:calc(100dvh - var(--gameroom-header-height,64px) - 20px)}.game-hub-content{max-height:calc(100dvh - var(--gameroom-header-height,64px) - 22px)}}
body.m-game .topbar{position:fixed;top:0;left:0;right:0;display:grid;z-index:60;padding:10px 12px;background:var(--bg2);border-bottom:1px solid var(--border)}
body.m-game .topbar h1,body.m-game .topbar-right{display:flex}
body.m-game .game{top:var(--gameroom-header-height,64px);height:calc(100dvh - var(--gameroom-header-height,64px))}
body.dd-playing:has(.dd-arena-wrap.touch) .topbar{display:grid}
body.dd-playing:has(.dd-arena-wrap.touch) .dd-arena-wrap.touch{top:var(--gameroom-header-height,64px);height:calc(100dvh - var(--gameroom-header-height,64px))}
.oca-layout{height:calc(100dvh - var(--gameroom-header-height,64px) - 48px)}
@media(max-width:950px){.oca-layout{height:auto}.oca-table{height:max(260px,calc(100dvh - var(--gameroom-header-height,64px) - 34px))}}

.tabs:has(#tab-find),.tabs:has(#oca-tab-find),.tabs:has(#bg-tab-find){display:none!important}
.topbar-right{max-width:100%;flex-wrap:wrap}
@media(min-width:601px) and (max-width:1100px){.topbar{grid-template-columns:minmax(0,1fr)}.topbar-left{grid-column:1;grid-row:1}.topbar-game-title{grid-column:1;grid-row:2}.topbar-right{grid-column:1;grid-row:3;width:100%}.topbar:has(.topbar-game-title[hidden]) .topbar-right{grid-row:2}}

.game-hub{z-index:1100}

/* Card del codice: codice e copia link in un solo riquadro, il bottone è un'icona. */
.code-card:not([hidden]){display:inline-flex;align-items:stretch;border:1px solid var(--border);border-radius:8px;background:var(--bg3);overflow:hidden;flex:none}
.code-card .code{display:flex;align-items:center;border:0;border-radius:0;background:none}
.code-card .btn.share-btn{width:38px;height:38px;padding:0;justify-content:center;border:0;border-left:1px solid var(--border);border-radius:0}
.code-card .share-btn .btn-label{display:none}
.code-card.is-copied .share-btn{color:#6fe3a0}
