html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #060d14;
  color: #e8f4f4;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
}

#cesiumContainer {
  position: fixed;
  inset: 0;
}

.hud {
  position: fixed;
  z-index: 2;
  pointer-events: none;
}

.hud * {
  pointer-events: auto;
}

.hud-top {
  top: 16px;
  left: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.hud-top a {
  color: #7ec8ff;
  text-decoration: none;
  font-size: 0.92rem;
}

.hud-top a:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 3px;
}

.hud-top h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.hud-panel {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: min(280px, calc(100vw - 32px));
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: rgba(6, 13, 20, 0.78);
  border: 1px solid rgba(77, 163, 255, 0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.hud-panel__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hud-panel__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #060d14;
  background: linear-gradient(135deg, #4da3ff, #2dd4a8);
  padding: 3px 7px;
  border-radius: 4px;
}

.hud-panel__head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
}

.hud-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.hud-field select {
  appearance: none;
  border: 1px solid rgba(77, 163, 255, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(12, 24, 36, 0.9);
  color: #e8f4f4;
  font-size: 0.88rem;
}

.hud-field select:focus-visible {
  outline: 2px solid #4da3ff;
  outline-offset: 2px;
}

.hud-desc {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(232, 244, 244, 0.72);
}

.hud-slider {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.hud-slider > span:first-child {
  grid-column: 1;
}

.hud-slider output {
  grid-column: 2;
  min-width: 2.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #7ec8ff;
}

.hud-slider input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #4da3ff;
}

.hud-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.hud-legend__bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e5adc 0%, #28c878 50%, #e6372d 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hud-legend__label {
  font-size: 0.72rem;
  color: rgba(232, 244, 244, 0.65);
}

.hud-legend__hint {
  margin: 4px 0 10px;
  font-size: 0.72rem;
  color: rgba(232, 244, 244, 0.55);
  text-align: center;
}

.hud-status {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(232, 244, 244, 0.6);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .hud-panel {
    top: auto;
    bottom: 12px;
    right: 12px;
    left: 12px;
    transform: none;
    width: auto;
    max-height: 52vh;
    overflow-y: auto;
  }

  .hud-top h1 {
    font-size: 0.95rem;
  }
}
