Skip to content

A Claude Code skill that reverse-engineers any animation frame by frame, then proves the copy moves the same.

4.1 KB
Raw Blame
/* clerk.com "Bot Detection" card visual (module 647283), Tailwind classes resolved to plain CSS.
   Structure, sizes and colours copied from clerk.com's markup (.reanimate/clerk-bento/dom/bot-detection.html). */

.clerk-card--bot-detection .bd-root {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: calc(172 / 16 * 1rem);
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  background-color: var(--color-gray-900);
}
.clerk-card--bot-detection .bd-isolate { isolation: isolate; }

/* four concentric discs centred on the top edge, smallest on top */
.clerk-card--bot-detection .bd-radar {
  position: absolute;
  top: 0;
  left: 50%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 2147483647px;
}
.clerk-card--bot-detection .bd-radar--1 { z-index: 40; width: 8rem; background-color: #313136; }
.clerk-card--bot-detection .bd-radar--2 { z-index: 30; width: 12rem; background-color: #2d2d32; }
.clerk-card--bot-detection .bd-radar--3 { z-index: 20; width: 16rem; background-color: #29292e; }
.clerk-card--bot-detection .bd-radar--4 { z-index: 10; width: 20rem; background-color: #25252a; }

/* dotted rings on the disc edges (only the lower halves are inside the svg) */
.clerk-card--bot-detection .bd-rings {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 50;
  margin-left: -10rem;
  width: 20rem;
}

.clerk-card--bot-detection .bd-dot {
  position: absolute;
  margin-top: -0.125rem;
  margin-left: -0.125rem;
  width: 0.25rem;
  height: 0.25rem;
  border-radius: 2147483647px;
  background-color: var(--color-gray-600);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25), 0 1px rgb(255 255 255 / 0.1) inset;
}

/* two blurred triangles that hide everything outside a 90° cone below the top centre */
.clerk-card--bot-detection .bd-sidemask {
  position: absolute;
  top: -2rem;
  left: 50%;
  width: calc(500 / 16 * 1rem);
  margin-left: calc(500 / -2 / 16 * 1rem);
  /* clerk.com adds transform-gpu (translateZ(0)) here. Left out: with the overlay-blended beam painted after it,
     the extra compositor layer made the first frame after scrolling to the card render without the card's
     content in headless Chromium captures. Same pixels without it (compare-1). */
  fill: var(--color-gray-900);
  filter: blur(16px);
}

/* the beam: rotated about a pivot 76px above the top centre to point at the target */
.clerk-card--bot-detection .bd-spotlight {
  position: absolute;
  top: -0.6875rem;
  left: 50%;
  width: calc(232 / 16 * 1rem);
  margin-left: calc(232 / -2 / 16 * 1rem);
  transform-origin: 50% -4.0625rem;
  mix-blend-mode: overlay;
  filter: blur(16px);
}

.clerk-card--bot-detection .bd-vignette {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 1.375rem, rgb(33 33 38 / 0), rgb(33 33 38));
}

.clerk-card--bot-detection .bd-crosshair {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  margin-top: -0.75rem;
  margin-left: -0.75rem;
  width: 1.5rem;
  height: 1.5rem;
}
.clerk-card--bot-detection .bd-crosshair svg { width: 1.5rem; height: 1.5rem; }

.clerk-card--bot-detection .bd-ring {
  position: absolute;
  top: 0;
  left: 50%;
  margin-top: -0.625rem;
  margin-left: -0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 2147483647px;
  background-color: #13131680;
  box-shadow: 0 0 0 1px #ffffff12, 0 4px 4px #00000026;
}
/* clerk.com's [data-pulse]: never animated, so never visible */
.clerk-card--bot-detection .bd-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -1rem;
  margin-left: -1rem;
  width: 2rem;
  height: 2rem;
  scale: 75% 75%;
  border-radius: 2147483647px;
  opacity: 0;
  box-shadow: 0 0 0 1px var(--pulse-color) inset, 0 0 10px 2px var(--pulse-color);
}

.clerk-card--bot-detection .bd-active-dot {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  margin-top: -0.1875rem;
  margin-left: -0.1875rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 0.25rem;
  background-color: var(--color);
  box-shadow: 0 0 8px 1px rgb(107 231 255 / 0.3), 0 1px rgb(255 255 255 / 0.2) inset;
}