#app-boot-bg-skeleton {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: #f3f2ef;
  z-index: 999;
}
.mobile #app-boot-bg-skeleton {
  background: #e9e5df;
}

.theme--dark-lix #app-boot-bg-skeleton {
  background: var(--color-background-canvas, #f3f2ef);
}

.theme--dark-lix .mobile #app-boot-bg-skeleton {
  background: var(--color-background-canvas-mobile, #e9e5df);
}

.app-boot-bg-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.app-boot-shimmer {
  display: none;
  background: var(--color-background-container);
}

.mobile.is-shimmer-lix-enabled .app-boot-bg-loader {
  display: none;
}

.mobile.is-shimmer-lix-enabled .app-boot-shimmer {
  display: block;
}

/*
 * The animation should run for var(--duration-xslow) (560ms)
 * indefinitely, and there should be a delay of var(--delay-slow) (336ms)
 * between each iteration of the animation.
 *
 * The animation-delay property can be used to delay the start of the
 * animation, but doesn't add a delay between iterations. The delay thus
 * needs to be faked using keyframes.
 * Reference: https://css-tricks.com/css-keyframe-animation-delay-iterations/
 *
 * Total animation duration
 * => var(--duration-xslow) + var(--delay-slow)
 * => 560ms + 336ms
 * => 896ms

 * Animation starts at 0%.
 * Animation ends at 560ms, which is 62.5% of 896ms.
 * Delay (i.e. no change) from 560ms (62.5%) to 896ms (100%).
 */
@keyframes horizontal-shimmer {
  0% {
    background-position: -66vw 0;
  }
  62.5%,
  100% {
    background-position: 66vw 0;
  }
}

.app-boot-shimmer__loader {
  animation-name: horizontal-shimmer;
  animation-duration: calc(var(--duration-xslow) + var(--delay-slow));
  animation-iteration-count: infinite;
  animation-timing-function: var(--ease-standard);
  background-attachment: fixed;
  background-color: var(--settings-color-skeleton-content);
  background-repeat: no-repeat;
  background-image: linear-gradient(
    90deg,
    var(--color-transparent) 0%,
    var(--settings-color-skeleton-content) 50%,
    var(--color-transparent) 100%
  );
  background-size: 100vw 100vh;
}

.app-boot-shimmer__loader--fill-area {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.app-boot-shimmer__main-content {
  padding-bottom: 64px;
}

.app-boot-shimmer__footer-content {
  padding-left: 24px;
  padding-bottom: 48px;
}

.app-boot-shimmer__header-content {
  display: flex;
  align-items: center;
  padding: 32px 20px 24px;
  width: 100%;
}

.app-boot-shimmer__member-icon {
  height: 32px;
  width: 32px;
  border-radius: 16px;
}

.app-boot-shimmer__setting-title {
  width: 114px;
  height: 24px;
  margin-left: 16px;
  border-radius: 16px;
}

.app-boot-shimmer__category-container {
  display: flex;
  align-items: center;
  padding: 24px;
  width: 100%;
}

.app-boot-shimmer__category-icon {
  height: 24px;
  width: 24px;
  border-radius: 12px;
}

.app-boot-shimmer__category-title {
  height: 16px;
  margin-left: 16px;
  border-radius: 16px;
}

.app-boot-shimmer__category-container:nth-of-type(1)
  .app-boot-shimmer__category-title {
  width: 175px;
}

.app-boot-shimmer__category-container:nth-of-type(2)
  .app-boot-shimmer__category-title {
  width: 157px;
}

.app-boot-shimmer__category-container:nth-of-type(3)
  .app-boot-shimmer__category-title {
  width: 108px;
}

.app-boot-shimmer__category-container:nth-of-type(4)
  .app-boot-shimmer__category-title {
  width: 121px;
}

.app-boot-shimmer__category-container:nth-of-type(5)
  .app-boot-shimmer__category-title {
  width: 158px;
}

.app-boot-shimmer__footer-link {
  height: 10px;
  border-radius: 16px;
}

.app-boot-shimmer__footer-content > * + * {
  padding-top: 32px;
}

.app-boot-shimmer__footer-link:nth-of-type(1) {
  width: 67px;
}

.app-boot-shimmer__footer-link:nth-of-type(2) {
  width: 67px;
}

.app-boot-shimmer__footer-link:nth-of-type(3) {
  width: 92px;
}

.app-boot-shimmer__footer-link:nth-of-type(4) {
  width: 81px;
}
