.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.hotbar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0;
  padding: 3px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.slot {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 0, 0, 0.4);
  background: rgba(139, 139, 139, 0.35);
  box-sizing: border-box;
}

.slot.active {
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #000 inset;
}

.slot canvas {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
}

.slot .slot-name {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 9px;
  color: #fff;
  text-shadow: 1px 1px 0 #000;
}

.slot .slot-key {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: 9px;
  color: #ddd;
  text-shadow: 1px 1px 0 #000;
}

.chat-input {
  position: fixed;
  bottom: 80px;
  left: 16px;
  z-index: 55;
  width: 360px;
  max-height: 200px;
}

.chat-input input {
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  color: #fff;
  outline: none;
}

.chat-input input::placeholder {
  color: #999;
}
