/* Games Labs · layout padrão da plataforma (barra lateral + barra superior mobile). Usado por todas as páginas.
 * Inclua: <link rel="stylesheet" href="/multi-games/assets/shell.css"> <script src="/multi-games/assets/shell.js" defer></script> */
:root{--gl-bg:#090b14;--gl-line:#1b2036;--gl-tx:#e8ebf5;--gl-mu:#7b8199;--gl-gd:#ffd24a;--gl-cy:#5ad7ff;--gl-ok:#7dffb0;--gl-w:248px;--gl-rail:72px;--gl-top:54px}
html.gl body{box-sizing:border-box}
html.gl-full body{padding-left:var(--gl-w)}
html.gl-rail body{padding-left:var(--gl-rail)}

#gl-sb{position:fixed;inset:0 auto 0 0;width:var(--gl-w);background:linear-gradient(180deg,#0c0f1c,#080a13);border-right:1px solid var(--gl-line);padding:14px 12px;display:flex;flex-direction:column;gap:2px;z-index:9000;overflow-x:hidden;overflow-y:auto;font:14px/1.4 system-ui,"Segoe UI",Roboto,Arial,sans-serif;color:var(--gl-tx);transition:width .18s ease,box-shadow .18s ease;scrollbar-width:none}
#gl-sb::-webkit-scrollbar{display:none}
#gl-sb *{box-sizing:border-box}
#gl-sb a,#gl-sb button{font:inherit}
.gl-brand{display:flex;align-items:center;gap:11px;padding:4px 6px 14px;text-decoration:none;color:var(--gl-tx);white-space:nowrap}
.gl-mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#ffe58a,#ffb81c);color:#2b1c00;display:grid;place-items:center;font:900 15px/1 "Trebuchet MS",system-ui,sans-serif;letter-spacing:-.02em;flex:none;box-shadow:0 0 22px #ffb81c44}
.gl-bname{font:800 15px/1.1 "Trebuchet MS",system-ui,sans-serif;letter-spacing:.14em}.gl-bname i{display:block;font-style:normal;color:var(--gl-gd);font-size:11px;letter-spacing:.34em;margin-top:2px}
.gl-lbl{margin:16px 10px 6px;font:700 10px system-ui;letter-spacing:.18em;color:#555c78;text-transform:uppercase;white-space:nowrap}
.gl-it{display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:12px;color:#b4bad0;text-decoration:none;border:1px solid transparent;cursor:pointer;background:none;width:100%;text-align:left;white-space:nowrap;position:relative;transition:background .15s,color .15s}
.gl-it:hover{background:#12162a;color:#fff}
.gl-it.on{background:linear-gradient(90deg,#ffd24a1c,#ffd24a08);border-color:#ffd24a40;color:var(--gl-gd)}
.gl-it svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.gl-it .gl-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.gl-it .gl-b{font:700 10px system-ui;letter-spacing:.06em;padding:2px 7px;border-radius:99px;border:1px solid #2a3050;color:var(--gl-mu);text-transform:uppercase}
.gl-it .gl-live{width:7px;height:7px;border-radius:50%;background:var(--gl-ok);box-shadow:0 0 8px var(--gl-ok);flex:none}
.gl-it.soon{opacity:.55}
.gl-gi{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none;background:#12162a;border:1px solid #232845;color:var(--gl-cy)}
.gl-gi svg{width:18px;height:18px}
.gl-it.on .gl-gi{background:#ffd24a1f;border-color:#ffd24a55;color:var(--gl-gd)}
.gl-grow{flex:1;min-height:12px}
.gl-acc{background:#0f1325;border:1px solid var(--gl-line);border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:8px;margin-top:10px}
.gl-who{display:flex;align-items:center;gap:10px;min-width:0}
.gl-av{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,var(--gl-cy),#6a5aff);display:grid;place-items:center;font:800 15px system-ui;color:#04122a;flex:none}
.gl-nm{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gl-sm{color:var(--gl-mu);font-size:12px;white-space:nowrap}.gl-sm b{color:var(--gl-gd)}
.gl-btn{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #2a3050;background:#161b30;color:var(--gl-tx);border-radius:10px;padding:9px 12px;font-weight:700;text-decoration:none;cursor:pointer;white-space:nowrap}
.gl-btn:hover{border-color:var(--gl-cy)}.gl-btn.p{background:linear-gradient(135deg,#ffe58a,#ffb81c);border-color:#ffd24a;color:#2b1c00}
.gl-langs{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-top:10px}
.gl-langs button{border:0;border-radius:7px;padding:6px 0;background:#12162a;color:#a9b0c9;font:700 11px system-ui;cursor:pointer}.gl-langs button.on{background:var(--gl-gd);color:#2b1c00}

/* modo trilho (páginas de jogo): só ícones; ao passar o mouse abre por cima do conteúdo */
html.gl-rail #gl-sb{width:var(--gl-rail)}
html.gl-rail #gl-sb:hover,html.gl-rail #gl-sb:focus-within{width:var(--gl-w);box-shadow:12px 0 50px #000c}
html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-bname,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-t,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-b,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-lbl,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-langs,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-who>div:last-child,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-accbtn,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-live{display:none}
html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-lbl{display:block;height:1px;margin:10px 14px;padding:0;background:var(--gl-line);font-size:0;overflow:hidden}
html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-acc{background:none;border:0;padding:0}
html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-it{justify-content:center;padding:9px 0}
html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-brand{justify-content:center;padding-left:0;padding-right:0}

/* mobile / tablet: barra superior + gaveta */
#gl-top{display:none}#gl-scrim{display:none}
@media (max-width:1023px){
 html.gl-full body,html.gl-rail body{padding-left:0;padding-top:var(--gl-top)}
 #gl-top{display:flex;position:fixed;top:0;left:0;right:0;height:var(--gl-top);z-index:8990;align-items:center;gap:10px;padding:0 12px;background:#080a13ee;border-bottom:1px solid var(--gl-line);backdrop-filter:blur(10px);padding-top:env(safe-area-inset-top)}
 #gl-top .gl-bx{width:40px;height:40px;border-radius:11px;border:1px solid var(--gl-line);background:#0f1325;color:var(--gl-tx);display:grid;place-items:center;cursor:pointer;padding:0}
 #gl-top .gl-bx svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
 #gl-top .gl-brand{padding:0;margin-right:auto}#gl-top .gl-mark{width:32px;height:32px;border-radius:9px;font-size:13px}#gl-top .gl-bname{font-size:13px}
 #gl-top .gl-chip{font:700 13px system-ui;color:var(--gl-gd);border:1px solid #3a3115;background:#1a1608;border-radius:99px;padding:7px 12px;text-decoration:none;cursor:pointer;white-space:nowrap}
 #gl-top .gl-chip.l{color:var(--gl-tx);border-color:#2a3050;background:#161b30}
 #gl-sb,html.gl-rail #gl-sb{width:280px;max-width:86vw;transform:translateX(-104%);transition:transform .22s ease;box-shadow:none;padding-top:max(14px,env(safe-area-inset-top))}
 html.gl-open #gl-sb{transform:none;box-shadow:14px 0 60px #000d}
 html.gl-open #gl-scrim{display:block;position:fixed;inset:0;background:#000a;z-index:8995}
 html.gl-open,html.gl-open body{overflow:hidden}
 html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-bname,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-t,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-b,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-langs,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-who>div:last-child,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-accbtn,html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-live{display:revert}
 html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-lbl{height:auto;margin:16px 10px 6px;padding:0;background:none;font-size:10px;overflow:visible}
 html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-it{justify-content:flex-start;padding:9px 10px}
 html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-acc{background:#0f1325;border:1px solid var(--gl-line);padding:10px}
 html.gl-rail #gl-sb:not(:hover):not(:focus-within) .gl-brand{justify-content:flex-start;padding:4px 6px 14px}
}

/* ===== componentes padrão para jogos (use nas páginas de jogo) ===== */
.gl-stage{display:flex;justify-content:center;align-items:flex-start;gap:18px;width:100%;padding:14px}
.gl-col{display:flex;flex-direction:column;gap:10px;width:300px;flex:none}
.gl-main{width:min(460px,100%);flex:none}
.gl-panel{background:#0e1019;border:1px solid var(--gl-line);border-radius:14px;padding:12px 14px;color:var(--gl-tx);font:14px/1.45 system-ui,"Segoe UI",Roboto,Arial,sans-serif}
.gl-panel h3{margin:0 0 8px;font:700 11px system-ui;letter-spacing:.14em;text-transform:uppercase;color:var(--gl-gd)}
.gl-kv{display:flex;justify-content:space-between;gap:10px;padding:3px 0;color:var(--gl-mu)}.gl-kv b{color:var(--gl-tx)}
@media (max-width:1100px){.gl-stage{flex-direction:column;align-items:center}.gl-col{width:100%;max-width:460px}}
html.gl-full body{min-height:100vh}
