html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #071018;
  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: #9fe8dd;
  text-decoration: none;
  font-size: 0.92rem;
}

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

.hud-top h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.hud-controls {
  left: 16px;
  bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  max-width: min(640px, calc(100vw - 220px));
}

.hud-controls button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #3db8a8;
  color: #071018;
  font-weight: 700;
  cursor: pointer;
}

.hud-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hud-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(232, 244, 244, 0.86);
}

.hud-slider input[type="range"] {
  width: 120px;
  accent-color: #3db8a8;
}

.hud-slider output {
  min-width: 1.4em;
  font-variant-numeric: tabular-nums;
}

.hud-hint,
.hud-status {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(232, 244, 244, 0.86);
}

.hud-preview {
  right: 16px;
  bottom: 18px;
  width: 180px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(7, 16, 24, 0.72);
  border: 1px solid rgba(61, 184, 168, 0.35);
}

.hud-preview__frame {
  position: relative;
  width: 100%;
  height: 112px;
  border-radius: 8px;
  overflow: hidden;
  background: #102433;
}

.hud-preview video {
  display: block;
  width: 100%;
  height: 112px;
  object-fit: cover;
  transform: scaleX(-1);
  background: #102433;
}

.hud-preview canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scaleX(-1);
}

.hud-preview p {
  margin: 6px 0 0;
  font-size: 0.78rem;
}

.hud-preview[data-active="false"] video,
.hud-preview[data-active="false"] canvas {
  opacity: 0.35;
}
