:root {
  --brand-blue: #145097;
  --brand-blue-light: #3E79CA;
  --splash-bg: #ffffff;
  --track: #e6ecf5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --splash-bg: #000000;
    --track: #1c1c1e;
  }
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  background-color: var(--splash-bg);
}

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  transition: opacity 0.4s ease;
}

.splash--done {
  opacity: 0;
}

.splash-logo {
  width: 96px;
  height: 96px;
  border-radius: 22%;
}

.progress-container {
  width: 160px;
  height: 8px;
  background-color: var(--track);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background-image: linear-gradient(
    90deg,
    var(--brand-blue),
    var(--brand-blue-light),
    var(--brand-blue)
  );
  background-size: 200% 100%;
  animation: splash-shimmer 1.2s linear infinite;
}

.store-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background-image: linear-gradient(
    90deg,
    var(--brand-blue),
    var(--brand-blue-light)
  );
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.store-link[hidden] {
  display: none;
}

.store-link::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  /* Download arrow into a tray. */
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3v10m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 3v10m0 0 4-4m-4 4-4-4M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
}

@keyframes splash-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
