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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 48% 42%, #c9b9ad 0%, #b4a397 52%, #9a887c 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

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

#scene:active {
  cursor: grabbing;
}

.controls {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(34, 29, 25, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 245, 232, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  color: #f7efe5;
  z-index: 10;
  max-width: calc(100vw - 24px);
}

.control {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.control-label {
  opacity: 0.92;
}

.control input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 86px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 244, 230, 0.3);
  outline: none;
  cursor: pointer;
}

.control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f5c36c;
  border: 2px solid #fff7ea;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.control input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f5c36c;
  border: 2px solid #fff7ea;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@media (max-width: 440px) {
  .controls {
    gap: 10px;
    padding: 7px 11px;
  }

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