# Watch with date magnifier

> A watch dial under sapphire crystal with a cyclops lens over the date; press the crown to change the day.

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

## Where to use it

A dress watch drawn entirely in CSS: fluted gold bezel, sunburst dial, applied indices and a bracelet. The star is the cyclops, a small raised lens that magnifies the date window two and a half times, with its own highlights and blue anti-reflective tint. The hands follow the real time. Good for watch shops, calendars and booking pages.

Swap the dial and gold colors for a steel, black or blue look, and replace the brand text with your own. The crown works as a spin button, so arrow keys and clicks move the date forward or back.

## Code

### HTML

```html
<div class="uvq11-cyc"><div class="wt"><div class="dl"><i class="ix tw" style="--i:0"></i><i class="ix" style="--i:1"></i><i class="ix" style="--i:2"></i><i class="ix" style="--i:4"></i><i class="ix" style="--i:5"></i><i class="ix" style="--i:6"></i><i class="ix" style="--i:7"></i><i class="ix" style="--i:8"></i><i class="ix" style="--i:9"></i><i class="ix" style="--i:10"></i><i class="ix" style="--i:11"></i><span class="br">AIMRAN</span><span class="sb">Automatic</span><span class="dw"><b>14</b></span><i class="hh"></i><i class="mh"></i><i class="sh"></i><i class="cp"></i></div><div class="cr" aria-hidden="true"></div><div class="cy" aria-hidden="true"><b>14</b></div><span class="cw" role="spinbutton" tabindex="0" aria-label="Date" aria-valuemin="1" aria-valuemax="31" aria-valuenow="14"></span></div><p class="hn">Press the crown</p></div>
```

### CSS

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

.uvq11-cyc {
  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;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 70% at 50% 45%,#3a2d22,#140f0b 75%);
}

