* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b1220;
  font-family: system-ui, -apple-system, sans-serif;
}

#game {
  position: relative;
  width: 100%;
  height: 100%;
}

#viewport {
  position: absolute;
  inset: 0;
}

#hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
  background: rgba(4, 10, 20, 0.62);
  border: 1px solid rgba(170, 200, 255, 0.35);
  border-radius: 10px;
  padding: 10px;
  backdrop-filter: blur(6px);
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-label {
  font-size: 12px;
  color: #d7e8ff;
  white-space: nowrap;
  min-width: 64px;
}

.slider {
  flex: 1;
  accent-color: #6ea6ff;
  height: 4px;
}

.badge {
  font-size: 12px;
  color: #d7e8ff;
  background: rgba(70, 110, 180, 0.35);
  border: 1px solid rgba(160, 195, 255, 0.35);
  border-radius: 999px;
  padding: 3px 10px;
}

#status {
  margin: 0;
  color: #dbe7fb;
  font-size: 13px;
  line-height: 1.4;
}

.btn {
  border: 1px solid rgba(173, 205, 255, 0.4);
  background: rgba(42, 74, 128, 0.55);
  color: #e6f0ff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.btn:hover {
  background: rgba(62, 96, 157, 0.75);
}

#loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d9e8ff;
  background: rgba(8, 14, 26, 0.65);
  font-size: 15px;
  z-index: 1;
}

#loading.hidden {
  display: none;
}
