# Blueprint callout tooltip

> A blue technical drawing of a lamp: each hotspot draws a leader line to a card with material and measurements.

- Category: [Tooltips](https://library.aimran.es/components/tooltips)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-tip-blueprint-callout
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

A desk lamp drawn as white SVG lines on a blueprint grid, with a dimension line and a title block. Hover or focus one of the dashed hotspots and a yellow leader line draws itself from the part to a callout with its name, material and measurement in a monospaced font. The reveal uses :has() and stroke-dashoffset, with no JavaScript beyond the opening demo.

The main color is the paper blue and the second the pencil yellow of the leaders. Redraw the object in the SVG, then adjust the leader paths and the callout positions in percentages for furniture, machines or product anatomy pages.

## Code

### HTML

```html
<div class="uvq08-bpr"><svg class="dw" viewBox="0 0 180 130" aria-hidden="true"><rect x="30" y="110" width="52" height="8" rx="2"/><path d="M56 110L80 62"/><path class="sp" d="M62 106l5-3-1-5 5-3-1-5 5-3-1-5 5-3-1-5 5-3"/><circle cx="80" cy="62" r="4.5"/><path d="M80 62L124 36"/><circle cx="124" cy="36" r="3"/><path d="M121 31l14-9 22 25-12 10z"/><path class="lt" d="M147 58l6 9M139 61l2 10M153 53l9 4"/><path class="dm" d="M30 124h52M30 121v6M82 121v6"/><text x="56" y="129.5" text-anchor="middle">160</text><path class="ld l0" pathLength="1" d="M140 38L118 14H52"/><path class="ld l1" pathLength="1" d="M80 62L60 30H10"/><path class="ld l2" pathLength="1" d="M56 114L96 97H170"/></svg><button type="button" class="hs h0 pk" style="left:77.8%;top:29.2%" aria-label="Head" aria-describedby="uvq08-bpr-0"></button><span class="co c0" style="left:28.9%;top:12%" role="tooltip" id="uvq08-bpr-0"><b>Head</b><span>0.8 mm aluminum</span><span class="mm">Ø 140 mm</span></span><button type="button" class="hs h1" style="left:44.4%;top:47.7%" aria-label="Joint" aria-describedby="uvq08-bpr-1"></button><span class="co c1" style="left:5.6%;top:24.5%" role="tooltip" id="uvq08-bpr-1"><b>Joint</b><span>12 N spring</span><span class="mm">Turns 0 to 90°</span></span><button type="button" class="hs h2" style="left:31.1%;top:87.7%" aria-label="Base" aria-describedby="uvq08-bpr-2"></button><span class="co c2" style="left:54.4%;bottom:26%" role="tooltip" id="uvq08-bpr-2"><b>Base</b><span>Cast iron</span><span class="mm">Ø 160 mm · 1.2 kg</span></span><span class="tb" aria-hidden="true"><b>Lamp L-2</b><span>SCALE 1:5</span></span></div>
```

### CSS

```css
.uvq08-bpr {
  --c1: #0a4b8c;
  --c2: #ffd166;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq08-bpr {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 18em;
  height: 13em;
  border-radius: .5em;
  color: #fff;
  background: linear-gradient(rgba(255,255,255,.14) 1px,transparent 1px) -1px -1px/5em 5em,linear-gradient(90deg,rgba(255,255,255,.14) 1px,transparent 1px) -1px -1px/5em 5em,linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px) -1px -1px/1em 1em,linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px) -1px -1px/1em 1em,var(--c1);
  box-shadow: inset 0 0 0 .3em color-mix(in srgb,var(--c1) 80%,#000),inset 0 0 0 calc(.3em + 1px) rgba(255,255,255,.35),0 1.2em 2em -1em rgba(0,0,0,.55);
}

.uvq08-bpr .dw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255,255,255,.88);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uvq08-bpr .dw .sp,.uvq08-bpr .dw .lt {
  stroke: rgba(255,255,255,.55);
  stroke-width: .8;
}

.uvq08-bpr .dw .dm {
  stroke: rgba(255,255,255,.6);
  stroke-width: .6;
}

.uvq08-bpr .dw text {
  fill: #fff;
  stroke: none;
  font: 600 5.5px/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

.uvq08-bpr .ld {
  stroke: var(--c2);
  stroke-width: .9;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-bpr .hs {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  z-index: 2;
  width: 1.35em;
  height: 1.35em;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.85);
  background: linear-gradient(#fff,#fff) 50%/.55em 1.5px no-repeat,linear-gradient(#fff,#fff) 50%/1.5px .55em no-repeat,color-mix(in srgb,var(--c1) 70%,transparent);
  transition: all calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq08-bpr .hs:focus-visible {
  outline: 2px solid var(--c2);
  outline-offset: 3px;
}

.uvq08-bpr .hs:is(:hover,:focus-visible,.pk) {
  border: 1.5px solid var(--c2);
  rotate: 45deg;
  scale: 1.15;
  background: linear-gradient(var(--c2),var(--c2)) 50%/.55em 1.5px no-repeat,linear-gradient(var(--c2),var(--c2)) 50%/1.5px .55em no-repeat,color-mix(in srgb,var(--c2) 22%,var(--c1));
}

.uvq08-bpr .co {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: .1em;
  padding: .35em .5em;
  border: 1px solid var(--c2);
  font: 500 .6em/1.35 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  white-space: nowrap;
  background: color-mix(in srgb,var(--c1) 88%,#000);
  opacity: 0;
  transform: translateY(.25em);
  pointer-events: none;
  transition: all calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-bpr .co b {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c2);
}

.uvq08-bpr .co .mm {
  color: color-mix(in srgb,var(--c2) 40%,#fff);
}

.uvq08-bpr .tb {
  position: absolute;
  right: .7em;
  bottom: .7em;
  display: grid;
  padding: .3em .5em;
  border: 1px solid rgba(255,255,255,.55);
  font: 600 .55em/1.4 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.uvq08-bpr:has(.h0:is(:hover,:focus-visible,.pk)) .l0 {
  stroke-dashoffset: 0;
  transition-duration: calc(0.45s / var(--k));
}

.uvq08-bpr:has(.h0:is(:hover,:focus-visible,.pk)) .c0 {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s / var(--k));
}

.uvq08-bpr:has(.h1:is(:hover,:focus-visible,.pk)) .l1 {
  stroke-dashoffset: 0;
  transition-duration: calc(0.45s / var(--k));
}

.uvq08-bpr:has(.h1:is(:hover,:focus-visible,.pk)) .c1 {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s / var(--k));
}

.uvq08-bpr:has(.h2:is(:hover,:focus-visible,.pk)) .l2 {
  stroke-dashoffset: 0;
  transition-duration: calc(0.45s / var(--k));
}

.uvq08-bpr:has(.h2:is(:hover,:focus-visible,.pk)) .c2 {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s / var(--k));
}
```

### JavaScript

```js
document.querySelectorAll(".uvq08-bpr").forEach(el => {
  const unpk=()=>{el.classList.remove("pk");el.querySelectorAll(".pk").forEach(x=>x.classList.remove("pk"))};el.addEventListener("pointerover",unpk,{once:true});el.addEventListener("focusin",unpk,{once:true});
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq08-bpr {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 18em;
  height: 13em;
  border-radius: .5em;
  color: #fff;
  background: linear-gradient(rgba(255,255,255,.14) 1px,transparent 1px) -1px -1px/5em 5em,linear-gradient(90deg,rgba(255,255,255,.14) 1px,transparent 1px) -1px -1px/5em 5em,linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px) -1px -1px/1em 1em,linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px) -1px -1px/1em 1em,var(--c1);
  box-shadow: inset 0 0 0 .3em color-mix(in srgb,var(--c1) 80%,#000),inset 0 0 0 calc(.3em + 1px) rgba(255,255,255,.35),0 1.2em 2em -1em rgba(0,0,0,.55);
}

.uvq08-bpr .dw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255,255,255,.88);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uvq08-bpr .dw .sp,.uvq08-bpr .dw .lt {
  stroke: rgba(255,255,255,.55);
  stroke-width: .8;
}

.uvq08-bpr .dw .dm {
  stroke: rgba(255,255,255,.6);
  stroke-width: .6;
}

.uvq08-bpr .dw text {
  fill: #fff;
  stroke: none;
  font: 600 5.5px/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

.uvq08-bpr .ld {
  stroke: var(--c2);
  stroke-width: .9;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-bpr .hs {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  z-index: 2;
  width: 1.35em;
  height: 1.35em;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.85);
  background: linear-gradient(#fff,#fff) 50%/.55em 1.5px no-repeat,linear-gradient(#fff,#fff) 50%/1.5px .55em no-repeat,color-mix(in srgb,var(--c1) 70%,transparent);
  transition: all calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq08-bpr .hs:focus-visible {
  outline: 2px solid var(--c2);
  outline-offset: 3px;
}

.uvq08-bpr .hs:is(:hover,:focus-visible,.pk) {
  border: 1.5px solid var(--c2);
  rotate: 45deg;
  scale: 1.15;
  background: linear-gradient(var(--c2),var(--c2)) 50%/.55em 1.5px no-repeat,linear-gradient(var(--c2),var(--c2)) 50%/1.5px .55em no-repeat,color-mix(in srgb,var(--c2) 22%,var(--c1));
}

.uvq08-bpr .co {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: .1em;
  padding: .35em .5em;
  border: 1px solid var(--c2);
  font: 500 .6em/1.35 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  white-space: nowrap;
  background: color-mix(in srgb,var(--c1) 88%,#000);
  opacity: 0;
  transform: translateY(.25em);
  pointer-events: none;
  transition: all calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-bpr .co b {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c2);
}

.uvq08-bpr .co .mm {
  color: color-mix(in srgb,var(--c2) 40%,#fff);
}

.uvq08-bpr .tb {
  position: absolute;
  right: .7em;
  bottom: .7em;
  display: grid;
  padding: .3em .5em;
  border: 1px solid rgba(255,255,255,.55);
  font: 600 .55em/1.4 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.uvq08-bpr:has(.h0:is(:hover,:focus-visible,.pk)) .l0 {
  stroke-dashoffset: 0;
  transition-duration: calc(0.45s / var(--k));
}

.uvq08-bpr:has(.h0:is(:hover,:focus-visible,.pk)) .c0 {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s / var(--k));
}

.uvq08-bpr:has(.h1:is(:hover,:focus-visible,.pk)) .l1 {
  stroke-dashoffset: 0;
  transition-duration: calc(0.45s / var(--k));
}

.uvq08-bpr:has(.h1:is(:hover,:focus-visible,.pk)) .c1 {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s / var(--k));
}

.uvq08-bpr:has(.h2:is(:hover,:focus-visible,.pk)) .l2 {
  stroke-dashoffset: 0;
  transition-duration: calc(0.45s / var(--k));
}

.uvq08-bpr:has(.h2:is(:hover,:focus-visible,.pk)) .c2 {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s / var(--k));
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const unpk=()=>{el.classList.remove("pk");el.querySelectorAll(".pk").forEach(x=>x.classList.remove("pk"))};el.addEventListener("pointerover",unpk,{once:true});el.addEventListener("focusin",unpk,{once:true});
}

export default function TipBlueprintCallout() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#0a4b8c",
          "--c2": "#ffd166",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq08-bpr"><svg className="dw" viewBox="0 0 180 130" aria-hidden="true"><rect x="30" y="110" width="52" height="8" rx="2" /><path d="M56 110L80 62" /><path className="sp" d="M62 106l5-3-1-5 5-3-1-5 5-3-1-5 5-3-1-5 5-3" /><circle cx="80" cy="62" r="4.5" /><path d="M80 62L124 36" /><circle cx="124" cy="36" r="3" /><path d="M121 31l14-9 22 25-12 10z" /><path className="lt" d="M147 58l6 9M139 61l2 10M153 53l9 4" /><path className="dm" d="M30 124h52M30 121v6M82 121v6" /><text x="56" y="129.5" textAnchor="middle">160</text><path className="ld l0" pathLength="1" d="M140 38L118 14H52" /><path className="ld l1" pathLength="1" d="M80 62L60 30H10" /><path className="ld l2" pathLength="1" d="M56 114L96 97H170" /></svg><button type="button" className="hs h0 pk" style={{ left: "77.8%", top: "29.2%" }} aria-label="Head" aria-describedby="uvq08-bpr-0"></button><span className="co c0" style={{ left: "28.9%", top: "12%" }} role="tooltip" id="uvq08-bpr-0"><b>Head</b><span>0.8 mm aluminum</span><span className="mm">Ø 140 mm</span></span><button type="button" className="hs h1" style={{ left: "44.4%", top: "47.7%" }} aria-label="Joint" aria-describedby="uvq08-bpr-1"></button><span className="co c1" style={{ left: "5.6%", top: "24.5%" }} role="tooltip" id="uvq08-bpr-1"><b>Joint</b><span>12 N spring</span><span className="mm">Turns 0 to 90°</span></span><button type="button" className="hs h2" style={{ left: "31.1%", top: "87.7%" }} aria-label="Base" aria-describedby="uvq08-bpr-2"></button><span className="co c2" style={{ left: "54.4%", bottom: "26%" }} role="tooltip" id="uvq08-bpr-2"><b>Base</b><span>Cast iron</span><span className="mm">Ø 160 mm · 1.2 kg</span></span><span className="tb" aria-hidden="true"><b>Lamp L-2</b><span>SCALE 1:5</span></span></div>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Blueprint callout tooltip” block (Tooltips) from AIMRAN Library to my project.

## What it is
A blue technical drawing of a lamp: each hotspot draws a leader line to a card with material and measurements.

## Chosen settings
- Main color: #0a4b8c
- Secondary color: #ffd166
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Lámpara L-2"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq08-bpr {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 18em;
  height: 13em;
  border-radius: .5em;
  color: #fff;
  background: linear-gradient(rgba(255,255,255,.14) 1px,transparent 1px) -1px -1px/5em 5em,linear-gradient(90deg,rgba(255,255,255,.14) 1px,transparent 1px) -1px -1px/5em 5em,linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px) -1px -1px/1em 1em,linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px) -1px -1px/1em 1em,var(--c1);
  box-shadow: inset 0 0 0 .3em color-mix(in srgb,var(--c1) 80%,#000),inset 0 0 0 calc(.3em + 1px) rgba(255,255,255,.35),0 1.2em 2em -1em rgba(0,0,0,.55);
}

.uvq08-bpr .dw {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255,255,255,.88);
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uvq08-bpr .dw .sp,.uvq08-bpr .dw .lt {
  stroke: rgba(255,255,255,.55);
  stroke-width: .8;
}

.uvq08-bpr .dw .dm {
  stroke: rgba(255,255,255,.6);
  stroke-width: .6;
}

.uvq08-bpr .dw text {
  fill: #fff;
  stroke: none;
  font: 600 5.5px/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
}

.uvq08-bpr .ld {
  stroke: var(--c2);
  stroke-width: .9;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-bpr .hs {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  z-index: 2;
  width: 1.35em;
  height: 1.35em;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.85);
  background: linear-gradient(#fff,#fff) 50%/.55em 1.5px no-repeat,linear-gradient(#fff,#fff) 50%/1.5px .55em no-repeat,color-mix(in srgb,var(--c1) 70%,transparent);
  transition: all calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq08-bpr .hs:focus-visible {
  outline: 2px solid var(--c2);
  outline-offset: 3px;
}

.uvq08-bpr .hs:is(:hover,:focus-visible,.pk) {
  border: 1.5px solid var(--c2);
  rotate: 45deg;
  scale: 1.15;
  background: linear-gradient(var(--c2),var(--c2)) 50%/.55em 1.5px no-repeat,linear-gradient(var(--c2),var(--c2)) 50%/1.5px .55em no-repeat,color-mix(in srgb,var(--c2) 22%,var(--c1));
}

.uvq08-bpr .co {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: .1em;
  padding: .35em .5em;
  border: 1px solid var(--c2);
  font: 500 .6em/1.35 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  white-space: nowrap;
  background: color-mix(in srgb,var(--c1) 88%,#000);
  opacity: 0;
  transform: translateY(.25em);
  pointer-events: none;
  transition: all calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-bpr .co b {
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c2);
}

.uvq08-bpr .co .mm {
  color: color-mix(in srgb,var(--c2) 40%,#fff);
}

.uvq08-bpr .tb {
  position: absolute;
  right: .7em;
  bottom: .7em;
  display: grid;
  padding: .3em .5em;
  border: 1px solid rgba(255,255,255,.55);
  font: 600 .55em/1.4 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.uvq08-bpr:has(.h0:is(:hover,:focus-visible,.pk)) .l0 {
  stroke-dashoffset: 0;
  transition-duration: calc(0.45s / var(--k));
}

.uvq08-bpr:has(.h0:is(:hover,:focus-visible,.pk)) .c0 {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s / var(--k));
}

.uvq08-bpr:has(.h1:is(:hover,:focus-visible,.pk)) .l1 {
  stroke-dashoffset: 0;
  transition-duration: calc(0.45s / var(--k));
}

.uvq08-bpr:has(.h1:is(:hover,:focus-visible,.pk)) .c1 {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s / var(--k));
}

.uvq08-bpr:has(.h2:is(:hover,:focus-visible,.pk)) .l2 {
  stroke-dashoffset: 0;
  transition-duration: calc(0.45s / var(--k));
}

.uvq08-bpr:has(.h2:is(:hover,:focus-visible,.pk)) .c2 {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.3s / var(--k));
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const unpk=()=>{el.classList.remove("pk");el.querySelectorAll(".pk").forEach(x=>x.classList.remove("pk"))};el.addEventListener("pointerover",unpk,{once:true});el.addEventListener("focusin",unpk,{once:true});
}

export default function TipBlueprintCallout() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#0a4b8c",
          "--c2": "#ffd166",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq08-bpr"><svg className="dw" viewBox="0 0 180 130" aria-hidden="true"><rect x="30" y="110" width="52" height="8" rx="2" /><path d="M56 110L80 62" /><path className="sp" d="M62 106l5-3-1-5 5-3-1-5 5-3-1-5 5-3-1-5 5-3" /><circle cx="80" cy="62" r="4.5" /><path d="M80 62L124 36" /><circle cx="124" cy="36" r="3" /><path d="M121 31l14-9 22 25-12 10z" /><path className="lt" d="M147 58l6 9M139 61l2 10M153 53l9 4" /><path className="dm" d="M30 124h52M30 121v6M82 121v6" /><text x="56" y="129.5" textAnchor="middle">160</text><path className="ld l0" pathLength="1" d="M140 38L118 14H52" /><path className="ld l1" pathLength="1" d="M80 62L60 30H10" /><path className="ld l2" pathLength="1" d="M56 114L96 97H170" /></svg><button type="button" className="hs h0 pk" style={{ left: "77.8%", top: "29.2%" }} aria-label="Head" aria-describedby="uvq08-bpr-0"></button><span className="co c0" style={{ left: "28.9%", top: "12%" }} role="tooltip" id="uvq08-bpr-0"><b>Head</b><span>0.8 mm aluminum</span><span className="mm">Ø 140 mm</span></span><button type="button" className="hs h1" style={{ left: "44.4%", top: "47.7%" }} aria-label="Joint" aria-describedby="uvq08-bpr-1"></button><span className="co c1" style={{ left: "5.6%", top: "24.5%" }} role="tooltip" id="uvq08-bpr-1"><b>Joint</b><span>12 N spring</span><span className="mm">Turns 0 to 90°</span></span><button type="button" className="hs h2" style={{ left: "31.1%", top: "87.7%" }} aria-label="Base" aria-describedby="uvq08-bpr-2"></button><span className="co c2" style={{ left: "54.4%", bottom: "26%" }} role="tooltip" id="uvq08-bpr-2"><b>Base</b><span>Cast iron</span><span className="mm">Ø 160 mm · 1.2 kg</span></span><span className="tb" aria-hidden="true"><b>Lamp L-2</b><span>SCALE 1:5</span></span></div>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
