/* Helix Games Theme for Invasion */
/* Lessons learned: Keep canvas minimal, polish UI only */

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

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

/* 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: 500px;
  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;
}

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

/* Game title */
.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;
}

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

.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;
}

.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) {
  #game {
    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;
    width: 100%;
  }
  
  .game-title {
    font-size: 2rem;
  }
}

/* Legacy Instructions */
.game-instructions {
  color: var(--helix-text-muted);
  font-size: 0.875rem;
  margin-top: 20px;
  line-height: 1.6;
}

.game-instructions strong {
  color: var(--helix-primary);
  font-weight: 600;
}

/* Responsive design */
@media screen and (max-width: 520px) {
  #game {
    max-width: 100%;
    height: auto;
  }
  
  .game-title {
    font-size: 2rem;
  }
  
  .control-grid {
    grid-template-columns: 1fr;
  }
}
