/* Shared workspace, onboarding, and landing score arc presentation. */
.score-rings-graphic {
  position: relative;
  display: grid;
  width: min(100%, 264px);
  grid-template-rows: auto 48px;
  place-items: center;
}

.score-rings-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.score-ring-outline {
  fill: none;
  stroke: rgb(250 248 239 / 88%);
  stroke-width: 28;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 3px rgb(43 50 16 / 12%));
  pointer-events: none;
}

.score-ring-group {
  cursor: default;
  outline: none;
  transition:
    opacity 160ms ease,
    filter 160ms ease;
}

.score-ring-track,
.score-ring-progress {
  fill: none;
  stroke-width: 24;
  transition:
    stroke-dasharray 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    stroke-width 160ms ease,
    opacity 160ms ease,
    filter 160ms ease;
}

.score-ring-track {
  stroke: rgb(43 50 16 / 6%);
  stroke-linecap: round;
  pointer-events: stroke;
}

.score-ring-progress {
  stroke: currentColor;
  stroke-dasharray: 0 100;
  stroke-linecap: round;
  pointer-events: none;
}

.score-ring-pursuit {
  color: var(--brand-green, #436341);
}

.score-ring-rules {
  color: #d0e000;
}

.score-ring-ai {
  color: var(--brand-lavender, #ccb8d3);
}

.score-ring-group.is-unavailable .score-ring-progress {
  opacity: 0;
}

.score-ring-group.is-unavailable .score-ring-track {
  stroke-dasharray: none;
  stroke: rgb(43 50 16 / 7%);
}

.score-ring-group.is-active .score-ring-progress {
  stroke-width: 26;
  filter: drop-shadow(0 2px 3px rgb(43 50 16 / 22%));
}

.score-ring-group.is-active .score-ring-track {
  stroke-width: 25;
  stroke: rgb(43 50 16 / 18%);
}

.score-rings[data-active] .score-ring-group:not(.is-active, .is-unavailable) .score-ring-progress {
  stroke: rgb(181 188 174 / 82%);
  opacity: 1;
  filter: none;
}

.score-ring-readout {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: grid;
  width: 76px;
  min-height: 56px;
  place-items: center;
  align-content: center;
  gap: 0;
  margin: 0;
  color: var(--brand-green, #436341);
  line-height: 1;
  text-align: center;
  pointer-events: none;
  text-shadow:
    0 1px 0 rgb(250 248 239 / 92%),
    0 0 5px rgb(250 248 239 / 92%);
}

.score-ring-readout strong {
  font-family: "Agrandir Tight", Arial, sans-serif;
  font-size: 2.65rem;
  line-height: 1;
  font-weight: 800;
}

.score-ring-readout[data-state="unavailable"] strong {
  font-size: 0.68rem;
}

.workspace-score-ring-tooltip { grid-row: 2; align-self: start; margin-top: 8px; box-sizing: border-box; z-index: 2; white-space: normal; width: max-content; max-width: 100%; text-align: center; padding: 6px 10px; border-radius: 6px; background: #436341; color: #fff; font: 700 .78rem/1.4 Arial, sans-serif; pointer-events: none; box-shadow: 0 4px 12px rgb(43 50 16 / 15%); }
.workspace-score-ring-tooltip[hidden] { display: none; }
.score-rings[data-active="rules"] .workspace-score-ring-tooltip { background: #d0e000; color: #2b3210; }
.score-rings[data-active="ai"] .workspace-score-ring-tooltip { background: #ccb8d3; color: #2b3210; }

@media (prefers-reduced-motion: reduce) {
  .score-ring-group, .score-ring-track, .score-ring-progress { transition: none; }
}
