.card-spotlight {
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  border: 1px solid var(--line);
  background-color: color-mix(in oklab, var(--bg-card) 94%, transparent);
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.4),
    0 0 0 1px color-mix(in oklab, var(--accent) 7%, transparent) inset;
}

.card-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.card-spotlight:hover::before,
.card-spotlight:focus-within::before {
  opacity: 0.6;
}

.card-spotlight > * {
  position: relative;
  z-index: 1;
}
