# Moon phase filter

> Eight moons on a night sky: tick the phases that suit your observing and they light up with a halo.

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

## Where to use it

Stargazing, night photography and fishing apps often filter by lunar phase, and drawing each phase beats a list of names. Every moon is an inline SVG whose lit part is built from two arcs, so crescents and gibbous shapes are exact. Checkboxes switch each one on with a warm halo over a softly twinkling starfield.

The first colour is the moonlight and the second the night sky, so you can go from icy blue to sepia. Rename the phases for your audience, and pair the filter with a calendar that marks the nights that match.

## Code

### HTML

```html
<fieldset class="uvq05-mo"><legend>Moon phase</legend><div class="gr"><label><input type="checkbox"><span class="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle class="dk" r="20"/><g class="cr"><circle cx="-6" cy="-6" r="3.4"/><circle cx="7" cy="3" r="4.2"/><circle cx="-3" cy="10" r="2.4"/></g></svg></span><span class="nm">New moon</span></label><label><input type="checkbox"><span class="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle class="dk" r="20"/><path class="lt" d="M0 -20A20 20 0 0 1 0 20A14.14 20 0 0 0 0 -20Z"/><g class="cr"><circle cx="-6" cy="-6" r="3.4"/><circle cx="7" cy="3" r="4.2"/><circle cx="-3" cy="10" r="2.4"/></g></svg></span><span class="nm">Waxing crescent</span></label><label><input type="checkbox"><span class="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle class="dk" r="20"/><path class="lt" d="M0 -20A20 20 0 0 1 0 20A0.00 20 0 0 1 0 -20Z"/><g class="cr"><circle cx="-6" cy="-6" r="3.4"/><circle cx="7" cy="3" r="4.2"/><circle cx="-3" cy="10" r="2.4"/></g></svg></span><span class="nm">First quarter</span></label><label><input type="checkbox" checked><span class="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle class="dk" r="20"/><path class="lt" d="M0 -20A20 20 0 0 1 0 20A14.14 20 0 0 1 0 -20Z"/><g class="cr"><circle cx="-6" cy="-6" r="3.4"/><circle cx="7" cy="3" r="4.2"/><circle cx="-3" cy="10" r="2.4"/></g></svg></span><span class="nm">Waxing gibbous</span></label><label><input type="checkbox" checked><span class="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle class="dk" r="20"/><circle class="lt" r="20"/><g class="cr"><circle cx="-6" cy="-6" r="3.4"/><circle cx="7" cy="3" r="4.2"/><circle cx="-3" cy="10" r="2.4"/></g></svg></span><span class="nm">Full moon</span></label><label><input type="checkbox" checked><span class="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle class="dk" r="20"/><path class="lt" d="M0 -20A20 20 0 0 0 0 20A14.14 20 0 0 0 0 -20Z"/><g class="cr"><circle cx="-6" cy="-6" r="3.4"/><circle cx="7" cy="3" r="4.2"/><circle cx="-3" cy="10" r="2.4"/></g></svg></span><span class="nm">Waning gibbous</span></label><label><input type="checkbox"><span class="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle class="dk" r="20"/><path class="lt" d="M0 -20A20 20 0 0 0 0 20A0.00 20 0 0 0 0 -20Z"/><g class="cr"><circle cx="-6" cy="-6" r="3.4"/><circle cx="7" cy="3" r="4.2"/><circle cx="-3" cy="10" r="2.4"/></g></svg></span><span class="nm">Last quarter</span></label><label><input type="checkbox"><span class="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle class="dk" r="20"/><path class="lt" d="M0 -20A20 20 0 0 0 0 20A14.14 20 0 0 1 0 -20Z"/><g class="cr"><circle cx="-6" cy="-6" r="3.4"/><circle cx="7" cy="3" r="4.2"/><circle cx="-3" cy="10" r="2.4"/></g></svg></span><span class="nm">Waning crescent</span></label></div><p class="ct"><span>Phases chosen:</span> <span class="n"></span></p></fieldset>
```

### CSS

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

