/* Shared web entry screen, matching the approved Unity loading screen. */
.play-page.is-game-loading,
.wash-page.is-learning-loading { background: #171020; }

.learning-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 16px;
  padding: 32px 24px 80px;
  background: radial-gradient(ellipse at 50% 38%, #30203e 0, #171020 65%);
  color: #fffaf5;
  text-align: center;
}

.learning-loading-screen[hidden] { display: none !important; }

.learning-loading-screen img {
  width: 144px;
  height: auto;
  max-height: none;
  margin-bottom: 12px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.learning-loading-screen strong {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  font-weight: 800;
  text-transform: none;
  text-shadow: none;
}

.learning-loading-screen span {
  max-width: 420px;
  color: #c8bacf;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}

.learning-loading-screen .loading-track {
  width: min(280px, 75vw);
  height: 5px;
  margin: 6px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #4a3c56;
}

.learning-loading-screen .loading-track i {
  display: block;
  width: 48%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e93283, #a47ae3);
  animation: learningLoadingSweep 1.4s ease-in-out infinite;
}

.wash-page.is-learning-loading .wash-shell { display: none; }
.play-page.is-game-loading .game-topbar { visibility: hidden; }
.play-page.is-game-loading .mobile-landscape-prompt { display: none; }

@keyframes learningLoadingSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(230%); }
}

@media (max-height: 450px) and (orientation: landscape) {
  .learning-loading-screen { gap: 8px; padding-block: 20px 60px; }
  .learning-loading-screen img { width: 100px; margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .learning-loading-screen .loading-track i { animation: none; }
}
