.upgrader-loader[hidden] { display: none; }
.upgrader-loader {
  --bc-progress: 0%;
  position: fixed;
  inset: 0;
  z-index: 1200;
  isolation: isolate;
  overflow: hidden;
  color: #fff1df;
  background: radial-gradient(ellipse 115% 68% at 50% -9%, #7e1e15 0%, #38100c 44%, transparent 86%), #0e0908;
}
.upgrader-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, #ff4a1610, transparent 40%);
}
.upgrader-loader-back {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: max(16px, calc((100% - 760px) / 2));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e8572821;
  border-radius: 22px;
  color: #ffe5d2;
  background: #481a13b0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.upgrader-loader-back > span { font-size: 26px; line-height: 1; margin-top: -2px; }
.bc-loading-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 66vw, 330px);
  aspect-ratio: 350 / 210;
}
.bc-loading-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bc-loading-outline {
  fill: #3b130e;
  stroke: #ff4330;
  stroke-width: 1.7;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px #ff351e55) drop-shadow(0 0 19px #e22c1533);
}
.bc-loading-fill {
  fill: url(#bc-loading-fire);
  clip-path: inset(calc(100% - var(--bc-progress)) 0 0 0);
  filter: drop-shadow(0 0 10px #ff641a55);
  transition: clip-path 160ms linear;
}
.bc-loading-progress {
  position: absolute;
  bottom: calc(28px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: min(62%, 390px);
  height: 8px;
  overflow: hidden;
  border-radius: 20px;
  background: #2b1b18;
  box-shadow: inset 0 1px 2px #0007;
}
.bc-loading-progress > span {
  display: block;
  height: 100%;
  width: var(--bc-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, #ff3226, #ff661e 60%, #ffc14d);
  box-shadow: 0 0 14px #ff571c70;
  transition: width 160ms linear;
}
body.upgrader-loading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .bc-loading-fill, .bc-loading-progress > span { transition: none; }
}
