:root {
  color-scheme: light;
  --boot-bg: #f2efe3;
  --boot-surface: rgba(253, 253, 253, 0.88);
  --boot-border: rgba(122, 101, 58, 0.22);
  --boot-text: #221a15;
  --boot-muted: #584d43;
  --boot-accent: #c6a45b;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --boot-bg: #16110b;
  --boot-surface: rgba(74, 59, 47, 0.52);
  --boot-border: rgba(198, 164, 91, 0.28);
  --boot-text: #f2efe3;
  --boot-muted: #cbbfa8;
  --boot-accent: #e0b96a;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --boot-bg: #16110b;
    --boot-surface: rgba(74, 59, 47, 0.52);
    --boot-border: rgba(198, 164, 91, 0.28);
    --boot-text: #f2efe3;
    --boot-muted: #cbbfa8;
    --boot-accent: #e0b96a;
  }
}

html,
body {
  height: 100%;
  background-color: var(--boot-bg);
}

body {
  margin: 0;
  background-color: var(--boot-bg);
  background:
    radial-gradient(circle at top left, rgba(198, 164, 91, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(253, 253, 253, 0.7) 0%, var(--boot-bg) 100%);
  color: var(--boot-text);
  font-family: "Geist Variable", "Segoe UI", sans-serif;
}

:root[data-theme="dark"] body {
  background-color: var(--boot-bg);
  background:
    radial-gradient(circle at top left, rgba(198, 164, 91, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(60, 48, 39, 0.82) 0%, var(--boot-bg) 100%);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background-color: var(--boot-bg);
    background:
      radial-gradient(circle at top left, rgba(198, 164, 91, 0.16), transparent 30%),
      linear-gradient(180deg, rgba(60, 48, 39, 0.82) 0%, var(--boot-bg) 100%);
  }
}

#root {
  min-height: 100%;
}

#app-boot {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: inherit;
  transition: opacity 220ms ease, visibility 220ms ease;
}

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

.boot-logo {
  position: relative;
  display: inline-flex;
  width: clamp(6.25rem, 26vw, 9rem);
  color: var(--boot-text);
  isolation: isolate;
  filter: drop-shadow(0 18px 40px rgba(34, 26, 21, 0.16));
}

.boot-logo svg {
  display: block;
  width: 100%;
  height: auto;
}

.boot-logo-base {
  position: relative;
  z-index: 1;
}

.boot-logo-shine {
  position: absolute;
  inset: 0;
  transform: translateX(-175%) skewX(-20deg);
  animation: boot-logo-shine 3.6s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 2;
}

@keyframes boot-logo-shine {
  0%,
  18% {
    transform: translateX(-175%) skewX(-20deg);
    opacity: 0;
  }

  28% {
    opacity: 1;
  }

  42% {
    transform: translateX(185%) skewX(-20deg);
    opacity: 0.8;
  }

  100% {
    transform: translateX(185%) skewX(-20deg);
    opacity: 0;
  }
}
