/* =========================================================
   STANDARD MINIMAL GAME SPLASH SCREEN (BLACK BACKGROUND)
   ========================================================= */

.app-splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.app-splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Splash Stages (Standard Fade In / Fade Out) */
.splash-stage {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  width: 100%;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.splash-stage.active {
  opacity: 1;
  visibility: visible;
}

/* Stage 1: App Logo */
.splash-app-logo-wrap {
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-app-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash-app-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

/* Stage 2: Developer Studio Logo (Akranity Studios) */
.splash-dev-card {
  width: 150px;
  height: 150px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
}

.splash-dev-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Optional Skip / Tap Area */
.splash-skip-hint {
  position: absolute;
  bottom: 24px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: #555555;
  text-transform: uppercase;
  pointer-events: none;
}

/* =========================================================
   ROTATE PROMPT (MOBILE PORTRAIT ONLY)
   ========================================================= */
.rotate-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 24, 43, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

@keyframes rotatePhoneAnim {
  0%, 20% { transform: rotate(0deg); }
  50%, 70% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

.rotate-phone-icon {
  animation: rotatePhoneAnim 2.4s ease-in-out infinite;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(250, 204, 21, 0.4));
}

.rotate-prompt-title {
  font: 900 18px 'Trebuchet MS', Arial, sans-serif;
  color: #facc15;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.rotate-prompt-sub {
  font: 600 13px 'Trebuchet MS', Arial, sans-serif;
  color: #cbd5e1;
  max-width: 280px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.rotate-fullscreen-btn {
  width: auto !important;
  padding: 10px 24px !important;
  font-size: 13px !important;
}

/* Show rotate prompt only on mobile portrait screens */
@media (orientation: portrait) and (max-width: 768px) {
  .rotate-prompt-overlay:not(.hidden) {
    display: flex !important;
  }
}
@media (orientation: landscape) {
  .rotate-prompt-overlay {
    display: none !important;
  }
}
