:root { color-scheme: dark; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%; height: 100%; overflow: hidden;
  background: #06121f;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #e8eef5;
  user-select: none;
}

#gl {
  display: block;
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  cursor: grab;
}
#gl.looking { cursor: none; }

#hud {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 16px 20px;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

#title {
  font-size: 15px; font-weight: 600; letter-spacing: 0.16em;
}
#title .accent { color: #7fd4ff; font-weight: 400; }

#fps {
  font-family: "Consolas", ui-monospace, monospace;
  font-size: 13px; color: #8effa0;
  min-width: 92px; text-align: right;
  opacity: 0; transition: opacity 0.15s;
}
#fps.show { opacity: 1; }

#help {
  position: fixed; left: 20px; bottom: 18px;
  display: grid; grid-template-columns: auto auto; gap: 4px 16px;
  padding: 12px 16px;
  background: rgba(6, 14, 24, 0.42);
  border: 1px solid rgba(127, 212, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  font-size: 12.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s;
}
#help.hidden { opacity: 0; pointer-events: none; }
#help .row { display: contents; }
#help b { color: #9fb6c9; font-weight: 600; }
#help span { color: #dfe9f2; }

#click-to-play {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%);
  padding: 9px 18px;
  background: rgba(6, 14, 24, 0.5);
  border: 1px solid rgba(127, 212, 255, 0.25);
  border-radius: 999px;
  font-size: 13px; letter-spacing: 0.04em; color: #cfe6f5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: opacity 0.25s;
}
#click-to-play.hidden { opacity: 0; pointer-events: none; }

#err {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 40px; text-align: center; line-height: 1.6; font-size: 15px;
  background: #06121f; color: #ffd7d7;
}
