#game-hub{box-sizing:border-box;width:min(1380px,calc(100vw - 40px));height:calc(100dvh - 40px);max-width:none;max-height:none;padding:0;border:4px solid #ffe16a;background:#101029;color:#fff0c2;box-shadow:0 0 0 4px #2b2732,8px 8px #080817;font-family:'VT323',monospace;overflow:hidden}
#game-hub[open]{display:flex;flex-direction:column}#game-hub::backdrop{background:#080818db}#game-hub .hub-top{flex:none;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:2px solid #45405e}#game-hub .hub-top>strong{font:10px/1.7 'Brasil Arcade',monospace;max-width:140px;color:#ffe589}#game-hub .hub-content{flex:1;min-height:0;position:relative}#game-hub iframe{display:block;border:0;width:100%;height:100%;background:#101029}#game-hub iframe[hidden],#game-hub [hidden]{display:none!important}
.hub-nav{display:flex;gap:8px;align-items:stretch}.hub-link{--edge:#88cfb8;--bg:#163d38;--ink:#e4fff2;display:flex;gap:8px;align-items:center;justify-content:center;padding:8px 12px;min-height:44px;border:2px solid var(--edge);color:var(--ink);background:var(--bg);font:9px/1.5 'Brasil Arcade',monospace;text-decoration:none;box-shadow:inset 0 2px #ffffff24,3px 3px #080d1c;box-sizing:border-box}.hub-community{--edge:#76d3ec;--bg:#173e55;--ink:#d7f5ff}.hub-editor{--edge:#b4a6e9;--bg:#363052;--ink:#efe7ff}.hub-game{--edge:#e2be72;--bg:#483923;--ink:#fff1c5}.hub-link svg{width:20px;height:20px;fill:currentColor;flex-shrink:0}.hub-link[aria-current]{box-shadow:inset 0 -4px var(--edge),3px 3px #080d1c}.hub-link:hover{filter:brightness(1.18)}.hub-link:focus-visible{outline:3px solid #fff2b2;outline-offset:2px}
@media(max-width:760px),(max-height:500px){#game-hub{width:100vw;height:100dvh;margin:0;border-width:2px;inset:0}#game-hub .hub-top{padding:6px max(6px,env(safe-area-inset-right)) 6px max(6px,env(safe-area-inset-left));gap:6px}#game-hub .hub-top>strong{display:none}.hub-nav{width:100%;gap:5px}.hub-link{flex:1;min-width:0;gap:5px;padding:7px 6px;font-size:7px}.hub-link svg{width:17px;height:17px}}
@media(max-width:390px){.hub-link{flex-direction:column;font-size:6px;gap:4px;padding:5px}}
#game-hub.testing{inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:0;border-radius:0}#game-hub.testing>.hub-top{display:none}#game-hub.testing>.hub-content{height:100%;flex:1}

@media(max-width:600px) and (orientation:portrait){
 .hub-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .hub-link{flex-direction:row;min-height:44px;font-size:8px;gap:7px;padding:8px}
 .hub-link svg{width:20px;height:20px}
}

@media(max-height:500px) and (max-width:1000px){#game-hub.editing>.hub-top{display:none}}
