
#mm-keywords-animation {
  position: relative;
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(73, 63, 231, 0.16) 0%,
      rgba(73, 63, 231, 0.08) 30%,
      rgba(73, 63, 231, 0.03) 55%,
      transparent 76%
    ),
    #EFEEFD;
  border-radius: 20px;
}

#mm-keywords-animation::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle,
      rgba(73, 63, 231, 0.25) 1.3px,
      transparent 1.3px
    );
  background-size: 34px 34px;
  opacity: 0.38;
  animation: mm-background-drift 18s ease-in-out infinite alternate;
  -webkit-mask-image:
    radial-gradient(
      circle at center,
      #000 12%,
      rgba(0, 0, 0, 0.8) 52%,
      transparent 92%
    );
  mask-image:
    radial-gradient(
      circle at center,
      #000 12%,
      rgba(0, 0, 0, 0.8) 52%,
      transparent 92%
    );
}

#mm-keywords-animation::after {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    repeating-radial-gradient(
      circle at center,
      rgba(73, 63, 231, 0.07) 0,
      rgba(73, 63, 231, 0.07) 1px,
      transparent 1px,
      transparent 92px
    );
  opacity: 0.65;
  animation: mm-rings-pulse 8s ease-in-out infinite;
}

#mm-keywords-animation .mm-keywords-network {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#mm-keywords-animation .mm-keyword {
  --x: 50%;
  --y: 50%;
  --size: 16px;
  --delay: 0s;
  --duration: 9s;
  --move-x: 12px;
  --move-y: 14px;

  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: var(--size);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: mm-keyword-float var(--duration) ease-in-out var(--delay) infinite alternate;
  will-change: transform;
}

#mm-keywords-animation .mm-keyword--good {
  color: #493FE7;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(73, 63, 231, 0.2);
  box-shadow:
    0 14px 38px rgba(73, 63, 231, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#mm-keywords-animation .mm-keyword--good::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(73, 63, 231, 0.1);
  animation: mm-dot-pulse 3.6s ease-in-out infinite;
}

#mm-keywords-animation .mm-keyword--bad {
  color: rgba(90, 94, 115, 0.72);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(90, 94, 115, 0.12);
  font-size: calc(var(--size) * 0.86);
  font-weight: 500;
  opacity: 0.86;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#mm-keywords-animation .mm-keyword--bad::before {
  content: "×";
  margin-right: 6px;
  font-size: 0.95em;
  color: rgba(230, 76, 75, 0.78);
}

#mm-keywords-animation .mm-keyword--main {
  z-index: 4;
  padding: 19px 27px;
  color: #493FE7;
  background: #FFFFFF;
  border: 1px solid rgba(73, 63, 231, 0.28);
  font-size: clamp(22px, 2vw, 31px);
  font-weight: 700;
  box-shadow:
    0 22px 55px rgba(73, 63, 231, 0.2),
    0 0 0 12px rgba(73, 63, 231, 0.06),
    0 0 45px rgba(73, 63, 231, 0.16);
  animation:
    mm-keyword-float var(--duration) ease-in-out var(--delay) infinite alternate,
    mm-main-pulse 5s ease-in-out infinite;
}

#mm-keywords-animation .mm-keyword--main::before {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 7px rgba(73, 63, 231, 0.11);
}

#mm-keywords-animation .mm-keyword-dot {
  --x: 50%;
  --y: 50%;
  --dot-size: 5px;
  --delay: 0s;
  --duration: 8s;
  --move-x: 9px;
  --move-y: 10px;

  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 1;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: rgba(73, 63, 231, 0.5);
  box-shadow:
    0 0 0 6px rgba(73, 63, 231, 0.08),
    0 0 16px rgba(73, 63, 231, 0.24);
  transform: translate(-50%, -50%);
  animation:
    mm-keyword-float var(--duration) ease-in-out var(--delay) infinite alternate,
    mm-particle-pulse 3.2s ease-in-out var(--delay) infinite;
}

#mm-keywords-animation .mm-keyword-line {
  position: absolute;
  z-index: 0;
  height: 2px;
  transform-origin: left center;
  opacity: 0.8;
  background: linear-gradient(
    90deg,
    rgba(73, 63, 231, 0.06),
    rgba(73, 63, 231, 0.34),
    rgba(73, 63, 231, 0.08)
  );
  box-shadow: 0 0 10px rgba(73, 63, 231, 0.08);
  animation: mm-line-pulse 4.8s ease-in-out infinite alternate;
}

