/* ==========================================
   CYBERPUNK GAME VIEW LAYOUT
   ========================================== */
.game-section {
  padding: 60px 0 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-title-group {
  text-align: center;
  margin-bottom: 40px;
}

.game-title-group h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #ff0055 0%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.game-container-outer {
  width: 100%;
  max-width: 850px;
  background-color: #0c0813;
  border: 2px solid #00f0ff;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), 0 0 10px rgba(255, 0, 85, 0.2);
  margin-bottom: 30px;
  overflow: hidden;
}

/* scanlines for game card specifically */
.game-container-outer::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 5;
  pointer-events: none;
  opacity: 0.6;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.3);
  font-family: 'Share Tech Mono', monospace;
  color: #00f0ff;
  background-color: #140d21;
  font-size: 1.1rem;
}

.hud-item span {
  color: #ff0055;
  font-weight: 700;
  text-shadow: 0 0 5px #ff0055;
}

.game-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 3.2; /* Beautiful retro widescreen ratio */
  background-color: #09050e;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background-color: transparent;
}

/* OVERLAYS */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 8, 19, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  text-align: center;
  padding: 20px;
  font-family: 'Share Tech Mono', monospace;
  color: #00f0ff;
}

.overlay-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #ff0055;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px #ff0055, 0 0 2px #00f0ff;
  animation: glitch 1.5s infinite;
}

@keyframes glitch {
  0% { transform: skew(0deg); }
  20% { transform: skew(-2deg); }
  22% { transform: skew(3deg); }
  25% { transform: skew(0deg); }
  80% { transform: skew(0deg); }
  82% { transform: skew(-3deg); }
  84% { transform: skew(4deg); }
  86% { transform: skew(0deg); }
}

.overlay-desc {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #cbd5e1;
  max-width: 450px;
}

.game-btn-play {
  background: transparent;
  color: #00f0ff;
  border: 2px solid #00f0ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 36px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transition: all 0.2s ease;
  position: relative;
}

.game-btn-play:hover {
  background-color: #00f0ff;
  color: #0c0813;
  box-shadow: 0 0 25px #00f0ff;
  text-shadow: none;
}

/* MOBILE GAME CONTROLS (Only visible on Mobile/Tablet) */
.mobile-game-controls {
  display: none;
  width: 100%;
  max-width: 850px;
  gap: 16px;
  margin-top: 16px;
  justify-content: center;
}

.mobile-action-btn {
  flex: 1;
  max-width: 250px;
  background-color: #140d21;
  color: #00f0ff;
  border: 1px solid #00f0ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  padding: 18px 0;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 0;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.mobile-action-btn:active {
  background-color: #00f0ff;
  color: #0c0813;
  box-shadow: 0 0 15px #00f0ff;
}

.mobile-action-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* INSTRUCTIONS ACCORDION BLOCK FOR GAME PAGE */
.game-instructions-card {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  font-family: 'Share Tech Mono', monospace;
}

.game-instructions-card h2 {
  font-family: 'Orbitron', sans-serif;
  color: #ff0055;
  text-shadow: 0 0 5px #ff0055;
  font-size: 1.5rem;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.game-instructions-card ul {
  list-style: square;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cbd5e1;
}

.game-instructions-card strong {
  color: #00f0ff;
  text-shadow: 0 0 2px #00f0ff;
}

@media (max-width: 768px) {
  .mobile-game-controls {
    display: flex;
  }
  
  .game-hud {
    font-size: 0.9rem;
    padding: 12px 16px;
  }
  
  .overlay-title {
    font-size: 2rem;
  }
  
  .overlay-desc {
    font-size: 0.9rem;
  }
}
