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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #04121c;
}

#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#hud {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font: 13px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: #cfe4ef;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  user-select: none;
  pointer-events: none;
}

#hud .sep {
  color: #6f93a5;
  margin: 0 4px;
}

#panel {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 252px;
  padding: 14px 16px 16px;
  border-radius: 12px;
  border: 1px solid rgba(110, 175, 205, 0.18);
  background: rgba(8, 22, 32, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #d7e9f2;
  font: 13px/1.45 ui-monospace, "Cascadia Mono", Consolas, monospace;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

#panel h1 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fc3dd;
  margin-bottom: 10px;
}

.row {
  display: grid;
  gap: 3px;
  margin: 10px 0;
}

.row > span {
  display: flex;
  justify-content: space-between;
  color: #b8d4e2;
}

.row output {
  color: #8fe0c3;
}

.row input[type="range"] {
  width: 100%;
  accent-color: #4da3c9;
  cursor: pointer;
}

#reset {
  width: 100%;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(120, 190, 220, 0.35);
  border-radius: 8px;
  background: rgba(30, 70, 95, 0.5);
  color: #d7e9f2;
  cursor: pointer;
  font: inherit;
}

#reset:hover {
  background: rgba(45, 95, 125, 0.6);
}

#panel.hidden {
  display: none;
}

#err {
  position: absolute;
  top: 14px;
  left: 14px;
  max-width: 680px;
  max-height: 60vh;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(90, 12, 12, 0.85);
  color: #ffd9d9;
  font: 12px/1.55 ui-monospace, Consolas, monospace;
  display: none;
  white-space: pre-wrap;
}
