# Glass door with etched lettering

> The café name etched into the door glass, with a glare that follows the cursor; tap the door and it swings open.

- Category: [Liquid Glass](https://library.aimran.es/components/liquid-glass)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-lg-etched-sign
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

A café door in painted wood with a large glass pane and its name acid-etched in italic serif. The letters are filled with a blurred, whitened copy of the interior through background-clip, aligned to the scene behind, so they read as frosted glass rather than paint. A soft glare slides across the pane with the pointer.

Type your own shop name and repaint the frame and the warm lamps. The whole door is a toggle button that swings open in perspective, and the hanging sign sways each time. Ideal for restaurant, café and boutique websites.

## Code

### HTML

```html
<div class="uvq11-etch"><button type="button" class="dr" aria-pressed="false" aria-label="Open the café door"><span class="pane"><span class="et"><b>Café Norte</b><small>since 1962</small></span><span class="gl"></span></span><span class="hdl"></span><span class="tag"><span>Open</span></span></button></div>
```

### CSS

```css
.uvq11-etch {
  --c1: #f4a259;
  --c2: #1f3a2e;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq11-etch {
  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: 20em;
  height: 14em;
  border-radius: 1.6em;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  --sc: radial-gradient(.75em .75em at 30% 17%,#fffbe6 0 45%,var(--c1) 75%,transparent 80%),radial-gradient(.75em .75em at 50% 17%,#fffbe6 0 45%,var(--c1) 75%,transparent 80%),radial-gradient(.75em .75em at 70% 17%,#fffbe6 0 45%,var(--c1) 75%,transparent 80%),radial-gradient(5em 4em at 30% 19%,color-mix(in srgb,var(--c1) 45%,transparent),transparent 70%),radial-gradient(5em 4em at 50% 19%,color-mix(in srgb,var(--c1) 45%,transparent),transparent 70%),radial-gradient(5em 4em at 70% 19%,color-mix(in srgb,var(--c1) 45%,transparent),transparent 70%),linear-gradient(#120a06,#120a06) 30% 0/.08em 14% no-repeat,linear-gradient(#120a06,#120a06) 50% 0/.08em 14% no-repeat,linear-gradient(#120a06,#120a06) 70% 0/.08em 14% no-repeat,linear-gradient(#2f6f4f,#2f6f4f) 24% 32%/.5em 1.5em no-repeat,linear-gradient(#8c2f39,#8c2f39) 29% 33%/.45em 1.3em no-repeat,linear-gradient(#d9a441,#d9a441) 62% 34%/.6em 1.2em no-repeat,linear-gradient(#3d5a80,#3d5a80) 70% 32%/.45em 1.5em no-repeat,linear-gradient(#f2e8cf,#f2e8cf) 77% 35%/.9em 1em no-repeat,linear-gradient(#6b4226,#6b4226) 50% 40%/76% .3em no-repeat,linear-gradient(#6b4226,#6b4226) 50% 70%/76% .3em no-repeat,linear-gradient(180deg,transparent 74%,#5a321c 74% 76%,#7a4a2a 76%),linear-gradient(#3b2418,#1f120b);
  --sf: linear-gradient(rgba(255,248,236,.5),rgba(255,248,236,.5)),radial-gradient(7em 6em at 30% 19%,color-mix(in srgb,var(--c1) 70%,#fff),transparent 70%),radial-gradient(7em 6em at 50% 19%,color-mix(in srgb,var(--c1) 70%,#fff),transparent 70%),radial-gradient(7em 6em at 70% 19%,color-mix(in srgb,var(--c1) 70%,#fff),transparent 70%),linear-gradient(180deg,transparent 30%,rgba(120,80,50,.6) 37% 42%,transparent 50%),linear-gradient(180deg,transparent 68%,#8a5a3a 80%),linear-gradient(#6b4a38,#4a3022);
  --gx: .3;
  background: var(--sc);
}

.uvq11-etch .dr {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1em solid var(--c2);
  border-bottom-width: 2.3em;
  border-radius: inherit;
  transform-origin: 0 50%;
  transition: transform calc(0.9s / var(--k)) cubic-bezier(.22,1,.36,1);
  box-shadow: inset 0 0 0 .12em rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.4);
}

.uvq11-etch.on .dr {
  transform: perspective(40em) rotateY(-58deg);
}

.uvq11-etch .dr:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -1.4em;
}

.uvq11-etch .dr::before {
  content: "";
  position: absolute;
  left: -1em;
  right: -1em;
  bottom: -2.3em;
  height: 2.3em;
  background: linear-gradient(180deg,rgba(255,255,255,.12),transparent 30%),repeating-linear-gradient(90deg,transparent 0 .9em,rgba(0,0,0,.12) .9em 1em);
}

.uvq11-etch .pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 1.4em rgba(0,0,0,.35);
}

.uvq11-etch .et {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .35em;
  padding-bottom: 1em;
  background: var(--sf);
  background-size: 20em 14em;
  background-position: -1em -1em;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 .05em 0 rgba(255,255,255,.35)) drop-shadow(0 -.04em 0 rgba(0,0,0,.35));
}

.uvq11-etch .et b {
  font-family: "Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  font-size: 2.5em;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}

.uvq11-etch .et small {
  font-size: .66em;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.uvq11-etch .et small::before {
  content: "· ";
}

.uvq11-etch .et small::after {
  content: " ·";
}

.uvq11-etch .gl {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,transparent calc(var(--gx) * 100% - 24%),rgba(255,255,255,.2) calc(var(--gx) * 100% - 7%),rgba(255,255,255,.06) calc(var(--gx) * 100% + 3%),transparent calc(var(--gx) * 100% + 16%)),linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%);
  transition: background calc(0.15s / var(--k)) linear;
}

.uvq11-etch .hdl {
  position: absolute;
  right: -.75em;
  top: 30%;
  width: .36em;
  height: 3.8em;
  border-radius: .2em;
  background: linear-gradient(90deg,#7a5c1e,#f7e3a6 40%,#c9a24a 60%,#5e4612);
  box-shadow: -.15em .2em .3em rgba(0,0,0,.5);
}

.uvq11-etch .tag {
  position: absolute;
  left: 50%;
  top: -.4em;
  width: 4em;
  height: 2.4em;
  margin-left: -2em;
  transform-origin: 50% 0;
}

.uvq11-etch .tag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1.6em;
  height: 1.3em;
  margin-left: -.8em;
  border: 1px solid rgba(240,220,180,.8);
  border-bottom: 0;
  clip-path: polygon(50% 0,100% 100%,0 100%);
}

.uvq11-etch .tag span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .3em 0;
  border-radius: .25em;
  text-align: center;
  font-size: .58em;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c2);
  background: #f6eedc;
  box-shadow: 0 .25em .5em rgba(0,0,0,.4);
}

.uvq11-etch.sw .tag {
  animation: uvq11-etch calc(1.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

@keyframes uvq11-etch {
  0%,100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(12deg);
  }
  40% {
    transform: rotate(-9deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-2deg);
  }
}

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

### JavaScript

```js
document.querySelectorAll(".uvq11-etch").forEach(el => {
  const dr=el.querySelector(".dr");let t=0;dr.addEventListener("click",()=>{const o=!el.classList.contains("on");el.classList.toggle("on",o);dr.setAttribute("aria-pressed",String(o));el.classList.remove("sw");void el.offsetWidth;el.classList.add("sw");clearTimeout(t);t=setTimeout(()=>el.classList.remove("sw"),1500)});
el.addEventListener("pointermove",e=>{const r=el.getBoundingClientRect();el.style.setProperty("--gx",((e.clientX-r.left)/r.width).toFixed(3))});
return()=>clearTimeout(t)
});
```

### 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 = `
.uvq11-etch {
  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: 20em;
  height: 14em;
  border-radius: 1.6em;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  --sc: radial-gradient(.75em .75em at 30% 17%,#fffbe6 0 45%,var(--c1) 75%,transparent 80%),radial-gradient(.75em .75em at 50% 17%,#fffbe6 0 45%,var(--c1) 75%,transparent 80%),radial-gradient(.75em .75em at 70% 17%,#fffbe6 0 45%,var(--c1) 75%,transparent 80%),radial-gradient(5em 4em at 30% 19%,color-mix(in srgb,var(--c1) 45%,transparent),transparent 70%),radial-gradient(5em 4em at 50% 19%,color-mix(in srgb,var(--c1) 45%,transparent),transparent 70%),radial-gradient(5em 4em at 70% 19%,color-mix(in srgb,var(--c1) 45%,transparent),transparent 70%),linear-gradient(#120a06,#120a06) 30% 0/.08em 14% no-repeat,linear-gradient(#120a06,#120a06) 50% 0/.08em 14% no-repeat,linear-gradient(#120a06,#120a06) 70% 0/.08em 14% no-repeat,linear-gradient(#2f6f4f,#2f6f4f) 24% 32%/.5em 1.5em no-repeat,linear-gradient(#8c2f39,#8c2f39) 29% 33%/.45em 1.3em no-repeat,linear-gradient(#d9a441,#d9a441) 62% 34%/.6em 1.2em no-repeat,linear-gradient(#3d5a80,#3d5a80) 70% 32%/.45em 1.5em no-repeat,linear-gradient(#f2e8cf,#f2e8cf) 77% 35%/.9em 1em no-repeat,linear-gradient(#6b4226,#6b4226) 50% 40%/76% .3em no-repeat,linear-gradient(#6b4226,#6b4226) 50% 70%/76% .3em no-repeat,linear-gradient(180deg,transparent 74%,#5a321c 74% 76%,#7a4a2a 76%),linear-gradient(#3b2418,#1f120b);
  --sf: linear-gradient(rgba(255,248,236,.5),rgba(255,248,236,.5)),radial-gradient(7em 6em at 30% 19%,color-mix(in srgb,var(--c1) 70%,#fff),transparent 70%),radial-gradient(7em 6em at 50% 19%,color-mix(in srgb,var(--c1) 70%,#fff),transparent 70%),radial-gradient(7em 6em at 70% 19%,color-mix(in srgb,var(--c1) 70%,#fff),transparent 70%),linear-gradient(180deg,transparent 30%,rgba(120,80,50,.6) 37% 42%,transparent 50%),linear-gradient(180deg,transparent 68%,#8a5a3a 80%),linear-gradient(#6b4a38,#4a3022);
  --gx: .3;
  background: var(--sc);
}

.uvq11-etch .dr {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1em solid var(--c2);
  border-bottom-width: 2.3em;
  border-radius: inherit;
  transform-origin: 0 50%;
  transition: transform calc(0.9s / var(--k)) cubic-bezier(.22,1,.36,1);
  box-shadow: inset 0 0 0 .12em rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.4);
}

.uvq11-etch.on .dr {
  transform: perspective(40em) rotateY(-58deg);
}

.uvq11-etch .dr:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -1.4em;
}

.uvq11-etch .dr::before {
  content: "";
  position: absolute;
  left: -1em;
  right: -1em;
  bottom: -2.3em;
  height: 2.3em;
  background: linear-gradient(180deg,rgba(255,255,255,.12),transparent 30%),repeating-linear-gradient(90deg,transparent 0 .9em,rgba(0,0,0,.12) .9em 1em);
}

.uvq11-etch .pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 1.4em rgba(0,0,0,.35);
}

.uvq11-etch .et {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .35em;
  padding-bottom: 1em;
  background: var(--sf);
  background-size: 20em 14em;
  background-position: -1em -1em;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 .05em 0 rgba(255,255,255,.35)) drop-shadow(0 -.04em 0 rgba(0,0,0,.35));
}

