* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'VT323', monospace;
  background: #0D0D0D;
  color: #00FF41;
  overflow-x: hidden;
  position: relative;
}

/* Scanline effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1000;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Header */
.header {
  background: rgba(0, 255, 65, 0.1);
  border: 2px solid #00FF41;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.title-section {
  text-align: center;
  margin-bottom: 15px;
}

.game-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 2em;
  text-shadow: 0 0 10px #00FF41;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 1.2em;
  font-style: italic;
  opacity: 0.8;
}

.stats-display {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.stat-item {
  text-align: center;
  min-width: 150px;
}

.stat-label {
  font-size: 0.9em;
  opacity: 0.7;
  margin-bottom: 5px;
}

.stat-value {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5em;
  text-shadow: 0 0 5px #00FF41;
}

.prestige-glow {
  color: #F59E0B;
  text-shadow: 0 0 10px #F59E0B;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Main content */
.main-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 20px;
  flex: 1;
  margin-bottom: 20px;
}

.panel {
  background: rgba(0, 255, 65, 0.05);
  border: 2px solid #00FF41;
  padding: 15px;
  overflow-y: auto;
  max-height: 600px;
}

.panel-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2em;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 5px #00FF41;
}

/* Frameworks list */
.frameworks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.framework-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid;
  cursor: pointer;
  transition: all 0.3s;
}

.framework-item:hover {
  background: rgba(0, 255, 65, 0.1);
  transform: translateX(5px);
}

.framework-item.can-afford {
  border-color: #00FF41 !important;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.framework-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.framework-info {
  flex: 1;
  font-size: 0.9em;
}

.framework-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.framework-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.85em;
  opacity: 0.8;
}

.production {
  color: #10B981;
}

.cost {
  color: #F59E0B;
}

/* Center area */
.center-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.click-zone {
  position: relative;
  width: 300px;
  height: 300px;
  background: rgba(0, 255, 65, 0.1);
  border: 3px solid #00FF41;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.click-zone:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.5);
}

.click-zone:active {
  transform: scale(0.95);
}

.computer-icon {
  font-size: 8em;
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.click-hint {
  font-family: 'Press Start 2P', cursive;
  font-size: 1em;
  margin-top: 20px;
  opacity: 0.7;
}

.click-animation {
  position: absolute;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5em;
  color: #00FF41;
  text-shadow: 0 0 10px #00FF41;
  pointer-events: none;
  animation: floatUp 1s ease-out;
}

.click-animation.combo {
  color: #F59E0B;
  text-shadow: 0 0 10px #F59E0B;
  font-size: 2em;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px);
  }
}

.developer-status {
  text-align: center;
}

.developer-icon {
  font-size: 4em;
  animation: sway 3s ease-in-out infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tab {
  flex: 1;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00FF41;
  color: #00FF41;
  font-family: 'VT323', monospace;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s;
}

.tab:hover {
  background: rgba(0, 255, 65, 0.1);
}

.tab.active {
  background: rgba(0, 255, 65, 0.2);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.tab-content {
  min-height: 400px;
}

/* Upgrades */
.upgrades-list, .achievements-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upgrade-item {
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #666;
  cursor: pointer;
  transition: all 0.3s;
}

.upgrade-item.can-afford {
  border-color: #00FF41;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.upgrade-item.owned {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  opacity: 0.6;
  cursor: default;
}

.upgrade-item:hover:not(.owned) {
  background: rgba(0, 255, 65, 0.1);
  transform: translateX(5px);
}

.upgrade-name {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.upgrade-desc {
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 5px;
}

.upgrade-cost {
  color: #F59E0B;
  font-size: 0.9em;
}

/* Achievements */
.achievement-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #666;
}

.achievement-item.unlocked {
  border-color: #F59E0B;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.achievement-icon {
  font-size: 2em;
}

.achievement-info {
  flex: 1;
}

.achievement-name {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 5px;
}

.achievement-desc {
  font-size: 0.9em;
  opacity: 0.8;
}

/* Prestige */
.prestige-panel {
  padding: 20px;
  text-align: center;
}

.prestige-panel h3 {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.5em;
  margin-bottom: 15px;
  text-shadow: 0 0 10px #F59E0B;
  color: #F59E0B;
}

.prestige-info {
  margin: 20px 0;
  font-size: 1.2em;
}

.prestige-button {
  padding: 20px 40px;
  font-family: 'Press Start 2P', cursive;
  font-size: 1.2em;
  background: rgba(0, 0, 0, 0.5);
  border: 3px solid #666;
  color: #666;
  cursor: not-allowed;
  margin-top: 20px;
}

.prestige-button.can-prestige {
  border-color: #F59E0B;
  color: #F59E0B;
  cursor: pointer;
  animation: pulse 2s infinite;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.prestige-button.can-prestige:hover {
  background: rgba(245, 158, 11, 0.1);
  transform: scale(1.05);
}

/* Bottom panel */
.bottom-panel {
  background: rgba(0, 255, 65, 0.1);
  border: 2px solid #00FF41;
  padding: 15px;
  margin-bottom: 20px;
}

.flavor-text {
  text-align: center;
  font-size: 1.2em;
  font-style: italic;
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Footer */
.footer {
  text-align: center;
  padding: 15px;
  border-top: 2px solid #00FF41;
  font-size: 0.9em;
  opacity: 0.7;
}

.footer a {
  color: #00FF41;
  text-decoration: none;
}

.footer a:hover {
  text-shadow: 0 0 5px #00FF41;
}

/* Responsive */
@media (max-width: 1200px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .panel {
    max-height: 400px;
  }
  
  .click-zone {
    width: 250px;
    height: 250px;
  }
  
  .computer-icon {
    font-size: 6em;
  }
}

@media (max-width: 768px) {
  .game-title {
    font-size: 1.2em;
  }
  
  .stats-display {
    gap: 10px;
  }
  
  .stat-item {
    min-width: 100px;
  }
  
  .click-zone {
    width: 200px;
    height: 200px;
  }
  
  .computer-icon {
    font-size: 4em;
  }
  
  .tab {
    font-size: 0.8em;
    padding: 8px;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
  background: #00FF41;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00cc33;
}