/* Helix Games Theme for Pac-Man */

:root {
  --helix-primary: #3cd2a5;
  --helix-primary-light: #5ddbb5;
  --helix-bg-dark: #0a0e10;
  --helix-bg-card: #1a1f23;
  --helix-text: #ffffff;
  --helix-text-muted: rgba(255, 255, 255, 0.6);
}

#game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.game-title {
  color: var(--helix-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(60, 210, 165, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Stats Bar - Above Game */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px auto;
  padding: 15px 30px;
  background: var(--helix-bg-card);
  border-radius: 12px;
  border: 1px solid rgba(60, 210, 165, 0.2);
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-label {
  color: var(--helix-text-muted);
  font-size: 0.9rem;
}

.stat-value {
  color: var(--helix-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

#pacman-canvas {
  background: #000000;
  border: 3px solid var(--helix-primary);
  display: block;
  margin: 20px auto;
  box-shadow: 0 0 20px rgba(60, 210, 165, 0.1);
}

/* Info Panels - Below Game */
.info-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 20px auto;
}

.controls-panel {
  padding: 20px;
  background: var(--helix-bg-card);
  border-radius: 12px;
  border: 1px solid rgba(60, 210, 165, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.controls-panel h3,
.howto-panel h3 {
  margin-top: 0;
  color: var(--helix-primary);
}

.control-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
}

.control-list div {
  padding: 5px 0;
}

.control-key {
  background: var(--helix-primary);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  margin-right: 8px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Pac-Man life icons */
.pac-life-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #FFFF00;
  border-radius: 50%;
  margin-right: 5px;
  position: relative;
  font-size: 0;
  clip-path: polygon(100% 50%, 50% 50%, 75% 15%, 100% 0%, 100% 100%, 75% 85%);
}

#lives-container {
  display: flex;
  align-items: center;
}

.howto-panel {
  padding: 20px;
  background: var(--helix-bg-card);
  border-radius: 12px;
  border: 1px solid rgba(60, 210, 165, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.howto-panel p {
  margin: 10px 0;
  line-height: 1.6;
  color: var(--helix-text);
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  #pacman-canvas {
    max-width: 100%;
    height: auto;
  }
  
  .info-panels {
    grid-template-columns: 1fr;
  }
  
  .stats-bar {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }
  
  .stat-item {
    justify-content: space-between;
  }
  
  .game-title {
    font-size: 2rem;
  }
}
