.loader {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  border: 12px solid transparent;
  background: #faf1ea;
  border-image: url("./assets/bg.svg") 12 fill stretch;
  pointer-events: none;
  z-index: 1000;
  opacity: 1;
  transition: opacity 220ms ease-out;
}

.loader.is-fading-out {
  opacity: 0;
}

.loading-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(72vw, 360px);
}

.loading-hero {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-top: clamp(110px, 22vw, 150px);
}

.loading-bottle {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 180px;
  transform: translateX(-50%);
  z-index: 1;
}

.loading-progress {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 129 / 20;
  z-index: 2;
}

.loading-progress__fill {
  position: absolute;
  top: 16%;
  left: 2%;
  width: 0;
  height: 68%;
  border: 3px solid transparent;
  border-image: url("./assets/progress-fill.svg") 3 fill stretch;
  box-sizing: border-box;
}

.loading-progress__frame {
  display: block;
  width: 100%;
  height: 100%;
}

.loading-label {
  display: block;
  width: 130px;
  margin-top: 24px;
}

.loading-merge-rules-link {
  display: inline-block;
  pointer-events: auto;
  cursor: pointer;
  margin-bottom: 16px;
  width: min(62vw, 144px);
}

.loading-vpn {
  display: block;
  width: min(70vw, 330px);
}

.loading-bottom {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 36px);
  transform: translateX(-50%);
}
