body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #111;
  font-family: monospace;
  color: #eee;
}

#viewport {
  width: 100vw;
  height: 100vh;
  display: block;
}

#ui {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #333;
  padding: 14px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 10;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

select, input, button {
  background: #222;
  border: 1px solid #444;
  color: #eee;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:hover {
  background: #333;
}

#gizmo-hud {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  gap: 8px;
  pointer-events: auto;
}

.hud-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #111;
  font-size: 15px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

#hud-confirm {
  background: #28a745;
}

#hud-confirm:hover {
  background: #34c759;
}

#hud-cancel {
  background: #dc3545;
}

#hud-cancel:hover {
  background: #ff453a;
}
