/* Critical shell styles load before the application bundle. */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
}

html,
body {
  background-color: hsl(30, 20%, 98%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

body {
  padding-top: var(--sat);
  padding-bottom: var(--sab);
  padding-left: var(--sal);
  padding-right: var(--sar);
}

#root {
  background-color: hsl(30, 20%, 98%);
  min-height: 100vh;
}

.initial-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(30, 20%, 98%);
  z-index: 9999;
}

.initial-loader svg {
  animation: initial-spin 1s linear infinite;
}

@keyframes initial-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-color-scheme: dark) {
  html,
  body,
  #root,
  .initial-loader {
    background-color: hsl(20, 10%, 8%);
  }

  .initial-loader svg {
    stroke: hsl(25, 98%, 49%);
  }
}
