/* Una sola topbar — design canonico Lobby: verde scuro, oro, marchio Georgia.
 * Solo presentazione. Non modifica layout/DOM del motore Game o API. */
.sb-canon-topbar,.sb-canon-topbar *,.sb-canon-menu,.sb-canon-menu *,.sb-canon-notices,.sb-canon-notices *{box-sizing:border-box}
.sb-canon-topbar{--sb-canon-height:62px;--sb-canon-gold:#f4dfb4;position:sticky;top:0;z-index:1200;display:flex;align-items:center;gap:clamp(12px,1.6vw,24px);height:var(--sb-canon-height);min-height:var(--sb-canon-height);padding:0 clamp(12px,2vw,28px);width:100%;background:#08140edc;backdrop-filter:blur(15px);color:#f4f1e8;border:0;border-bottom:1px solid rgba(200,170,109,.38);box-shadow:0 6px 20px #0003;font:14px/1.25 Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif}
.sb-canon-topbar a,.sb-canon-menu a,.sb-canon-notices a{text-decoration:none!important}
.sb-canon-topbar a{color:inherit!important}
.sb-canon-brand{display:inline-flex;align-items:center;gap:10px;min-width:max-content}
.sb-canon-mark{display:grid;place-items:center;color:#efd395;font:normal 37px/1 Georgia,serif;width:37px;height:40px}
.sb-canon-brand-name{color:var(--sb-canon-gold);font:700 clamp(21px,1.7vw,27px)/1.15 Georgia,serif;letter-spacing:-.038em}
.sb-canon-nav{display:flex;align-items:center;gap:4px;margin-inline:auto;min-width:0}
.sb-canon-nav a{padding:10px clamp(7px,1.15vw,14px);white-space:nowrap;border:1px solid transparent;border-radius:10px;font-weight:650;color:#eee9dc!important}
.sb-canon-nav a:hover,.sb-canon-nav a[aria-current=page]{color:#f4dfb4!important;background:#c8aa6d19;border-color:#c8aa6d33}
.sb-canon-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;min-width:0}
.sb-canon-tool{position:relative;display:grid;place-items:center;width:39px;height:39px;min-width:39px;padding:0;border:1px solid #ead7aa38;border-radius:10px;background:#ffffff0a;color:#f4dfb4;cursor:pointer;font:24px/1 system-ui}
.sb-canon-tool:hover{background:#c8aa6d1e;border-color:#c8aa6d7a}
.sb-canon-profile{display:flex;align-items:center;gap:9px;min-width:0;max-width:225px;padding:4px 8px 4px 4px;border:1px solid #ead7aa2e;border-radius:11px;background:#ffffff06;color:#f4f1e8}
.sb-canon-avatar{width:35px;height:35px;min-width:35px;display:grid;place-items:center;overflow:hidden;border-radius:50%;border:1px solid #c8aa6d76;background:linear-gradient(140deg,#324e38,#18251b);color:#f1d18c;font:22px/1 Georgia,serif}
.sb-canon-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.sb-canon-nickname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5eee0;font-size:13px;font-weight:750}
.sb-canon-badge{position:absolute;right:-6px;top:-8px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border:2px solid #0d110e;border-radius:20px;background:#c44248;color:#fff;font:700 11px/17px system-ui}
.sb-canon-badge[hidden],.sb-canon-menu[hidden],.sb-canon-notices[hidden],.sb-canon-staff[hidden],.sb-canon-logout[hidden]{display:none!important}
.sb-canon-topbar button:focus-visible,.sb-canon-topbar a:focus-visible,.sb-canon-menu button:focus-visible,.sb-canon-menu a:focus-visible,.sb-canon-notices a:focus-visible{outline:2px solid #e5ca82;outline-offset:3px}
.sb-canon-menu,.sb-canon-notices{position:fixed;z-index:1300;right:14px;top:calc(62px + 8px);width:min(375px,calc(100vw - 28px));max-height:calc(100dvh - 90px);overflow:auto;padding:0;background:#14221a;color:#f3eee1;border:1px solid #a68b58;border-radius:13px;box-shadow:0 15px 55px #0009;font:14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif}
.sb-canon-menu a,.sb-canon-notices a{color:#f3eee1!important}
.sb-canon-menu-head,.sb-canon-notice-head{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;border-bottom:1px solid #ffffff28}
.sb-canon-close{border:0;background:transparent;color:#f4dfb4;padding:0 6px;font:26px/1 system-ui;cursor:pointer}
.sb-canon-menu-links,.sb-canon-staff{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;padding:12px}
.sb-canon-menu-links a,.sb-canon-staff a{padding:10px 9px;border-radius:8px;overflow-wrap:anywhere}
.sb-canon-menu-links a:hover,.sb-canon-menu-links a[aria-current=page],.sb-canon-staff a:hover,.sb-canon-staff a[aria-current=page]{background:#d5b87f22;color:#f8ddad!important}
.sb-canon-staff{border-top:1px solid #ffffff22}
.sb-canon-staff-heading{grid-column:1/-1;color:#e7c77d;margin:0 4px 7px}
.sb-canon-menu-bottom{padding:12px;border-top:1px solid #ffffff22}
.sb-canon-logout{padding:9px 15px;border:1px solid #d7b96d7d;background:#283426;color:#ffe6b7;border-radius:8px;font-weight:750;cursor:pointer}
.sb-canon-notice-body{padding:10px 14px;max-height:420px;overflow:auto}
.sb-canon-notice-group{padding:9px 0;border-bottom:1px solid #ffffff22}
.sb-canon-notice-group strong{display:block;color:#e9d29f;font-size:13px}
.sb-canon-notice-group a{display:block;padding:8px 0}
.sb-canon-notice-item{padding:9px 0 3px}
.sb-canon-notice-item b{display:block}.sb-canon-notice-item p{margin:2px 0 7px;color:#ced4c8}
.sb-canon-notice-all{display:block;padding:13px 15px;border-top:1px solid #ffffff22;font-weight:700;color:#f4dfb4!important}
/* Solo testate delle pagine autorizzate (nessuna chat, Replay, Tornei o Tavolo). */
body.sb-canon-active .about-header,body.sb-canon-active .sb253-public-bar{display:none!important}
body.sb-canon-active .legal-header > a.legal-brand{display:none!important}
body.sb-canon-active .legal-header{margin-top:20px}
body.sb-canon-active .admin-shell > header > a[href="/app.html"],
body.sb-canon-active .shell > header > a[href="/app.html"],
body.sb-canon-active .shell > header > a[href="/administration.html"],
body.sb-canon-active .shell > header > a[href="/beta.html"]{display:none!important}
@media(max-width:1050px){.sb-canon-topbar{--sb-canon-height:74px}.sb-canon-nav{display:none}.sb-canon-brand{margin-right:auto}.sb-canon-menu,.sb-canon-notices{top:calc(74px + 8px)}}
@media(max-width:780px){.sb-canon-topbar{--sb-canon-height:60px;padding:0 12px;gap:8px}.sb-canon-mark{width:30px;font-size:31px}.sb-canon-brand-name{font-size:21px}.sb-canon-tool{width:36px;height:36px;min-width:36px}.sb-canon-tools{gap:5px}.sb-canon-profile{max-width:154px}.sb-canon-nickname{max-width:90px}.sb-canon-avatar{width:31px;height:31px;min-width:31px}.sb-canon-menu,.sb-canon-notices{top:calc(60px + 8px)}}
@media(max-width:410px){.sb-canon-brand-name{display:none}.sb-canon-profile{max-width:135px}.sb-canon-nickname{max-width:75px}}
