
[data-cursor="opaque"] {
  cursor: none;
}

.cb-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
}

/* ===== BASE ===== */

.cb-cursor:before {
  content: "";
  position: absolute;
  top: -24px;
  left: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;

  background: var(--secondary-color);

  /* ESTADO BASE */
  transform: scale(0.2);
  opacity: 0;

  transition:
    transform 0.3s cubic-bezier(.22,.61,.36,1),
    opacity 0.2s ease;
}

.cb-cursor.-leaving:before {
  transform: scale(0);
  opacity: 0;
  transition:
    transform 0.25s cubic-bezier(.22,.61,.36,1),
    opacity 0.2s ease;
}
/* ===== VISIBILIDADE ===== */

.cb-cursor.-visible:before {
  opacity: 1;
}

/* ===== ACTIVE ===== */

.cb-cursor.-visible.-active:before {
  transform: scale(0.23);
  transition-duration: 0.2s;
}

/* ===== OPAQUE ===== */

.cb-cursor.-opaque:before {
  transform: scale(1.32);
}

.cb-cursor.-opaque.-active:before {
  transform: scale(1.2);
}

/* ===== TEXT ===== */

.cb-cursor.-text:before {
  background: #000;
  opacity: 0.8;
  transform: scale(1.7);
}

.cb-cursor.-text.-active:before {
  transform: scale(1.6);
}

/* ===== LG ===== */

.cb-cursor.-lg:before {
  transform: scale(2);
}

/* ===== HIDDEN ===== */

.cb-cursor.-hidden:before {
  transform: scale(0);
  opacity: 0;
}

/* ===== BLEND MODE ===== */

@supports (mix-blend-mode: exclusion) {
  .cb-cursor.-exclusion,
  .cb-cursor.-opaque {
    mix-blend-mode: exclusion;
  }

  .cb-cursor.-exclusion:before,
  .cb-cursor.-opaque:before {
    background: white;
  }
}