/* the manager panel inside the site */
:root{--adm-w:clamp(370px,30vw,470px)}
#adm{position:fixed;z-index:66}
#adm.hide{display:none}
#adm .adm-box{display:flex;flex-direction:column;overflow:hidden;background:#1a0508;border:2px solid var(--gold2);box-shadow:0 0 50px #000d,0 0 30px #f0c35a33}
#adm .adm-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 14px;background:linear-gradient(#3a0b14,#1c060c);border-bottom:1px solid #f0c35a66}
#adm .adm-head b{font-family:var(--display);font-weight:400;font-size:20px;color:var(--gold)}
#adm .adm-x{width:34px;height:34px;padding:0;border-radius:50%}
#adm iframe{flex:1;width:100%;min-height:0;border:0;background:#1a0508}

/* lobby: a window in the middle */
body.home-on #adm{inset:0;display:flex;align-items:center;justify-content:center;background:#000b;animation:admfade .2s ease-out}
body.home-on #adm.hide{display:none}
body.home-on #adm .adm-box{width:min(1100px,94vw);height:min(920px,92dvh);border-radius:20px;animation:admpop .3s cubic-bezier(.2,1.3,.4,1)}

/* a game: a drawer on the left */
body:not(.home-on) #adm{top:0;bottom:0;left:0;width:var(--adm-w);max-width:100vw}
body:not(.home-on) #adm .adm-box{width:100%;height:100%;border-width:0 2px 0 0;animation:admslide .3s ease-out}
/* where there is room the page moves aside, so nothing of the game is hidden */
@media(min-width:1280px){
  body.adm-open:not(.home-on){padding-left:var(--adm-w)}
}
@media(min-width:1280px) and (max-width:1699px){
  body.adm-open:not(.home-on) main{grid-template-columns:1fr}
  body.adm-open:not(.home-on) #chat{display:none}
}
/* the narrower page keeps the top bar in one row: the casino's name gives way */
@media(min-width:1280px) and (max-width:1499px){
  body.adm-open:not(.home-on) header{flex-wrap:nowrap;gap:8px;padding-inline:14px}
  body.adm-open:not(.home-on) header .logo{flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap;font-size:19px;gap:6px}
  body.adm-open:not(.home-on) header .wallet,body.adm-open:not(.home-on) header #tabs{flex:none}
}
@keyframes admfade{from{opacity:0}}
@keyframes admpop{from{transform:scale(.92);opacity:0}}
@keyframes admslide{from{transform:translateX(-100%)}}
