@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

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

body {
  font-family: 'VT323', monospace;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Press Start 2P', cursive;
  line-height: 1.6;
}

.scanlines {
  position: relative;
}

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

.scanlines::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 999;
}

.crt-container {
  position: relative;
  border-radius: 20px;
}

.terminal-card {
  background: linear-gradient(135deg, rgba(0, 20, 0, 0.9), rgba(0, 40, 0, 0.8));
  border: 2px solid rgba(0, 255, 0, 0.3);
  border-radius: 8px;
  box-shadow: 
    0 0 20px rgba(0, 255, 0, 0.2),
    inset 0 0 20px rgba(0, 255, 0, 0.1);
  transition: all 0.3s ease;
}

.terminal-card:hover {
  border-color: rgba(0, 255, 0, 0.6);
  box-shadow: 
    0 0 30px rgba(0, 255, 0, 0.4),
    inset 0 0 30px rgba(0, 255, 0, 0.2);
}

.terminal-screen {
  background: #000;
  border: 4px solid #00ff00;
  border-radius: 8px;
  box-shadow: 
    0 0 40px rgba(0, 255, 0, 0.3),
    inset 0 0 40px rgba(0, 255, 0, 0.1);
}

.pixel-button {
  background: linear-gradient(135deg, #ff6200, #ff8800);
  border: 3px solid #ffaa00;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 0 #cc4400, 0 0 20px rgba(255, 98, 0, 0.5);
  position: relative;
  top: 0;
}

.pixel-button:hover {
  top: 2px;
  box-shadow: 0 2px 0 #cc4400, 0 0 30px rgba(255, 98, 0, 0.8);
}

.pixel-button:active {
  top: 4px;
  box-shadow: 0 0 0 #cc4400, 0 0 40px rgba(255, 98, 0, 1);
}

.joystick-button {
  background: radial-gradient(circle, #ff0000, #cc0000);
  border: 6px solid #660000;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 
    0 8px 0 #440000,
    0 0 40px rgba(255, 0, 0, 0.6),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  top: 0;
  width: 120px;
  height: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.joystick-button:hover {
  top: 4px;
  box-shadow: 
    0 4px 0 #440000,
    0 0 60px rgba(255, 0, 0, 0.9),
    inset 0 -4px 8px rgba(0, 0, 0, 0.5);
}

.joystick-button:active {
  top: 8px;
  box-shadow: 
    0 0 0 #440000,
    0 0 80px rgba(255, 0, 0, 1),
    inset 0 4px 8px rgba(0, 0, 0, 0.7);
}

.pixel-glow {
  filter: drop-shadow(0 0 20px rgba(255, 170, 0, 0.6));
}

.pixel-art {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.retro-text-shadow {
  text-shadow: 
    3px 3px 0 rgba(255, 98, 0, 0.8),
    6px 6px 0 rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 170, 0, 0.6);
}

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

@media (max-width: 768px) {
  .font-display {
    font-size: 0.7rem;
  }
  
  .joystick-button {
    width: 80px;
    height: 80px;
  }
}