/**
 * Splash boot screen — scoped under #loading-screen
 */

#loading-screen {
  --splash-frame-width: min(100vw, calc(100dvh * 7 / 12));
}

#loading-screen .splash-boot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0d1117;
}

#loading-screen #scene,
#loading-screen #finalLoginMenu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100dvh;
  width: var(--splash-frame-width);
  overflow: hidden;
}

#loading-screen #scene {
  max-width: 100vw;
}

#loading-screen .parallax-layer {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  will-change: transform;
}

#loading-screen .fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

#loading-screen #clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('../Splash/images/clouds.png') repeat-x 0 0;
  background-size: 50% 100%;
  animation: splash-slide 90s linear infinite;
}

@keyframes splash-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

#loading-screen #bloom-layer {
  position: absolute;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  backdrop-filter: blur(12px) brightness(1.1);
  -webkit-backdrop-filter: blur(12px) brightness(1.1);
  mix-blend-mode: screen;
  opacity: 0.20;
}

#loading-screen #startScreen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1117;
  cursor: pointer;
  transition: opacity 0.4s;
}

#loading-screen #continueScreen {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: transparent;
  cursor: pointer;
}

#loading-screen #startScreen.hidden,
#loading-screen #continueScreen.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading-screen #startBtn {
  font-size: clamp(1.2rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 1em 2em;
  border-radius: 999px;
  animation: splash-pulse 1.6s ease-in-out infinite;
}

@keyframes splash-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.96); }
}

#loading-screen #runningBooga {
  position: absolute;
  top: 10%;
  left: 0;
  width: 100%;
  height: 65%;
  object-fit: contain;
  z-index: 10;
  display: none;
  pointer-events: none;
  transform: translateX(-150%);
}

#loading-screen .booga-run-anim {
  animation: splash-boogaRun 3s linear forwards;
}

@keyframes splash-boogaRun {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

#loading-screen #finalLoginMenu {
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 15vh 6% 0;
  box-sizing: border-box;
  pointer-events: auto;
  transition: opacity 1.5s ease-in-out;
  opacity: 1;
  container-type: inline-size;
  container-name: splash-login;
}

#loading-screen #finalLoginMenu.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading-screen #mainLogo {
  width: 85%;
  max-width: none;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

#loading-screen .auth-status {
  font-family: 'RetroMario', sans-serif;
  font-size: clamp(0.7rem, 3.5cqi, 0.95rem);
  color: #1a2332;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-bottom: 0.75rem;
  min-height: 1.2em;
  width: 100%;
  max-width: 100%;
  padding: 0 4%;
  box-sizing: border-box;
}

#loading-screen .auth-status.hidden {
  display: none;
}

#loading-screen .auth-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.75rem 8%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 230, 168, 0.25);
}

#loading-screen .auth-user-info.hidden {
  display: none;
}

#loading-screen .auth-welcome {
  font-family: 'RetroMario', sans-serif;
  font-size: clamp(0.8rem, 4.5cqi, 1.05rem);
  color: #fff;
  text-align: center;
  margin: 0;
  width: 100%;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.5);
  overflow-wrap: break-word;
}

#loading-screen .login-options-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 100%;
  padding: 0 4%;
  box-sizing: border-box;
}

#loading-screen .login-options-container.hidden {
  display: none;
}

#loading-screen .login-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

#loading-screen .row-bg {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

#loading-screen .email-row {
  width: 100%;
  cursor: text;
  margin-bottom: 0.8rem;
}

#loading-screen .email-row input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  text-align: center;
  padding: 0 50px;
  z-index: 1;
}

#loading-screen .submit-arrow {
  position: absolute;
  right: 18px;
  height: 38%;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.2s ease;
}

#loading-screen .submit-arrow:hover {
  transform: translateY(-50%) scale(1.2);
  filter: brightness(1.3);
}

#loading-screen .submit-arrow:active {
  transform: translateY(-50%) scale(0.85);
  filter: brightness(0.8);
}

#loading-screen .stone-btn {
  width: 90%;
  margin-bottom: 8px;
}

#loading-screen .stone-btn:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

#loading-screen .stone-btn:active {
  transform: scale(0.97);
  filter: brightness(0.9);
}

#loading-screen .btn-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

#loading-screen .provider-logo {
  height: 40%;
  object-fit: contain;
}

#loading-screen .provider-text {
  color: #fff;
  font-family: inherit;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-shadow: 1px 2px 2px rgba(0,0,0,0.4);
}

#loading-screen .login-row.hidden,
#loading-screen #auth-code-row.hidden {
  display: none;
}

#loading-screen .splash-boot--hidden {
  display: none;
}
