/* Page basics: fill the whole phone screen, black background, no scrolling. */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  overscroll-behavior: none;
}

/* Stop the browser from treating touches as scrolling, selecting text, or menus. */
body {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* The 3D canvas covers the whole screen. 100vh is the fallback for older browsers;
   100dvh is the "dynamic" viewport height that follows the browser toolbar. */
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  touch-action: none;
}

/* Small green frame-rate counter in the top-left corner.
   The safe-area insets keep it clear of the notch and rounded corners. */
#fps {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 8px);
  left: calc(env(safe-area-inset-left) + 8px);
  font: 12px monospace;
  color: #0f0;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10;
}