.uvq05-mo {
  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;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  position: relative;
  width: 18em;
  padding: 1em 1em .9em;
  border-radius: 1.2em;
  color: #eef0f7;
  background: radial-gradient(1px 1px at 12% 18%,#fff 60%,transparent),radial-gradient(1px 1px at 78% 10%,#fff 60%,transparent),radial-gradient(1.5px 1.5px at 52% 6%,#fff 60%,transparent),radial-gradient(1px 1px at 33% 52%,#fff 60%,transparent),radial-gradient(1px 1px at 90% 58%,#fff 60%,transparent),radial-gradient(1px 1px at 62% 92%,#fff 60%,transparent),linear-gradient(170deg,color-mix(in srgb,var(--c2) 80%,#5b6aa8),var(--c2) 65%);
  box-shadow: 0 1.4em 2.6em -1.4em rgba(0,0,0,.6);
  counter-reset: uvq05-mo;
}

.uvq05-mo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(1.5px 1.5px at 22% 40%,#fff 60%,transparent),radial-gradient(1px 1px at 70% 44%,#fff 60%,transparent),radial-gradient(1.5px 1.5px at 44% 96%,#fff 60%,transparent),radial-gradient(1px 1px at 6% 80%,#fff 60%,transparent);
  animation: uvq05-mot calc(2.6s / var(--k)) ease-in-out infinite alternate;
  pointer-events: none;
}

.uvq05-mo legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 .9em;
  font-weight: 700;
}

.uvq05-mo .gr {
  clear: both;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .7em .3em;
}

.uvq05-mo label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4em;
  cursor: pointer;
}

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

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