.uvq11-cyc .wt {
  position: relative;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: repeating-conic-gradient(from 3deg,#f7e3a6 0 2deg,var(--c2) 2deg 4deg,#7a5c1e 4deg 6deg);
  box-shadow: 0 0 0 .25em #a8873a,0 0 0 .32em #f1d793,0 1.2em 2em -.6em rgba(0,0,0,.8);
}

.uvq11-cyc .wt::before,.uvq11-cyc .wt::after {
  content: "";
  position: absolute;
  left: 2.6em;
  right: 2.6em;
  height: 4em;
  z-index: -1;
  background: repeating-linear-gradient(90deg,#9aa0a8 0 .2em,#e5e8ec .2em 1.6em,#8b9097 1.6em 1.8em,#d5d9de 1.8em 3.2em);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.uvq11-cyc .wt::before {
  bottom: calc(100% - .6em);
}

.uvq11-cyc .wt::after {
  top: calc(100% - .6em);
}

.uvq11-cyc .dl {
  position: absolute;
  inset: .85em;
  border-radius: 50%;
  overflow: hidden;
  background: repeating-conic-gradient(rgba(255,255,255,.05) 0 1deg,rgba(0,0,0,.05) 1deg 2deg),radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--c1) 70%,#fff),var(--c1) 45%,color-mix(in srgb,var(--c1) 55%,#000));
  box-shadow: inset 0 0 0 .12em #2b2412;
}

.uvq11-cyc .ix {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .42em;
  height: 1.05em;
  margin: -.52em 0 0 -.21em;
  border-radius: .1em;
  background: linear-gradient(#fffdf3,#e9e3cc);
  box-shadow: 0 0 0 .07em var(--c2);
  transform: rotate(calc(var(--i) * 30deg)) translateY(-3.75em);
}

.uvq11-cyc .ix.tw {
  width: .95em;
  margin-left: -.47em;
  clip-path: polygon(0 0,100% 0,50% 100%);
}

.uvq11-cyc .br {
  position: absolute;
  left: 0;
  right: 0;
  top: 27%;
  text-align: center;
  font-size: .62em;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--c2);
}

.uvq11-cyc .sb {
  position: absolute;
  left: 0;
  right: 0;
  top: 65%;
  text-align: center;
  font-size: .42em;
  font-style: italic;
  letter-spacing: .06em;
  color: rgba(255,255,255,.75);
}

.uvq11-cyc .dw {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.05em;
  height: .9em;
  display: grid;
  place-items: center;
  transform: translate(calc(-50% + 3.15em),-50%);
  background: #fff;
  box-shadow: 0 0 0 .08em var(--c2),inset 0 .08em .1em rgba(0,0,0,.25);
}

.uvq11-cyc .dw b {
  font-size: .5em;
  color: #111;
}

.uvq11-cyc .hh,.uvq11-cyc .mh,.uvq11-cyc .sh {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: .3em .3em .1em .1em;
}

.uvq11-cyc .hh {
  width: .42em;
  height: 2.4em;
  margin-left: -.21em;
  background: linear-gradient(90deg,#c9a24a,#fff4cf,#a9822f);
  box-shadow: 0 .15em .3em rgba(0,0,0,.4);
}

.uvq11-cyc .mh {
  width: .3em;
  height: 3.6em;
  margin-left: -.15em;
  background: linear-gradient(90deg,#c9a24a,#fff4cf,#a9822f);
  box-shadow: 0 .15em .3em rgba(0,0,0,.4);
}

.uvq11-cyc .sh {
  width: .09em;
  height: 4.1em;
  margin-left: -.045em;
  background: #e2b640;
  box-shadow: 0 .1em .2em rgba(0,0,0,.4);
}

.uvq11-cyc .cp {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .5em;
  height: .5em;
  margin: -.25em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,#fff4cf,var(--c2));
}

.uvq11-cyc .cr {
  position: absolute;
  inset: .85em;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(125deg,rgba(255,255,255,.3) 0%,rgba(255,255,255,.07) 28%,transparent 46%),radial-gradient(120% 55% at 50% -15%,rgba(255,255,255,.2),transparent 60%),radial-gradient(circle at 70% 85%,rgba(255,255,255,.12),transparent 30%);
  box-shadow: inset 0 0 1em rgba(120,170,255,.25),inset 0 .12em .2em rgba(255,255,255,.45);
}

.uvq11-cyc .cy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.05em;
  height: 1.75em;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: .5em;
  transform: translate(calc(-50% + 3.15em),-50%);
  background: radial-gradient(ellipse at 50% 45%,#fff 0 52%,#e8e4d6 64%,color-mix(in srgb,var(--c1) 70%,#000) 80%);
  box-shadow: inset 0 .14em .1em rgba(255,255,255,.95),inset 0 -.18em .25em rgba(0,0,0,.35),inset .12em 0 .2em rgba(120,170,255,.35),0 .22em .35em rgba(0,0,0,.5),0 0 0 .05em rgba(255,255,255,.6);
}

.uvq11-cyc .cy::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 8%;
  width: 60%;
  height: 24%;
  border-radius: 50%;
  background: linear-gradient(rgba(255,255,255,.85),rgba(255,255,255,0));
}

.uvq11-cyc .cy b {
  font-size: 1.15em;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.uvq11-cyc .cy b.in {
  animation: uvq11-cyc calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq11-cyc .cw {
  position: absolute;
  left: 100%;
  top: 50%;
  width: .95em;
  height: 1.7em;
  margin: -.85em 0 0 .1em;
  border-radius: .2em .35em .35em .2em;
  cursor: pointer;
  background: repeating-linear-gradient(0deg,#7a5c1e 0 .1em,#f7e3a6 .1em .2em,var(--c2) .2em .3em);
  background-size: 100% .3em;
  box-shadow: inset -.12em 0 .2em rgba(0,0,0,.35),0 .2em .4em rgba(0,0,0,.5);
  transition: transform calc(0.2s / var(--k)) cubic-bezier(.34,1.56,.64,1),background-position calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq11-cyc .cw:active {
  transform: translateX(-.15em);
}

.uvq11-cyc .cw:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.uvq11-cyc .hn {
  position: absolute;
  right: 1em;
  bottom: .8em;
  margin: 0;
  font-size: .62em;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}

@keyframes uvq11-cyc {
  from {
    transform: translateY(-110%);
  }
}

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

### JavaScript

```js
document.querySelectorAll(".uvq11-cyc").forEach(el => {
  const cw=el.querySelector(".cw"),ns=el.querySelectorAll(".dw b,.cy b"),big=el.querySelector(".cy b"),hh=el.querySelector(".hh"),mh=el.querySelector(".mh"),sh=el.querySelector(".sh");let d=new Date().getDate(),turn=0;
const set=v=>{d=((v-1)%31+31)%31+1;ns.forEach(n=>n.textContent=String(d));cw.setAttribute("aria-valuenow",String(d));big.classList.remove("in");void big.offsetWidth;big.classList.add("in");turn+=1;cw.style.backgroundPosition="0 "+(turn*.3)+"em"};
ns.forEach(n=>n.textContent=String(d));cw.setAttribute("aria-valuenow",String(d));
const tick=()=>{const n=new Date(),s=n.getSeconds()+n.getMilliseconds()/1000,m=n.getMinutes()+s/60,h=n.getHours()%12+m/60;hh.style.transform="rotate("+h*30+"deg)";mh.style.transform="rotate("+m*6+"deg)";sh.style.transform="rotate("+(Math.floor(s*8)/8)*6+"deg)"};
tick();const iv=setInterval(tick,125);
cw.addEventListener("click",()=>set(d+1));
cw.addEventListener("keydown",e=>{const k={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1,PageUp:7,PageDown:-7}[e.key];if(k){e.preventDefault();set(d+k)}else if(e.key==="Enter"||e.key===" "){e.preventDefault();set(d+1)}else if(e.key==="Home"){e.preventDefault();set(1)}else if(e.key==="End"){e.preventDefault();set(31)}});
return()=>clearInterval(iv)
});
```

### 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-cyc {
  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;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 70% at 50% 45%,#3a2d22,#140f0b 75%);
}

.uvq11-cyc .wt {
  position: relative;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: repeating-conic-gradient(from 3deg,#f7e3a6 0 2deg,var(--c2) 2deg 4deg,#7a5c1e 4deg 6deg);
  box-shadow: 0 0 0 .25em #a8873a,0 0 0 .32em #f1d793,0 1.2em 2em -.6em rgba(0,0,0,.8);
}

.uvq11-cyc .wt::before,.uvq11-cyc .wt::after {
  content: "";
  position: absolute;
  left: 2.6em;
  right: 2.6em;
  height: 4em;
  z-index: -1;
  background: repeating-linear-gradient(90deg,#9aa0a8 0 .2em,#e5e8ec .2em 1.6em,#8b9097 1.6em 1.8em,#d5d9de 1.8em 3.2em);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.uvq11-cyc .wt::before {
  bottom: calc(100% - .6em);
}

.uvq11-cyc .wt::after {
  top: calc(100% - .6em);
}

.uvq11-cyc .dl {
  position: absolute;
  inset: .85em;
  border-radius: 50%;
  overflow: hidden;
  background: repeating-conic-gradient(rgba(255,255,255,.05) 0 1deg,rgba(0,0,0,.05) 1deg 2deg),radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--c1) 70%,#fff),var(--c1) 45%,color-mix(in srgb,var(--c1) 55%,#000));
  box-shadow: inset 0 0 0 .12em #2b2412;
}

.uvq11-cyc .ix {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .42em;
  height: 1.05em;
  margin: -.52em 0 0 -.21em;
  border-radius: .1em;
  background: linear-gradient(#fffdf3,#e9e3cc);
  box-shadow: 0 0 0 .07em var(--c2);
  transform: rotate(calc(var(--i) * 30deg)) translateY(-3.75em);
}

.uvq11-cyc .ix.tw {
  width: .95em;
  margin-left: -.47em;
  clip-path: polygon(0 0,100% 0,50% 100%);
}

.uvq11-cyc .br {
  position: absolute;
  left: 0;
  right: 0;
  top: 27%;
  text-align: center;
  font-size: .62em;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--c2);
}

.uvq11-cyc .sb {
  position: absolute;
  left: 0;
  right: 0;
  top: 65%;
  text-align: center;
  font-size: .42em;
  font-style: italic;
  letter-spacing: .06em;
  color: rgba(255,255,255,.75);
}

.uvq11-cyc .dw {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.05em;
  height: .9em;
  display: grid;
  place-items: center;
  transform: translate(calc(-50% + 3.15em),-50%);
  background: #fff;
  box-shadow: 0 0 0 .08em var(--c2),inset 0 .08em .1em rgba(0,0,0,.25);
}

.uvq11-cyc .dw b {
  font-size: .5em;
  color: #111;
}

.uvq11-cyc .hh,.uvq11-cyc .mh,.uvq11-cyc .sh {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: .3em .3em .1em .1em;
}

.uvq11-cyc .hh {
  width: .42em;
  height: 2.4em;
  margin-left: -.21em;
  background: linear-gradient(90deg,#c9a24a,#fff4cf,#a9822f);
  box-shadow: 0 .15em .3em rgba(0,0,0,.4);
}

.uvq11-cyc .mh {
  width: .3em;
  height: 3.6em;
  margin-left: -.15em;
  background: linear-gradient(90deg,#c9a24a,#fff4cf,#a9822f);
  box-shadow: 0 .15em .3em rgba(0,0,0,.4);
}

.uvq11-cyc .sh {
  width: .09em;
  height: 4.1em;
  margin-left: -.045em;
  background: #e2b640;
  box-shadow: 0 .1em .2em rgba(0,0,0,.4);
}

.uvq11-cyc .cp {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .5em;
  height: .5em;
  margin: -.25em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,#fff4cf,var(--c2));
}

.uvq11-cyc .cr {
  position: absolute;
  inset: .85em;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(125deg,rgba(255,255,255,.3) 0%,rgba(255,255,255,.07) 28%,transparent 46%),radial-gradient(120% 55% at 50% -15%,rgba(255,255,255,.2),transparent 60%),radial-gradient(circle at 70% 85%,rgba(255,255,255,.12),transparent 30%);
  box-shadow: inset 0 0 1em rgba(120,170,255,.25),inset 0 .12em .2em rgba(255,255,255,.45);
}

.uvq11-cyc .cy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.05em;
  height: 1.75em;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: .5em;
  transform: translate(calc(-50% + 3.15em),-50%);
  background: radial-gradient(ellipse at 50% 45%,#fff 0 52%,#e8e4d6 64%,color-mix(in srgb,var(--c1) 70%,#000) 80%);
  box-shadow: inset 0 .14em .1em rgba(255,255,255,.95),inset 0 -.18em .25em rgba(0,0,0,.35),inset .12em 0 .2em rgba(120,170,255,.35),0 .22em .35em rgba(0,0,0,.5),0 0 0 .05em rgba(255,255,255,.6);
}

.uvq11-cyc .cy::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 8%;
  width: 60%;
  height: 24%;
  border-radius: 50%;
  background: linear-gradient(rgba(255,255,255,.85),rgba(255,255,255,0));
}

.uvq11-cyc .cy b {
  font-size: 1.15em;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.uvq11-cyc .cy b.in {
  animation: uvq11-cyc calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq11-cyc .cw {
  position: absolute;
  left: 100%;
  top: 50%;
  width: .95em;
  height: 1.7em;
  margin: -.85em 0 0 .1em;
  border-radius: .2em .35em .35em .2em;
  cursor: pointer;
  background: repeating-linear-gradient(0deg,#7a5c1e 0 .1em,#f7e3a6 .1em .2em,var(--c2) .2em .3em);
  background-size: 100% .3em;
  box-shadow: inset -.12em 0 .2em rgba(0,0,0,.35),0 .2em .4em rgba(0,0,0,.5);
  transition: transform calc(0.2s / var(--k)) cubic-bezier(.34,1.56,.64,1),background-position calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq11-cyc .cw:active {
  transform: translateX(-.15em);
}

.uvq11-cyc .cw:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.uvq11-cyc .hn {
  position: absolute;
  right: 1em;
  bottom: .8em;
  margin: 0;
  font-size: .62em;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}

@keyframes uvq11-cyc {
  from {
    transform: translateY(-110%);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq11-cyc,.uvq11-cyc *,.uvq11-cyc *::before,.uvq11-cyc *::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 cw=el.querySelector(".cw"),ns=el.querySelectorAll(".dw b,.cy b"),big=el.querySelector(".cy b"),hh=el.querySelector(".hh"),mh=el.querySelector(".mh"),sh=el.querySelector(".sh");let d=new Date().getDate(),turn=0;
const set=v=>{d=((v-1)%31+31)%31+1;ns.forEach(n=>n.textContent=String(d));cw.setAttribute("aria-valuenow",String(d));big.classList.remove("in");void big.offsetWidth;big.classList.add("in");turn+=1;cw.style.backgroundPosition="0 "+(turn*.3)+"em"};
ns.forEach(n=>n.textContent=String(d));cw.setAttribute("aria-valuenow",String(d));
const tick=()=>{const n=new Date(),s=n.getSeconds()+n.getMilliseconds()/1000,m=n.getMinutes()+s/60,h=n.getHours()%12+m/60;hh.style.transform="rotate("+h*30+"deg)";mh.style.transform="rotate("+m*6+"deg)";sh.style.transform="rotate("+(Math.floor(s*8)/8)*6+"deg)"};
tick();const iv=setInterval(tick,125);
cw.addEventListener("click",()=>set(d+1));
cw.addEventListener("keydown",e=>{const k={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1,PageUp:7,PageDown:-7}[e.key];if(k){e.preventDefault();set(d+k)}else if(e.key==="Enter"||e.key===" "){e.preventDefault();set(d+1)}else if(e.key==="Home"){e.preventDefault();set(1)}else if(e.key==="End"){e.preventDefault();set(31)}});
return()=>clearInterval(iv)
}

export default function LgCyclopsDate() {
  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": "#0e5c45",
          "--c2": "#d9b45a",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq11-cyc"><div className="wt"><div className="dl"><i className="ix tw" style={{ "--i": "0" } as CSSProperties}></i><i className="ix" style={{ "--i": "1" } as CSSProperties}></i><i className="ix" style={{ "--i": "2" } as CSSProperties}></i><i className="ix" style={{ "--i": "4" } as CSSProperties}></i><i className="ix" style={{ "--i": "5" } as CSSProperties}></i><i className="ix" style={{ "--i": "6" } as CSSProperties}></i><i className="ix" style={{ "--i": "7" } as CSSProperties}></i><i className="ix" style={{ "--i": "8" } as CSSProperties}></i><i className="ix" style={{ "--i": "9" } as CSSProperties}></i><i className="ix" style={{ "--i": "10" } as CSSProperties}></i><i className="ix" style={{ "--i": "11" } as CSSProperties}></i><span className="br">AIMRAN</span><span className="sb">Automatic</span><span className="dw"><b>14</b></span><i className="hh"></i><i className="mh"></i><i className="sh"></i><i className="cp"></i></div><div className="cr" aria-hidden="true"></div><div className="cy" aria-hidden="true"><b>14</b></div><span className="cw" role="spinbutton" tabIndex={0} aria-label="Date" aria-valuemin="1" aria-valuemax="31" aria-valuenow="14"></span></div><p className="hn">Press the crown</p></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 “Watch with date magnifier” block (Liquid Glass) from AIMRAN Library to my project.

## What it is
A watch dial under sapphire crystal with a cyclops lens over the date; press the crown to change the day.

## Chosen settings
- Main color: #0e5c45
- Secondary color: #d9b45a
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "AIMRAN"

## 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-cyc {
  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;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 70% at 50% 45%,#3a2d22,#140f0b 75%);
}

.uvq11-cyc .wt {
  position: relative;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: repeating-conic-gradient(from 3deg,#f7e3a6 0 2deg,var(--c2) 2deg 4deg,#7a5c1e 4deg 6deg);
  box-shadow: 0 0 0 .25em #a8873a,0 0 0 .32em #f1d793,0 1.2em 2em -.6em rgba(0,0,0,.8);
}

.uvq11-cyc .wt::before,.uvq11-cyc .wt::after {
  content: "";
  position: absolute;
  left: 2.6em;
  right: 2.6em;
  height: 4em;
  z-index: -1;
  background: repeating-linear-gradient(90deg,#9aa0a8 0 .2em,#e5e8ec .2em 1.6em,#8b9097 1.6em 1.8em,#d5d9de 1.8em 3.2em);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

.uvq11-cyc .wt::before {
  bottom: calc(100% - .6em);
}

.uvq11-cyc .wt::after {
  top: calc(100% - .6em);
}

.uvq11-cyc .dl {
  position: absolute;
  inset: .85em;
  border-radius: 50%;
  overflow: hidden;
  background: repeating-conic-gradient(rgba(255,255,255,.05) 0 1deg,rgba(0,0,0,.05) 1deg 2deg),radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--c1) 70%,#fff),var(--c1) 45%,color-mix(in srgb,var(--c1) 55%,#000));
  box-shadow: inset 0 0 0 .12em #2b2412;
}

.uvq11-cyc .ix {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .42em;
  height: 1.05em;
  margin: -.52em 0 0 -.21em;
  border-radius: .1em;
  background: linear-gradient(#fffdf3,#e9e3cc);
  box-shadow: 0 0 0 .07em var(--c2);
  transform: rotate(calc(var(--i) * 30deg)) translateY(-3.75em);
}

.uvq11-cyc .ix.tw {
  width: .95em;
  margin-left: -.47em;
  clip-path: polygon(0 0,100% 0,50% 100%);
}

.uvq11-cyc .br {
  position: absolute;
  left: 0;
  right: 0;
  top: 27%;
  text-align: center;
  font-size: .62em;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--c2);
}

.uvq11-cyc .sb {
  position: absolute;
  left: 0;
  right: 0;
  top: 65%;
  text-align: center;
  font-size: .42em;
  font-style: italic;
  letter-spacing: .06em;
  color: rgba(255,255,255,.75);
}

.uvq11-cyc .dw {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.05em;
  height: .9em;
  display: grid;
  place-items: center;
  transform: translate(calc(-50% + 3.15em),-50%);
  background: #fff;
  box-shadow: 0 0 0 .08em var(--c2),inset 0 .08em .1em rgba(0,0,0,.25);
}

.uvq11-cyc .dw b {
  font-size: .5em;
  color: #111;
}

.uvq11-cyc .hh,.uvq11-cyc .mh,.uvq11-cyc .sh {
  position: absolute;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: .3em .3em .1em .1em;
}

.uvq11-cyc .hh {
  width: .42em;
  height: 2.4em;
  margin-left: -.21em;
  background: linear-gradient(90deg,#c9a24a,#fff4cf,#a9822f);
  box-shadow: 0 .15em .3em rgba(0,0,0,.4);
}

.uvq11-cyc .mh {
  width: .3em;
  height: 3.6em;
  margin-left: -.15em;
  background: linear-gradient(90deg,#c9a24a,#fff4cf,#a9822f);
  box-shadow: 0 .15em .3em rgba(0,0,0,.4);
}

.uvq11-cyc .sh {
  width: .09em;
  height: 4.1em;
  margin-left: -.045em;
  background: #e2b640;
  box-shadow: 0 .1em .2em rgba(0,0,0,.4);
}

.uvq11-cyc .cp {
  position: absolute;
  left: 50%;
  top: 50%;
  width: .5em;
  height: .5em;
  margin: -.25em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,#fff4cf,var(--c2));
}

.uvq11-cyc .cr {
  position: absolute;
  inset: .85em;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(125deg,rgba(255,255,255,.3) 0%,rgba(255,255,255,.07) 28%,transparent 46%),radial-gradient(120% 55% at 50% -15%,rgba(255,255,255,.2),transparent 60%),radial-gradient(circle at 70% 85%,rgba(255,255,255,.12),transparent 30%);
  box-shadow: inset 0 0 1em rgba(120,170,255,.25),inset 0 .12em .2em rgba(255,255,255,.45);
}

.uvq11-cyc .cy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.05em;
  height: 1.75em;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: .5em;
  transform: translate(calc(-50% + 3.15em),-50%);
  background: radial-gradient(ellipse at 50% 45%,#fff 0 52%,#e8e4d6 64%,color-mix(in srgb,var(--c1) 70%,#000) 80%);
  box-shadow: inset 0 .14em .1em rgba(255,255,255,.95),inset 0 -.18em .25em rgba(0,0,0,.35),inset .12em 0 .2em rgba(120,170,255,.35),0 .22em .35em rgba(0,0,0,.5),0 0 0 .05em rgba(255,255,255,.6);
}

.uvq11-cyc .cy::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 8%;
  width: 60%;
  height: 24%;
  border-radius: 50%;
  background: linear-gradient(rgba(255,255,255,.85),rgba(255,255,255,0));
}

.uvq11-cyc .cy b {
  font-size: 1.15em;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
}

.uvq11-cyc .cy b.in {
  animation: uvq11-cyc calc(0.35s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq11-cyc .cw {
  position: absolute;
  left: 100%;
  top: 50%;
  width: .95em;
  height: 1.7em;
  margin: -.85em 0 0 .1em;
  border-radius: .2em .35em .35em .2em;
  cursor: pointer;
  background: repeating-linear-gradient(0deg,#7a5c1e 0 .1em,#f7e3a6 .1em .2em,var(--c2) .2em .3em);
  background-size: 100% .3em;
  box-shadow: inset -.12em 0 .2em rgba(0,0,0,.35),0 .2em .4em rgba(0,0,0,.5);
  transition: transform calc(0.2s / var(--k)) cubic-bezier(.34,1.56,.64,1),background-position calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq11-cyc .cw:active {
  transform: translateX(-.15em);
}

.uvq11-cyc .cw:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.uvq11-cyc .hn {
  position: absolute;
  right: 1em;
  bottom: .8em;
  margin: 0;
  font-size: .62em;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}

@keyframes uvq11-cyc {
  from {
    transform: translateY(-110%);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq11-cyc,.uvq11-cyc *,.uvq11-cyc *::before,.uvq11-cyc *::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 cw=el.querySelector(".cw"),ns=el.querySelectorAll(".dw b,.cy b"),big=el.querySelector(".cy b"),hh=el.querySelector(".hh"),mh=el.querySelector(".mh"),sh=el.querySelector(".sh");let d=new Date().getDate(),turn=0;
const set=v=>{d=((v-1)%31+31)%31+1;ns.forEach(n=>n.textContent=String(d));cw.setAttribute("aria-valuenow",String(d));big.classList.remove("in");void big.offsetWidth;big.classList.add("in");turn+=1;cw.style.backgroundPosition="0 "+(turn*.3)+"em"};
ns.forEach(n=>n.textContent=String(d));cw.setAttribute("aria-valuenow",String(d));
const tick=()=>{const n=new Date(),s=n.getSeconds()+n.getMilliseconds()/1000,m=n.getMinutes()+s/60,h=n.getHours()%12+m/60;hh.style.transform="rotate("+h*30+"deg)";mh.style.transform="rotate("+m*6+"deg)";sh.style.transform="rotate("+(Math.floor(s*8)/8)*6+"deg)"};
tick();const iv=setInterval(tick,125);
cw.addEventListener("click",()=>set(d+1));
cw.addEventListener("keydown",e=>{const k={ArrowUp:1,ArrowRight:1,ArrowDown:-1,ArrowLeft:-1,PageUp:7,PageDown:-7}[e.key];if(k){e.preventDefault();set(d+k)}else if(e.key==="Enter"||e.key===" "){e.preventDefault();set(d+1)}else if(e.key==="Home"){e.preventDefault();set(1)}else if(e.key==="End"){e.preventDefault();set(31)}});
return()=>clearInterval(iv)
}

export default function LgCyclopsDate() {
  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": "#0e5c45",
          "--c2": "#d9b45a",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq11-cyc"><div className="wt"><div className="dl"><i className="ix tw" style={{ "--i": "0" } as CSSProperties}></i><i className="ix" style={{ "--i": "1" } as CSSProperties}></i><i className="ix" style={{ "--i": "2" } as CSSProperties}></i><i className="ix" style={{ "--i": "4" } as CSSProperties}></i><i className="ix" style={{ "--i": "5" } as CSSProperties}></i><i className="ix" style={{ "--i": "6" } as CSSProperties}></i><i className="ix" style={{ "--i": "7" } as CSSProperties}></i><i className="ix" style={{ "--i": "8" } as CSSProperties}></i><i className="ix" style={{ "--i": "9" } as CSSProperties}></i><i className="ix" style={{ "--i": "10" } as CSSProperties}></i><i className="ix" style={{ "--i": "11" } as CSSProperties}></i><span className="br">AIMRAN</span><span className="sb">Automatic</span><span className="dw"><b>14</b></span><i className="hh"></i><i className="mh"></i><i className="sh"></i><i className="cp"></i></div><div className="cr" aria-hidden="true"></div><div className="cy" aria-hidden="true"><b>14</b></div><span className="cw" role="spinbutton" tabIndex={0} aria-label="Date" aria-valuemin="1" aria-valuemax="31" aria-valuenow="14"></span></div><p className="hn">Press the crown</p></div>
      </div>
    </>
  );
}
```

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