.canvas-wrap {
  position: relative;
  width: 100%;
  border: 3px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  /* a checkerboard shows through a transparent canvas */
  background-color: #888;
  background-image:
    linear-gradient(45deg, #777 25%, transparent 25%, transparent 75%, #777 75%),
    linear-gradient(45deg, #777 25%, transparent 25%, transparent 75%, #777 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}
#mandala {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
}
.btns.under {
  margin: 12px 0 0;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.swatch:hover,
.swatch:focus {
  border-color: white;
}
.swatch.selected {
  border-color: #ffa500;
  box-shadow: 0 0 0 2px var(--card-bg), 0 0 0 4px #ffa500;
}
.swatch-custom {
  position: relative;
  overflow: hidden;
}
.swatch-custom input {
  position: absolute;
  inset: -6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  opacity: 0;
  cursor: pointer;
}
.swatch-custom {
  background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
}
