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

body {
  font-family: "Silkscreen", monospace;
  background-color: #18181b;
  background-image: url("bg.webp");
  background-repeat: repeat;
  background-size: 70%;
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

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

.header {
  text-align: center;
}

.header .logo {
  width: 400px;
  height: 200px;
  margin-bottom: 10px;
  object-fit: contain;
}

.info {
  display: flex;
  gap: 40px;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

#gameCanvas {
  border: 4px solid #ff0000;
  background: #0a0a0a;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #000000;
  border: 4px solid #ff0000;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.modal-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ff0000;
  text-shadow: 2px 2px 0px #880000;
}

.modal-content p {
  font-size: 24px;
  margin-bottom: 30px;
  color: #ffffff;
}

.modal-content button {
  background: #ff0000;
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  font-size: 24px;
  font-family: "Silkscreen", monospace;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-content button:hover {
  background: #cc0000;
  transform: scale(1.05);
}

.modal-content button:active {
  transform: scale(0.95);
}
