/* EASTER EGG SPACE GAME */
#space-game-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.26) 0%, rgba(2, 6, 23, 0.46) 55%, rgba(0, 0, 0, 0.68) 100%),
    rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(2px);
  transition: opacity 180ms ease;
  touch-action: none;
}

#space-game-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.space-game-dim {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.56);
}

.space-game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.space-game-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: #eff4ff;
  pointer-events: none;
}

.space-game-panel {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(7, 17, 30, 0.52);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  max-width: min(100%, 360px);
}

.space-game-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.space-game-copy {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.space-game-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.space-game-exit {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #eff4ff;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.space-game-exit:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.84);
  border-color: rgba(96, 165, 250, 0.42);
}

.space-game-exit:active {
  transform: translateY(0);
}

.space-game-bottom-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(226, 232, 240, 0.8);
  font-size: 0.9rem;
  text-align: center;
  background: rgba(7, 17, 30, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 10px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  pointer-events: none;
}
@media (max-width: 820px) {
  .space-game-hud {
    flex-direction: column;
    align-items: flex-start;
  }

  .space-game-panel {
    max-width: calc(100vw - 32px);
  }
  .space-game-bottom-hint {
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #space-game-overlay,
  .space-game-dim,
  .space-game-canvas,
  .space-game-hud,
  .space-game-exit,
  .space-game-bottom-hint {
    transition-duration: 1ms !important;
  }
}

@media (max-width: 820px) {
  #faq-space-game-item {
    display: none;
  }
}
