@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

body {
  background-color: #050510;
  color: #e0e0ff;
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  margin: 0;
  padding: 0;
  user-select: none;
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none; /* Klicks gehen durch zum Canvas */
}

.hud-panel {
  pointer-events: auto;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100, 100, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

.control-group {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.control-group:last-child {
  border-bottom: none;
}

.input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #88aaff;
  margin-bottom: 0.25rem;
}

input[type="range"] {
  width: 100%;
  background: transparent;
  cursor: pointer;
  accent-color: #66f;
}

input[type="number"] {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #446;
  color: #fff;
  padding: 0.25rem;
  border-radius: 4px;
  width: 100%;
  font-family: inherit;
}

button {
  background: rgba(50, 50, 100, 0.5);
  border: 1px solid #66f;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
  font-size: 0.85rem;
}

button:hover {
  background: #66f;
  box-shadow: 0 0 10px #66f;
}

button.active {
  background: #66f;
  color: white;
}

/* Radio Toggle Style */
.mode-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.mode-toggle button {
  flex: 1;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 0.75rem;
  padding: 0.4rem;
}

.mode-toggle button.active {
  background: #66f;
}
