/* Keep the complete Unity canvas and its touch controls inside the screen's safe rectangle. */
html.gb-mobile, .gb-mobile body { width:100%; height:100%; margin:0; overflow:hidden; overscroll-behavior:none; background:#000; }
.gb-mobile #unity-container.unity-mobile {
  position:fixed; left:env(safe-area-inset-left,0px); right:env(safe-area-inset-right,0px);
  top:env(safe-area-inset-top,0px); bottom:env(safe-area-inset-bottom,0px);
  width:auto; height:auto; transform:none;
}
.gb-mobile #unity-canvas { display:block; width:100% !important; height:100% !important; touch-action:none; }
/* C-RQ-264: the game's pixel lettering (subsets of Press Start 2P and Fusion Pixel, SIL OFL). */
@font-face { font-family:GBPixel; src:url(gb-pixel.woff2) format('woff2'); font-display:swap; }
@font-face { font-family:GBPixelZh; src:url(gb-pixel-zh.woff2) format('woff2'); font-display:swap; }
#gb-rotate { display:none; position:fixed; inset:0; z-index:100; background:#0b1024; color:#e9ecf8;
  align-items:center; justify-content:center; text-align:center; padding:32px; box-sizing:border-box; font:16px/1.9 GBPixel,GBPixelZh,monospace; -webkit-font-smoothing:none; }
#gb-rotate span { max-width:320px; }
@media (orientation:portrait) { .gb-mobile #gb-rotate { display:flex; } }
#gb-install-hint, #gb-screen-actions { position:fixed; z-index:50; color:#e9ecf8; background:rgba(11,16,36,.95);
  border:1px solid #ffd133; border-radius:10px; padding:10px 14px; font:14px/1.4 Arial,sans-serif; }
#gb-install-hint { left:max(12px,env(safe-area-inset-left)); right:max(12px,env(safe-area-inset-right)); bottom:max(12px,env(safe-area-inset-bottom)); text-align:center; }
#gb-install-hint button { margin-left:12px; }
/* Keep the fullscreen action clear of Unity's top-right pause/touch controls. */
#gb-screen-actions { left:50%; transform:translateX(-50%); top:max(6px,env(safe-area-inset-top));
  box-sizing:border-box; max-width:calc(100% - 24px); padding:4px; font-size:12px; }
#gb-screen-actions button { white-space:nowrap; }
#gb-install-hint button, #gb-screen-actions button { color:inherit; background:transparent; border:1px solid #8c94a8; border-radius:6px; padding:8px 12px; font:inherit; cursor:pointer; }
#gb-screen-actions[hidden], #gb-install-hint[hidden] { display:none; }
