#loader {
  position: fixed;
  display: grid;
  align-items: center;
  justify-items: center;
  align-content: center;
  gap: 3rem;
  padding: 2rem;
  inset: 0;
  background: white;
  z-index: 100;
  isolation: isolate;

  &::before {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--colors--block), transparent 25%);
    backdrop-filter: blur(0.5rem);
    z-index: -1;
  }

  &.--done {
    opacity: 0;
    transition: opacity 0.5s;
  }

  > img.logo {
    height: 5rem;
  }

  > picture > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: -2;
  }

  > .__progress {
    position: relative;
    width: 100%;
    max-width: 40ch;
    background: var(--colors--area);
    border-radius: 0.25rem;
    overflow: clip;

    > p {
      position: absolute;
      inset: 0;
      margin: 0;
      padding: 0.25rem 0.5rem;
      font-size: 0.75rem;
      line-height: 1rem;
      text-align: center;
      color: white;
      opacity: 0.5;
    }

    > data {
      display: block;
      width: calc(100% * var(--_percentage, 0));
      background: #3d5c7f;
      height: 1.5rem;
      transition: width 0.15s;

      @media (prefers-reduced-motion: reduce) {
        transition: none;
      }
    }
  }

  > footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875em;

    a {
      text-decoration: none;
      font-weight: bold;
      color: currentColor;
    }
  }
}
