/* ===== Code Blast mini-game ===== */
.game-section {
  position: relative;
}

.game-panel {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid rgba(30, 42, 69, 0.95);
  background: linear-gradient(160deg, rgba(18, 24, 42, 0.75), rgba(6, 8, 15, 0.95));
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(34, 211, 238, 0.08);
}

.game-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #22d3ee, #8b5cf6, transparent);
  z-index: 2;
}

.game-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(30, 42, 69, 0.8);
  font-size: 0.875rem;
  color: #9ca3af;
}

.game-hud strong {
  color: #f3f4f6;
  font-weight: 700;
}

.game-hud-score {
  color: #22d3ee;
  font-size: 1.1rem;
}

.game-hud-lives {
  color: #f472b6;
  letter-spacing: 0.15em;
  font-size: 1rem;
}

#game-canvas {
  display: block;
  width: 100%;
  cursor: crosshair !important;
  touch-action: none;
}

.game-panel,
.game-panel * {
  cursor: default;
}

.game-panel #game-canvas {
  cursor: crosshair !important;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.game-overlay.hidden {
  display: none;
}

.game-overlay h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.game-overlay p {
  max-width: 22rem;
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
}

.game-controls-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
  #game-canvas {
    cursor: default;
  }
}
