:root {
  --background: #101316;
  --text: #e9e6df;
  --muted: #8d9296;
  --fill: rgb(255 255 255 / 10%);
  --accent: #7fd4ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--background);
  color: var(--text);
  font: 14px/1.35 ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  user-select: none;
}

#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#bodies {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

#bodies button {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  min-height: 34px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

#bodies button:hover {
  color: var(--text);
}

#bodies button[aria-pressed="true"] {
  background: var(--fill);
  color: var(--text);
}

#tag {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  white-space: nowrap;
  font-size: 15px;
  text-shadow: 0 1px 3px rgb(0 0 0 / 85%);
}

#layers {
  position: fixed;
  left: 50%;
  bottom: 44px;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

#explode {
  flex: 1;
  min-width: 0;
  height: 28px;
  accent-color: var(--accent);
  cursor: pointer;
}

#note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

#note a {
  color: inherit;
}
