# Kitchen timer toast

> A twin-bell alarm clock rattles when time is up and lets you snooze for five more minutes or stop it.

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

## Where to use it

A twin-bell alarm clock says time is up before anyone reads a word. This toast shakes the clock in short bursts with sound lines on each side, sits on a mint enamel card like an old kitchen appliance, and offers two clear choices: add five minutes or stop. It uses role alert and fits recipe apps, cooking timers, workouts and focus tools.

The main color is the clock and the Stop button; the second is the enamel card. Snoozing swaps the subtitle and closes the toast after a moment, so connect it to the timer in your app to restart the countdown.

## Code

### HTML

```html
<div class="uvq09-ktm"><button type="button" class="fire">Show again</button><div class="tt" role="alert"><span class="ck" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path class="bel" d="M3.4 8.4a3.7 3.7 0 0 1 5.2-5.2zM20.6 8.4a3.7 3.7 0 0 0-5.2-5.2z"/><circle class="fc" cx="12" cy="13.5" r="6.6"/><path d="M12 10.3v3.3l2.2 1.5M7.6 19.6l-1.6 2M16.4 19.6l1.6 2"/><path class="wv" d="M1.8 12c-.6 1.3-.6 2.7 0 4M22.2 12c.6 1.3.6 2.7 0 4"/></svg></span><span class="tx"><b>The pasta is ready</b><small class="m1">9 minute timer</small><small class="m2">I'll remind you in 5 minutes</small></span><span class="ac"><button type="button" class="sn">+5 min</button><button type="button" class="st">Stop</button></span></div></div>
```

### CSS

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

.uvq09-ktm {
  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;
}

.uvq09-ktm .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-ktm .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

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

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

.uvq09-ktm .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  gap: .75em;
  padding: .8em .85em;
  border-radius: 1.3em;
  color: #1c2a22;
  background: linear-gradient(170deg,color-mix(in srgb,var(--c2) 70%,#fff),var(--c2));
  box-shadow: 0 0 0 1px rgba(0,0,0,.08),inset 0 .15em 0 rgba(255,255,255,.6),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  transform: translateY(130%) scale(.92);
  opacity: 0;
  transition: transform calc(0.55s / var(--k)) cubic-bezier(.22,1,.36,1),opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

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

.uvq09-ktm .ck {
  display: grid;
  flex: none;
  width: 2.9em;
  height: 2.9em;
  color: var(--c1);
}

.uvq09-ktm .ck svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 60%;
}

.uvq09-ktm .bel {
  fill: currentColor;
}

.uvq09-ktm .fc {
  fill: #fff;
}

.uvq09-ktm .wv {
  opacity: 0;
}

.uvq09-ktm .tt.in .ck svg {
  animation: uvq09-ktm-r calc(1.4s / var(--k)) linear calc(0.4s / var(--k)) 3;
}

.uvq09-ktm .tt.in .wv {
  animation: uvq09-ktm-w calc(1.4s / var(--k)) linear calc(0.4s / var(--k)) 3;
}

.uvq09-ktm .tx {
  display: grid;
  flex: 1;
  gap: .1em;
}

.uvq09-ktm .tx b {
  font-size: .95em;
}

.uvq09-ktm small {
  font-size: .72em;
  opacity: .72;
}

.uvq09-ktm .m2 {
  display: none;
}

.uvq09-ktm .tt.snz .m1 {
  display: none;
}

.uvq09-ktm .tt.snz .m2 {
  display: block;
}

.uvq09-ktm .tt.snz .ck svg,.uvq09-ktm .tt.snz .wv {
  animation: none;
}

.uvq09-ktm .ac {
  display: grid;
  gap: .35em;
}

.uvq09-ktm .ac button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .45em .75em;
  border-radius: .6em;
  font-size: .74em;
  font-weight: 750;
  white-space: nowrap;
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),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-ktm .ac button:active {
  scale: .94;
}

.uvq09-ktm .ac button:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-ktm .ac .sn {
  background: rgba(255,255,255,.65);
  box-shadow: inset 0 0 0 1.5px rgba(28,42,34,.22);
}

.uvq09-ktm .ac .sn:hover {
  background: #fff;
}

.uvq09-ktm .ac .st {
  color: #fff;
  background: var(--c1);
}

.uvq09-ktm .ac .st:hover {
  filter: brightness(1.1);
}

@keyframes uvq09-ktm-r {
  0%,36%,100% {
    rotate: 0deg;
  }
  4% {
    rotate: 14deg;
  }
  8% {
    rotate: -14deg;
  }
  12% {
    rotate: 12deg;
  }
  16% {
    rotate: -12deg;
  }
  20% {
    rotate: 10deg;
  }
  24% {
    rotate: -10deg;
  }
  28% {
    rotate: 6deg;
  }
  32% {
    rotate: -6deg;
  }
}

@keyframes uvq09-ktm-w {
  0%,36%,100% {
    opacity: 0;
  }
  4%,30% {
    opacity: 1;
  }
}

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

