.minigames-host-overlay{
  position:fixed;
  inset:0;
  width:100%;
  width:100dvw;
  height:100%;
  height:100dvh;
  max-width:100%;
  max-height:100%;
  box-sizing:border-box;
  overflow:hidden;
  z-index:2147483000;
  display:grid;
  grid-template-rows:auto 1fr;
  background:#0c1118;
  color:#edf3f7;
  padding-top:env(safe-area-inset-top);
  padding-bottom:env(safe-area-inset-bottom);
}
.minigames-host-header{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left));
  border-bottom:1px solid #2b3b49;
  background:#101923;
}
.minigames-host-header strong{font-size:17px;letter-spacing:-.02em}
.minigames-host-close,.minigames-host-retry{
  min-width:74px;
  min-height:40px;
  border:1px solid #52687a;
  border-radius:12px;
  background:#233444;
  color:#fff;
  font:700 15px/1 system-ui,-apple-system,"Noto Sans KR",sans-serif;
}
.minigames-host-stage{position:relative;min-width:0;min-height:0;overflow:hidden}
.minigames-host-frame{display:block;width:100%;height:100%;max-width:100%;max-height:100%;border:0;background:#0c1118;touch-action:pan-y}
.minigames-host-status{
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:12px;
  padding:24px;
  text-align:center;
  background:#0c1118;
}
.minigames-host-status[hidden]{display:none}
.minigames-host-status p{margin:0;color:#b7c5d0}
body.minigames-host-open{overflow:hidden!important}

/* V45: landscape games own the full viewport; the host chrome is portrait-only. */
@media (orientation:landscape){
  .minigames-host-overlay{
    grid-template-rows:minmax(0,1fr);
  }
  .minigames-host-header{
    display:none;
  }
}

