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

body {
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Press Start 2P', 'Courier New', monospace;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 728px;
  font-size: 16px;
  color: #ffff00;
  padding: 4px 8px;
}

.header-item {
  text-align: center;
  flex: 1;
}

.controls-info {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.controls-info kbd {
  background: #333;
  border: 1px solid #555;
  border-radius: 3px;
  padding: 2px 6px;
  margin: 0 2px;
  color: #fff;
  font-size: 11px;
}

.footer {
  text-align: center;
  font: normal normal 16px/1.5 Arial, Helvetica, sans-serif;
  color: #aaa;
  padding: 20px 0;
}

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

.footer a:hover {
  color: #ffff00;
}

#gameCanvas {
  border: 4px solid #2121de;
  border-radius: 8px;
  background: #000;
}

.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

#overlayTitle {
  color: #ffff00;
  font-size: 48px;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

#overlayText {
  font-size: 18px;
  color: #ccc;
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  text-align: center;
}

#overlayTitle {
  color: #ffff00;
  font-size: 32px;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

#overlayText {
  font-size: 12px;
  color: #aaa;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

