/* Keep the touch target; make only the favorite mark quieter. */
:is(.catalog-star-button, .project-favorite-button) {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
  isolation: isolate;
}

.favorite-star-visual {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  line-height: 1;
  pointer-events: none;
}

.favorite-star-glyph {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
  transform-origin: center;
}

.favorite-star-visual[data-selected="true"] > .favorite-star-glyph {
  fill: currentColor;
}

.favorite-star-burst {
  position: absolute;
  width: 44px;
  height: 44px;
  inset: -12px;
  display: block;
  color: var(--favorite);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0;
  transform-origin: center;
  pointer-events: none;
}

.favorite-star-ring { opacity: .28; }
.favorite-star-sparks { opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  .favorite-star-glyph, .favorite-star-burst { animation: none !important; transition: none !important; }
  .favorite-star-burst { visibility: hidden; }
}

@media (forced-colors: active) {
  .favorite-star-burst { display: none; }
  .favorite-star-glyph { forced-color-adjust: auto; }
}
