/* Scoped repair for the current live game; no changes to physics or rewards. */
html.newbee-galaxy body.galaxy-lottery #app section.cus-scroll-y > :not(#newbee-lottery-root) { display:revert !important; }
html.newbee-galaxy body.galaxy-lottery.galaxy-home-ready #app section.cus-scroll-y > :not(#newbee-lottery-root):not(#newbee-dashboard-root) { display:none !important; }
html.newbee-galaxy body.galaxy-lottery #newbee-lottery-root {
  display:revert; min-height:0 !important; width:min(940px,calc(100vw - 32px)); max-width:none;
  position:fixed; inset:0; height:auto; max-height:calc(100dvh - 32px); box-sizing:border-box; margin:auto; padding:0;
  border:1px solid #507092; border-radius:20px; background:#0c162b; color:#eef3ff;
  box-shadow:0 30px 90px #000a; overflow:auto; overscroll-behavior:contain;
}
#newbee-lottery-root[hidden] { display:none !important; }
html.newbee-galaxy body.galaxy-lottery #newbee-lottery-root::backdrop { background:#02091cb8; backdrop-filter:blur(5px); }
#newbee-lottery-root > .nb-lottery { min-height:0; padding:16px; }
#newbee-lottery-root .nb-lottery-topbar { position:sticky; top:0; z-index:3; margin:0 0 12px; padding:10px 0; background:#0c162b; }
#newbee-lottery-root .nb-game-close { min-height:44px; }
#newbee-lottery-root .nb-lottery-hero { padding:14px; margin-bottom:16px; }
#newbee-lottery-root .nb-lottery-hero h1 { font-size:24px; }
#newbee-lottery-root .nb-lottery-stage { gap:14px; }
#newbee-lottery-root .nb-lottery-machine { max-width:100%; }
#newbee-lottery-root .nb-panel { padding:24px; }
#newbee-lottery-root :focus-visible { outline:2px solid #79ddff; outline-offset:3px; }
@media(max-width:600px) {
  html.newbee-galaxy body.galaxy-lottery #newbee-lottery-root { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); border-radius:16px; }
  #newbee-lottery-root > .nb-lottery { padding:12px; }
  #newbee-lottery-root .nb-lottery-run-status > span:last-child { display:none; }
}
