html,body{width:100%;height:100%;min-height:100dvh;overscroll-behavior:none;background:#162221!important}
body{background:radial-gradient(ellipse at 50% 55%,transparent,#080a0c85),url('./assets/bg3.webp') center/cover fixed!important}
#menu-surface{inset:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)!important;overflow:hidden}
#menu-stage>div:first-child,#menu-stage>div:nth-child(2){display:none}
#game-screen{position:fixed;inset:0;z-index:1000;background:#162221}
#game-screen[hidden],#app-fullscreen[hidden],#app-notice[hidden],#game-loading[hidden]{display:none!important}
#snooker-game{display:block;width:100%;height:100%;height:100dvh;border:0;background:#162221}
#game-loading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:#000;color:#fff;font:14px system-ui;overflow:hidden;touch-action:none}
#game-loading button{padding:10px 16px;border:1px solid #d0d0d0;background:linear-gradient(150deg,#ffffff66,#b9cdca30);color:#eaeaea;border-radius:6px;cursor:pointer}
#app-fullscreen{position:fixed;z-index:500;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));width:40px;height:36px;border:1px solid #cbd8dc70;border-radius:7px;background:#13222180;color:#eef1f3;font:25px system-ui;cursor:pointer;touch-action:manipulation}
#app-notice{position:fixed;z-index:3000;left:50%;bottom:max(16px,env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 40px);width:max-content;padding:12px 16px;border:1px solid #42645f;border-radius:10px;background:#1e2d2c;color:#e6eeed;font:14px/1.4 system-ui;box-shadow:0 6px 30px #0008}
#app-notice[popover]{inset:auto;margin:0;left:50%;bottom:max(16px,env(safe-area-inset-bottom))}
@media(display-mode:standalone),(display-mode:fullscreen){#app-fullscreen{display:none}}
