/* Vector silhouettes inherit the same six player colours as the original orbs. */
.orb.virus,
.orb.virus.critical,
.board.large-board .orb.virus.critical {
  width: 83%;
  height: 83%;
  flex: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--player, var(--lime));
  pointer-events: none;
}

.virus-art {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: center;
}

.virus-stems {
  stroke: currentColor;
  stroke-width: 8;
}

.virus-tips,
.virus-body {
  fill: currentColor;
  stroke: #253027;
  stroke-opacity: 0.17;
  stroke-width: 1.7;
}

.virus-body {
  stroke-width: 2;
}

.virus-shade,
.virus-shine {
  fill: none;
  stroke-linecap: round;
}

.virus-shade {
  stroke: #253027;
  stroke-opacity: 0.11;
  stroke-width: 4;
}

.virus-shine {
  stroke: #fff;
  stroke-opacity: 0.45;
  stroke-width: 3.5;
}

.virus-glint {
  fill: #fff;
  opacity: 0.35;
}

.virus > .pips {
  position: absolute;
  width: 44%;
  height: 44%;
  left: 28%;
  top: 28%;
  z-index: 1;
}

.virus .pip {
  width: 27%;
  height: 27%;
  left: 36.5%;
  top: 36.5%;
  background: #253027;
  box-shadow: 0 0 0 0.5px #ffffff20;
}

.virus .pips[data-count="2"] .pip:nth-child(1) {
  left: 8%;
}

.virus .pips[data-count="2"] .pip:nth-child(2) {
  left: 65%;
}

.virus .pips[data-count="3"] .pip:nth-child(1) {
  top: 3%;
}

.virus .pips[data-count="3"] .pip:nth-child(2) {
  left: 5%;
  top: 61%;
}

.virus .pips[data-count="3"] .pip:nth-child(3) {
  left: 68%;
  top: 61%;
}

.virus .pips[data-count="4"] .pip:nth-child(1) {
  left: 5%;
  top: 5%;
}

.virus .pips[data-count="4"] .pip:nth-child(2) {
  left: 68%;
  top: 5%;
}

.virus .pips[data-count="4"] .pip:nth-child(3) {
  left: 5%;
  top: 68%;
}

.virus .pips[data-count="4"] .pip:nth-child(4) {
  left: 68%;
  top: 68%;
}

/* Readiness is visible on the player's selectable pieces without moving pips. */
.cell.playable .virus.critical .virus-art {
  animation: virus-ready 1.9s ease-in-out infinite;
}

@keyframes virus-ready {
  0%,
  100% {
    transform: scale(1) rotate(-1deg);
  }
  50% {
    transform: scale(1.045) rotate(1deg);
  }
}

.virus-particle {
  contain: layout style;
}

@media (prefers-reduced-motion: reduce) {
  .cell.playable .virus.critical .virus-art {
    animation: none;
  }
}
