:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  font-size: 14px;
}
body {
  margin: 0;
  background: #111;
  color: #eee;
}
.wrap {
  display: flex;
  gap: 16px;
  padding: 12px;
}
canvas {
  background: #1b1b22;
  border-radius: 8px;
  cursor: crosshair;
  outline: none;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
li {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 2px 0;
}
li img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}
.muted {
  opacity: 0.6;
}
.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000c;
  font-size: 18px;
}
.overlay[hidden] {
  display: none;
}
pre {
  font: 12px ui-monospace, monospace;
  white-space: pre-wrap;
}
a {
  color: #8cf;
}

/* Dots: full-bleed arena */
body.dots {
  height: 100vh;
  overflow: hidden;
  background: #0b0c12;
  font-family: system-ui, sans-serif;
}
body.dots canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: transparent;
}
.playerlist {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 250px;
  border-radius: 10px;
  background: rgba(17, 18, 22, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.playerlist-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.05);
}
.playerlist ul {
  padding: 6px;
}
.playerlist li {
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.playerlist li.you {
  background: rgba(51, 95, 255, 0.25);
}
.playerlist li img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.playerlist li span:not(.swatch):not(.pos) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playerlist .pos {
  white-space: nowrap;
  margin-left: auto;
  font-size: 11px;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.hud {
  position: fixed;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}
.chip {
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(17, 18, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
}
