html, body {
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

body {
  height: 100dvh;
  -webkit-user-select: none;
  user-select: none;
}

#mobile-tools {
  display: none;
  position: fixed;
  z-index: 10000;
  top: max(8px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 120px);
  text-align: center;
  font: 13px/1.4 system-ui, sans-serif;
  pointer-events: none;
}

#mobile-tools p {
  margin: 0 0 6px;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(0, 50, 58, .72);
  color: #fff;
}

#mobile-fullscreen {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 12px;
  background: rgba(0, 50, 58, .78);
  color: #fff;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

#mobile-fullscreen:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (pointer: coarse), (max-width: 900px) {
  #mobile-tools { display: block; }
}

@media (orientation: landscape) {
  #orientation-hint { display: none; }
}

#mobile-tools[hidden], #mobile-tools [hidden] {
  display: none !important;
}

#offline-status {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(0, 50, 58, .8);
  color: #fff;
  font: 12px/1.4 system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
}

#offline-status[hidden] { display: none; }
