/* Color Flood extras on top of ../assets/site.css */
#board { cursor: pointer; }

.pct-track {
  display: block; height: 6px; margin: 4px 6px 2px;
  border-radius: 99px; background: var(--line); overflow: hidden;
}
.pct-bar {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #ff5d73, #ff9f1c, #ffd23f, #2fd27a, #3a8bff, #a160f2);
  transition: width .35s ease;
}

.palette {
  --n: 6;
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 18px auto 0;
}
.swatch {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 0; border-radius: 50%;
  cursor: pointer;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.65) 0 14%, rgba(255,255,255,0) 42%),
    var(--c);
  box-shadow: 0 5px 0 var(--d), 0 10px 18px color-mix(in srgb, var(--c) 45%, transparent);
  transition: transform .1s, box-shadow .1s, opacity .2s;
  touch-action: manipulation;
}
.swatch:hover:not(:disabled) { transform: translateY(-2px); }
.swatch:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--d); }
.swatch:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.swatch.current {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--d), 0 0 0 4px var(--card), 0 0 0 7px var(--c);
  cursor: default;
}
.swatch:disabled:not(.current) { opacity: .45; cursor: default; }

/* optional symbols for telling colors apart */
.sym { display: none; position: absolute; inset: 0; margin: auto; width: 34%; height: 34%; background: rgba(0,0,0,.35); }
.palette.show-sym .sym { display: block; }
.sym-circle { border-radius: 50%; }
.sym-square { border-radius: 2px; width: 30%; height: 30%; }
.sym-triangle { clip-path: polygon(50% 0, 100% 90%, 0 90%); }
.sym-diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.sym-star { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 40%; height: 40%; }
.sym-plus { clip-path: polygon(38% 0, 62% 0, 62% 38%, 100% 38%, 100% 62%, 62% 62%, 62% 100%, 38% 100%, 38% 62%, 0 62%, 0 38%, 38% 38%); }

.controls.two { grid-template-columns: 1fr 1fr; max-width: 320px; }