### JavaScript

```js
document.querySelectorAll(".uvq09-ktm").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('snz')},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".sn").addEventListener("click",()=>{t.classList.add("snz");later(hide,1800)});t.querySelector(".st").addEventListener("click",hide);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-ktm {
  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;
}

.uvq09-ktm .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-ktm .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

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

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

.uvq09-ktm .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  gap: .75em;
  padding: .8em .85em;
  border-radius: 1.3em;
  color: #1c2a22;
  background: linear-gradient(170deg,color-mix(in srgb,var(--c2) 70%,#fff),var(--c2));
  box-shadow: 0 0 0 1px rgba(0,0,0,.08),inset 0 .15em 0 rgba(255,255,255,.6),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  transform: translateY(130%) scale(.92);
  opacity: 0;
  transition: transform calc(0.55s / var(--k)) cubic-bezier(.22,1,.36,1),opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

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

.uvq09-ktm .ck {
  display: grid;
  flex: none;
  width: 2.9em;
  height: 2.9em;
  color: var(--c1);
}

.uvq09-ktm .ck svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 60%;
}

.uvq09-ktm .bel {
  fill: currentColor;
}

.uvq09-ktm .fc {
  fill: #fff;
}

.uvq09-ktm .wv {
  opacity: 0;
}

.uvq09-ktm .tt.in .ck svg {
  animation: uvq09-ktm-r calc(1.4s / var(--k)) linear calc(0.4s / var(--k)) 3;
}

.uvq09-ktm .tt.in .wv {
  animation: uvq09-ktm-w calc(1.4s / var(--k)) linear calc(0.4s / var(--k)) 3;
}

.uvq09-ktm .tx {
  display: grid;
  flex: 1;
  gap: .1em;
}

.uvq09-ktm .tx b {
  font-size: .95em;
}

.uvq09-ktm small {
  font-size: .72em;
  opacity: .72;
}

.uvq09-ktm .m2 {
  display: none;
}

.uvq09-ktm .tt.snz .m1 {
  display: none;
}

.uvq09-ktm .tt.snz .m2 {
  display: block;
}

.uvq09-ktm .tt.snz .ck svg,.uvq09-ktm .tt.snz .wv {
  animation: none;
}

.uvq09-ktm .ac {
  display: grid;
  gap: .35em;
}

.uvq09-ktm .ac button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .45em .75em;
  border-radius: .6em;
  font-size: .74em;
  font-weight: 750;
  white-space: nowrap;
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),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-ktm .ac button:active {
  scale: .94;
}

.uvq09-ktm .ac button:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-ktm .ac .sn {
  background: rgba(255,255,255,.65);
  box-shadow: inset 0 0 0 1.5px rgba(28,42,34,.22);
}

.uvq09-ktm .ac .sn:hover {
  background: #fff;
}

.uvq09-ktm .ac .st {
  color: #fff;
  background: var(--c1);
}

.uvq09-ktm .ac .st:hover {
  filter: brightness(1.1);
}

@keyframes uvq09-ktm-r {
  0%,36%,100% {
    rotate: 0deg;
  }
  4% {
    rotate: 14deg;
  }
  8% {
    rotate: -14deg;
  }
  12% {
    rotate: 12deg;
  }
  16% {
    rotate: -12deg;
  }
  20% {
    rotate: 10deg;
  }
  24% {
    rotate: -10deg;
  }
  28% {
    rotate: 6deg;
  }
  32% {
    rotate: -6deg;
  }
}

@keyframes uvq09-ktm-w {
  0%,36%,100% {
    opacity: 0;
  }
  4%,30% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-ktm,.uvq09-ktm *,.uvq09-ktm *::before,.uvq09-ktm *::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('snz')},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".sn").addEventListener("click",()=>{t.classList.add("snz");later(hide,1800)});t.querySelector(".st").addEventListener("click",hide);return clr
}

export default function ToastKitchenTimer() {
  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": "#dc2626",
          "--c2": "#ccefdc",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-ktm"><button type="button" className="fire">Show again</button><div className="tt" role="alert"><span className="ck" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round"><path className="bel" d="M3.4 8.4a3.7 3.7 0 0 1 5.2-5.2zM20.6 8.4a3.7 3.7 0 0 0-5.2-5.2z" /><circle className="fc" cx="12" cy="13.5" r="6.6" /><path d="M12 10.3v3.3l2.2 1.5M7.6 19.6l-1.6 2M16.4 19.6l1.6 2" /><path className="wv" d="M1.8 12c-.6 1.3-.6 2.7 0 4M22.2 12c.6 1.3.6 2.7 0 4" /></svg></span><span className="tx"><b>The pasta is ready</b><small className="m1">9 minute timer</small><small className="m2">I'll remind you in 5 minutes</small></span><span className="ac"><button type="button" className="sn">+5 min</button><button type="button" className="st">Stop</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 “Kitchen timer toast” block (Toasts) from AIMRAN Library to my project.

## What it is
A twin-bell alarm clock rattles when time is up and lets you snooze for five more minutes or stop it.

## Chosen settings
- Main color: #dc2626
- Secondary color: #ccefdc
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "La pasta está lista"

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

.uvq09-ktm .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-ktm .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

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

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

.uvq09-ktm .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  gap: .75em;
  padding: .8em .85em;
  border-radius: 1.3em;
  color: #1c2a22;
  background: linear-gradient(170deg,color-mix(in srgb,var(--c2) 70%,#fff),var(--c2));
  box-shadow: 0 0 0 1px rgba(0,0,0,.08),inset 0 .15em 0 rgba(255,255,255,.6),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  transform: translateY(130%) scale(.92);
  opacity: 0;
  transition: transform calc(0.55s / var(--k)) cubic-bezier(.22,1,.36,1),opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

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

.uvq09-ktm .ck {
  display: grid;
  flex: none;
  width: 2.9em;
  height: 2.9em;
  color: var(--c1);
}

.uvq09-ktm .ck svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 60%;
}

.uvq09-ktm .bel {
  fill: currentColor;
}

.uvq09-ktm .fc {
  fill: #fff;
}

.uvq09-ktm .wv {
  opacity: 0;
}

.uvq09-ktm .tt.in .ck svg {
  animation: uvq09-ktm-r calc(1.4s / var(--k)) linear calc(0.4s / var(--k)) 3;
}

.uvq09-ktm .tt.in .wv {
  animation: uvq09-ktm-w calc(1.4s / var(--k)) linear calc(0.4s / var(--k)) 3;
}

.uvq09-ktm .tx {
  display: grid;
  flex: 1;
  gap: .1em;
}

.uvq09-ktm .tx b {
  font-size: .95em;
}

.uvq09-ktm small {
  font-size: .72em;
  opacity: .72;
}

.uvq09-ktm .m2 {
  display: none;
}

.uvq09-ktm .tt.snz .m1 {
  display: none;
}

.uvq09-ktm .tt.snz .m2 {
  display: block;
}

.uvq09-ktm .tt.snz .ck svg,.uvq09-ktm .tt.snz .wv {
  animation: none;
}

.uvq09-ktm .ac {
  display: grid;
  gap: .35em;
}

.uvq09-ktm .ac button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: .45em .75em;
  border-radius: .6em;
  font-size: .74em;
  font-weight: 750;
  white-space: nowrap;
  transition: background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),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-ktm .ac button:active {
  scale: .94;
}

.uvq09-ktm .ac button:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-ktm .ac .sn {
  background: rgba(255,255,255,.65);
  box-shadow: inset 0 0 0 1.5px rgba(28,42,34,.22);
}

.uvq09-ktm .ac .sn:hover {
  background: #fff;
}

.uvq09-ktm .ac .st {
  color: #fff;
  background: var(--c1);
}

.uvq09-ktm .ac .st:hover {
  filter: brightness(1.1);
}

@keyframes uvq09-ktm-r {
  0%,36%,100% {
    rotate: 0deg;
  }
  4% {
    rotate: 14deg;
  }
  8% {
    rotate: -14deg;
  }
  12% {
    rotate: 12deg;
  }
  16% {
    rotate: -12deg;
  }
  20% {
    rotate: 10deg;
  }
  24% {
    rotate: -10deg;
  }
  28% {
    rotate: 6deg;
  }
  32% {
    rotate: -6deg;
  }
}

@keyframes uvq09-ktm-w {
  0%,36%,100% {
    opacity: 0;
  }
  4%,30% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-ktm,.uvq09-ktm *,.uvq09-ktm *::before,.uvq09-ktm *::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('snz')},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".sn").addEventListener("click",()=>{t.classList.add("snz");later(hide,1800)});t.querySelector(".st").addEventListener("click",hide);return clr
}

export default function ToastKitchenTimer() {
  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": "#dc2626",
          "--c2": "#ccefdc",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-ktm"><button type="button" className="fire">Show again</button><div className="tt" role="alert"><span className="ck" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.7" strokeLinecap="round" strokeLinejoin="round"><path className="bel" d="M3.4 8.4a3.7 3.7 0 0 1 5.2-5.2zM20.6 8.4a3.7 3.7 0 0 0-5.2-5.2z" /><circle className="fc" cx="12" cy="13.5" r="6.6" /><path d="M12 10.3v3.3l2.2 1.5M7.6 19.6l-1.6 2M16.4 19.6l1.6 2" /><path className="wv" d="M1.8 12c-.6 1.3-.6 2.7 0 4M22.2 12c.6 1.3.6 2.7 0 4" /></svg></span><span className="tx"><b>The pasta is ready</b><small className="m1">9 minute timer</small><small className="m2">I'll remind you in 5 minutes</small></span><span className="ac"><button type="button" className="sn">+5 min</button><button type="button" className="st">Stop</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.
````
