* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #0d0d1a;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

.hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  background: #14182e;
  border-bottom: 4px solid #2b335e;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.hud-controls {
  display: flex;
  gap: 10px;
}

.hud button {
  padding: 8px 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  background: #e94560;
  color: #ffffff;
  border: 2px solid #ff758f;
  cursor: pointer;
}

.hud button:hover {
  background: #c7364e;
}

#gameContainer {
  position: relative;
  flex-grow: 1;
  width: 100%;
  background: #0b0e1c;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 28, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 10;
}

#overlay h1 {
  font-size: 54px;
  margin-bottom: 16px;
  color: #4ecca3;
  text-shadow: 4px 4px 0px #1b4d3e;
  letter-spacing: 4px;
}

#overlay p {
  font-size: 20px;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 28px;
  color: #e0e0e0;
}

#startBtn {
  padding: 16px 36px;
  font-family: inherit;
  font-size: 22px;
  font-weight: bold;
  background: #e94560;
  color: #ffffff;
  border: 4px solid #ff8fa3;
  cursor: pointer;
  box-shadow: 4px 4px 0px #590d22;
}

#startBtn:hover {
  background: #ff4d6d;
  transform: translate(-1px, -1px);
}
