body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #aaa;
  font-family: sans-serif;
}

.layout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

#legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

#legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

#legend li.bad {
  color: #ff8a80;
}

#legend .dot.square {
  border-radius: 0;
}

#legend .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #fff;
  flex: none;
}

canvas {
  max-width: 100vw;
  max-height: 85vh;
  background: #1b1b2f;
  border: 2px solid #444;
  touch-action: none;
}
