.fragments {
  display: block;
  min-height: 300px;
  padding: 0;
  position: relative;
}

.molecule-bonds {
  height: 100%;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: 100%;
}

.molecule-bonds path {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.molecule-bonds .bond-shadow {
  stroke: rgba(28, 48, 61, .34);
  stroke-width: 5;
}

.molecule-bonds .bond-light {
  filter: drop-shadow(0 0 5px rgba(141, 239, 242, .82));
  stroke: rgba(202, 250, 247, .9);
  stroke-width: 2;
}

.molecule-core {
  align-items: center;
  background: url("assets/games/prime-crystals/sprites/crystal-ana-cekirdek.png") center/contain no-repeat;
  border: 0;
  color: #493116;
  display: flex;
  font: 900 1.75rem "Nunito", sans-serif;
  height: 92px;
  justify-content: center;
  left: 50%;
  position: absolute;
  text-shadow: 0 1px 2px rgba(255, 247, 197, .82), 0 2px 4px rgba(83, 46, 21, .24);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  z-index: 2;
}

.molecule-core::before,
.molecule-core::after {
  border: 1px solid rgba(219, 247, 255, .56);
  border-radius: 50%;
  content: "";
  height: 128px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(28deg) scaleY(.42);
  width: 128px;
}

.molecule-core::after { transform: translate(-50%, -50%) rotate(-28deg) scaleY(.42); }

.fragment {
  background: url("assets/games/prime-crystals/sprites/crystal-asal-olmayan.png") center/contain no-repeat;
  border: 0;
  box-shadow: none;
  clip-path: none;
  filter: drop-shadow(0 9px 10px rgba(17, 45, 62, .38));
  height: 112px;
  left: var(--mx);
  padding: 0;
  position: absolute;
  top: var(--my);
  transform: translate(-50%, -50%);
  width: 102px;
  z-index: 3;
}

.fragment::before {
  display: none;
}

.fragment::after {
  display: none;
}

.fragment-number {
  color: #fff;
  font: 900 1.72rem "Nunito", sans-serif;
  position: relative;
  text-shadow: 0 2px 4px rgba(18, 43, 58, .56);
  z-index: 2;
}

.prime-mark {
  bottom: 19px;
  color: rgba(255,255,255,.9);
  font: 900 .58rem "Nunito", sans-serif;
  left: 0;
  letter-spacing: .08em;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  z-index: 2;
}

.fragment.prime {
  background: url("assets/games/prime-crystals/sprites/asal-kristal-3.png") center/contain no-repeat;
  cursor: default;
}

.fragment.prime::after { content: ""; margin: 0; }
.fragment:hover,
.fragment:focus-visible { filter: brightness(1.08) drop-shadow(0 12px 13px rgba(17,45,62,.42)); outline: none; transform: translate(-50%, -54%) scale(1.04); }
.fragment.prime:hover { filter: drop-shadow(0 9px 10px rgba(17,45,62,.38)); transform: translate(-50%, -50%); }
.fragment.active { filter: drop-shadow(0 0 10px rgba(255,220,103,.96)) drop-shadow(0 10px 10px rgba(17,45,62,.38)); transform: translate(-50%, -50%) scale(1.12); }

.fragment.origin {
  background: url("assets/games/prime-crystals/sprites/crystal-ana-cekirdek.png") center/contain no-repeat;
  color: #493116;
  font-size: 1.75rem;
  height: 92px;
  text-shadow: 0 1px 2px rgba(255,247,197,.82), 0 2px 4px rgba(83,46,21,.24);
  width: 92px;
}

.fragment.origin.active {
  filter: drop-shadow(0 0 10px rgba(255,220,103,.72)) drop-shadow(0 10px 10px rgba(17,45,62,.3));
  transform: translate(-50%, -50%);
}

.active-crystal {
  background: rgba(224, 245, 241, .82);
  border: 1px solid rgba(73, 154, 150, .42);
  border-radius: 999px;
  clip-path: none;
  color: #315f62;
  filter: none;
  font: 900 .78rem "Nunito", sans-serif;
  height: auto;
  letter-spacing: .015em;
  margin: 15px auto 12px;
  padding: 8px 14px;
  text-shadow: none;
  width: fit-content;
}

@media (max-width: 620px) {
  .fragments { min-height: 280px; }
  .fragment { height: 92px; width: 84px; }
  .fragment-number { font-size: 1.42rem; }
  .prime-mark { bottom: 15px; font-size: .5rem; }
  .molecule-core { font-size: 1.45rem; height: 76px; width: 76px; }
  .molecule-core::before,
  .molecule-core::after { height: 102px; width: 102px; }
  .active-crystal { font-size: .75rem; height: auto; width: fit-content; }
  .fragment.origin { font-size: 1.45rem; height: 76px; width: 76px; }
}