.uvq05-mo .mn {
  display: block;
  width: 2.8em;
  height: 2.8em;
  border-radius: 50%;
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),filter calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.uvq05-mo .dk {
  fill: color-mix(in srgb,var(--c2) 62%,#8a93b8);
  transition: stroke calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo .lt {
  fill: color-mix(in srgb,var(--c1) 45%,#7d86ab);
  transition: fill calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo .cr {
  fill: rgba(0,0,0,.13);
}

.uvq05-mo .nm {
  min-height: 2.3em;
  font-size: .6em;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: rgba(238,240,247,.62);
  transition: color calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo label:hover .mn {
  transform: scale(1.08);
}

.uvq05-mo label:active .mn {
  transform: scale(.9);
}

.uvq05-mo input:checked+.mn {
  filter: drop-shadow(0 0 .45em color-mix(in srgb,var(--c1) 75%,transparent));
}

.uvq05-mo input:checked+.mn .lt {
  fill: var(--c1);
}

.uvq05-mo input:checked+.mn .dk {
  stroke: var(--c1);
  stroke-width: 1.2;
}

.uvq05-mo input:checked~.nm {
  color: #fff;
  font-weight: 800;
}

.uvq05-mo input:focus-visible+.mn {
  outline: 2px solid var(--c1);
  outline-offset: .3em;
}

.uvq05-mo .ct {
  position: relative;
  margin: .3em 0 0;
  font-size: .75em;
  color: rgba(238,240,247,.68);
}

.uvq05-mo .n::before {
  content: counter(uvq05-mo);
  font-weight: 800;
  color: #fff;
}

@keyframes uvq05-mot {
  from {
    opacity: .15;
  }
  to {
    opacity: 1;
  }
}

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

### React

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

const css = `
.uvq05-mo {
  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;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  position: relative;
  width: 18em;
  padding: 1em 1em .9em;
  border-radius: 1.2em;
  color: #eef0f7;
  background: radial-gradient(1px 1px at 12% 18%,#fff 60%,transparent),radial-gradient(1px 1px at 78% 10%,#fff 60%,transparent),radial-gradient(1.5px 1.5px at 52% 6%,#fff 60%,transparent),radial-gradient(1px 1px at 33% 52%,#fff 60%,transparent),radial-gradient(1px 1px at 90% 58%,#fff 60%,transparent),radial-gradient(1px 1px at 62% 92%,#fff 60%,transparent),linear-gradient(170deg,color-mix(in srgb,var(--c2) 80%,#5b6aa8),var(--c2) 65%);
  box-shadow: 0 1.4em 2.6em -1.4em rgba(0,0,0,.6);
  counter-reset: uvq05-mo;
}

.uvq05-mo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(1.5px 1.5px at 22% 40%,#fff 60%,transparent),radial-gradient(1px 1px at 70% 44%,#fff 60%,transparent),radial-gradient(1.5px 1.5px at 44% 96%,#fff 60%,transparent),radial-gradient(1px 1px at 6% 80%,#fff 60%,transparent);
  animation: uvq05-mot calc(2.6s / var(--k)) ease-in-out infinite alternate;
  pointer-events: none;
}

.uvq05-mo legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 .9em;
  font-weight: 700;
}

.uvq05-mo .gr {
  clear: both;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .7em .3em;
}

.uvq05-mo label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4em;
  cursor: pointer;
}

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

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

.uvq05-mo .mn {
  display: block;
  width: 2.8em;
  height: 2.8em;
  border-radius: 50%;
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),filter calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.uvq05-mo .dk {
  fill: color-mix(in srgb,var(--c2) 62%,#8a93b8);
  transition: stroke calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo .lt {
  fill: color-mix(in srgb,var(--c1) 45%,#7d86ab);
  transition: fill calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo .cr {
  fill: rgba(0,0,0,.13);
}

.uvq05-mo .nm {
  min-height: 2.3em;
  font-size: .6em;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: rgba(238,240,247,.62);
  transition: color calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo label:hover .mn {
  transform: scale(1.08);
}

.uvq05-mo label:active .mn {
  transform: scale(.9);
}

.uvq05-mo input:checked+.mn {
  filter: drop-shadow(0 0 .45em color-mix(in srgb,var(--c1) 75%,transparent));
}

.uvq05-mo input:checked+.mn .lt {
  fill: var(--c1);
}

.uvq05-mo input:checked+.mn .dk {
  stroke: var(--c1);
  stroke-width: 1.2;
}

.uvq05-mo input:checked~.nm {
  color: #fff;
  font-weight: 800;
}

.uvq05-mo input:focus-visible+.mn {
  outline: 2px solid var(--c1);
  outline-offset: .3em;
}

.uvq05-mo .ct {
  position: relative;
  margin: .3em 0 0;
  font-size: .75em;
  color: rgba(238,240,247,.68);
}

.uvq05-mo .n::before {
  content: counter(uvq05-mo);
  font-weight: 800;
  color: #fff;
}

@keyframes uvq05-mot {
  from {
    opacity: .15;
  }
  to {
    opacity: 1;
  }
}

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

export default function FMoonPhase() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#f6e7b8",
          "--c2": "#18213f",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq05-mo"><legend>Moon phase</legend><div className="gr"><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">New moon</span></label><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 1 0 20A14.14 20 0 0 0 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Waxing crescent</span></label><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 1 0 20A0.00 20 0 0 1 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">First quarter</span></label><label><input type="checkbox" checked={true} /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 1 0 20A14.14 20 0 0 1 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Waxing gibbous</span></label><label><input type="checkbox" checked={true} /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><circle className="lt" r="20" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Full moon</span></label><label><input type="checkbox" checked={true} /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 0 0 20A14.14 20 0 0 0 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Waning gibbous</span></label><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 0 0 20A0.00 20 0 0 0 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Last quarter</span></label><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 0 0 20A14.14 20 0 0 1 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Waning crescent</span></label></div><p className="ct"><span>Phases chosen:</span> <span className="n"></span></p></fieldset>
      </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 “Moon phase filter” block (Filters) from AIMRAN Library to my project.

## What it is
Eight moons on a night sky: tick the phases that suit your observing and they light up with a halo.

## Chosen settings
- Main color: #f6e7b8
- Secondary color: #18213f
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Fase lunar"

## 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-mo {
  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;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  position: relative;
  width: 18em;
  padding: 1em 1em .9em;
  border-radius: 1.2em;
  color: #eef0f7;
  background: radial-gradient(1px 1px at 12% 18%,#fff 60%,transparent),radial-gradient(1px 1px at 78% 10%,#fff 60%,transparent),radial-gradient(1.5px 1.5px at 52% 6%,#fff 60%,transparent),radial-gradient(1px 1px at 33% 52%,#fff 60%,transparent),radial-gradient(1px 1px at 90% 58%,#fff 60%,transparent),radial-gradient(1px 1px at 62% 92%,#fff 60%,transparent),linear-gradient(170deg,color-mix(in srgb,var(--c2) 80%,#5b6aa8),var(--c2) 65%);
  box-shadow: 0 1.4em 2.6em -1.4em rgba(0,0,0,.6);
  counter-reset: uvq05-mo;
}

.uvq05-mo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(1.5px 1.5px at 22% 40%,#fff 60%,transparent),radial-gradient(1px 1px at 70% 44%,#fff 60%,transparent),radial-gradient(1.5px 1.5px at 44% 96%,#fff 60%,transparent),radial-gradient(1px 1px at 6% 80%,#fff 60%,transparent);
  animation: uvq05-mot calc(2.6s / var(--k)) ease-in-out infinite alternate;
  pointer-events: none;
}

.uvq05-mo legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 .9em;
  font-weight: 700;
}

.uvq05-mo .gr {
  clear: both;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .7em .3em;
}

.uvq05-mo label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4em;
  cursor: pointer;
}

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

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

.uvq05-mo .mn {
  display: block;
  width: 2.8em;
  height: 2.8em;
  border-radius: 50%;
  transition: transform calc(0.4s / var(--k)) cubic-bezier(.34,1.56,.64,1),filter calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.uvq05-mo .dk {
  fill: color-mix(in srgb,var(--c2) 62%,#8a93b8);
  transition: stroke calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo .lt {
  fill: color-mix(in srgb,var(--c1) 45%,#7d86ab);
  transition: fill calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo .cr {
  fill: rgba(0,0,0,.13);
}

.uvq05-mo .nm {
  min-height: 2.3em;
  font-size: .6em;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: rgba(238,240,247,.62);
  transition: color calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mo label:hover .mn {
  transform: scale(1.08);
}

.uvq05-mo label:active .mn {
  transform: scale(.9);
}

.uvq05-mo input:checked+.mn {
  filter: drop-shadow(0 0 .45em color-mix(in srgb,var(--c1) 75%,transparent));
}

.uvq05-mo input:checked+.mn .lt {
  fill: var(--c1);
}

.uvq05-mo input:checked+.mn .dk {
  stroke: var(--c1);
  stroke-width: 1.2;
}

.uvq05-mo input:checked~.nm {
  color: #fff;
  font-weight: 800;
}

.uvq05-mo input:focus-visible+.mn {
  outline: 2px solid var(--c1);
  outline-offset: .3em;
}

.uvq05-mo .ct {
  position: relative;
  margin: .3em 0 0;
  font-size: .75em;
  color: rgba(238,240,247,.68);
}

.uvq05-mo .n::before {
  content: counter(uvq05-mo);
  font-weight: 800;
  color: #fff;
}

@keyframes uvq05-mot {
  from {
    opacity: .15;
  }
  to {
    opacity: 1;
  }
}

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

export default function FMoonPhase() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#f6e7b8",
          "--c2": "#18213f",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq05-mo"><legend>Moon phase</legend><div className="gr"><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">New moon</span></label><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 1 0 20A14.14 20 0 0 0 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Waxing crescent</span></label><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 1 0 20A0.00 20 0 0 1 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">First quarter</span></label><label><input type="checkbox" checked={true} /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 1 0 20A14.14 20 0 0 1 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Waxing gibbous</span></label><label><input type="checkbox" checked={true} /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><circle className="lt" r="20" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Full moon</span></label><label><input type="checkbox" checked={true} /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 0 0 20A14.14 20 0 0 0 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Waning gibbous</span></label><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 0 0 20A0.00 20 0 0 0 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Last quarter</span></label><label><input type="checkbox" /><span className="mn"><svg viewBox="-22 -22 44 44" aria-hidden="true"><circle className="dk" r="20" /><path className="lt" d="M0 -20A20 20 0 0 0 0 20A14.14 20 0 0 1 0 -20Z" /><g className="cr"><circle cx="-6" cy="-6" r="3.4" /><circle cx="7" cy="3" r="4.2" /><circle cx="-3" cy="10" r="2.4" /></g></svg></span><span className="nm">Waning crescent</span></label></div><p className="ct"><span>Phases chosen:</span> <span className="n"></span></p></fieldset>
      </div>
    </>
  );
}
```

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