*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #fafafa;
  overflow: hidden;
}

#canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

#controls {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.2rem;
  align-items: center;
  z-index: 10;
  background: rgba(0,0,0,0.7);
  padding: 0.5rem 1.2rem;
  border-radius: 2rem;
  border: 1px solid rgba(255,160,60,0.25);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  color: rgba(255,200,100,0.8);
  white-space: nowrap;
}

#controls label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#controls select,
#controls input[type="range"] {
  background: rgba(255,160,60,0.1);
  color: #fca;
  border: 1px solid rgba(255,160,60,0.3);
  border-radius: 0.3rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
}

#controls input[type="range"] {
  width: 70px;
  padding: 0;
  accent-color: #f90;
}

#controls button {
  background: rgba(255,160,60,0.15);
  color: #fca;
  border: 1px solid rgba(255,160,60,0.3);
  border-radius: 0.3rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

#controls button:hover {
  background: rgba(255,160,60,0.3);
}

#oct-display {
  min-width: 1.2rem;
  text-align: center;
  color: #f90;
  font-weight: bold;
}

#hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.35;
  pointer-events: none;
  z-index: 10;
  transition: opacity 1s;
  white-space: nowrap;
}
