/* Shared guide card — same look on calculator + compatibility */
.matrix-guide,
.compatibility-guide {
  width: min(900px, 100%);
  margin: 0.35rem auto 0.85rem;
}

.matrix-guide .sphere-card--guide,
.compatibility-guide .sphere-card--guide {
  border-color: transparent !important;
  background:
    radial-gradient(ellipse 90% 120% at 8% 0%, rgba(255, 150, 200, 0.18), transparent 55%),
    radial-gradient(ellipse 80% 100% at 92% 100%, rgba(180, 150, 255, 0.16), transparent 50%),
    rgba(28, 18, 48, 0.55) !important;
  box-shadow: var(--glass-highlight), 0 8px 32px rgba(60, 30, 100, 0.18) !important;
}

.matrix-guide .sphere-card--guide::before,
.compatibility-guide .sphere-card--guide::before {
  opacity: 1;
  background: conic-gradient(
    from 180deg at 50% 50%,
    #ffb3b3,
    #ffd9b3,
    #ffff99,
    #b3ffb3,
    #b3b3ff,
    #d9b3ff,
    #ffb3b3
  );
}

.matrix-guide .sphere-card--guide.is-open,
.compatibility-guide .sphere-card--guide.is-open {
  box-shadow: var(--glass-highlight), 0 10px 36px rgba(100, 60, 160, 0.22) !important;
}

.matrix-guide .sphere-button,
.compatibility-guide .sphere-button {
  padding-right: 1.35em;
}

.matrix-guide__title-row,
.compatibility-guide__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em 0.7em;
}

.matrix-guide__badge,
.compatibility-guide__badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.18em 0.65em;
  border-radius: 999px;
  border: 1px solid rgba(255, 160, 205, 0.4);
  background: linear-gradient(135deg, rgba(255, 150, 200, 0.22), rgba(210, 150, 255, 0.18));
  color: #ffc2dc;
  font-size: 0.68em;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.matrix-guide .sphere-button__label,
.compatibility-guide .sphere-button__label {
  background: linear-gradient(90deg, #ffb3d4, #f1e7f8 45%, #d9c4ff);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
}

.matrix-guide .sphere-button__hint,
.compatibility-guide .sphere-button__hint {
  color: rgba(255, 190, 220, 0.78) !important;
}

.matrix-guide .content-inner a,
.compatibility-guide .content-inner a {
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg,
    #ffb3b3,
    #ffd9b3,
    #ffff99,
    #b3ffb3,
    #b3b3ff,
    #d9b3ff,
    #ffb3b3);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}

.matrix-guide .content-inner a:hover,
.matrix-guide .content-inner a:focus-visible,
.compatibility-guide .content-inner a:hover,
.compatibility-guide .content-inner a:focus-visible {
  filter: brightness(1.12);
  outline: none;
}

.matrix-guide__heading,
.compatibility-guide__heading {
  margin: 1.15em 0 0.65em !important;
  color: #f3eaf8 !important;
  -webkit-text-fill-color: #f3eaf8 !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  animation: none !important;
  font-weight: 700 !important;
  font-size: 1.02em;
  line-height: 1.45;
}

.matrix-guide__heading:first-child,
.compatibility-guide__heading:first-child {
  margin-top: 0 !important;
}

.matrix-guide .sphere-content .content-inner > p:first-child:not(.matrix-guide__heading):not(.compatibility-guide__heading),
.compatibility-guide .sphere-content .content-inner > p:first-child:not(.matrix-guide__heading):not(.compatibility-guide__heading),
.sphere-card .sphere-content .content-inner > p:first-child:not(.matrix-guide__heading):not(.compatibility-guide__heading),
.sphere-content .content-inner > p:first-child:not(.matrix-guide__heading):not(.compatibility-guide__heading) {
  font-weight: 700 !important;
  background: linear-gradient(90deg, #ffd8d8, #ffe8d0, #fff8c2, #d8ffd8, #d8dcff, #ead8ff, #ffd8ee);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  animation: gradient-shift 7s ease-in-out infinite;
}

.matrix-guide .sphere-content .content-inner > p:first-child:not(.matrix-guide__heading):not(.compatibility-guide__heading) *,
.compatibility-guide .sphere-content .content-inner > p:first-child:not(.matrix-guide__heading):not(.compatibility-guide__heading) *,
.sphere-card .sphere-content .content-inner > p:first-child:not(.matrix-guide__heading):not(.compatibility-guide__heading) *,
.sphere-content .content-inner > p:first-child:not(.matrix-guide__heading):not(.compatibility-guide__heading) * {
  font-weight: inherit !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

@media (max-width: 768px) {
  .matrix-guide,
  .compatibility-guide {
    margin: 0.25rem auto 0.65rem;
  }
}
