.swarm-layer {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.swarm-layer[data-active] {
  visibility: visible;
}

.swarm-tile,
.swarm-cursor {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  opacity: 0;
}

.swarm-tile {
  width: var(--tile-size, 16px);
  height: var(--tile-size, 16px);
  border-radius: 2px;
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 0 9px #fff3;
}

.swarm-tile:nth-child(6n + 1) {
  background: #e1e1e1;
}

.swarm-cursor {
  width: var(--cursor-size, 14px);
  height: calc(var(--cursor-size, 14px) * 1.25);
  background: #fff;
  clip-path: polygon(7% 4%, 95% 58%, 61% 65%, 76% 90%, 57% 98%, 43% 72%, 20% 94%);
}

#swarm-replay[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .swarm-layer {
    display: none;
  }
}