.uvq11-etch .et b {
  font-family: "Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  font-size: 2.5em;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}

.uvq11-etch .et small {
  font-size: .66em;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.uvq11-etch .et small::before {
  content: "· ";
}

.uvq11-etch .et small::after {
  content: " ·";
}

.uvq11-etch .gl {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,transparent calc(var(--gx) * 100% - 24%),rgba(255,255,255,.2) calc(var(--gx) * 100% - 7%),rgba(255,255,255,.06) calc(var(--gx) * 100% + 3%),transparent calc(var(--gx) * 100% + 16%)),linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%);
  transition: background calc(0.15s / var(--k)) linear;
}

.uvq11-etch .hdl {
  position: absolute;
  right: -.75em;
  top: 30%;
  width: .36em;
  height: 3.8em;
  border-radius: .2em;
  background: linear-gradient(90deg,#7a5c1e,#f7e3a6 40%,#c9a24a 60%,#5e4612);
  box-shadow: -.15em .2em .3em rgba(0,0,0,.5);
}

.uvq11-etch .tag {
  position: absolute;
  left: 50%;
  top: -.4em;
  width: 4em;
  height: 2.4em;
  margin-left: -2em;
  transform-origin: 50% 0;
}

.uvq11-etch .tag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1.6em;
  height: 1.3em;
  margin-left: -.8em;
  border: 1px solid rgba(240,220,180,.8);
  border-bottom: 0;
  clip-path: polygon(50% 0,100% 100%,0 100%);
}

