*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #070916;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #e6ecff;
  -webkit-tap-highlight-color: transparent;
}

#scene {
  display: block;
  width: 100vw;
  height: 100dvh;
  touch-action: none;
  cursor: grab;
}

#scene:active {
  cursor: grabbing;
}

.hud {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 14, 30, 0.68);
  border: 1px solid rgba(110, 220, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
}

.control-label {
  min-width: 38px;
  color: #cfe6ff;
}

.control input[type="range"] {
  width: 104px;
  height: 4px;
  margin: 0;
  accent-color: #ff47b8;
  cursor: pointer;
}

#rain {
  accent-color: #3be8ff;
}

@media (max-width: 560px) {
  .hud {
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    gap: 6px;
  }

  .control {
    font-size: 11px;
    gap: 8px;
  }

  .control input[type="range"] {
    width: 88px;
  }
}
