body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #05060a;
}

#error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: rgba(20, 0, 0, 0.9);
  color: #ff5555;
  font-family: monospace;
  padding: 20px;
  box-sizing: border-box;
  display: none;
  white-space: pre-wrap;
  overflow: auto;
}

#menu {
  position: absolute; top: 30px; right: 30px;
  pointer-events: auto;
  background: rgba(10, 10, 20, 0.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(80, 220, 255, 0.3);
  padding: 20px 24px; border-radius: 16px;
  box-shadow: 0 0 40px rgba(80, 220, 255, 0.15), inset 0 0 20px rgba(80, 220, 255, 0.1);
  display: flex !important; flex-direction: column; gap: 14px; min-width: 240px; color: #fff;
  font-family: sans-serif;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
#menu.hidden {
  opacity: 0;
  pointer-events: none;
  filter: blur(10px);
}
#menu label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #7ee8fa;
  text-shadow: 0 0 8px rgba(126, 232, 250, 0.6);
}
#menu label > div { display: flex; align-items: center; gap: 10px; }
#menu input[type="range"] { -webkit-appearance: none; appearance: none; width: 90px; background: transparent; padding: 0; border: none; }
#menu input[type="range"]:focus { outline: none; }
#menu input[type="range"]::-webkit-slider-runnable-track { width: 100%; height: 4px; cursor: pointer; background: rgba(80, 220, 255, 0.2); border-radius: 2px; box-shadow: 0 0 10px rgba(80, 220, 255, 0.4); }
#menu input[type="range"]:hover::-webkit-slider-runnable-track { background: rgba(80, 220, 255, 0.4); box-shadow: 0 0 15px rgba(80, 220, 255, 0.6); }
#menu input[type="range"]::-webkit-slider-thumb { height: 14px; width: 14px; border-radius: 50%; background: #fff; cursor: pointer; -webkit-appearance: none; margin-top: -5px; box-shadow: 0 0 15px #fff, 0 0 25px #7ee8fa; border: 1px solid rgba(80,220,255,0.8); }
#menu .val { display: inline-block; width: 34px; text-align: right; font-family: monospace; font-size: 11px; color: #fff; font-weight: 600; text-shadow: 0 0 8px #7ee8fa; }
