:root {
  --boot-page-padding-inline: 15px;
  --boot-store-links-offset: 50px;
  --boot-help-message-max-width: 36rem;
  --boot-reload-button-min-width: 10rem;
  --boot-reload-button-padding-block: 12px;
  --boot-reload-button-padding-inline: 18px;
  --boot-business-footer-bottom-offset: 22px;
  --boot-business-footer-font-size: clamp(11px, 1.8vw, 14px);
  --boot-business-footer-line-height: 1.5;
  --boot-business-footer-max-width: 70rem;
  --boot-business-footer-row-gap: 2px;
}

html,
body {
  height: 100%;
  margin: 0;
  background-color: #1a1b1e;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, Consolas,
    'Liberation Mono', monospace;
}

#boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 0 var(--boot-page-padding-inline);
  box-sizing: border-box;
  transition: opacity 220ms ease, visibility 220ms ease;
}

#boot-loader.boot-loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-line {
  width: 100%;
  text-align: center;
  color: #dbe8de;
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

.boot-copy {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  min-width: 0;
}

.boot-text {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.boot-loader-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 10px;
  width: 100%;
}

.boot-loader-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8ed9b6;
  box-shadow: 0 0 14px rgba(142, 217, 182, 0.28);
  animation: boot-loader-pulse 1s ease-in-out infinite;
}

.boot-loader-indicator span:nth-child(2) {
  animation-delay: 0.16s;
}

.boot-loader-indicator span:nth-child(3) {
  animation-delay: 0.32s;
}

.boot-help-message {
  max-width: var(--boot-help-message-max-width);
  color: #dbe8de;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.5;
}

.boot-reload-button {
  min-width: var(--boot-reload-button-min-width);
  padding: var(--boot-reload-button-padding-block)
    var(--boot-reload-button-padding-inline);
  border: 1px solid rgba(142, 217, 182, 0.45);
  border-radius: 999px;
  background: rgba(142, 217, 182, 0.08);
  color: #dbe8de;
  font: inherit;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.boot-reload-button:hover,
.boot-reload-button:focus-visible {
  background: rgba(142, 217, 182, 0.16);
  border-color: rgba(142, 217, 182, 0.65);
  transform: translateY(-1px);
}

.boot-reload-button:focus-visible {
  outline: 2px solid rgba(142, 217, 182, 0.7);
  outline-offset: 4px;
}

.boot-store-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: var(--boot-store-links-offset);
}

.boot-store-link {
  display: inline-flex;
  width: clamp(100px, 16vw, 120px);
  opacity: 0.72;
  transition: opacity 160ms ease, transform 160ms ease;
}

.boot-store-link:hover,
.boot-store-link:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.boot-store-link:focus-visible {
  outline: 2px solid rgba(142, 217, 182, 0.7);
  outline-offset: 4px;
  border-radius: 8px;
}

.boot-store-link img {
  display: block;
  width: 100%;
  height: auto;
}

.boot-business-footer {
  position: fixed;
  right: var(--boot-page-padding-inline);
  bottom: calc(
    var(--boot-business-footer-bottom-offset) + env(safe-area-inset-bottom)
  );
  left: var(--boot-page-padding-inline);
  display: grid;
  row-gap: var(--boot-business-footer-row-gap);
  justify-content: center;
  justify-items: start;
  max-width: var(--boot-business-footer-max-width);
  margin: 0 auto;
  color: rgba(219, 232, 222, 0.66);
  font-size: var(--boot-business-footer-font-size);
  line-height: var(--boot-business-footer-line-height);
  text-align: left;
}

.boot-business-footer a {
  color: inherit;
  text-decoration: none;
}

.boot-business-footer a:hover,
.boot-business-footer a:focus-visible {
  color: #dbe8de;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes boot-loader-pulse {
  0%,
  80%,
  100% {
    transform: scale(0.72);
    opacity: 0.28;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}
