.star-border {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.875rem 1.5rem;
  border: 0;
  border-radius: var(--star-border-radius);
  background: var(--star-border-surface);
  color: var(--star-border-text);
  font: inherit;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.star-border::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--star-border-thickness) var(--star-border-track);
  pointer-events: none;
}

.star-border__light {
  position: absolute;
  top: -48px;
  left: -48px;
  z-index: -1;
  width: calc(100% + 96px);
  height: calc(100% + 96px);
  pointer-events: none;
}

button.star-border,
a.star-border {
  cursor: pointer;
}

.star-border:focus-visible {
  outline: 2px solid var(--star-border-track);
  outline-offset: 3px;
}

.star-border:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.star-border--card {
  padding: 0;
  overflow: visible;
  cursor: pointer;
}

.star-border--card .star-border__light {
  z-index: 2;
}

.star-border--card-inner {
  position: relative;
  display: block;
}

.star-border--card img {
  display: block;
  width: min(360px, 86vw);
  height: auto;
  border-radius: inherit;
}

.star-border--powered {
  position: absolute;
  left: 50%;
  top: 15.5%;
  z-index: 1;
  margin: 0;
  transform: translateX(-50%);
  color: #2a7ec4;
  font-size: clamp(13px, 4.4vw, 16px);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}
