/* Native status bars are hidden through SystemBars; the web surface has no inset. */
html.ios-game-fullscreen, .ios-game-fullscreen body {
  position: fixed !important; inset: 0 !important; width: 100% !important;
  height: 100% !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; overflow: hidden !important; background: #1d3549;
}
.ios-game-fullscreen #GameDiv, .ios-game-fullscreen #Cocos3dGameContainer {
  position: absolute !important; inset: 0 !important; width: 100% !important;
  height: 100% !important; margin: 0 !important; padding: 0 !important;
}
.ios-game-fullscreen #GameCanvas { display: block; width: 100% !important; height: 100% !important; }
#boot-loading {
  position: fixed; inset: 0; z-index: 9999; margin: 0;
  background: #ebebeb url('./startup-splash.png') center center / cover no-repeat;
}
#ios-startup-network {
  position: fixed; left: 24px; right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom, 0px)); z-index: 10000;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; color: #453920; font: 14px/1.5 -apple-system, sans-serif;
}
#ios-startup-network[hidden] { display: none; }
#ios-startup-network > div { padding: 4px 10px; border-radius: 4px; background: rgba(240,237,231,.92); }
#ios-startup-network button {
  padding: 8px 28px; border: 1px solid #b99b63; border-radius: 5px;
  background: #e6c587; color: #453920; font: 15px -apple-system, sans-serif;
}