@keyframes mm-keyword-float {
  0% {
    transform:
      translate(-50%, -50%)
      translate3d(calc(var(--move-x) * -0.65), calc(var(--move-y) * -0.45), 0)
      rotate(-0.8deg);
  }

  50% {
    transform:
      translate(-50%, -50%)
      translate3d(calc(var(--move-x) * 0.25), calc(var(--move-y) * 0.55), 0)
      rotate(0.5deg);
  }

  100% {
    transform:
      translate(-50%, -50%)
      translate3d(var(--move-x), calc(var(--move-y) * -0.75), 0)
      rotate(0.9deg);
  }
}

@keyframes mm-main-pulse {
  0%, 100% {
    box-shadow:
      0 22px 55px rgba(73, 63, 231, 0.2),
      0 0 0 12px rgba(73, 63, 231, 0.06),
      0 0 45px rgba(73, 63, 231, 0.16);
  }

  50% {
    box-shadow:
      0 26px 65px rgba(73, 63, 231, 0.26),
      0 0 0 19px rgba(73, 63, 231, 0.035),
      0 0 65px rgba(73, 63, 231, 0.24);
  }
}

@keyframes mm-dot-pulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.28);
    opacity: 1;
  }
}

@keyframes mm-particle-pulse {
  0%, 100% {
    opacity: 0.52;
  }

  50% {
    opacity: 1;
  }
}

@keyframes mm-line-pulse {
  0% {
    opacity: 0.38;
  }

  100% {
    opacity: 0.92;
  }
}

@keyframes mm-background-drift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 18px 14px;
  }
}

@keyframes mm-rings-pulse {
  0%, 100% {
    transform: scale(0.98);
    opacity: 0.42;
  }

  50% {
    transform: scale(1.04);
    opacity: 0.78;
  }
}

@media (max-width: 767px) {
  #mm-keywords-animation {
    min-height: 620px;
    border-radius: 20px;
    overflow: hidden;
    background:
      radial-gradient(
        circle at 50% 48%,
        rgba(73, 63, 231, 0.22) 0%,
        rgba(73, 63, 231, 0.11) 34%,
        rgba(73, 63, 231, 0.05) 58%,
        transparent 82%
      ),
      #EFEEFD;
  }

	#mm-keywords-animation .mm-keywords-network{
        width:145%;
        height:125%;
        left:-22.5%;
        top:-12%;
        transform:scale(1.18);
        transform-origin:center center;
   }

  #mm-keywords-animation::before {
    background-size: 28px 28px;
    opacity: 0.52;
  }

  #mm-keywords-animation::after {
    inset: -5%;
    opacity: 0.8;
  }

  #mm-keywords-animation .mm-keyword {
    padding: 8px 12px;
    font-size: calc(var(--size) * 0.9);
    box-shadow:
      0 12px 30px rgba(73, 63, 231, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.78);
  }

  #mm-keywords-animation .mm-keyword--good {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(73, 63, 231, 0.28);
  }

  #mm-keywords-animation .mm-keyword--bad {
    opacity: 0.78;
  }

  #mm-keywords-animation .mm-keyword--main {
    padding: 17px 24px;
    font-size: 25px;
    box-shadow:
      0 22px 50px rgba(73, 63, 231, 0.26),
      0 0 0 14px rgba(73, 63, 231, 0.08),
      0 0 55px rgba(73, 63, 231, 0.22);
  }

  #mm-keywords-animation .mm-keyword-line {
    height: 2px;
    opacity: 0.9;
  }

  #mm-keywords-animation .mm-keyword-dot {
    transform: translate(-50%, -50%) scale(1.15);
  }

  #mm-keywords-animation .mm-keyword:nth-of-type(n + 20):not(.mm-keyword--main) {
    display: none;
  }
	#mm-keywords-animation::before{
    background-size:24px 24px;
    opacity:.6;
	}

	#mm-keywords-animation::after{
			inset:-20%;
			opacity:.95;
			transform:scale(1.15);
	}
}

@media (prefers-reduced-motion: reduce) {
  #mm-keywords-animation::before,
  #mm-keywords-animation::after,
  #mm-keywords-animation .mm-keyword,
  #mm-keywords-animation .mm-keyword::before,
  #mm-keywords-animation .mm-keyword-dot,
  #mm-keywords-animation .mm-keyword-line {
    animation: none;
  }
}

#mm-keywords-animation::before,
#mm-keywords-animation::after,
#mm-keywords-animation .mm-keywords-network,
#mm-keywords-animation .mm-keyword,
#mm-keywords-animation .mm-keyword-dot,
#mm-keywords-animation .mm-keyword-line {
  pointer-events: none !important;
}

#mm-keywords-content {
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
}

#mm-keywords-content *,
#mm-keywords-content a,
#mm-keywords-content button {
  pointer-events: auto !important;
}

#mm-keywords-content a,
#mm-keywords-content button {
  position: relative;
  z-index: 30;
}
