.star-border {
  isolation: isolate;
  border: 1px solid var(--capsule-border);
  border-radius: 999px;
  background: var(--capsule-surface);
  box-shadow: var(--capsule-shadow);
  color: #f5f2ec;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.star-border:hover:enabled, a.star-border:hover { border-color: #ffffff9c; background: #ffffff12; color: #fff; }
.star-border .star-border-track {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  overflow: visible;
  pointer-events: none;
  visibility: visible;
  opacity: .9;
  transition: opacity .2s ease, visibility .2s;
}
.star-border-track rect {
  x: .5px; y: .5px; fill: none; stroke: #fff; stroke-width: 1; stroke-linecap: butt;
  animation: star-border-orbit 4s linear infinite;
}
.star-border:disabled { cursor: default; }
.star-border:disabled .star-border-track { opacity: .2; }
@keyframes star-border-orbit {
  from { stroke-dashoffset: var(--star-start); }
  to { stroke-dashoffset: calc(var(--star-start) - 100px); }
}
@media (prefers-reduced-motion: reduce) {
  .star-border-track rect { animation: none; stroke-dashoffset: var(--star-start); }
}
