.game-neon {
  --neon-cyan: #22f6ff;
  --neon-pink: #ff4bd1;
  --neon-green: #8dff5d;
  --neon-blue: #33a8ff;
  --neon-panel: #0f1019;
  --neon-panel-2: #17192a;
}

.games-hero {
  border: 1px solid rgba(34, 246, 255, 0.25);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 75, 209, 0.15), transparent 60%),
    radial-gradient(circle at 80% 40%, rgba(34, 246, 255, 0.14), transparent 52%),
    linear-gradient(135deg, rgba(15, 16, 25, 0.9), rgba(10, 12, 20, 0.95));
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.08), inset 0 0 28px rgba(255, 75, 209, 0.08);
}

.game-card {
  border: 1px solid rgba(34, 246, 255, 0.2);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(26, 28, 43, 0.9), rgba(9, 10, 18, 0.95));
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(34, 246, 255, 0.08),
    inset 0 0 14px rgba(255, 75, 209, 0.08);
}

.game-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.mini-board {
  margin: 0;
  padding-left: 18px;
}

.mini-board li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  font-family: "Courier New", monospace;
  letter-spacing: 0.3px;
}

.game-shell {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(255, 75, 209, 0.22), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(34, 246, 255, 0.22);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  justify-content: center;
  box-shadow: 0 0 26px rgba(34, 246, 255, 0.12), inset 0 0 22px rgba(255, 75, 209, 0.08);
}

.game-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 4px;
  opacity: 0.55;
}

#tetris-canvas {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 2;
  background: #07080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  outline: none;
  display: block;
  margin: 0 auto;
}

#tetris-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}

.tetris-next {
  width: 132px;
  height: 110px;
  background: #07080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 18px rgba(34, 246, 255, 0.18), inset 0 0 12px rgba(255, 75, 209, 0.1);
}

#pong-canvas {
  width: 100%;
  max-width: 960px;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #06080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(141, 255, 93, 0.2);
}

#flappy-canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 3 / 4;
  background: #07080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  cursor: pointer;
  outline: none;
  display: block;
  margin: 0 auto;
}

#flappy-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}

#pacman-canvas {
  width: 100%;
  max-width: 448px;
  height: auto;
  aspect-ratio: 28 / 31;
  background: #050613;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.1);
  cursor: pointer;
  outline: none;
  display: block;
  margin: 0 auto;
}

#pacman-canvas:focus {
  border-color: rgba(255, 228, 61, 0.55);
  box-shadow: 0 0 32px rgba(255, 228, 61, 0.3), inset 0 0 18px rgba(255, 75, 209, 0.12);
}

.pacman-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 448px;
  margin: 0 auto 10px;
  padding: 8px 10px;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 16, 25, 0.95), rgba(9, 10, 18, 0.95));
  box-shadow: 0 0 18px rgba(34, 246, 255, 0.18), inset 0 0 12px rgba(255, 75, 209, 0.08);
  font-family: "Courier New", monospace;
  color: #d8f6ff;
}

.pacman-hud-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.pacman-hud-cell strong {
  font-size: 1.1rem;
  color: #ffe43d;
  text-shadow: 0 0 8px rgba(255, 228, 61, 0.55);
}

#jumpy-bara-canvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 5 / 2;
  background: #07080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  cursor: pointer;
  outline: none;
  display: block;
  margin: 0 auto;
}

#jumpy-bara-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}

.game-shell-snake {
  /* hook for future overrides; base .game-shell styling already fits Snake */
}

#snake-canvas {
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 5 / 4;
  background: #07080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  cursor: pointer;
  outline: none;
  display: block;
  margin: 0 auto;
}

#snake-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}

#invaders-canvas {
  width: 100%;
  max-width: 640px;
  height: auto;
  aspect-ratio: 4 / 5;
  background: #050613;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  cursor: crosshair;
  outline: none;
  display: block;
  margin: 0 auto;
}

#invaders-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}
#breakout-canvas {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 4 / 3;
  background: #06080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  cursor: none;
  outline: none;
  display: block;
  margin: 0 auto;
}

