# Smartwatch nudge toast

> A round watch face buzzes with ripples when it arrives and shows the activity ring, which closes when you tap Done.

- Category: [Toasts](https://library.aimran.es/components/toasts)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-toast-watch-haptic
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Wearables nudge us with a tap on the wrist, and this toast turns that into a round notification. A black watch face with a metal bezel and crown shakes for a moment while ripples spread out like haptic pulses, and an SVG activity ring fills to three quarters. Done closes the ring and swaps the icon for a check. Good for health apps, habit trackers and break reminders.

The main color is the activity ring and button, the second the haptic ripples. Change the ring with stroke-dashoffset to show any progress, and keep the title to two short lines so it fits inside the circle.

## Code

### HTML

```html
<div class="uvq09-wch"><button type="button" class="fire">Show again</button><div class="tt" role="status"><i class="hp" aria-hidden="true"></i><i class="hp" aria-hidden="true"></i><span class="cr" aria-hidden="true"></span><span class="fc"><svg class="rg" viewBox="0 0 36 36" aria-hidden="true"><circle class="bg" cx="18" cy="18" r="16.5"/><circle class="fg" cx="18" cy="18" r="16.5" pathLength="1"/></svg><span class="ic" aria-hidden="true"><span class="a"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="4.5" r="2"/><path d="M12 8v6M12 14l-3 6.5M12 14l3 6.5M6.5 11l5.5-2.5 5.5 2.5"/></svg></span><span class="b"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg></span></span><b>Time to move</b><small>9 of 12 hours</small><button type="button" class="ok">Done</button></span></div></div>
```

### CSS

```css
.uvq09-wch {
  --c1: #a3e635;
  --c2: #22d3ee;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq09-wch {
  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: 21em;
  height: 15em;
  height: 15.5em;
}

.uvq09-wch .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-wch .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-wch .fire:active {
  scale: .96;
}

.uvq09-wch .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-wch .tt {
  position: absolute;
  left: 50%;
  bottom: 1.2em;
  width: 10em;
  height: 10em;
  translate: -50% 0;
  opacity: 0;
  transform: scale(.7);
  transition: opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.6s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq09-wch .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-wch .fc {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .2em;
  border-radius: 50%;
  text-align: center;
  color: #f5f5f5;
  background: radial-gradient(circle at 50% 30%,#1c1c1e,#000 70%);
  box-shadow: 0 0 0 .45em #2a2a2c,0 0 0 .55em #77777c,0 0 0 .62em #1b1b1d,0 1.2em 2em -.6em rgba(0,0,0,.6);
}

.uvq09-wch .tt.in .fc {
  animation: uvq09-wch-b calc(0.08s / var(--k)) linear calc(0.45s / var(--k)) 6 alternate;
}

.uvq09-wch .cr {
  position: absolute;
  right: -1.2em;
  top: 36%;
  width: .62em;
  height: 1.45em;
  border-radius: .2em;
  background: repeating-linear-gradient(#9a9aa0 0 2px,#4a4a4e 2px 4px);
}

.uvq09-wch .hp {
  position: absolute;
  inset: -.6em;
  border-radius: 50%;
  border: .15em solid var(--c2);
  opacity: 0;
  pointer-events: none;
}

.uvq09-wch .tt.in .hp {
  animation: uvq09-wch-h calc(1s / var(--k)) ease-out calc(0.4s / var(--k)) 3;
}

.uvq09-wch .tt.in .hp+.hp {
  animation-delay: calc(0.7s / var(--k));
}

.uvq09-wch .rg {
  position: absolute;
  inset: .35em;
  width: calc(100% - .7em);
  height: calc(100% - .7em);
  transform: rotate(-90deg);
}

.uvq09-wch .rg circle {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.uvq09-wch .rg .bg {
  stroke: color-mix(in srgb,var(--c1) 22%,transparent);
}

.uvq09-wch .rg .fg {
  stroke: var(--c1);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(1.2s / var(--k)) cubic-bezier(.22,1,.36,1) calc(0.5s / var(--k));
}

.uvq09-wch .tt.in .rg .fg {
  stroke-dashoffset: .25;
}

.uvq09-wch .tt.dn .rg .fg {
  stroke-dashoffset: 0;
  transition-delay: 0s;
  filter: drop-shadow(0 0 .3em var(--c1));
}

.uvq09-wch .ic {
  display: grid;
  width: 1.5em;
  height: 1.5em;
  color: var(--c1);
}

.uvq09-wch .ic>span {
  grid-area: 1/1;
  display: grid;
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq09-wch .ic svg {
  width: 100%;
  height: 100%;
}

.uvq09-wch .ic .b,.uvq09-wch .tt.dn .ic .a {
  opacity: 0;
  scale: .4;
}

.uvq09-wch .tt.dn .ic .b {
  opacity: 1;
  scale: 1;
}

.uvq09-wch .fc b {
  max-width: 6.5em;
  font-size: .82em;
  line-height: 1.15;
}

.uvq09-wch small {
  font-size: .6em;
  color: #a3a3a3;
}

.uvq09-wch .ok {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: .25em;
  padding: .42em 1.1em;
  border-radius: 2em;
  font-size: .68em;
  font-weight: 800;
  color: #0a0a0a;
  background: var(--c1);
  transition: filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-wch .ok:hover {
  filter: brightness(1.1);
}

.uvq09-wch .ok:active {
  scale: .92;
}

.uvq09-wch .ok:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

@keyframes uvq09-wch-h {
  0% {
    opacity: .85;
    transform: scale(.94);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@keyframes uvq09-wch-b {
  from {
    translate: -1.5px 0;
  }
  to {
    translate: 1.5px 0;
  }
}

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

### JavaScript

```js
document.querySelectorAll(".uvq09-wch").forEach(el => {
  const t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");t.classList.remove('dn')},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".ok").addEventListener("click",()=>{t.classList.add("dn");later(hide,1500)});return clr
});
```

### 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 = `
.uvq09-wch {
  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: 21em;
  height: 15em;
  height: 15.5em;
}

.uvq09-wch .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-wch .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-wch .fire:active {
  scale: .96;
}

.uvq09-wch .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-wch .tt {
  position: absolute;
  left: 50%;
  bottom: 1.2em;
  width: 10em;
  height: 10em;
  translate: -50% 0;
  opacity: 0;
  transform: scale(.7);
  transition: opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.6s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq09-wch .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-wch .fc {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .2em;
  border-radius: 50%;
  text-align: center;
  color: #f5f5f5;
  background: radial-gradient(circle at 50% 30%,#1c1c1e,#000 70%);
  box-shadow: 0 0 0 .45em #2a2a2c,0 0 0 .55em #77777c,0 0 0 .62em #1b1b1d,0 1.2em 2em -.6em rgba(0,0,0,.6);
}

.uvq09-wch .tt.in .fc {
  animation: uvq09-wch-b calc(0.08s / var(--k)) linear calc(0.45s / var(--k)) 6 alternate;
}

.uvq09-wch .cr {
  position: absolute;
  right: -1.2em;
  top: 36%;
  width: .62em;
  height: 1.45em;
  border-radius: .2em;
  background: repeating-linear-gradient(#9a9aa0 0 2px,#4a4a4e 2px 4px);
}

.uvq09-wch .hp {
  position: absolute;
  inset: -.6em;
  border-radius: 50%;
  border: .15em solid var(--c2);
  opacity: 0;
  pointer-events: none;
}

.uvq09-wch .tt.in .hp {
  animation: uvq09-wch-h calc(1s / var(--k)) ease-out calc(0.4s / var(--k)) 3;
}

.uvq09-wch .tt.in .hp+.hp {
  animation-delay: calc(0.7s / var(--k));
}

.uvq09-wch .rg {
  position: absolute;
  inset: .35em;
  width: calc(100% - .7em);
  height: calc(100% - .7em);
  transform: rotate(-90deg);
}

.uvq09-wch .rg circle {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.uvq09-wch .rg .bg {
  stroke: color-mix(in srgb,var(--c1) 22%,transparent);
}

.uvq09-wch .rg .fg {
  stroke: var(--c1);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(1.2s / var(--k)) cubic-bezier(.22,1,.36,1) calc(0.5s / var(--k));
}

.uvq09-wch .tt.in .rg .fg {
  stroke-dashoffset: .25;
}

.uvq09-wch .tt.dn .rg .fg {
  stroke-dashoffset: 0;
  transition-delay: 0s;
  filter: drop-shadow(0 0 .3em var(--c1));
}

.uvq09-wch .ic {
  display: grid;
  width: 1.5em;
  height: 1.5em;
  color: var(--c1);
}

.uvq09-wch .ic>span {
  grid-area: 1/1;
  display: grid;
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq09-wch .ic svg {
  width: 100%;
  height: 100%;
}

.uvq09-wch .ic .b,.uvq09-wch .tt.dn .ic .a {
  opacity: 0;
  scale: .4;
}

.uvq09-wch .tt.dn .ic .b {
  opacity: 1;
  scale: 1;
}

.uvq09-wch .fc b {
  max-width: 6.5em;
  font-size: .82em;
  line-height: 1.15;
}

.uvq09-wch small {
  font-size: .6em;
  color: #a3a3a3;
}

.uvq09-wch .ok {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: .25em;
  padding: .42em 1.1em;
  border-radius: 2em;
  font-size: .68em;
  font-weight: 800;
  color: #0a0a0a;
  background: var(--c1);
  transition: filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-wch .ok:hover {
  filter: brightness(1.1);
}

.uvq09-wch .ok:active {
  scale: .92;
}

.uvq09-wch .ok:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

@keyframes uvq09-wch-h {
  0% {
    opacity: .85;
    transform: scale(.94);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@keyframes uvq09-wch-b {
  from {
    translate: -1.5px 0;
  }
  to {
    translate: 1.5px 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-wch,.uvq09-wch *,.uvq09-wch *::before,.uvq09-wch *::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 t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");t.classList.remove('dn')},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".ok").addEventListener("click",()=>{t.classList.add("dn");later(hide,1500)});return clr
}

export default function ToastWatchHaptic() {
  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": "#a3e635",
          "--c2": "#22d3ee",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-wch"><button type="button" className="fire">Show again</button><div className="tt" role="status"><i className="hp" aria-hidden="true"></i><i className="hp" aria-hidden="true"></i><span className="cr" aria-hidden="true"></span><span className="fc"><svg className="rg" viewBox="0 0 36 36" aria-hidden="true"><circle className="bg" cx="18" cy="18" r="16.5" /><circle className="fg" cx="18" cy="18" r="16.5" pathLength="1" /></svg><span className="ic" aria-hidden="true"><span className="a"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><circle cx="12" cy="4.5" r="2" /><path d="M12 8v6M12 14l-3 6.5M12 14l3 6.5M6.5 11l5.5-2.5 5.5 2.5" /></svg></span><span className="b"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" /></svg></span></span><b>Time to move</b><small>9 of 12 hours</small><button type="button" className="ok">Done</button></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 “Smartwatch nudge toast” block (Toasts) from AIMRAN Library to my project.

## What it is
A round watch face buzzes with ripples when it arrives and shows the activity ring, which closes when you tap Done.

## Chosen settings
- Main color: #a3e635
- Secondary color: #22d3ee
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Hora de moverte"

## 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 = `
.uvq09-wch {
  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: 21em;
  height: 15em;
  height: 15.5em;
}

.uvq09-wch .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-wch .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-wch .fire:active {
  scale: .96;
}

.uvq09-wch .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-wch .tt {
  position: absolute;
  left: 50%;
  bottom: 1.2em;
  width: 10em;
  height: 10em;
  translate: -50% 0;
  opacity: 0;
  transform: scale(.7);
  transition: opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.6s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq09-wch .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-wch .fc {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .2em;
  border-radius: 50%;
  text-align: center;
  color: #f5f5f5;
  background: radial-gradient(circle at 50% 30%,#1c1c1e,#000 70%);
  box-shadow: 0 0 0 .45em #2a2a2c,0 0 0 .55em #77777c,0 0 0 .62em #1b1b1d,0 1.2em 2em -.6em rgba(0,0,0,.6);
}

.uvq09-wch .tt.in .fc {
  animation: uvq09-wch-b calc(0.08s / var(--k)) linear calc(0.45s / var(--k)) 6 alternate;
}

.uvq09-wch .cr {
  position: absolute;
  right: -1.2em;
  top: 36%;
  width: .62em;
  height: 1.45em;
  border-radius: .2em;
  background: repeating-linear-gradient(#9a9aa0 0 2px,#4a4a4e 2px 4px);
}

.uvq09-wch .hp {
  position: absolute;
  inset: -.6em;
  border-radius: 50%;
  border: .15em solid var(--c2);
  opacity: 0;
  pointer-events: none;
}

.uvq09-wch .tt.in .hp {
  animation: uvq09-wch-h calc(1s / var(--k)) ease-out calc(0.4s / var(--k)) 3;
}

.uvq09-wch .tt.in .hp+.hp {
  animation-delay: calc(0.7s / var(--k));
}

.uvq09-wch .rg {
  position: absolute;
  inset: .35em;
  width: calc(100% - .7em);
  height: calc(100% - .7em);
  transform: rotate(-90deg);
}

.uvq09-wch .rg circle {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.uvq09-wch .rg .bg {
  stroke: color-mix(in srgb,var(--c1) 22%,transparent);
}

.uvq09-wch .rg .fg {
  stroke: var(--c1);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(1.2s / var(--k)) cubic-bezier(.22,1,.36,1) calc(0.5s / var(--k));
}

.uvq09-wch .tt.in .rg .fg {
  stroke-dashoffset: .25;
}

.uvq09-wch .tt.dn .rg .fg {
  stroke-dashoffset: 0;
  transition-delay: 0s;
  filter: drop-shadow(0 0 .3em var(--c1));
}

.uvq09-wch .ic {
  display: grid;
  width: 1.5em;
  height: 1.5em;
  color: var(--c1);
}

.uvq09-wch .ic>span {
  grid-area: 1/1;
  display: grid;
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq09-wch .ic svg {
  width: 100%;
  height: 100%;
}

.uvq09-wch .ic .b,.uvq09-wch .tt.dn .ic .a {
  opacity: 0;
  scale: .4;
}

.uvq09-wch .tt.dn .ic .b {
  opacity: 1;
  scale: 1;
}

.uvq09-wch .fc b {
  max-width: 6.5em;
  font-size: .82em;
  line-height: 1.15;
}

.uvq09-wch small {
  font-size: .6em;
  color: #a3a3a3;
}

.uvq09-wch .ok {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: .25em;
  padding: .42em 1.1em;
  border-radius: 2em;
  font-size: .68em;
  font-weight: 800;
  color: #0a0a0a;
  background: var(--c1);
  transition: filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-wch .ok:hover {
  filter: brightness(1.1);
}

.uvq09-wch .ok:active {
  scale: .92;
}

.uvq09-wch .ok:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

@keyframes uvq09-wch-h {
  0% {
    opacity: .85;
    transform: scale(.94);
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@keyframes uvq09-wch-b {
  from {
    translate: -1.5px 0;
  }
  to {
    translate: 1.5px 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-wch,.uvq09-wch *,.uvq09-wch *::before,.uvq09-wch *::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 t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");t.classList.remove('dn')},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".ok").addEventListener("click",()=>{t.classList.add("dn");later(hide,1500)});return clr
}

export default function ToastWatchHaptic() {
  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": "#a3e635",
          "--c2": "#22d3ee",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-wch"><button type="button" className="fire">Show again</button><div className="tt" role="status"><i className="hp" aria-hidden="true"></i><i className="hp" aria-hidden="true"></i><span className="cr" aria-hidden="true"></span><span className="fc"><svg className="rg" viewBox="0 0 36 36" aria-hidden="true"><circle className="bg" cx="18" cy="18" r="16.5" /><circle className="fg" cx="18" cy="18" r="16.5" pathLength="1" /></svg><span className="ic" aria-hidden="true"><span className="a"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><circle cx="12" cy="4.5" r="2" /><path d="M12 8v6M12 14l-3 6.5M12 14l3 6.5M6.5 11l5.5-2.5 5.5 2.5" /></svg></span><span className="b"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.8" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M5 12.5l4.5 4.5L19 7.5" /></svg></span></span><b>Time to move</b><small>9 of 12 hours</small><button type="button" className="ok">Done</button></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.
````
