/* Growth Challenger 3000 - Retro Arcade Styles */

/* Game trigger icon in footer */
.gc3000-trigger {
  display: inline-block;
  width: 16px;
  height: 16px;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  vertical-align: middle;
}

.gc3000-trigger:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

#gc3000-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.gc3000-container {
  position: relative;
  background: #000;
  border: 4px solid #00ffff;
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.5),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 20px;
  text-align: center;
}

.gc3000-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #333;
}

.gc3000-title {
  font-family: monospace;
  font-size: 18px;
  font-weight: bold;
  color: #ff00ff;
  text-shadow:
    0 0 10px #ff00ff,
    2px 2px 0 #000;
  letter-spacing: 2px;
}

.gc3000-stats {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.gc3000-score,
.gc3000-timer {
  font-family: monospace;
  font-size: 14px;
  color: #00ff00;
  text-shadow: 0 0 5px #00ff00;
}

#gc3000-canvas {
  display: block;
  border: 2px solid #333;
  image-rendering: pixelated;
}

.gc3000-instructions {
  margin-top: 15px;
  font-family: monospace;
  font-size: 12px;
  color: #888;
}

.gc3000-key {
  display: inline-block;
  padding: 4px 8px;
  background: #222;
  border: 1px solid #444;
  border-radius: 3px;
  color: #fff;
  font-size: 11px;
}

.gc3000-legend {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gc3000-legend-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.gc3000-legend-negative {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #333;
}

.gc3000-legend-item {
  font-family: monospace;
  font-size: 11px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gc3000-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
}

.gc3000-dot.gc3000-green {
  background: #00ff00;
  box-shadow: 0 0 5px #00ff00;
}

.gc3000-dot.gc3000-green-dark {
  background: #00cc00;
  box-shadow: 0 0 5px #00cc00;
}

.gc3000-dot.gc3000-blue {
  background: #00ffff;
  box-shadow: 0 0 5px #00ffff;
}

.gc3000-dot.gc3000-white {
  background: #ffffff;
  box-shadow: 0 0 5px #ffffff;
}

.gc3000-dot.gc3000-red {
  background: #ff0000;
  box-shadow: 0 0 5px #ff0000;
}

.gc3000-dot.gc3000-pink {
  background: #ff0066;
  box-shadow: 0 0 5px #ff0066;
}

/* Game Over Screen */
.gc3000-gameover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  border: 3px solid #ff0000;
  padding: 30px 40px;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.gc3000-gameover-title {
  font-family: monospace;
  font-size: 28px;
  font-weight: bold;
  color: #ff0000;
  text-shadow: 0 0 15px #ff0000;
  margin-bottom: 15px;
  letter-spacing: 3px;
}

.gc3000-gameover-reason {
  font-family: monospace;
  font-size: 14px;
  color: #ffff00;
  margin-bottom: 20px;
  text-shadow: 0 0 5px #ffff00;
}

.gc3000-gameover-score {
  font-family: monospace;
  font-size: 18px;
  color: #00ffff;
  margin-bottom: 25px;
  text-shadow: 0 0 10px #00ffff;
}

.gc3000-replay-btn {
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  padding: 12px 30px;
  background: #000;
  color: #00ff00;
  border: 2px solid #00ff00;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.gc3000-replay-btn:hover {
  background: #00ff00;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

/* CRT screen effect */
.gc3000-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 500px) {
  .gc3000-container {
    padding: 10px;
    margin: 10px;
  }

  .gc3000-header {
    flex-direction: column;
    gap: 8px;
  }

  .gc3000-title {
    font-size: 14px;
  }

  #gc3000-canvas {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .gc3000-legend {
    gap: 8px;
  }
}
