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

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

html, body {
  width: 100%;
  height: 100%;
  background: #0a0a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: monospace;
}

#gameContainer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#gameCanvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 3px solid #333;
  border-radius: 4px;
  background: #000;
  cursor: none;
  box-shadow: 
    0 0 20px rgba(0, 100, 255, 0.15),
    0 0 60px rgba(0, 100, 255, 0.05);
}

.controls-hint {
  color: #555;
  font-size: 11px;
  text-align: center;
  font-family: monospace;
  line-height: 1.6;
  max-width: 800px;
}

.controls-hint kbd {
  display: inline-block;
  background: #1a1a2e;
  color: #8888aa;
  border: 1px solid #333;
  border-radius: 3px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 10px;
}

/* Mobile touch overlay */
#touchOverlay {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 100;
  pointer-events: none;
}

/* Scanline effect */
#gameCanvas::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.05) 0px,
    rgba(0,0,0,0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

@media (max-width: 850px) {
  #gameCanvas {
    width: 100vw !important;
    height: auto !important;
    border: none;
    border-radius: 0;
  }
}
