/* ============================================
   ALIEN-OPERATIONS.AI — Alien Defence Game
   ============================================ */

.game-section {
  border-top: 1px solid rgba(57, 255, 20, 0.08);
}

.game-header {
  text-align: center;
  margin-bottom: 2rem;
}

.game-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hud-amber);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.game-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  color: #fff;
}

.game-title em {
  font-style: normal;
  color: var(--alien-green);
  text-shadow: 0 0 10px var(--glow-green);
}

.game-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* Game play CTA */
.game-play-cta {
  text-align: center;
  margin-bottom: 1.5rem;
}

.game-play-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--alien-green);
  text-shadow: 0 0 10px var(--glow-green-mid);
  margin-bottom: 0.5rem;
}

.game-play-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(57, 255, 20, 0.4);
  border-radius: 50%;
  color: var(--alien-green);
  font-size: 1.2rem;
  animation: game-arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes game-arrow-bounce {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); }
  50% { transform: translateY(8px); box-shadow: 0 0 20px rgba(57, 255, 20, 0.5); }
}

/* Game wrapper */
.game-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--space-black);
}

.game-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--space-black);
  image-rendering: pixelated;
}

/* Game HUD overlay */
.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}

.game-hud-score {
  color: var(--alien-green);
}

.game-hud-lives {
  color: var(--hud-amber);
}

/* Start / game over overlays */
.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.9);
  z-index: 10;
  text-align: center;
  padding: 1rem;
  transition: opacity 0.4s ease;
}

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

.game-overlay-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--alien-green);
  text-shadow: 0 0 10px var(--glow-green-mid);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.game-overlay-text {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 400px;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.game-overlay-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--scan-teal);
  margin-bottom: 1rem;
}

.game-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--space-black);
  background: var(--alien-green);
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
  transition: all 0.3s ease;
}

.game-btn:hover {
  box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
  transform: translateY(-2px);
}

.game-btn-secondary {
  background: transparent;
  color: var(--alien-green);
  border: 1px solid rgba(57, 255, 20, 0.3);
  box-shadow: none;
  margin-top: 0.5rem;
}

.game-btn-secondary:hover {
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.15);
}

/* Mobile touch controls */
.game-touch-controls {
  display: none;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem;
  background: var(--surface);
  border-top: 1px solid rgba(57, 255, 20, 0.1);
}

@media (pointer: coarse) {
  .game-touch-controls { display: flex; }
}

.game-touch-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: var(--alien-green);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.game-touch-btn:active {
  background: rgba(57, 255, 20, 0.15);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.game-touch-btn.fire {
  width: 64px;
  height: 64px;
  border-color: var(--hud-amber);
  color: var(--hud-amber);
}

.game-touch-btn.fire:active {
  background: rgba(255, 107, 0, 0.15);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
}

/* Game CTA after game over */
.game-cta-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.game-cta-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}
