html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: auto;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

body {
  background: #03142f url('/minions-rush/assets/video/laboratory-intro-poster.webp') center 38% / cover no-repeat;
  min-height: 100vh;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(2, 16, 44, 0.60), rgba(2, 16, 44, 0.94)),
    url('/minions-rush/assets/video/laboratory-intro-poster.webp') center 38% / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
  touch-action: none;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  margin-bottom: 1.5rem;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(52, 205, 255, 0.2);
  border-top-color: #ffe328;
  border-radius: 50%;
  animation: mr-shell-spin 1s linear infinite;
}

.loading-text {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

@keyframes mr-shell-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  body {
    background-image: url('/minions-rush/assets/video/laboratory-intro-poster.webp');
  }

  #loading-screen {
    background-image:
      linear-gradient(rgba(2, 16, 44, 0.60), rgba(2, 16, 44, 0.94)),
      url('/minions-rush/assets/video/laboratory-intro-poster.webp');
  }
}
