﻿/* Game Loading State - SEO Friendly with Transparent Background */
.game-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 10;
  transition: opacity 0.5s ease-out;
}

.game-loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e5e5e5;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@media (prefers-color-scheme: dark) {
  .loading-spinner {
    border-color: #333;
    border-top-color: #667eea;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 1.5rem;
  color: #666;
  font-size: 1rem;
  font-weight: 400;
  font-family: ''Source Sans 3'', system-ui, sans-serif;
  animation: pulse 1.5s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  .loading-text {
    color: #999;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hide loading when game is ready */
.pd-game-root.game-ready .game-loading {
  display: none;
}

/* Ensure game content is positioned correctly */
.pd-game-root {
  position: relative;
}
