@font-face {
  font-family: Ubuntu Splash;
  src: url("/assets/fonts/ubuntu-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

.update-screen[data-version="ubuntu-classic"],
.update-screen[data-version="ubuntu-install"] {
  aspect-ratio: 16 / 9;
  container-type: inline-size;
}

.update-screen[data-version="ubuntu-classic"] { background: #2b0220; }

.update-screen[data-version="ubuntu-install"] {
  background:
    radial-gradient(ellipse 53% 59% at 53% 103%, #6668a5, #353a65 55%, transparent 100%),
    radial-gradient(ellipse 65% 72% at 49% 34%, #090a10 15%, transparent 95%),
    linear-gradient(120deg, #21253a, #171925 58%, #383948);
}

.ubuntu-splash {
  position: absolute;
  inset: 0;
  color: #fff;
  font-family: Ubuntu Splash, sans-serif;
}

.ubuntu-classic img {
  position: absolute;
  width: 17%;
  height: auto;
  top: 48.5%;
  left: 50.7%;
  transform: translate(-50%, -50%);
}

.ubuntu-loading-dots {
  position: absolute;
  top: 55.55%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 1.85cqw;
}

.ubuntu-loading-dots i {
  width: max(2px, .45cqw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  animation: ubuntu-dot-color 10s steps(1) infinite;
}

.ubuntu-loading-dots i:nth-child(1) { animation-delay: 1s; }
.ubuntu-loading-dots i:nth-child(2) { animation-delay: 2s; }
.ubuntu-loading-dots i:nth-child(3) { animation-delay: 3s; }
.ubuntu-loading-dots i:nth-child(4) { animation-delay: 4s; }
.ubuntu-loading-dots i:nth-child(5) { animation-delay: 5s; }

@keyframes ubuntu-dot-color {
  0% { background: #e95420; }
  50%, 100% { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .ubuntu-loading-dots i { animation: none; }
  .ubuntu-loading-dots i:nth-child(-n+3) { background: #e95420; }
}

.ubuntu-install-message,
.ubuntu-install-progress,
.ubuntu-install-wordmark {
  position: absolute;
  left: 52.75%;
  transform: translateX(-50%);
}

.ubuntu-install-message { top: 32.5%; font-size: max(14px, 3.05cqw); line-height: 1.15; }
.ubuntu-install-message p,
.ubuntu-install-progress span { color: inherit; font-size: max(9px, 1.34cqw); }
.ubuntu-install-message p { margin: .9em 0 0; }
.ubuntu-install-progress { top: 68%; width: 29.4%; line-height: 1.15; }
.ubuntu-install-progress progress {
  display: block;
  width: 100%;
  height: max(2px, .43cqw);
  margin-bottom: .45cqw;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: #bec2ff;
  color: #fff;
}
.ubuntu-install-progress progress::-webkit-progress-bar { background: #bec2ff; }
.ubuntu-install-progress progress::-webkit-progress-value { background: #fff; }
.ubuntu-install-progress progress::-moz-progress-bar { background: #fff; }
.ubuntu-install-wordmark {
  top: 85%;
  display: flex;
  align-items: flex-end;
  gap: .58cqw;
  font-size: max(13px, 3.05cqw);
  line-height: 1;
}
.ubuntu-install-wordmark svg {
  display: block;
  width: 1em;
  height: auto;
}
.ubuntu-install-wordmark span { padding-bottom: .05em; }

@media (max-aspect-ratio: 4/5) {
  .update-dialog .ubuntu-classic img { width: 40%; }
  .update-dialog .ubuntu-loading-dots { gap: 4cqw; }
  .update-dialog .ubuntu-loading-dots i { width: 1cqw; }
  .update-dialog .ubuntu-install-wordmark { font-size: max(17px, 5.8cqw); }
  .update-dialog .ubuntu-install-progress { width: 58%; }
}