.uvq11-etch .tag span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .3em 0;
  border-radius: .25em;
  text-align: center;
  font-size: .58em;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c2);
  background: #f6eedc;
  box-shadow: 0 .25em .5em rgba(0,0,0,.4);
}

.uvq11-etch.sw .tag {
  animation: uvq11-etch calc(1.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

@keyframes uvq11-etch {
  0%,100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(12deg);
  }
  40% {
    transform: rotate(-9deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-2deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq11-etch,.uvq11-etch *,.uvq11-etch *::before,.uvq11-etch *::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 dr=el.querySelector(".dr");let t=0;dr.addEventListener("click",()=>{const o=!el.classList.contains("on");el.classList.toggle("on",o);dr.setAttribute("aria-pressed",String(o));el.classList.remove("sw");void el.offsetWidth;el.classList.add("sw");clearTimeout(t);t=setTimeout(()=>el.classList.remove("sw"),1500)});
el.addEventListener("pointermove",e=>{const r=el.getBoundingClientRect();el.style.setProperty("--gx",((e.clientX-r.left)/r.width).toFixed(3))});
return()=>clearTimeout(t)
}

export default function LgEtchedSign() {
  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": "#f4a259",
          "--c2": "#1f3a2e",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq11-etch"><button type="button" className="dr" aria-pressed="false" aria-label="Open the café door"><span className="pane"><span className="et"><b>Café Norte</b><small>since 1962</small></span><span className="gl"></span></span><span className="hdl"></span><span className="tag"><span>Open</span></span></button></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 “Glass door with etched lettering” block (Liquid Glass) from AIMRAN Library to my project.

## What it is
The café name etched into the door glass, with a glare that follows the cursor; tap the door and it swings open.

## Chosen settings
- Main color: #f4a259
- Secondary color: #1f3a2e
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Café Norte"

## 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 = `
.uvq11-etch {
  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: 20em;
  height: 14em;
  border-radius: 1.6em;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  -webkit-user-select: none;
  user-select: none;
  --sc: radial-gradient(.75em .75em at 30% 17%,#fffbe6 0 45%,var(--c1) 75%,transparent 80%),radial-gradient(.75em .75em at 50% 17%,#fffbe6 0 45%,var(--c1) 75%,transparent 80%),radial-gradient(.75em .75em at 70% 17%,#fffbe6 0 45%,var(--c1) 75%,transparent 80%),radial-gradient(5em 4em at 30% 19%,color-mix(in srgb,var(--c1) 45%,transparent),transparent 70%),radial-gradient(5em 4em at 50% 19%,color-mix(in srgb,var(--c1) 45%,transparent),transparent 70%),radial-gradient(5em 4em at 70% 19%,color-mix(in srgb,var(--c1) 45%,transparent),transparent 70%),linear-gradient(#120a06,#120a06) 30% 0/.08em 14% no-repeat,linear-gradient(#120a06,#120a06) 50% 0/.08em 14% no-repeat,linear-gradient(#120a06,#120a06) 70% 0/.08em 14% no-repeat,linear-gradient(#2f6f4f,#2f6f4f) 24% 32%/.5em 1.5em no-repeat,linear-gradient(#8c2f39,#8c2f39) 29% 33%/.45em 1.3em no-repeat,linear-gradient(#d9a441,#d9a441) 62% 34%/.6em 1.2em no-repeat,linear-gradient(#3d5a80,#3d5a80) 70% 32%/.45em 1.5em no-repeat,linear-gradient(#f2e8cf,#f2e8cf) 77% 35%/.9em 1em no-repeat,linear-gradient(#6b4226,#6b4226) 50% 40%/76% .3em no-repeat,linear-gradient(#6b4226,#6b4226) 50% 70%/76% .3em no-repeat,linear-gradient(180deg,transparent 74%,#5a321c 74% 76%,#7a4a2a 76%),linear-gradient(#3b2418,#1f120b);
  --sf: linear-gradient(rgba(255,248,236,.5),rgba(255,248,236,.5)),radial-gradient(7em 6em at 30% 19%,color-mix(in srgb,var(--c1) 70%,#fff),transparent 70%),radial-gradient(7em 6em at 50% 19%,color-mix(in srgb,var(--c1) 70%,#fff),transparent 70%),radial-gradient(7em 6em at 70% 19%,color-mix(in srgb,var(--c1) 70%,#fff),transparent 70%),linear-gradient(180deg,transparent 30%,rgba(120,80,50,.6) 37% 42%,transparent 50%),linear-gradient(180deg,transparent 68%,#8a5a3a 80%),linear-gradient(#6b4a38,#4a3022);
  --gx: .3;
  background: var(--sc);
}

.uvq11-etch .dr {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1em solid var(--c2);
  border-bottom-width: 2.3em;
  border-radius: inherit;
  transform-origin: 0 50%;
  transition: transform calc(0.9s / var(--k)) cubic-bezier(.22,1,.36,1);
  box-shadow: inset 0 0 0 .12em rgba(0,0,0,.35),0 0 0 1px rgba(0,0,0,.4);
}

.uvq11-etch.on .dr {
  transform: perspective(40em) rotateY(-58deg);
}

.uvq11-etch .dr:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -1.4em;
}

.uvq11-etch .dr::before {
  content: "";
  position: absolute;
  left: -1em;
  right: -1em;
  bottom: -2.3em;
  height: 2.3em;
  background: linear-gradient(180deg,rgba(255,255,255,.12),transparent 30%),repeating-linear-gradient(90deg,transparent 0 .9em,rgba(0,0,0,.12) .9em 1em);
}

.uvq11-etch .pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 1.4em rgba(0,0,0,.35);
}

.uvq11-etch .et {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .35em;
  padding-bottom: 1em;
  background: var(--sf);
  background-size: 20em 14em;
  background-position: -1em -1em;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 .05em 0 rgba(255,255,255,.35)) drop-shadow(0 -.04em 0 rgba(0,0,0,.35));
}

.uvq11-etch .et b {
  font-family: "Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  font-size: 2.5em;
  font-weight: 600;
  font-style: italic;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}

.uvq11-etch .et small {
  font-size: .66em;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.uvq11-etch .et small::before {
  content: "· ";
}

.uvq11-etch .et small::after {
  content: " ·";
}

.uvq11-etch .gl {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,transparent calc(var(--gx) * 100% - 24%),rgba(255,255,255,.2) calc(var(--gx) * 100% - 7%),rgba(255,255,255,.06) calc(var(--gx) * 100% + 3%),transparent calc(var(--gx) * 100% + 16%)),linear-gradient(180deg,rgba(255,255,255,.08),transparent 40%);
  transition: background calc(0.15s / var(--k)) linear;
}

.uvq11-etch .hdl {
  position: absolute;
  right: -.75em;
  top: 30%;
  width: .36em;
  height: 3.8em;
  border-radius: .2em;
  background: linear-gradient(90deg,#7a5c1e,#f7e3a6 40%,#c9a24a 60%,#5e4612);
  box-shadow: -.15em .2em .3em rgba(0,0,0,.5);
}

.uvq11-etch .tag {
  position: absolute;
  left: 50%;
  top: -.4em;
  width: 4em;
  height: 2.4em;
  margin-left: -2em;
  transform-origin: 50% 0;
}

.uvq11-etch .tag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1.6em;
  height: 1.3em;
  margin-left: -.8em;
  border: 1px solid rgba(240,220,180,.8);
  border-bottom: 0;
  clip-path: polygon(50% 0,100% 100%,0 100%);
}

.uvq11-etch .tag span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .3em 0;
  border-radius: .25em;
  text-align: center;
  font-size: .58em;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c2);
  background: #f6eedc;
  box-shadow: 0 .25em .5em rgba(0,0,0,.4);
}

.uvq11-etch.sw .tag {
  animation: uvq11-etch calc(1.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

@keyframes uvq11-etch {
  0%,100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(12deg);
  }
  40% {
    transform: rotate(-9deg);
  }
  60% {
    transform: rotate(5deg);
  }
  80% {
    transform: rotate(-2deg);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq11-etch,.uvq11-etch *,.uvq11-etch *::before,.uvq11-etch *::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 dr=el.querySelector(".dr");let t=0;dr.addEventListener("click",()=>{const o=!el.classList.contains("on");el.classList.toggle("on",o);dr.setAttribute("aria-pressed",String(o));el.classList.remove("sw");void el.offsetWidth;el.classList.add("sw");clearTimeout(t);t=setTimeout(()=>el.classList.remove("sw"),1500)});
el.addEventListener("pointermove",e=>{const r=el.getBoundingClientRect();el.style.setProperty("--gx",((e.clientX-r.left)/r.width).toFixed(3))});
return()=>clearTimeout(t)
}

export default function LgEtchedSign() {
  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": "#f4a259",
          "--c2": "#1f3a2e",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq11-etch"><button type="button" className="dr" aria-pressed="false" aria-label="Open the café door"><span className="pane"><span className="et"><b>Café Norte</b><small>since 1962</small></span><span className="gl"></span></span><span className="hdl"></span><span className="tag"><span>Open</span></span></button></div>
      </div>
    </>
  );
}
```

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