/* DARK FOREST (web) */
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #0b120d;
  color: #eee;
  font-family: 'DejaVu Sans Mono', Menlo, Consolas, monospace;
  /* sin gestos del navegador sobre el juego (zoom, desplazamiento, seleccion) */
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#gl, #hud {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
}

#hud { cursor: none; }

#loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: #0b120d;
}
#loading h1 { color: #d9140d; letter-spacing: 0.1em; font-size: clamp(2rem, 8vw, 5rem); margin: 0; }
#loading p { color: #aaa; }

#nameForm {
  position: fixed;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.2rem;
  background: rgba(10, 6, 6, 0.92);
  border: 2px solid #ffb31a;
  border-radius: 8px;
  max-width: 92vw;
  user-select: text;
  -webkit-user-select: text;
}
#nameForm[hidden] { display: none; }
#nameForm label { width: 100%; text-align: center; color: #ffd24a; font-weight: bold; }
#nameInput {
  width: 5ch;
  font: bold 2rem inherit;
  font-family: inherit;
  text-align: center;
  text-transform: uppercase;
  background: #111;
  color: #fff;
  border: 2px solid #666;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
}
#nameForm button {
  font: bold 1.1rem inherit;
  font-family: inherit;
  padding: 0.55rem 1rem;
  background: #ffb31a;
  color: #1a0d00;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
