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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #ccc;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 600px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 180, 100, 0.3);
  text-align: center;
  z-index: 100;
}

#info h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  color: #ffbb77;
}

#info .subtitle {
  font-size: 1rem;
  color: #888;
  margin-bottom: 1.5rem;
}

#info .description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #aaa;
  margin-bottom: 1rem;
}

#info .source {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 1rem;
}

#info .controls-hint {
  font-size: 0.75rem;
  color: #555;
  margin-bottom: 0.5rem;
}

#info .credit a {
  color: #ffbb77;
  text-decoration: none;
}

#controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 50;
}

#controls button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 180, 100, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: #ffbb77;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
}

#controls button:hover {
  background: rgba(255, 180, 100, 0.1);
}

#mode-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 0.85rem;
  color: #ffbb77;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 50;
}

#snr-label {
  position: absolute;
  bottom: 45px;
  left: 20px;
  font-size: 0.75rem;
  color: #666;
  z-index: 50;
}

.legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 0.75rem;
  text-align: right;
  z-index: 50;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}

.legend-color {
  width: 20px;
  height: 3px;
}

.legend-text {
  color: #888;
}
