/* Spletnica Magic Ball Foundation */
.smb-magic-ball {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid #ead0f6;
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 24%, rgba(176, 89, 218, .12), transparent 32%),
    linear-gradient(135deg, #fff8fb, #fbf2ff);
  box-shadow: 0 12px 30px rgba(127, 41, 79, .06);
  overflow: hidden;
}

.smb-magic-ball__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.smb-magic-ball__art img {
  width: min(100%, 420px);
  height: auto;
  display: block;
  animation: smbBallFloat 4.4s ease-in-out infinite;
  filter: saturate(1.06);
}

.smb-magic-ball__orbit {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(165, 82, 210, .32);
  animation: smbOrbit 8s linear infinite;
}

.smb-magic-ball__orbit::before,
.smb-magic-ball__orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c56be5;
  box-shadow: 0 0 18px rgba(197, 107, 229, .65);
}

.smb-magic-ball__orbit::before { top: 12%; left: 18%; }
.smb-magic-ball__orbit::after { right: 16%; bottom: 14%; }

.smb-magic-ball__panel h2 {
  margin: 0 0 10px;
  color: #7f294f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05;
}

.smb-magic-ball__panel p {
  color: #6f6268;
  font-size: 16px;
  line-height: 1.6;
}

.smb-magic-ball__label {
  display: block;
  margin: 18px 0 8px;
  color: #9a2f62;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.smb-magic-ball__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #e7bdd1;
  border-radius: 12px;
  background: #fff;
  outline: none;
}

.smb-magic-ball__button {
  margin-top: 14px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid #b23fd0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ec3b85, #b23fd0);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.smb-magic-ball__answer {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #ead0f6;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: #4f3a50;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.35;
}

.smb-magic-ball__answer.is-loading {
  opacity: .72;
}

@keyframes smbBallFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
}

@keyframes smbOrbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .smb-magic-ball {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .smb-magic-ball__art img {
    width: min(100%, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .smb-magic-ball__art img,
  .smb-magic-ball__orbit {
    animation: none !important;
  }
}
