# Orion star chart tooltip

> A star chart of Orion: each star opens a card with magnitude, distance and type, and its constellation lines light up.

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

## Where to use it

A winter sky chart of Orion drawn with CSS: a faint grid, scattered background stars, a pink nebula and the seven main stars, each sized by brightness and tinted by its color. Hover or focus a star and a glassy card shows its magnitude, distance in light years and spectral type, while the constellation lines that touch it light up through :has().

The main color sets the highlighted lines and focus ring, the second the night sky. Swap the star list for another constellation, a planet map or seats in a planetarium, keeping positions in percentages so the chart scales.

## Code

### HTML

```html
<div class="uvq08-sky" role="group" aria-label="Orion"><div class="ch"><svg class="ln" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true"><line class="a0 a1" x1="30" y1="20" x2="68" y2="25"/><line class="a0 a2" x1="30" y1="20" x2="41" y2="55"/><line class="a1 a4" x1="68" y1="25" x2="61" y2="47"/><line class="a2 a3" x1="41" y1="55" x2="51" y2="51"/><line class="a3 a4" x1="51" y1="51" x2="61" y2="47"/><line class="a2 a5" x1="41" y1="55" x2="35" y2="84"/><line class="a4 a6" x1="61" y1="47" x2="72" y2="80"/></svg><i class="bg" style="left:0.0%;top:55.2%;--d:0.14em;--o:0.49"></i><i class="bg" style="left:38.5%;top:91.2%;--d:0.12em;--o:0.46"></i><i class="bg" style="left:34.1%;top:23.7%;--d:0.13em;--o:0.31"></i><i class="bg" style="left:43.6%;top:93.3%;--d:0.14em;--o:0.45"></i><i class="bg" style="left:12.1%;top:20.8%;--d:0.13em;--o:0.70"></i><i class="bg" style="left:27.2%;top:54.3%;--d:0.21em;--o:0.36"></i><i class="bg" style="left:84.7%;top:22.7%;--d:0.15em;--o:0.63"></i><i class="bg" style="left:23.2%;top:93.2%;--d:0.16em;--o:0.59"></i><i class="bg" style="left:8.6%;top:28.2%;--d:0.20em;--o:0.73"></i><i class="bg" style="left:8.1%;top:42.3%;--d:0.19em;--o:0.73"></i><i class="bg" style="left:67.0%;top:52.9%;--d:0.15em;--o:0.47"></i><i class="bg" style="left:59.1%;top:96.3%;--d:0.09em;--o:0.74"></i><i class="bg" style="left:36.3%;top:78.3%;--d:0.18em;--o:0.75"></i><i class="bg" style="left:42.0%;top:42.2%;--d:0.18em;--o:0.55"></i><i class="bg" style="left:13.6%;top:23.7%;--d:0.16em;--o:0.62"></i><i class="bg" style="left:42.6%;top:62.2%;--d:0.21em;--o:0.61"></i><i class="bg" style="left:63.9%;top:33.7%;--d:0.11em;--o:0.52"></i><i class="bg" style="left:59.0%;top:99.1%;--d:0.15em;--o:0.49"></i><i class="bg" style="left:48.1%;top:67.3%;--d:0.12em;--o:0.57"></i><i class="bg" style="left:40.6%;top:35.2%;--d:0.16em;--o:0.70"></i><i class="bg" style="left:35.1%;top:38.5%;--d:0.14em;--o:0.59"></i><i class="bg" style="left:44.3%;top:99.8%;--d:0.20em;--o:0.59"></i><i class="bg" style="left:98.5%;top:99.1%;--d:0.12em;--o:0.44"></i><i class="bg" style="left:47.7%;top:85.8%;--d:0.21em;--o:0.72"></i><i class="bg" style="left:12.6%;top:72.1%;--d:0.12em;--o:0.41"></i><i class="bg" style="left:50.7%;top:63.4%;--d:0.19em;--o:0.71"></i><i class="bg" style="left:15.0%;top:43.5%;--d:0.17em;--o:0.75"></i><i class="bg" style="left:43.0%;top:45.9%;--d:0.19em;--o:0.40"></i><i class="bg" style="left:97.4%;top:5.0%;--d:0.20em;--o:0.67"></i><i class="bg" style="left:31.4%;top:74.4%;--d:0.12em;--o:0.56"></i><i class="bg" style="left:45.7%;top:41.4%;--d:0.09em;--o:0.39"></i><i class="bg" style="left:72.6%;top:16.5%;--d:0.13em;--o:0.54"></i><i class="bg" style="left:88.4%;top:57.4%;--d:0.21em;--o:0.60"></i><i class="bg" style="left:5.9%;top:39.6%;--d:0.14em;--o:0.53"></i><i class="nb" aria-hidden="true"></i><button type="button" class="st s0 dn hl pk" style="left:30%;top:20%;--z:1.05em;--c:#ffab73;--i:0" aria-label="Betelgeuse" aria-describedby="uvq08-sky-0"><span class="tt" role="tooltip" id="uvq08-sky-0"><b>Betelgeuse<i>M1</i></b><span class="r"><em>Magnitude</em>0,5</span><span class="r"><em>Distance</em>548 light years</span></span></button><button type="button" class="st s1 dn hr" style="left:68%;top:25%;--z:0.78em;--c:#d6e4ff;--i:1" aria-label="Bellatrix" aria-describedby="uvq08-sky-1"><span class="tt" role="tooltip" id="uvq08-sky-1"><b>Bellatrix<i>B2</i></b><span class="r"><em>Magnitude</em>1,6</span><span class="r"><em>Distance</em>250 light years</span></span></button><button type="button" class="st s2 up hc" style="left:41%;top:55%;--z:0.74em;--c:#dce8ff;--i:2" aria-label="Alnitak" aria-describedby="uvq08-sky-2"><span class="tt" role="tooltip" id="uvq08-sky-2"><b>Alnitak<i>O9</i></b><span class="r"><em>Magnitude</em>1,8</span><span class="r"><em>Distance</em>1,260 light years</span></span></button><button type="button" class="st s3 up hc" style="left:51%;top:51%;--z:0.8em;--c:#dce8ff;--i:3" aria-label="Alnilam" aria-describedby="uvq08-sky-3"><span class="tt" role="tooltip" id="uvq08-sky-3"><b>Alnilam<i>B0</i></b><span class="r"><em>Magnitude</em>1,7</span><span class="r"><em>Distance</em>1,980 light years</span></span></button><button type="button" class="st s4 up hc" style="left:61%;top:47%;--z:0.68em;--c:#dce8ff;--i:4" aria-label="Mintaka" aria-describedby="uvq08-sky-4"><span class="tt" role="tooltip" id="uvq08-sky-4"><b>Mintaka<i>O9</i></b><span class="r"><em>Magnitude</em>2,2</span><span class="r"><em>Distance</em>1,200 light years</span></span></button><button type="button" class="st s5 up hc" style="left:35%;top:84%;--z:0.74em;--c:#d6e4ff;--i:5" aria-label="Saiph" aria-describedby="uvq08-sky-5"><span class="tt" role="tooltip" id="uvq08-sky-5"><b>Saiph<i>B0</i></b><span class="r"><em>Magnitude</em>2,1</span><span class="r"><em>Distance</em>650 light years</span></span></button><button type="button" class="st s6 up hr" style="left:72%;top:80%;--z:1.05em;--c:#bcd4ff;--i:6" aria-label="Rigel" aria-describedby="uvq08-sky-6"><span class="tt" role="tooltip" id="uvq08-sky-6"><b>Rigel<i>B8</i></b><span class="r"><em>Magnitude</em>0,1</span><span class="r"><em>Distance</em>860 light years</span></span></button><span class="tl" aria-hidden="true"><b>Orion</b><span>Winter sky chart</span></span></div></div>
```

