html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #4f5b5e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  cursor: grab;
}

#overlay.dragging {
  cursor: grabbing;
}

#panel {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 260px;
  box-sizing: border-box;
  padding: 12px 14px 14px;
  color: #e9eeea;
  background: rgba(8, 12, 13, .72);
  border: 1px solid rgba(230, 238, 235, .16);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0,0,0,.38);
  user-select: none;
}

#panel h1 {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#panel .sub {
  margin-bottom: 10px;
  font-size: 10px;
  line-height: 1.35;
  opacity: .7;
}

#panel label {
  display: block;
  margin-top: 10px;
  font-size: 12px;
}

#panel label span {
  float: right;
  opacity: .72;
  font-variant-numeric: tabular-nums;
}

#panel input {
  width: 100%;
  margin-top: 5px;
  accent-color: #d6dfda;
}

#panel select {
  width: 100%;
  margin-top: 5px;
}

#perf {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 3;
  min-width: 130px;
  box-sizing: border-box;
  padding: 9px 11px;
  color: #e9eeea;
  background: rgba(8, 12, 13, .64);
  border: 1px solid rgba(230, 238, 235, .14);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
  font-size: 11px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  user-select: none;
}

#perf strong {
  display: inline-block;
  min-width: 28px;
  font-size: 16px;
}

#perf .meta {
  margin-top: 4px;
  color: rgba(232,238,236,.58);
  font-size: 10px;
}

#perf button {
  width: 100%;
  margin-top: 6px;
  padding: 4px 6px;
  color: #e9eeea;
  background: rgba(230, 238, 235, .10);
  border: 1px solid rgba(230, 238, 235, .16);
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
}

#perf button:disabled {
  opacity: .55;
  cursor: default;
}

#credit {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 3;
  color: rgba(232,238,236,.62);
  background: rgba(8,12,13,.5);
  border: 1px solid rgba(230,238,235,.12);
  border-radius: 16px;
  padding: 5px 10px;
  font-size: 11px;
}

#error {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
  color: #ffd0c8;
  background: #1c2223;
  font: 14px system-ui, sans-serif;
}
