body fuse-splash-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #111827;
  color: #f9fafb;
  z-index: 999999;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

body fuse-splash-screen img.splash-logo {
  width: 120px;
  max-width: 120px;
  opacity: 0;
  transition: opacity 300ms ease;
  /* src definido per-template via content: url() */
}

/* Logo visível apenas quando o template está resolvido */
html[data-template] fuse-splash-screen img.splash-logo {
  opacity: 1;
}

body fuse-splash-screen .spinner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  width: 56px;
}

body fuse-splash-screen .spinner > div {
  width: 12px;
  height: 12px;
  background-color: #c00d0e;
  border-radius: 100%;
  display: inline-block;
  -webkit-animation: fuse-bouncedelay 1s infinite ease-in-out both;
  animation: fuse-bouncedelay 1s infinite ease-in-out both;
}

body fuse-splash-screen .spinner .bounce1 {
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}

body fuse-splash-screen .spinner .bounce2 {
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}

@-webkit-keyframes fuse-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes fuse-bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }

  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

body:not(.fuse-splash-screen-hidden) {
  overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
  visibility: hidden;
  opacity: 0;
}

/* ─── Template: motorbest ───────────────────────────────────────────────────── */

html[data-template="motorbest"] fuse-splash-screen img.splash-logo {
  content: url("/assets/images/logo/logo-1-white.png");
}

/* ─── Template: autodepoca ──────────────────────────────────────────────────── */

html[data-template="autodepoca"] fuse-splash-screen {
  background-color: #1a1a2e;
}

html[data-template="autodepoca"] fuse-splash-screen img.splash-logo {
  content: url("/assets/images/logo/autodepoca-logo.svg");
  width: 160px;
  max-width: 160px;
}

html[data-template="autodepoca"] fuse-splash-screen .spinner > div {
  background-color: #e8b923;
}
