/* The lobby has its own header/footer, separate from the drawing table. */
html:has(body #lobby){background:#131d2b}
body:not(.landing):not(.in-game) .site-information{color:#bdcbdc;background:transparent}
body:not(.landing):not(.in-game) .information-menu{display:contents}
body:not(.landing):not(.in-game) .information-menu>summary{display:none}
body:not(.landing):not(.in-game) .site-information a{color:#bdcbdc}
body:not(.landing):not(.in-game) .information-preference{border-color:#4b607b;background:#203148;color:#c8d6e7;box-shadow:none}
@media(max-width:760px){
 body:not(.landing):not(.in-game) .site-header{box-sizing:border-box;display:grid;width:calc(100% - 24px);height:auto;min-height:0;max-width:none;margin:0 auto;padding:10px 0 12px;grid-template-columns:minmax(0,1fr) auto 58px 36px;grid-template-rows:36px 38px;gap:8px 6px;align-items:center;border-bottom:1px solid #35475f;background:#131d2b}
 body:not(.landing):not(.in-game) .site-header .logo{grid-column:1;grid-row:1;min-width:0;max-width:100%;font-size:22px;line-height:1;white-space:nowrap;letter-spacing:-1px}
 body:not(.landing):not(.in-game) .site-header .logo-mark{width:28px;min-width:28px;height:28px;margin-right:7px;font-size:22px;border-radius:9px}
 body:not(.landing):not(.in-game) .site-header .header-actions{display:contents!important}
 body:not(.landing):not(.in-game) .site-header :is(#connection,#purchaseBtn){display:none!important}
 body:not(.landing):not(.in-game) .site-header #adminBtn{grid-column:2;grid-row:1;order:0;min-width:0;min-height:34px;height:34px;padding:5px 7px!important;font-size:10px!important;line-height:1.2;border-radius:9px;background:#26394f;color:#c6d6e9;box-shadow:none}
 body:not(.landing):not(.in-game) .site-header .site-language-label{display:block;grid-column:3;grid-row:1;width:58px;height:36px;margin:0}
 body:not(.landing):not(.in-game) .site-header #siteLanguage{box-sizing:border-box;width:58px!important;min-width:0;height:36px;min-height:36px;margin:0;padding:5px 8px!important;font-size:12px!important;border:1px solid #52657d;border-radius:10px;background:#203148;color:#f2f5fa}
 body:not(.landing):not(.in-game) .site-header .header-actions .sound-toggle{grid-column:4;grid-row:1;box-sizing:border-box;width:36px!important;min-width:36px!important;height:36px;min-height:36px;padding:7px!important;border:1px solid #52657d;border-radius:10px;background:#26394f;color:#d9e4f1;box-shadow:none}
 body:not(.landing):not(.in-game) .site-header .sound-label{display:none}
 body:not(.landing):not(.in-game) .site-header #profileChip{grid-column:1/3;grid-row:2;order:0;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%!important;min-width:0;max-width:none!important;height:38px;min-height:38px;margin:0;padding:5px 9px!important;overflow:hidden;border:1px solid #465c77;border-radius:10px;background:#203148;color:#eef3fa;box-shadow:none}
 body:not(.landing):not(.in-game) .site-header #profileInitial,body:not(.landing):not(.in-game) .site-header .header-avatar{width:26px;height:26px;min-width:26px;flex:none}
 body:not(.landing):not(.in-game) .site-header #profileName{flex:1;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:12px!important;line-height:1.3}
 body:not(.landing):not(.in-game) .site-header #walletBtn{grid-column:3/5;grid-row:2;order:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;width:100%;height:38px;min-height:38px;margin:0;padding:5px 7px!important;border:1px solid #77613b;border-radius:10px;background:#3c3424;color:#f8d47d;font-size:12px;box-shadow:none}
 body:not(.landing):not(.in-game) .site-header #walletBtn .coin-symbol{width:20px;min-width:20px;height:20px;font-size:13px}
 body:not(.landing):not(.in-game) .site-header #coinBalance{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.2}
 body:not(.landing):not(.in-game) .site-header [hidden]{display:none!important}
 body:not(.landing):not(.in-game) footer{display:none}
 body:not(.landing):not(.in-game) .promotion-information.site-information{box-sizing:border-box;display:flex;position:static;flex-direction:row;align-items:flex-start;justify-content:center;flex-wrap:wrap;width:calc(100% - 24px);max-width:none;gap:10px;margin:16px auto 0;padding:12px 0 max(20px,env(safe-area-inset-bottom));border:0;border-top:1px solid #35475f;border-radius:0;background:transparent;box-shadow:none}
 body:not(.landing):not(.in-game) .site-information .information-menu{display:block;flex:1 1 170px;min-width:0;max-width:100%;border:1px solid #465c77;border-radius:10px;background:#1c2a3b}
 body:not(.landing):not(.in-game) .site-information .information-menu>summary{display:list-item;padding:10px 12px;color:#c8d6e7;font-size:12px;font-weight:650;line-height:1.4;text-align:left;cursor:pointer}
 body:not(.landing):not(.in-game) .information-menu[open]{flex-basis:100%}
 body:not(.landing):not(.in-game) .site-information .information-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0;padding:8px 12px 14px;border-top:1px solid #35475f;text-align:left}
 body:not(.landing):not(.in-game) .information-menu:not([open])>.information-nav{display:none}
 body:not(.landing):not(.in-game) .site-information .information-nav a{display:block;min-width:0;min-height:30px;padding:4px 0;color:#c8d6e7;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
 body:not(.landing):not(.in-game) .site-information .information-preference{min-height:38px;margin:0;padding:9px 12px;border-radius:10px;color:#c8d6e7;font-size:11px;line-height:1.4}
}
@media(max-width:360px){
 body:not(.landing):not(.in-game) .site-header{grid-template-columns:minmax(0,1fr) auto 52px 32px;gap:8px 5px}
 body:not(.landing):not(.in-game) .site-header .logo{font-size:19px}
 body:not(.landing):not(.in-game) .site-header .logo-mark{width:24px;min-width:24px;height:24px;font-size:19px;margin-right:5px}
 body:not(.landing):not(.in-game) .site-header .site-language-label,body:not(.landing):not(.in-game) .site-header #siteLanguage{width:52px!important}
 body:not(.landing):not(.in-game) .site-header .header-actions .sound-toggle{width:32px!important;min-width:32px!important}
}
