#game-container {
  position: relative;
}

/* Hide the navigation bar on coarse-pointer devices in landscape mode. */
@media (orientation: landscape) and (pointer: coarse) and (hover: none) {
  header {
    display: none;
  }
}

.start-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 99999;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #8c6eff 0%, #6c47e8 100%);
  box-shadow:
    0 4px 0 #4d2fb8,
    0 8px 20px rgba(108, 71, 232, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  animation: start-button-pulse 2.4s ease-in-out infinite;
}

.start-button.hidden {
  display: none;
}

.start-button:hover {
  background: linear-gradient(180deg, #9a7fff 0%, #7654f0 100%);
}

.start-button:active {
  box-shadow:
    0 1px 0 #4d2fb8,
    0 4px 12px rgba(108, 71, 232, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -46%);
}

@keyframes start-button-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 0 #4d2fb8,
      0 8px 20px rgba(108, 71, 232, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }

  50% {
    box-shadow:
      0 4px 0 #4d2fb8,
      0 8px 32px rgba(108, 71, 232, 0.75),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

#loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#loading.hidden {
  display: none;
}

#loading-text {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #7c5cff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.hidden {
  display: none;
}

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