/* Game themes — shared animations and component styles for all games
   Theme colors are set via --accent / --accent-rgb / --accent-light per-game */

/* Top edge shimmer animation — shared across all games */
.game-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--accent-light),
    var(--accent),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  z-index: 2;
  border-radius: 3px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Canvas quality transition */
.canvas-wrapper {
  transition: filter 0.1s ease-out;
}

/* Mobile control cluster */
.mobile-cluster {
  display: flex;
  gap: 10px;
}

/* Mobile button pressed state */
.mobile-btn.pressed {
  background: rgba(var(--accent-rgb), 0.4);
  transform: scale(0.9);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5);
  border-color: var(--accent);
}

/* Fire button styling (shared by shooter games) */
.mobile-btn.fire {
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.mobile-btn.fire.pressed {
  background: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.5);
  border-color: var(--accent);
}

/* Hide desktop controls on small screens */
@media (max-width: 768px) {
  .controls {
    display: none;
  }
}
