/* Dedicated difficulty-scale presentation. Colors come from difficulty-scale.js. */

/* Shared by Practice, dashboard, and Custom IDE; do not color the whole label. */
:root body :is(.difficulty-badge, .variant-difficulty, .variant-option-difficulty, .difficulty-text) {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  border-radius: 5px;
  box-shadow: none;
  padding: .17rem .4rem;
}

:root body :is(.difficulty-badge, .variant-difficulty, .variant-option-difficulty, .difficulty-text)::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--difficulty-color, #9da3af);
  box-shadow: 0 0 0 1px #ffffff30;
}

:root body .variant-difficulty {
  padding-inline: .4rem;
}
:root body .variant-difficulty .variant-difficulty-label {
  padding-inline: 0;
}

:root body .dashboard-difficulty {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: none;
  align-self: center;
}

:root body .detail-variant-link:not(.without-difficulty) {
  position: relative;
  padding-left: 1.65rem;
  border-left-width: 1px;
  border-left-color: var(--line);
}
:root body .detail-variant-link:not(.without-difficulty)::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: .65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--difficulty-color, #9da3af);
}
