html.tofu-internal-route-loading,
html.tofu-internal-route-loading body {
  min-height: 100%;
}

html.tofu-internal-route-loading body {
  min-height: 100vh;
  margin: 0;
  background: #f8f7f2;
}

html.tofu-internal-route-loading #root {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: #f8f7f2;
}

html.tofu-internal-route-loading #root > * {
  display: none;
}

html.tofu-internal-route-loading #root::before {
  display: block;
  width: 76px;
  height: 76px;
  background: url('/images/logo_tofu.svg') center / contain no-repeat;
  content: '';
  animation: tofu-route-breathe 1.6s ease-in-out infinite;
}

@keyframes tofu-route-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }

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

@media (prefers-reduced-motion: reduce) {
  html.tofu-internal-route-loading #root::before {
    animation: none;
  }
}
