/* What's Down There? web template: the game fills the window; nothing scrolls, zooms or selects. */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #092026;
  color: #f4efe2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#game {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
  outline: none;
  touch-action: none;
  background: #092026;
}

#loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #092026;
}

#loading .title {
  margin: 0;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 800;
}

#loading .bar {
  width: min(60vw, 360px);
  height: 12px;
  border-radius: 6px;
  background: rgba(244, 239, 226, 0.18);
  overflow: hidden;
}

#loading .fill {
  width: 0;
  height: 100%;
  border-radius: 6px;
  background: #ffcb3d;
  transition: width 0.2s;
}

#loading .note {
  margin: 0;
  font-size: 14px;
  opacity: 0.7;
}

#error {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 80vw;
  padding: 16px 20px;
  border-radius: 12px;
  background: #5a1a1a;
  font-size: 15px;
}