### CSS

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

.uvq08-sky {
  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;
}

.uvq08-sky .ch {
  position: relative;
  width: 17em;
  height: 13em;
  border-radius: 1.2em;
  background: linear-gradient(rgba(170,190,255,.06) 1px,transparent 1px) 0 0/100% 2.6em,linear-gradient(90deg,rgba(170,190,255,.06) 1px,transparent 1px) 0 0/2.6em 100%,radial-gradient(120% 90% at 50% 40%,color-mix(in srgb,var(--c2) 60%,#3b4c8f),var(--c2) 70%);
  box-shadow: inset 0 0 0 1px rgba(170,190,255,.12),0 1.2em 2em -1em rgba(0,0,0,.6);
}

.uvq08-sky .ln {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.uvq08-sky .ln line {
  stroke: rgba(180,200,255,.28);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),stroke-width calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-sky .bg {
  position: absolute;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: #fff;
  opacity: var(--o);
}

.uvq08-sky .nb {
  position: absolute;
  left: 46%;
  top: 66%;
  width: 2.6em;
  height: 2em;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side,rgba(255,140,190,.42),rgba(140,120,255,.14) 60%,transparent);
  filter: blur(2px);
}

.uvq08-sky .st {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  translate: -50% -50%;
  border-radius: 50%;
}

.uvq08-sky .st::before {
  content: "";
  width: var(--z);
  height: var(--z);
  border-radius: 50%;
  background: radial-gradient(circle,#fff 0 25%,var(--c) 45%,transparent 72%);
  box-shadow: 0 0 .6em .1em color-mix(in srgb,var(--c) 55%,transparent);
  animation: uvq08-sky-tw calc(3s / var(--k)) ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
}

.uvq08-sky .st::after {
  content: "";
  position: absolute;
  inset: .15em;
  border-radius: 50%;
  border: 1px solid var(--c1);
  opacity: 0;
  transform: scale(.4);
  transition: all calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq08-sky .st:active::before {
  transform: scale(.8);
}

.uvq08-sky .st:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

.uvq08-sky .st:is(:hover,:focus-visible,.pk) {
  z-index: 4;
}

.uvq08-sky .st:is(:hover,:focus-visible,.pk)::after {
  opacity: 1;
  transform: none;
}

.uvq08-sky .tt {
  position: absolute;
  display: grid;
  gap: .2em;
  width: max-content;
  padding: .55em .75em;
  border-radius: .6em;
  font-size: .72em;
  line-height: 1.3;
  text-align: left;
  color: #e8eeff;
  background: rgba(10,16,40,.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(160,190,255,.3),0 .8em 1.4em -.6em rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(.3em);
  transition: all calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-sky .up .tt {
  bottom: calc(100% + .2em);
}

.uvq08-sky .dn .tt {
  top: calc(100% + .2em);
  transform: translateY(-.3em);
}

.uvq08-sky .hc .tt {
  left: 50%;
  translate: -50% 0;
}

.uvq08-sky .hl .tt {
  left: 0;
}

.uvq08-sky .hr .tt {
  right: 0;
}

.uvq08-sky .tt b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8em;
  font-size: 1.15em;
}

.uvq08-sky .tt b i {
  padding: .1em .4em;
  border-radius: .3em;
  font-size: .68em;
  font-style: normal;
  color: #0b1430;
  background: var(--c);
}

.uvq08-sky .r {
  display: flex;
  justify-content: space-between;
  gap: 1.2em;
  font-variant-numeric: tabular-nums;
}

.uvq08-sky .r em {
  font-style: normal;
  opacity: .65;
}

.uvq08-sky .st:is(:hover,:focus-visible,.pk) .tt {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.uvq08-sky:has(.s0:is(:hover,:focus-visible,.pk)) .a0,.uvq08-sky:has(.s1:is(:hover,:focus-visible,.pk)) .a1,.uvq08-sky:has(.s2:is(:hover,:focus-visible,.pk)) .a2,.uvq08-sky:has(.s3:is(:hover,:focus-visible,.pk)) .a3,.uvq08-sky:has(.s4:is(:hover,:focus-visible,.pk)) .a4,.uvq08-sky:has(.s5:is(:hover,:focus-visible,.pk)) .a5,.uvq08-sky:has(.s6:is(:hover,:focus-visible,.pk)) .a6 {
  stroke: var(--c1);
  stroke-width: 1.8;
}

.uvq08-sky .tl {
  position: absolute;
  left: .9em;
  bottom: .8em;
  display: grid;
  color: #cfd9ff;
  pointer-events: none;
}

.uvq08-sky .tl b {
  font: italic 600 1.15em/1.2 Georgia,"Times New Roman",serif;
  letter-spacing: .04em;
}

.uvq08-sky .tl span {
  font-size: .58em;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .65;
}

@keyframes uvq08-sky-tw {
  50% {
    opacity: .75;
    transform: scale(.86);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq08-sky,.uvq08-sky *,.uvq08-sky *::before,.uvq08-sky *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq08-sky").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-sky {
  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;
}

.uvq08-sky .ch {
  position: relative;
  width: 17em;
  height: 13em;
  border-radius: 1.2em;
  background: linear-gradient(rgba(170,190,255,.06) 1px,transparent 1px) 0 0/100% 2.6em,linear-gradient(90deg,rgba(170,190,255,.06) 1px,transparent 1px) 0 0/2.6em 100%,radial-gradient(120% 90% at 50% 40%,color-mix(in srgb,var(--c2) 60%,#3b4c8f),var(--c2) 70%);
  box-shadow: inset 0 0 0 1px rgba(170,190,255,.12),0 1.2em 2em -1em rgba(0,0,0,.6);
}

.uvq08-sky .ln {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.uvq08-sky .ln line {
  stroke: rgba(180,200,255,.28);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),stroke-width calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-sky .bg {
  position: absolute;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: #fff;
  opacity: var(--o);
}

.uvq08-sky .nb {
  position: absolute;
  left: 46%;
  top: 66%;
  width: 2.6em;
  height: 2em;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side,rgba(255,140,190,.42),rgba(140,120,255,.14) 60%,transparent);
  filter: blur(2px);
}

.uvq08-sky .st {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  translate: -50% -50%;
  border-radius: 50%;
}

.uvq08-sky .st::before {
  content: "";
  width: var(--z);
  height: var(--z);
  border-radius: 50%;
  background: radial-gradient(circle,#fff 0 25%,var(--c) 45%,transparent 72%);
  box-shadow: 0 0 .6em .1em color-mix(in srgb,var(--c) 55%,transparent);
  animation: uvq08-sky-tw calc(3s / var(--k)) ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
}

.uvq08-sky .st::after {
  content: "";
  position: absolute;
  inset: .15em;
  border-radius: 50%;
  border: 1px solid var(--c1);
  opacity: 0;
  transform: scale(.4);
  transition: all calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq08-sky .st:active::before {
  transform: scale(.8);
}

.uvq08-sky .st:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

.uvq08-sky .st:is(:hover,:focus-visible,.pk) {
  z-index: 4;
}

.uvq08-sky .st:is(:hover,:focus-visible,.pk)::after {
  opacity: 1;
  transform: none;
}

.uvq08-sky .tt {
  position: absolute;
  display: grid;
  gap: .2em;
  width: max-content;
  padding: .55em .75em;
  border-radius: .6em;
  font-size: .72em;
  line-height: 1.3;
  text-align: left;
  color: #e8eeff;
  background: rgba(10,16,40,.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(160,190,255,.3),0 .8em 1.4em -.6em rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(.3em);
  transition: all calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-sky .up .tt {
  bottom: calc(100% + .2em);
}

.uvq08-sky .dn .tt {
  top: calc(100% + .2em);
  transform: translateY(-.3em);
}

.uvq08-sky .hc .tt {
  left: 50%;
  translate: -50% 0;
}

.uvq08-sky .hl .tt {
  left: 0;
}

.uvq08-sky .hr .tt {
  right: 0;
}

.uvq08-sky .tt b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8em;
  font-size: 1.15em;
}

.uvq08-sky .tt b i {
  padding: .1em .4em;
  border-radius: .3em;
  font-size: .68em;
  font-style: normal;
  color: #0b1430;
  background: var(--c);
}

.uvq08-sky .r {
  display: flex;
  justify-content: space-between;
  gap: 1.2em;
  font-variant-numeric: tabular-nums;
}

.uvq08-sky .r em {
  font-style: normal;
  opacity: .65;
}

.uvq08-sky .st:is(:hover,:focus-visible,.pk) .tt {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.uvq08-sky:has(.s0:is(:hover,:focus-visible,.pk)) .a0,.uvq08-sky:has(.s1:is(:hover,:focus-visible,.pk)) .a1,.uvq08-sky:has(.s2:is(:hover,:focus-visible,.pk)) .a2,.uvq08-sky:has(.s3:is(:hover,:focus-visible,.pk)) .a3,.uvq08-sky:has(.s4:is(:hover,:focus-visible,.pk)) .a4,.uvq08-sky:has(.s5:is(:hover,:focus-visible,.pk)) .a5,.uvq08-sky:has(.s6:is(:hover,:focus-visible,.pk)) .a6 {
  stroke: var(--c1);
  stroke-width: 1.8;
}

.uvq08-sky .tl {
  position: absolute;
  left: .9em;
  bottom: .8em;
  display: grid;
  color: #cfd9ff;
  pointer-events: none;
}

.uvq08-sky .tl b {
  font: italic 600 1.15em/1.2 Georgia,"Times New Roman",serif;
  letter-spacing: .04em;
}

.uvq08-sky .tl span {
  font-size: .58em;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .65;
}

@keyframes uvq08-sky-tw {
  50% {
    opacity: .75;
    transform: scale(.86);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq08-sky,.uvq08-sky *,.uvq08-sky *::before,.uvq08-sky *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// 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 TipStarChart() {
  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": "#8fb8ff",
          "--c2": "#0b1430",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq08-sky" role="group" aria-label="Orion"><div className="ch"><svg className="ln" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true"><line className="a0 a1" x1="30" y1="20" x2="68" y2="25" /><line className="a0 a2" x1="30" y1="20" x2="41" y2="55" /><line className="a1 a4" x1="68" y1="25" x2="61" y2="47" /><line className="a2 a3" x1="41" y1="55" x2="51" y2="51" /><line className="a3 a4" x1="51" y1="51" x2="61" y2="47" /><line className="a2 a5" x1="41" y1="55" x2="35" y2="84" /><line className="a4 a6" x1="61" y1="47" x2="72" y2="80" /></svg><i className="bg" style={{ left: "0.0%", top: "55.2%", "--d": "0.14em", "--o": "0.49" } as CSSProperties}></i><i className="bg" style={{ left: "38.5%", top: "91.2%", "--d": "0.12em", "--o": "0.46" } as CSSProperties}></i><i className="bg" style={{ left: "34.1%", top: "23.7%", "--d": "0.13em", "--o": "0.31" } as CSSProperties}></i><i className="bg" style={{ left: "43.6%", top: "93.3%", "--d": "0.14em", "--o": "0.45" } as CSSProperties}></i><i className="bg" style={{ left: "12.1%", top: "20.8%", "--d": "0.13em", "--o": "0.70" } as CSSProperties}></i><i className="bg" style={{ left: "27.2%", top: "54.3%", "--d": "0.21em", "--o": "0.36" } as CSSProperties}></i><i className="bg" style={{ left: "84.7%", top: "22.7%", "--d": "0.15em", "--o": "0.63" } as CSSProperties}></i><i className="bg" style={{ left: "23.2%", top: "93.2%", "--d": "0.16em", "--o": "0.59" } as CSSProperties}></i><i className="bg" style={{ left: "8.6%", top: "28.2%", "--d": "0.20em", "--o": "0.73" } as CSSProperties}></i><i className="bg" style={{ left: "8.1%", top: "42.3%", "--d": "0.19em", "--o": "0.73" } as CSSProperties}></i><i className="bg" style={{ left: "67.0%", top: "52.9%", "--d": "0.15em", "--o": "0.47" } as CSSProperties}></i><i className="bg" style={{ left: "59.1%", top: "96.3%", "--d": "0.09em", "--o": "0.74" } as CSSProperties}></i><i className="bg" style={{ left: "36.3%", top: "78.3%", "--d": "0.18em", "--o": "0.75" } as CSSProperties}></i><i className="bg" style={{ left: "42.0%", top: "42.2%", "--d": "0.18em", "--o": "0.55" } as CSSProperties}></i><i className="bg" style={{ left: "13.6%", top: "23.7%", "--d": "0.16em", "--o": "0.62" } as CSSProperties}></i><i className="bg" style={{ left: "42.6%", top: "62.2%", "--d": "0.21em", "--o": "0.61" } as CSSProperties}></i><i className="bg" style={{ left: "63.9%", top: "33.7%", "--d": "0.11em", "--o": "0.52" } as CSSProperties}></i><i className="bg" style={{ left: "59.0%", top: "99.1%", "--d": "0.15em", "--o": "0.49" } as CSSProperties}></i><i className="bg" style={{ left: "48.1%", top: "67.3%", "--d": "0.12em", "--o": "0.57" } as CSSProperties}></i><i className="bg" style={{ left: "40.6%", top: "35.2%", "--d": "0.16em", "--o": "0.70" } as CSSProperties}></i><i className="bg" style={{ left: "35.1%", top: "38.5%", "--d": "0.14em", "--o": "0.59" } as CSSProperties}></i><i className="bg" style={{ left: "44.3%", top: "99.8%", "--d": "0.20em", "--o": "0.59" } as CSSProperties}></i><i className="bg" style={{ left: "98.5%", top: "99.1%", "--d": "0.12em", "--o": "0.44" } as CSSProperties}></i><i className="bg" style={{ left: "47.7%", top: "85.8%", "--d": "0.21em", "--o": "0.72" } as CSSProperties}></i><i className="bg" style={{ left: "12.6%", top: "72.1%", "--d": "0.12em", "--o": "0.41" } as CSSProperties}></i><i className="bg" style={{ left: "50.7%", top: "63.4%", "--d": "0.19em", "--o": "0.71" } as CSSProperties}></i><i className="bg" style={{ left: "15.0%", top: "43.5%", "--d": "0.17em", "--o": "0.75" } as CSSProperties}></i><i className="bg" style={{ left: "43.0%", top: "45.9%", "--d": "0.19em", "--o": "0.40" } as CSSProperties}></i><i className="bg" style={{ left: "97.4%", top: "5.0%", "--d": "0.20em", "--o": "0.67" } as CSSProperties}></i><i className="bg" style={{ left: "31.4%", top: "74.4%", "--d": "0.12em", "--o": "0.56" } as CSSProperties}></i><i className="bg" style={{ left: "45.7%", top: "41.4%", "--d": "0.09em", "--o": "0.39" } as CSSProperties}></i><i className="bg" style={{ left: "72.6%", top: "16.5%", "--d": "0.13em", "--o": "0.54" } as CSSProperties}></i><i className="bg" style={{ left: "88.4%", top: "57.4%", "--d": "0.21em", "--o": "0.60" } as CSSProperties}></i><i className="bg" style={{ left: "5.9%", top: "39.6%", "--d": "0.14em", "--o": "0.53" } as CSSProperties}></i><i className="nb" aria-hidden="true"></i><button type="button" className="st s0 dn hl pk" style={{ left: "30%", top: "20%", "--z": "1.05em", "--c": "#ffab73", "--i": "0" } as CSSProperties} aria-label="Betelgeuse" aria-describedby="uvq08-sky-0"><span className="tt" role="tooltip" id="uvq08-sky-0"><b>Betelgeuse<i>M1</i></b><span className="r"><em>Magnitude</em>0,5</span><span className="r"><em>Distance</em>548 light years</span></span></button><button type="button" className="st s1 dn hr" style={{ left: "68%", top: "25%", "--z": "0.78em", "--c": "#d6e4ff", "--i": "1" } as CSSProperties} aria-label="Bellatrix" aria-describedby="uvq08-sky-1"><span className="tt" role="tooltip" id="uvq08-sky-1"><b>Bellatrix<i>B2</i></b><span className="r"><em>Magnitude</em>1,6</span><span className="r"><em>Distance</em>250 light years</span></span></button><button type="button" className="st s2 up hc" style={{ left: "41%", top: "55%", "--z": "0.74em", "--c": "#dce8ff", "--i": "2" } as CSSProperties} aria-label="Alnitak" aria-describedby="uvq08-sky-2"><span className="tt" role="tooltip" id="uvq08-sky-2"><b>Alnitak<i>O9</i></b><span className="r"><em>Magnitude</em>1,8</span><span className="r"><em>Distance</em>1,260 light years</span></span></button><button type="button" className="st s3 up hc" style={{ left: "51%", top: "51%", "--z": "0.8em", "--c": "#dce8ff", "--i": "3" } as CSSProperties} aria-label="Alnilam" aria-describedby="uvq08-sky-3"><span className="tt" role="tooltip" id="uvq08-sky-3"><b>Alnilam<i>B0</i></b><span className="r"><em>Magnitude</em>1,7</span><span className="r"><em>Distance</em>1,980 light years</span></span></button><button type="button" className="st s4 up hc" style={{ left: "61%", top: "47%", "--z": "0.68em", "--c": "#dce8ff", "--i": "4" } as CSSProperties} aria-label="Mintaka" aria-describedby="uvq08-sky-4"><span className="tt" role="tooltip" id="uvq08-sky-4"><b>Mintaka<i>O9</i></b><span className="r"><em>Magnitude</em>2,2</span><span className="r"><em>Distance</em>1,200 light years</span></span></button><button type="button" className="st s5 up hc" style={{ left: "35%", top: "84%", "--z": "0.74em", "--c": "#d6e4ff", "--i": "5" } as CSSProperties} aria-label="Saiph" aria-describedby="uvq08-sky-5"><span className="tt" role="tooltip" id="uvq08-sky-5"><b>Saiph<i>B0</i></b><span className="r"><em>Magnitude</em>2,1</span><span className="r"><em>Distance</em>650 light years</span></span></button><button type="button" className="st s6 up hr" style={{ left: "72%", top: "80%", "--z": "1.05em", "--c": "#bcd4ff", "--i": "6" } as CSSProperties} aria-label="Rigel" aria-describedby="uvq08-sky-6"><span className="tt" role="tooltip" id="uvq08-sky-6"><b>Rigel<i>B8</i></b><span className="r"><em>Magnitude</em>0,1</span><span className="r"><em>Distance</em>860 light years</span></span></button><span className="tl" aria-hidden="true"><b>Orion</b><span>Winter sky chart</span></span></div></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 “Orion star chart tooltip” block (Tooltips) from AIMRAN Library to my project.

## What it is
A star chart of Orion: each star opens a card with magnitude, distance and type, and its constellation lines light up.

## Chosen settings
- Main color: #8fb8ff
- Secondary color: #0b1430
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Orión"

## 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-sky {
  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;
}

.uvq08-sky .ch {
  position: relative;
  width: 17em;
  height: 13em;
  border-radius: 1.2em;
  background: linear-gradient(rgba(170,190,255,.06) 1px,transparent 1px) 0 0/100% 2.6em,linear-gradient(90deg,rgba(170,190,255,.06) 1px,transparent 1px) 0 0/2.6em 100%,radial-gradient(120% 90% at 50% 40%,color-mix(in srgb,var(--c2) 60%,#3b4c8f),var(--c2) 70%);
  box-shadow: inset 0 0 0 1px rgba(170,190,255,.12),0 1.2em 2em -1em rgba(0,0,0,.6);
}

.uvq08-sky .ln {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.uvq08-sky .ln line {
  stroke: rgba(180,200,255,.28);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),stroke-width calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-sky .bg {
  position: absolute;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: #fff;
  opacity: var(--o);
}

.uvq08-sky .nb {
  position: absolute;
  left: 46%;
  top: 66%;
  width: 2.6em;
  height: 2em;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side,rgba(255,140,190,.42),rgba(140,120,255,.14) 60%,transparent);
  filter: blur(2px);
}

.uvq08-sky .st {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  translate: -50% -50%;
  border-radius: 50%;
}

.uvq08-sky .st::before {
  content: "";
  width: var(--z);
  height: var(--z);
  border-radius: 50%;
  background: radial-gradient(circle,#fff 0 25%,var(--c) 45%,transparent 72%);
  box-shadow: 0 0 .6em .1em color-mix(in srgb,var(--c) 55%,transparent);
  animation: uvq08-sky-tw calc(3s / var(--k)) ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
}

.uvq08-sky .st::after {
  content: "";
  position: absolute;
  inset: .15em;
  border-radius: 50%;
  border: 1px solid var(--c1);
  opacity: 0;
  transform: scale(.4);
  transition: all calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq08-sky .st:active::before {
  transform: scale(.8);
}

.uvq08-sky .st:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
}

.uvq08-sky .st:is(:hover,:focus-visible,.pk) {
  z-index: 4;
}

.uvq08-sky .st:is(:hover,:focus-visible,.pk)::after {
  opacity: 1;
  transform: none;
}

.uvq08-sky .tt {
  position: absolute;
  display: grid;
  gap: .2em;
  width: max-content;
  padding: .55em .75em;
  border-radius: .6em;
  font-size: .72em;
  line-height: 1.3;
  text-align: left;
  color: #e8eeff;
  background: rgba(10,16,40,.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(160,190,255,.3),0 .8em 1.4em -.6em rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(.3em);
  transition: all calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq08-sky .up .tt {
  bottom: calc(100% + .2em);
}

.uvq08-sky .dn .tt {
  top: calc(100% + .2em);
  transform: translateY(-.3em);
}

.uvq08-sky .hc .tt {
  left: 50%;
  translate: -50% 0;
}

.uvq08-sky .hl .tt {
  left: 0;
}

.uvq08-sky .hr .tt {
  right: 0;
}

.uvq08-sky .tt b {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8em;
  font-size: 1.15em;
}

.uvq08-sky .tt b i {
  padding: .1em .4em;
  border-radius: .3em;
  font-size: .68em;
  font-style: normal;
  color: #0b1430;
  background: var(--c);
}

.uvq08-sky .r {
  display: flex;
  justify-content: space-between;
  gap: 1.2em;
  font-variant-numeric: tabular-nums;
}

.uvq08-sky .r em {
  font-style: normal;
  opacity: .65;
}

.uvq08-sky .st:is(:hover,:focus-visible,.pk) .tt {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.uvq08-sky:has(.s0:is(:hover,:focus-visible,.pk)) .a0,.uvq08-sky:has(.s1:is(:hover,:focus-visible,.pk)) .a1,.uvq08-sky:has(.s2:is(:hover,:focus-visible,.pk)) .a2,.uvq08-sky:has(.s3:is(:hover,:focus-visible,.pk)) .a3,.uvq08-sky:has(.s4:is(:hover,:focus-visible,.pk)) .a4,.uvq08-sky:has(.s5:is(:hover,:focus-visible,.pk)) .a5,.uvq08-sky:has(.s6:is(:hover,:focus-visible,.pk)) .a6 {
  stroke: var(--c1);
  stroke-width: 1.8;
}

.uvq08-sky .tl {
  position: absolute;
  left: .9em;
  bottom: .8em;
  display: grid;
  color: #cfd9ff;
  pointer-events: none;
}

.uvq08-sky .tl b {
  font: italic 600 1.15em/1.2 Georgia,"Times New Roman",serif;
  letter-spacing: .04em;
}

.uvq08-sky .tl span {
  font-size: .58em;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .65;
}

@keyframes uvq08-sky-tw {
  50% {
    opacity: .75;
    transform: scale(.86);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq08-sky,.uvq08-sky *,.uvq08-sky *::before,.uvq08-sky *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// 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 TipStarChart() {
  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": "#8fb8ff",
          "--c2": "#0b1430",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq08-sky" role="group" aria-label="Orion"><div className="ch"><svg className="ln" viewBox="0 0 100 100" preserveAspectRatio="none" aria-hidden="true"><line className="a0 a1" x1="30" y1="20" x2="68" y2="25" /><line className="a0 a2" x1="30" y1="20" x2="41" y2="55" /><line className="a1 a4" x1="68" y1="25" x2="61" y2="47" /><line className="a2 a3" x1="41" y1="55" x2="51" y2="51" /><line className="a3 a4" x1="51" y1="51" x2="61" y2="47" /><line className="a2 a5" x1="41" y1="55" x2="35" y2="84" /><line className="a4 a6" x1="61" y1="47" x2="72" y2="80" /></svg><i className="bg" style={{ left: "0.0%", top: "55.2%", "--d": "0.14em", "--o": "0.49" } as CSSProperties}></i><i className="bg" style={{ left: "38.5%", top: "91.2%", "--d": "0.12em", "--o": "0.46" } as CSSProperties}></i><i className="bg" style={{ left: "34.1%", top: "23.7%", "--d": "0.13em", "--o": "0.31" } as CSSProperties}></i><i className="bg" style={{ left: "43.6%", top: "93.3%", "--d": "0.14em", "--o": "0.45" } as CSSProperties}></i><i className="bg" style={{ left: "12.1%", top: "20.8%", "--d": "0.13em", "--o": "0.70" } as CSSProperties}></i><i className="bg" style={{ left: "27.2%", top: "54.3%", "--d": "0.21em", "--o": "0.36" } as CSSProperties}></i><i className="bg" style={{ left: "84.7%", top: "22.7%", "--d": "0.15em", "--o": "0.63" } as CSSProperties}></i><i className="bg" style={{ left: "23.2%", top: "93.2%", "--d": "0.16em", "--o": "0.59" } as CSSProperties}></i><i className="bg" style={{ left: "8.6%", top: "28.2%", "--d": "0.20em", "--o": "0.73" } as CSSProperties}></i><i className="bg" style={{ left: "8.1%", top: "42.3%", "--d": "0.19em", "--o": "0.73" } as CSSProperties}></i><i className="bg" style={{ left: "67.0%", top: "52.9%", "--d": "0.15em", "--o": "0.47" } as CSSProperties}></i><i className="bg" style={{ left: "59.1%", top: "96.3%", "--d": "0.09em", "--o": "0.74" } as CSSProperties}></i><i className="bg" style={{ left: "36.3%", top: "78.3%", "--d": "0.18em", "--o": "0.75" } as CSSProperties}></i><i className="bg" style={{ left: "42.0%", top: "42.2%", "--d": "0.18em", "--o": "0.55" } as CSSProperties}></i><i className="bg" style={{ left: "13.6%", top: "23.7%", "--d": "0.16em", "--o": "0.62" } as CSSProperties}></i><i className="bg" style={{ left: "42.6%", top: "62.2%", "--d": "0.21em", "--o": "0.61" } as CSSProperties}></i><i className="bg" style={{ left: "63.9%", top: "33.7%", "--d": "0.11em", "--o": "0.52" } as CSSProperties}></i><i className="bg" style={{ left: "59.0%", top: "99.1%", "--d": "0.15em", "--o": "0.49" } as CSSProperties}></i><i className="bg" style={{ left: "48.1%", top: "67.3%", "--d": "0.12em", "--o": "0.57" } as CSSProperties}></i><i className="bg" style={{ left: "40.6%", top: "35.2%", "--d": "0.16em", "--o": "0.70" } as CSSProperties}></i><i className="bg" style={{ left: "35.1%", top: "38.5%", "--d": "0.14em", "--o": "0.59" } as CSSProperties}></i><i className="bg" style={{ left: "44.3%", top: "99.8%", "--d": "0.20em", "--o": "0.59" } as CSSProperties}></i><i className="bg" style={{ left: "98.5%", top: "99.1%", "--d": "0.12em", "--o": "0.44" } as CSSProperties}></i><i className="bg" style={{ left: "47.7%", top: "85.8%", "--d": "0.21em", "--o": "0.72" } as CSSProperties}></i><i className="bg" style={{ left: "12.6%", top: "72.1%", "--d": "0.12em", "--o": "0.41" } as CSSProperties}></i><i className="bg" style={{ left: "50.7%", top: "63.4%", "--d": "0.19em", "--o": "0.71" } as CSSProperties}></i><i className="bg" style={{ left: "15.0%", top: "43.5%", "--d": "0.17em", "--o": "0.75" } as CSSProperties}></i><i className="bg" style={{ left: "43.0%", top: "45.9%", "--d": "0.19em", "--o": "0.40" } as CSSProperties}></i><i className="bg" style={{ left: "97.4%", top: "5.0%", "--d": "0.20em", "--o": "0.67" } as CSSProperties}></i><i className="bg" style={{ left: "31.4%", top: "74.4%", "--d": "0.12em", "--o": "0.56" } as CSSProperties}></i><i className="bg" style={{ left: "45.7%", top: "41.4%", "--d": "0.09em", "--o": "0.39" } as CSSProperties}></i><i className="bg" style={{ left: "72.6%", top: "16.5%", "--d": "0.13em", "--o": "0.54" } as CSSProperties}></i><i className="bg" style={{ left: "88.4%", top: "57.4%", "--d": "0.21em", "--o": "0.60" } as CSSProperties}></i><i className="bg" style={{ left: "5.9%", top: "39.6%", "--d": "0.14em", "--o": "0.53" } as CSSProperties}></i><i className="nb" aria-hidden="true"></i><button type="button" className="st s0 dn hl pk" style={{ left: "30%", top: "20%", "--z": "1.05em", "--c": "#ffab73", "--i": "0" } as CSSProperties} aria-label="Betelgeuse" aria-describedby="uvq08-sky-0"><span className="tt" role="tooltip" id="uvq08-sky-0"><b>Betelgeuse<i>M1</i></b><span className="r"><em>Magnitude</em>0,5</span><span className="r"><em>Distance</em>548 light years</span></span></button><button type="button" className="st s1 dn hr" style={{ left: "68%", top: "25%", "--z": "0.78em", "--c": "#d6e4ff", "--i": "1" } as CSSProperties} aria-label="Bellatrix" aria-describedby="uvq08-sky-1"><span className="tt" role="tooltip" id="uvq08-sky-1"><b>Bellatrix<i>B2</i></b><span className="r"><em>Magnitude</em>1,6</span><span className="r"><em>Distance</em>250 light years</span></span></button><button type="button" className="st s2 up hc" style={{ left: "41%", top: "55%", "--z": "0.74em", "--c": "#dce8ff", "--i": "2" } as CSSProperties} aria-label="Alnitak" aria-describedby="uvq08-sky-2"><span className="tt" role="tooltip" id="uvq08-sky-2"><b>Alnitak<i>O9</i></b><span className="r"><em>Magnitude</em>1,8</span><span className="r"><em>Distance</em>1,260 light years</span></span></button><button type="button" className="st s3 up hc" style={{ left: "51%", top: "51%", "--z": "0.8em", "--c": "#dce8ff", "--i": "3" } as CSSProperties} aria-label="Alnilam" aria-describedby="uvq08-sky-3"><span className="tt" role="tooltip" id="uvq08-sky-3"><b>Alnilam<i>B0</i></b><span className="r"><em>Magnitude</em>1,7</span><span className="r"><em>Distance</em>1,980 light years</span></span></button><button type="button" className="st s4 up hc" style={{ left: "61%", top: "47%", "--z": "0.68em", "--c": "#dce8ff", "--i": "4" } as CSSProperties} aria-label="Mintaka" aria-describedby="uvq08-sky-4"><span className="tt" role="tooltip" id="uvq08-sky-4"><b>Mintaka<i>O9</i></b><span className="r"><em>Magnitude</em>2,2</span><span className="r"><em>Distance</em>1,200 light years</span></span></button><button type="button" className="st s5 up hc" style={{ left: "35%", top: "84%", "--z": "0.74em", "--c": "#d6e4ff", "--i": "5" } as CSSProperties} aria-label="Saiph" aria-describedby="uvq08-sky-5"><span className="tt" role="tooltip" id="uvq08-sky-5"><b>Saiph<i>B0</i></b><span className="r"><em>Magnitude</em>2,1</span><span className="r"><em>Distance</em>650 light years</span></span></button><button type="button" className="st s6 up hr" style={{ left: "72%", top: "80%", "--z": "1.05em", "--c": "#bcd4ff", "--i": "6" } as CSSProperties} aria-label="Rigel" aria-describedby="uvq08-sky-6"><span className="tt" role="tooltip" id="uvq08-sky-6"><b>Rigel<i>B8</i></b><span className="r"><em>Magnitude</em>0,1</span><span className="r"><em>Distance</em>860 light years</span></span></button><span className="tl" aria-hidden="true"><b>Orion</b><span>Winter sky chart</span></span></div></div>
      </div>
    </>
  );
}
```

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