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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #c9baab 0%, #a59484 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  touch-action: none;
  user-select: none;
}

#scene-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.controls {
  position: fixed;
  bottom: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 8px 12px;
  background: rgba(34, 28, 22, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 240, 220, 0.16);
  border-radius: 10px;
  color: #f5efe6;
  font-size: 12px;
  z-index: 10;
  max-width: calc(100vw - 28px);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.control-group label {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #f3e8d8;
}

.control-group input[type="range"] {
  width: 96px;
  height: 4px;
  accent-color: #f0b354;
  cursor: pointer;
}

@media (max-width: 480px) {
  .controls {
    bottom: 10px;
    left: 10px;
    padding: 7px 10px;
    gap: 8px 10px;
    font-size: 11px;
  }

  .control-group input[type="range"] {
    width: 80px;
  }
}
