# Screw-on lens filters

> Screw glass filters onto the lens; they stack up and the image adds the effect of each one.

- Category: [Filters](https://library.aimran.es/components/filters)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-f-lens-stack
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Photographers stack polarisers, ND and warming filters on their lenses, and this control does the same with checkboxes. Each filter screws on as a knurled ring with a short spin, and the view through the glass combines nested CSS filters, so two or three can work together. Use it in photo editors, camera apps or lessons about optics.

Change the brass accent and the barrel colour with the colour controls, and edit the list to add a mist filter or a red filter for black and white. Replace the SVG view with your own photo when you ship it.

## Code

### HTML

```html
<div class="uvq05-ln"><div class="lens" aria-hidden="true"><div class="gw"><div class="f1"><div class="f2"><div class="f3"><div class="f4"><svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid slice" aria-hidden="true"><defs><linearGradient id="uvq05-ln-s" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#3f8fd8"/><stop offset=".62" stop-color="#cbe8f7"/></linearGradient></defs><rect width="100" height="100" fill="url(#uvq05-ln-s)"/><circle cx="70" cy="32" r="9" fill="#fff4c2"/><g fill="#fff" opacity=".92"><ellipse cx="28" cy="27" rx="14" ry="5"/><ellipse cx="37" cy="23" rx="9" ry="5"/></g><rect y="62" width="100" height="38" fill="#1f6fa8"/><path d="M0 62h100" stroke="#e9f6ff" stroke-width=".8"/><path d="M8 72h22M44 82h30M70 70h18M16 90h28" stroke="#9fd2f0" stroke-width="1.2" stroke-linecap="round" opacity=".6"/><path d="M47 60V35l14 23z" fill="#fff"/><path d="M45 61h20l-4 5H48z" fill="#c8432b"/></svg></div></div></div></div><i class="gl"></i></div><i class="rg rg1" style="--t:#5b6b8a"></i><i class="rg rg2" style="--t:#3a3a3a"></i><i class="rg rg3" style="--t:#f2a65a"></i><i class="rg rg4" style="--t:#dfe6ee"></i><span class="mm">ø52</span></div><fieldset><legend>Lens filters</legend><label><input type="checkbox" checked><span class="dc" style="--t:#5b6b8a"></span><span class="nm">Polariser</span></label><label><input type="checkbox"><span class="dc" style="--t:#3a3a3a"></span><span class="nm">Neutral density</span></label><label><input type="checkbox"><span class="dc" style="--t:#f2a65a"></span><span class="nm">Warming</span></label><label><input type="checkbox"><span class="dc" style="--t:#dfe6ee"></span><span class="nm">Diffuser</span></label><p class="ct"><span>Filters mounted:</span> <span class="n"></span></p></fieldset></div>
```

### CSS

```css
.uvq05-ln {
  --c1: #e8a33d;
  --c2: #1b1d22;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq05-ln {
  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;
  display: flex;
  align-items: center;
  gap: 1em;
  width: 20em;
  counter-reset: uvq05-ln;
}

.uvq05-ln .lens {
  position: relative;
  flex: none;
  width: 9.4em;
  height: 9.4em;
  border-radius: 50%;
  background: radial-gradient(farthest-side,#0c0c0e calc(100% - 1.6em),transparent calc(100% - 1.6em + 1px)),repeating-conic-gradient(var(--c2) 0 2deg,color-mix(in srgb,var(--c2) 70%,#fff) 2deg 4deg);
  box-shadow: 0 1em 2em -1em rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.12);
}

.uvq05-ln .gw {
  position: absolute;
  inset: 1.5em;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 1em #000;
}

.uvq05-ln .gw>div,.uvq05-ln .gw div {
  width: 100%;
  height: 100%;
  transition: filter calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-ln .gw svg {
  display: block;
  width: 100%;
  height: 100%;
}

.uvq05-ln .gl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%,rgba(255,255,255,.55) 0 6%,transparent 18%),radial-gradient(circle at 70% 76%,rgba(140,90,255,.28),transparent 32%),radial-gradient(circle,transparent 55%,rgba(0,0,0,.45));
  pointer-events: none;
}

.uvq05-ln .rg {
  position: absolute;
  border-radius: 50%;
  background: repeating-conic-gradient(#3a3b40 0 3deg,#1f2024 3deg 6deg);
  box-shadow: inset 0 0 0 .07em var(--t);
  -webkit-mask: radial-gradient(farthest-side,transparent calc(100% - .3em),#000 calc(100% - .3em + 1px));
  mask: radial-gradient(farthest-side,transparent calc(100% - .3em),#000 calc(100% - .3em + 1px));
  opacity: 0;
  transform: rotate(-140deg) scale(1.18);
  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);
}

.uvq05-ln .rg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: .12em;
  height: .3em;
  margin-left: -.06em;
  background: var(--t);
}

.uvq05-ln .rg1 {
  inset: 1.20em;
}

.uvq05-ln .rg2 {
  inset: 0.90em;
}

.uvq05-ln .rg3 {
  inset: 0.60em;
}

.uvq05-ln .rg4 {
  inset: 0.30em;
}

.uvq05-ln .mm {
  position: absolute;
  left: 50%;
  bottom: .25em;
  translate: -50% 0;
  font: 700 .5em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
}

.uvq05-ln fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1;
}

.uvq05-ln legend {
  padding: 0;
  margin: 0 0 .8em;
  font-weight: 700;
  font-size: .9em;
}

.uvq05-ln label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .38em .45em;
  border-radius: .6em;
  cursor: pointer;
  transition: background calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-ln input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq05-ln input:checked {
  counter-increment: uvq05-ln;
}

.uvq05-ln .dc {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,rgba(255,255,255,.7),transparent 40%),color-mix(in srgb,var(--t) 75%,transparent);
  box-shadow: 0 0 0 .2em #2b2c30;
  transition: box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq05-ln .nm {
  font-size: .78em;
  font-weight: 600;
  line-height: 1.15;
}

.uvq05-ln label:hover {
  background: color-mix(in srgb,var(--fg) 6%,transparent);
}

.uvq05-ln label:active .dc {
  transform: scale(.85);
}

.uvq05-ln input:checked+.dc {
  box-shadow: 0 0 0 .2em var(--c1);
  transform: rotate(180deg);
}

.uvq05-ln label:has(input:checked) {
  background: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq05-ln label:has(input:focus-visible) {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq05-ln .ct {
  margin: .6em 0 0 .45em;
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
}

.uvq05-ln .n::before {
  content: counter(uvq05-ln);
  font-weight: 800;
  color: var(--fg);
}

.uvq05-ln:has(label:nth-of-type(1) input:checked) .f1 {
  filter: saturate(1.45) contrast(1.15);
}

.uvq05-ln:has(label:nth-of-type(1) input:checked) .rg1 {
  opacity: 1;
  transform: none;
}

.uvq05-ln:has(label:nth-of-type(2) input:checked) .f2 {
  filter: brightness(.62);
}

.uvq05-ln:has(label:nth-of-type(2) input:checked) .rg2 {
  opacity: 1;
  transform: none;
}

.uvq05-ln:has(label:nth-of-type(3) input:checked) .f3 {
  filter: sepia(.35) saturate(1.2) hue-rotate(-8deg);
}

.uvq05-ln:has(label:nth-of-type(3) input:checked) .rg3 {
  opacity: 1;
  transform: none;
}

.uvq05-ln:has(label:nth-of-type(4) input:checked) .f4 {
  filter: blur(1.2px) brightness(1.08) contrast(.88);
}

.uvq05-ln:has(label:nth-of-type(4) input:checked) .rg4 {
  opacity: 1;
  transform: none;
}

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

### React

```tsx
import type { CSSProperties } from "react";

const css = `
.uvq05-ln {
  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;
  display: flex;
  align-items: center;
  gap: 1em;
  width: 20em;
  counter-reset: uvq05-ln;
}

.uvq05-ln .lens {
  position: relative;
  flex: none;
  width: 9.4em;
  height: 9.4em;
  border-radius: 50%;
  background: radial-gradient(farthest-side,#0c0c0e calc(100% - 1.6em),transparent calc(100% - 1.6em + 1px)),repeating-conic-gradient(var(--c2) 0 2deg,color-mix(in srgb,var(--c2) 70%,#fff) 2deg 4deg);
  box-shadow: 0 1em 2em -1em rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.12);
}

.uvq05-ln .gw {
  position: absolute;
  inset: 1.5em;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 1em #000;
}

.uvq05-ln .gw>div,.uvq05-ln .gw div {
  width: 100%;
  height: 100%;
  transition: filter calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-ln .gw svg {
  display: block;
  width: 100%;
  height: 100%;
}

.uvq05-ln .gl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%,rgba(255,255,255,.55) 0 6%,transparent 18%),radial-gradient(circle at 70% 76%,rgba(140,90,255,.28),transparent 32%),radial-gradient(circle,transparent 55%,rgba(0,0,0,.45));
  pointer-events: none;
}

.uvq05-ln .rg {
  position: absolute;
  border-radius: 50%;
  background: repeating-conic-gradient(#3a3b40 0 3deg,#1f2024 3deg 6deg);
  box-shadow: inset 0 0 0 .07em var(--t);
  -webkit-mask: radial-gradient(farthest-side,transparent calc(100% - .3em),#000 calc(100% - .3em + 1px));
  mask: radial-gradient(farthest-side,transparent calc(100% - .3em),#000 calc(100% - .3em + 1px));
  opacity: 0;
  transform: rotate(-140deg) scale(1.18);
  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);
}

.uvq05-ln .rg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: .12em;
  height: .3em;
  margin-left: -.06em;
  background: var(--t);
}

.uvq05-ln .rg1 {
  inset: 1.20em;
}

.uvq05-ln .rg2 {
  inset: 0.90em;
}

.uvq05-ln .rg3 {
  inset: 0.60em;
}

.uvq05-ln .rg4 {
  inset: 0.30em;
}

.uvq05-ln .mm {
  position: absolute;
  left: 50%;
  bottom: .25em;
  translate: -50% 0;
  font: 700 .5em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
}

.uvq05-ln fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1;
}

.uvq05-ln legend {
  padding: 0;
  margin: 0 0 .8em;
  font-weight: 700;
  font-size: .9em;
}

.uvq05-ln label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .38em .45em;
  border-radius: .6em;
  cursor: pointer;
  transition: background calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-ln input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq05-ln input:checked {
  counter-increment: uvq05-ln;
}

.uvq05-ln .dc {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,rgba(255,255,255,.7),transparent 40%),color-mix(in srgb,var(--t) 75%,transparent);
  box-shadow: 0 0 0 .2em #2b2c30;
  transition: box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq05-ln .nm {
  font-size: .78em;
  font-weight: 600;
  line-height: 1.15;
}

.uvq05-ln label:hover {
  background: color-mix(in srgb,var(--fg) 6%,transparent);
}

.uvq05-ln label:active .dc {
  transform: scale(.85);
}

.uvq05-ln input:checked+.dc {
  box-shadow: 0 0 0 .2em var(--c1);
  transform: rotate(180deg);
}

.uvq05-ln label:has(input:checked) {
  background: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq05-ln label:has(input:focus-visible) {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq05-ln .ct {
  margin: .6em 0 0 .45em;
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
}

.uvq05-ln .n::before {
  content: counter(uvq05-ln);
  font-weight: 800;
  color: var(--fg);
}

.uvq05-ln:has(label:nth-of-type(1) input:checked) .f1 {
  filter: saturate(1.45) contrast(1.15);
}

.uvq05-ln:has(label:nth-of-type(1) input:checked) .rg1 {
  opacity: 1;
  transform: none;
}

.uvq05-ln:has(label:nth-of-type(2) input:checked) .f2 {
  filter: brightness(.62);
}

.uvq05-ln:has(label:nth-of-type(2) input:checked) .rg2 {
  opacity: 1;
  transform: none;
}

.uvq05-ln:has(label:nth-of-type(3) input:checked) .f3 {
  filter: sepia(.35) saturate(1.2) hue-rotate(-8deg);
}

.uvq05-ln:has(label:nth-of-type(3) input:checked) .rg3 {
  opacity: 1;
  transform: none;
}

.uvq05-ln:has(label:nth-of-type(4) input:checked) .f4 {
  filter: blur(1.2px) brightness(1.08) contrast(.88);
}

.uvq05-ln:has(label:nth-of-type(4) input:checked) .rg4 {
  opacity: 1;
  transform: none;
}

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

export default function FLensStack() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#e8a33d",
          "--c2": "#1b1d22",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq05-ln"><div className="lens" aria-hidden="true"><div className="gw"><div className="f1"><div className="f2"><div className="f3"><div className="f4"><svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid slice" aria-hidden="true"><defs><linearGradient id="uvq05-ln-s" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stopColor="#3f8fd8" /><stop offset=".62" stopColor="#cbe8f7" /></linearGradient></defs><rect width="100" height="100" fill="url(#uvq05-ln-s)" /><circle cx="70" cy="32" r="9" fill="#fff4c2" /><g fill="#fff" opacity=".92"><ellipse cx="28" cy="27" rx="14" ry="5" /><ellipse cx="37" cy="23" rx="9" ry="5" /></g><rect y="62" width="100" height="38" fill="#1f6fa8" /><path d="M0 62h100" stroke="#e9f6ff" strokeWidth=".8" /><path d="M8 72h22M44 82h30M70 70h18M16 90h28" stroke="#9fd2f0" strokeWidth="1.2" strokeLinecap="round" opacity=".6" /><path d="M47 60V35l14 23z" fill="#fff" /><path d="M45 61h20l-4 5H48z" fill="#c8432b" /></svg></div></div></div></div><i className="gl"></i></div><i className="rg rg1" style={{ "--t": "#5b6b8a" } as CSSProperties}></i><i className="rg rg2" style={{ "--t": "#3a3a3a" } as CSSProperties}></i><i className="rg rg3" style={{ "--t": "#f2a65a" } as CSSProperties}></i><i className="rg rg4" style={{ "--t": "#dfe6ee" } as CSSProperties}></i><span className="mm">ø52</span></div><fieldset><legend>Lens filters</legend><label><input type="checkbox" checked={true} /><span className="dc" style={{ "--t": "#5b6b8a" } as CSSProperties}></span><span className="nm">Polariser</span></label><label><input type="checkbox" /><span className="dc" style={{ "--t": "#3a3a3a" } as CSSProperties}></span><span className="nm">Neutral density</span></label><label><input type="checkbox" /><span className="dc" style={{ "--t": "#f2a65a" } as CSSProperties}></span><span className="nm">Warming</span></label><label><input type="checkbox" /><span className="dc" style={{ "--t": "#dfe6ee" } as CSSProperties}></span><span className="nm">Diffuser</span></label><p className="ct"><span>Filters mounted:</span> <span className="n"></span></p></fieldset></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 “Screw-on lens filters” block (Filters) from AIMRAN Library to my project.

## What it is
Screw glass filters onto the lens; they stack up and the image adds the effect of each one.

## Chosen settings
- Main color: #e8a33d
- Secondary color: #1b1d22
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Filtros de objetivo"

## 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
import type { CSSProperties } from "react";

const css = `
.uvq05-ln {
  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;
  display: flex;
  align-items: center;
  gap: 1em;
  width: 20em;
  counter-reset: uvq05-ln;
}

.uvq05-ln .lens {
  position: relative;
  flex: none;
  width: 9.4em;
  height: 9.4em;
  border-radius: 50%;
  background: radial-gradient(farthest-side,#0c0c0e calc(100% - 1.6em),transparent calc(100% - 1.6em + 1px)),repeating-conic-gradient(var(--c2) 0 2deg,color-mix(in srgb,var(--c2) 70%,#fff) 2deg 4deg);
  box-shadow: 0 1em 2em -1em rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.12);
}

.uvq05-ln .gw {
  position: absolute;
  inset: 1.5em;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 1em #000;
}

.uvq05-ln .gw>div,.uvq05-ln .gw div {
  width: 100%;
  height: 100%;
  transition: filter calc(0.6s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-ln .gw svg {
  display: block;
  width: 100%;
  height: 100%;
}

.uvq05-ln .gl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%,rgba(255,255,255,.55) 0 6%,transparent 18%),radial-gradient(circle at 70% 76%,rgba(140,90,255,.28),transparent 32%),radial-gradient(circle,transparent 55%,rgba(0,0,0,.45));
  pointer-events: none;
}

.uvq05-ln .rg {
  position: absolute;
  border-radius: 50%;
  background: repeating-conic-gradient(#3a3b40 0 3deg,#1f2024 3deg 6deg);
  box-shadow: inset 0 0 0 .07em var(--t);
  -webkit-mask: radial-gradient(farthest-side,transparent calc(100% - .3em),#000 calc(100% - .3em + 1px));
  mask: radial-gradient(farthest-side,transparent calc(100% - .3em),#000 calc(100% - .3em + 1px));
  opacity: 0;
  transform: rotate(-140deg) scale(1.18);
  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);
}

.uvq05-ln .rg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: .12em;
  height: .3em;
  margin-left: -.06em;
  background: var(--t);
}

.uvq05-ln .rg1 {
  inset: 1.20em;
}

.uvq05-ln .rg2 {
  inset: 0.90em;
}

.uvq05-ln .rg3 {
  inset: 0.60em;
}

.uvq05-ln .rg4 {
  inset: 0.30em;
}

.uvq05-ln .mm {
  position: absolute;
  left: 50%;
  bottom: .25em;
  translate: -50% 0;
  font: 700 .5em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color: rgba(255,255,255,.55);
  letter-spacing: .1em;
}

.uvq05-ln fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 1;
}

.uvq05-ln legend {
  padding: 0;
  margin: 0 0 .8em;
  font-weight: 700;
  font-size: .9em;
}

.uvq05-ln label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .38em .45em;
  border-radius: .6em;
  cursor: pointer;
  transition: background calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-ln input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.uvq05-ln input:checked {
  counter-increment: uvq05-ln;
}

.uvq05-ln .dc {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,rgba(255,255,255,.7),transparent 40%),color-mix(in srgb,var(--t) 75%,transparent);
  box-shadow: 0 0 0 .2em #2b2c30;
  transition: box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.45s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq05-ln .nm {
  font-size: .78em;
  font-weight: 600;
  line-height: 1.15;
}

.uvq05-ln label:hover {
  background: color-mix(in srgb,var(--fg) 6%,transparent);
}

.uvq05-ln label:active .dc {
  transform: scale(.85);
}

.uvq05-ln input:checked+.dc {
  box-shadow: 0 0 0 .2em var(--c1);
  transform: rotate(180deg);
}

.uvq05-ln label:has(input:checked) {
  background: color-mix(in srgb,var(--c1) 14%,transparent);
}

.uvq05-ln label:has(input:focus-visible) {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq05-ln .ct {
  margin: .6em 0 0 .45em;
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 58%,transparent);
}

.uvq05-ln .n::before {
  content: counter(uvq05-ln);
  font-weight: 800;
  color: var(--fg);
}

.uvq05-ln:has(label:nth-of-type(1) input:checked) .f1 {
  filter: saturate(1.45) contrast(1.15);
}

.uvq05-ln:has(label:nth-of-type(1) input:checked) .rg1 {
  opacity: 1;
  transform: none;
}

.uvq05-ln:has(label:nth-of-type(2) input:checked) .f2 {
  filter: brightness(.62);
}

.uvq05-ln:has(label:nth-of-type(2) input:checked) .rg2 {
  opacity: 1;
  transform: none;
}

.uvq05-ln:has(label:nth-of-type(3) input:checked) .f3 {
  filter: sepia(.35) saturate(1.2) hue-rotate(-8deg);
}

.uvq05-ln:has(label:nth-of-type(3) input:checked) .rg3 {
  opacity: 1;
  transform: none;
}

.uvq05-ln:has(label:nth-of-type(4) input:checked) .f4 {
  filter: blur(1.2px) brightness(1.08) contrast(.88);
}

.uvq05-ln:has(label:nth-of-type(4) input:checked) .rg4 {
  opacity: 1;
  transform: none;
}

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

export default function FLensStack() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#e8a33d",
          "--c2": "#1b1d22",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq05-ln"><div className="lens" aria-hidden="true"><div className="gw"><div className="f1"><div className="f2"><div className="f3"><div className="f4"><svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid slice" aria-hidden="true"><defs><linearGradient id="uvq05-ln-s" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stopColor="#3f8fd8" /><stop offset=".62" stopColor="#cbe8f7" /></linearGradient></defs><rect width="100" height="100" fill="url(#uvq05-ln-s)" /><circle cx="70" cy="32" r="9" fill="#fff4c2" /><g fill="#fff" opacity=".92"><ellipse cx="28" cy="27" rx="14" ry="5" /><ellipse cx="37" cy="23" rx="9" ry="5" /></g><rect y="62" width="100" height="38" fill="#1f6fa8" /><path d="M0 62h100" stroke="#e9f6ff" strokeWidth=".8" /><path d="M8 72h22M44 82h30M70 70h18M16 90h28" stroke="#9fd2f0" strokeWidth="1.2" strokeLinecap="round" opacity=".6" /><path d="M47 60V35l14 23z" fill="#fff" /><path d="M45 61h20l-4 5H48z" fill="#c8432b" /></svg></div></div></div></div><i className="gl"></i></div><i className="rg rg1" style={{ "--t": "#5b6b8a" } as CSSProperties}></i><i className="rg rg2" style={{ "--t": "#3a3a3a" } as CSSProperties}></i><i className="rg rg3" style={{ "--t": "#f2a65a" } as CSSProperties}></i><i className="rg rg4" style={{ "--t": "#dfe6ee" } as CSSProperties}></i><span className="mm">ø52</span></div><fieldset><legend>Lens filters</legend><label><input type="checkbox" checked={true} /><span className="dc" style={{ "--t": "#5b6b8a" } as CSSProperties}></span><span className="nm">Polariser</span></label><label><input type="checkbox" /><span className="dc" style={{ "--t": "#3a3a3a" } as CSSProperties}></span><span className="nm">Neutral density</span></label><label><input type="checkbox" /><span className="dc" style={{ "--t": "#f2a65a" } as CSSProperties}></span><span className="nm">Warming</span></label><label><input type="checkbox" /><span className="dc" style={{ "--t": "#dfe6ee" } as CSSProperties}></span><span className="nm">Diffuser</span></label><p className="ct"><span>Filters mounted:</span> <span className="n"></span></p></fieldset></div>
      </div>
    </>
  );
}
```

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