:root {
  color-scheme: dark;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #0a0a0b;
  color: #f5f4f1;
  font-family: Geist, system-ui, sans-serif;
}

.boot-splash {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 48%, rgba(143, 47, 47, 0.2), transparent 36%), #0a0a0b;
}

.boot-glow {
  position: absolute;
  width: min(46vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e5484d;
  opacity: 0.1;
  filter: blur(90px);
  pointer-events: none;
}

.boot-loader {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(100%, 260px);
}

.boot-logo {
  display: block;
  width: min(154px, 48vw);
  height: auto;
  object-fit: contain;
}

.boot-progress {
  position: relative;
  width: 72px;
  height: 2px;
  margin: 32px auto 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.boot-progress span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -34%;
  width: 34%;
  border-radius: inherit;
  background: #e5484d;
  animation: boot-sweep 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.boot-message {
  margin: 12px 0 0;
  color: #b7b3b4;
  font-size: 12px;
  text-align: center;
}

.boot-help {
  margin: 24px 0 0;
  color: #b7b3b4;
  font-size: 13px;
}

.boot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.boot-actions[hidden],
.boot-help[hidden] {
  display: none;
}

.boot-actions button,
.boot-actions a {
  display: inline-flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #f5f4f1;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.boot-actions button {
  border-color: #e5484d;
  background: #e5484d;
}

.boot-actions button:hover {
  background: #ef5a5f;
}

.boot-actions button:focus-visible,
.boot-actions a:focus-visible {
  outline: 2px solid #f5f4f1;
  outline-offset: 3px;
}

.boot-actions a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.no-script-message {
  position: fixed;
  z-index: 10000;
  inset: auto 16px 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #121214;
  color: #f5f4f1;
  text-align: center;
  font: 14px/1.5 Inter, system-ui, sans-serif;
}

@keyframes boot-sweep {
  to {
    left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-progress span {
    left: 0;
    width: 100%;
    animation: none;
    opacity: 0.75;
  }
}