#breakout-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}

#light-cycles-canvas {
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #07080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  cursor: pointer;
  outline: none;
  display: block;
  margin: 0 auto;
}

#light-cycles-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}

#whack-canvas {
  width: 100%;
  max-width: 600px;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #07080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  cursor: crosshair;
  outline: none;
  display: block;
  margin: 0 auto;
  touch-action: manipulation;
}

#whack-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}

@media (max-width: 991px) {
  .game-shell {
    padding: 12px;
  }
}

/* ---------- 2048 ---------- */
#game-2048-canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #07080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  cursor: pointer;
  outline: none;
  display: block;
  margin: 0 auto;
  touch-action: none;
}

#game-2048-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}

.game-shell-2048 {
  background: linear-gradient(135deg, rgba(34, 246, 255, 0.06), rgba(255, 75, 209, 0.06));
  box-shadow: 0 0 24px rgba(34, 246, 255, 0.18), inset 0 0 18px rgba(255, 75, 209, 0.10);
}

#asteroids-canvas {
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 3 / 2;
  background: #05060d;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  box-shadow: 0 0 32px rgba(34, 246, 255, 0.28), inset 0 0 24px rgba(255, 75, 209, 0.14);
  cursor: crosshair;
  outline: none;
  display: block;
  margin: 0 auto;
  touch-action: none;
}

#asteroids-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 36px rgba(141, 255, 93, 0.32), inset 0 0 24px rgba(255, 75, 209, 0.14);
}

.game-shell-asteroids {
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 246, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255, 75, 209, 0.18), transparent 55%),
    rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.18), inset 0 0 24px rgba(255, 75, 209, 0.10);
}

.asteroids-touch-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
}

.asteroids-touch-btn {
  appearance: none;
  -webkit-appearance: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  min-height: 64px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 1.15rem;
  color: #d8f6ff;
  background: linear-gradient(180deg, rgba(15, 16, 25, 0.95), rgba(9, 10, 18, 0.95));
  border: 1px solid rgba(34, 246, 255, 0.55);
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(34, 246, 255, 0.25), inset 0 0 10px rgba(34, 246, 255, 0.08);
  text-shadow: 0 0 6px rgba(34, 246, 255, 0.55);
}

.asteroids-touch-btn:active,
.asteroids-touch-btn.is-pressed {
  border-color: rgba(255, 75, 209, 0.85);
  box-shadow: 0 0 18px rgba(255, 75, 209, 0.55), inset 0 0 10px rgba(255, 75, 209, 0.18);
  color: #ffe7fb;
  text-shadow: 0 0 8px rgba(255, 75, 209, 0.85);
}

.asteroids-touch-fire {
  border-color: rgba(141, 255, 93, 0.7);
  color: #d6ffc8;
  text-shadow: 0 0 6px rgba(141, 255, 93, 0.6);
  box-shadow: 0 0 14px rgba(141, 255, 93, 0.3), inset 0 0 10px rgba(141, 255, 93, 0.1);
}

.asteroids-touch-hyper {
  border-color: rgba(51, 168, 255, 0.7);
  color: #cfe8ff;
  text-shadow: 0 0 6px rgba(51, 168, 255, 0.6);
  box-shadow: 0 0 14px rgba(51, 168, 255, 0.3), inset 0 0 10px rgba(51, 168, 255, 0.1);
}

.game-shell-frogger {
  /* hook for future overrides; base .game-shell styling already fits Frogger */
}

#frogger-canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  aspect-ratio: 3 / 4;
  background: #07080f;
  border: 1px solid rgba(34, 246, 255, 0.33);
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 0 28px rgba(34, 246, 255, 0.22), inset 0 0 18px rgba(255, 75, 209, 0.12);
  cursor: pointer;
  outline: none;
  display: block;
  margin: 0 auto;
  touch-action: none;
}

#frogger-canvas:focus {
  border-color: rgba(141, 255, 93, 0.55);
  box-shadow: 0 0 32px rgba(141, 255, 93, 0.28), inset 0 0 18px rgba(255, 75, 209, 0.12);
}
