html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #05060f;
  color: #e8ecff;
  font-family: system-ui, sans-serif;
}

canvas {
  display: block;
}

#overlay {
  position: fixed;
  top: 16px;
  left: 16px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  background: rgba(6, 10, 24, 0.82);
  border: 1px solid #1f6fff;
  border-radius: 8px;
}

#overlay h1 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #00e5ff;
}

#overlay label.name {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  color: #c9d1f5;
}

#overlay label.name input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  font-size: 16px;
  color: #e8ecff;
  background: #0b0f1f;
  border: 1px solid #1f6fff;
  border-radius: 6px;
}

#overlay .links {
  margin: 8px 0 0;
  font-size: 13px;
}

#overlay a {
  color: #00e5ff;
}

#enter-vr {
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #05060f;
  background: #00e5ff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

#enter-vr:disabled {
  background: #3a4366;
  color: #c9d1f5;
  cursor: default;
}

#status {
  margin: 8px 0 0;
  font-size: 14px;
  color: #ffeb3b;
}

#overlay details {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
}

#gun-hud {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 240px;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 700px) {
  #gun-hud {
    top: auto;
    bottom: 16px;
    width: 140px;
  }
}

#debug-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: min(480px, calc(100vw - 32px));
  height: auto;
  border: 1px solid #1f6fff;
  border-radius: 6px;
}
