html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #04060f;
  color: #e8eef7;
  font-family: "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
}

#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  letter-spacing: 0.04em;
}

#loading[hidden] {
  display: none;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  user-select: none;
}

#name-entry {
  position: fixed;
  z-index: 2;
  left: 50%;
  top: calc(40% + 28px);
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: min(280px, calc(100vw - 40px));
  min-width: 0;
  padding: 0;
  background: none;
  border: none;
}

#name-entry[hidden] {
  display: none !important;
}

#name-entry label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#name-entry input {
  flex: 1;
  min-width: 0;
  font: 600 18px "Segoe UI", system-ui, sans-serif;
  color: #e8eef7;
  background: #121826;
  border: 1px solid #4a5a70;
  border-radius: 6px;
  padding: 8px 10px;
  outline: none;
}

#name-entry input:focus {
  border-color: #ffe066;
}

#name-entry button {
  flex: 0 0 auto;
  font: 600 15px "Segoe UI", system-ui, sans-serif;
  color: #121826;
  background: #ffe066;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}
