/* ============================================
   Game Loading Screen
   ============================================ */

.game-loader {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition: opacity var(--transition-normal);
}

.game-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Blurred game thumbnail background */
.game-loader__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.3);
  transform: scale(1.1);
}

.game-loader__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
}

/* Game thumbnail */
.game-loader__thumb {
  width: 120px;
  height: 90px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-lg);
}

.game-loader__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: var(--space-6);
}

/* Progress bar */
.game-loader__progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.game-loader__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width var(--transition-normal);
}

.game-loader__text {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* Brand logo */
.game-loader__brand {
  position: absolute;
  bottom: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  font-weight: var(--weight-medium);
}
