html, body { overflow: hidden; background: #bfe8ff; overscroll-behavior: none; }
/* fixed body = no iOS rubber-banding; top/left/right/bottom instead of `inset` (Safari < 14.1) */
body { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
#scene {
  position: fixed;
  top: 0; left: 0;
  /* 100% of the fixed containing block = the visible viewport on iOS (100vh would
     include the area under Safari's toolbar); dvh where supported */
  width: 100%;
  height: 100%;
  height: 100dvh;
  display: block;
  touch-action: none;
  outline: none;
}
#ui { position: fixed; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 2; }
#ui button, #ui .panel, #ui a { pointer-events: auto; }

.nogl[hidden] { display: none; }
/* shown exactly on old browsers → no `inset` / modern CSS here */
.nogl { position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; z-index: 5; text-align: center; padding: 20px; }
.nogl small { display: block; max-width: 520px; margin: 12px auto; font-size: 18px; line-height: 1.4; }

/* Menu, pickers, pause, results and HUD styles live in ui.css (Phase 2c). */
