#custom-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #2196f3;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#custom-splash img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Spinner overlay */
#custom-splash .spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  box-sizing: border-box;
}

/* Tips overlay */
#custom-splash .tips-overlay {
  position: absolute;
  top: 75vh;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Mobile adjustments */
@media (max-height: 600px) {
  #custom-splash .spinner-overlay {
    padding-top: 15vh;
  }
  
  #custom-splash .tips-overlay {
    top: 70vh;
  }
}

@media (max-height: 500px) {
  #custom-splash .spinner-overlay {
    padding-top: 10vh;
  }
  
  #custom-splash .tips-overlay {
    top: 65vh;
  }
}

#custom-splash .tip-text {
  color: white;
  padding: 15px 25px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  text-align: center;
  max-width: 400px;
  line-height: 1.4;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Spinner animation */
#custom-splash .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hide splash screen when app is loaded */
#custom-splash.fade-out {
  opacity: 0;
}
