:root {
  --loadersize: min(8rem, 30vw); /* Define the CSS variable --loadersize */
}

.loader {
  width: 16px;
  padding: 6px;
  margin-left: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #222;
  --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
  -webkit-mask: var(--_m);
  mask: var(--_m);
  -webkit-mask-composite: source-out;
  mask-composite: subtract;
  animation: l3 1s infinite linear;
}
@keyframes l3 {
  to {
    transform: rotate(1turn);
  }
}

.ginger-loader {
  color: var(--accent, #ff0000);
  position: relative;
  font-size: clamp(0.5rem, 5vw, 2rem);
  background: var(--accent, #ff0000);
  animation: escaleY 1s infinite ease-in-out;
  width: 1em;
  height: 4em;
  animation-delay: -0.16s;
}
.ginger-loader:before,
.ginger-loader:after {
  content: "";
  position: absolute;
  top: 0;
  left: 2em;
  background: var(--accent, #ff0000);
  width: 1em;
  height: 4em;
  animation: escaleY 1s infinite ease-in-out;
}
.ginger-loader:before {
  left: -2em;
  animation-delay: -0.32s;
}

@keyframes escaleY {
  0%,
  80%,
  100% {
    box-shadow: 0 0;
    height: 4em;
  }
  40% {
    box-shadow: 0 -2em;
    height: 5em;
  }
}
