.update-screen[hidden] {
  display: none !important;
}

.update-screen [hidden] {
  display: none !important;
}

.update-screen {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f4f7fb;
  background:
    radial-gradient(ellipse at 50% 0, rgb(20 95 143 / 32%), transparent 55%),
    #07101d;
  font-family: Inter, system-ui, sans-serif;
}

.update-screen__card {
  width: min(100%, 440px);
  text-align: center;
}

.update-screen__logo {
  display: block;
  width: auto;
  max-width: min(180px, 60vw);
  height: 72px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.update-screen__icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgb(103 190 255 / 35%);
  border-radius: 50%;
  color: #7bc8ff;
  font-size: 36px;
  animation: update-screen-spin 1.5s linear infinite;
}

.update-screen__eyebrow {
  margin: 0 0 10px;
  color: #85cfff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.site-version {
  color: #8496aa;
  font-size: 11px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.update-screen .site-version {
  margin: 8px 0 0;
}

.more-menu__version {
  margin: 8px 20px 16px;
  text-align: center;
}

#siteVersionAuth {
  margin: 14px 0 0;
  text-align: center;
}

.update-screen h1 {
  margin: 0;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.2;
}

.update-screen__step {
  min-height: 24px;
  margin: 16px 0 22px;
  color: #b9c6d6;
  font-size: 14px;
}

.update-screen__progress {
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #243448;
  accent-color: #50b8ff;
}

.update-screen__progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #243448;
}

.update-screen__progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #278ee8, #67d2ff);
  transition: width .4s ease;
}

.update-screen__progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #278ee8, #67d2ff);
}

.update-screen__percent {
  margin: 10px 0 0;
  color: #85cfff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.update-screen__error {
  margin: 16px 0 0;
  color: #ffb7b7;
  font-size: 14px;
  line-height: 1.5;
}

.update-screen__actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.update-screen__button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(174 197 222 / 30%);
  border-radius: 10px;
  color: #eaf3fc;
  background: rgb(255 255 255 / 5%);
  font: inherit;
  cursor: pointer;
}

.update-screen__button--primary {
  border-color: #278ee8;
  color: #fff;
  background: #1678ca;
}

.update-screen__button:disabled {
  opacity: .6;
  cursor: wait;
}

body.site-updating {
  overflow: hidden;
}

@keyframes update-screen-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .update-screen__icon {
    animation: none;
  }

  .update-screen__progress::-webkit-progress-value {
    transition: none;
  }
}
