/* ─── GAME PAGE ─── */
#page-game.active {
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  padding-top: 64px;
}

#game-container {
  width: 100%;
  height: calc(100vh - 64px);
  position: relative;
  background: #080b14;
  overflow: hidden;
}

#game-container canvas {
  display: block;
  outline: none;
}

/* ─── LOADING INDICATOR ─── */
#game-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #080b14;
  z-index: 10;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

#game-loading p {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8892b0;
}

#game-loading.hidden {
  opacity: 0;
}

.dot-row {
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6C63FF;
  animation: dotPulse 0.9s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.15s; }
.dot:nth-child(3) { animation-delay: 0.30s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50%       { opacity: 1;   transform: scale(1.2); }
}
