* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #9bbc0f;
  font-family: "Courier New", monospace;
  overflow: hidden;
}

canvas {
  display: block;
}

.hud {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  font-size: 16px;
  color: #0f380f;
  z-index: 10;
}

#fullscreenBtn {
  position: fixed;
  right: 10px;
  top: 6px;
  padding: 6px 10px;
  background: #0f380f;
  color: #c7f000;
  border: none;
  z-index: 10;
}

.ad-container {
  width: 100%;
  height: 70px;
  background: #9bbc0f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.demo-ad {
  width: 90%;
  height: 60px;
  background: #ccc;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.top-ad {
  position: fixed;
  top: 40px;
}

.bottom-ad {
  position: fixed;
  bottom: 0;
}

#gameOver {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.hidden {
  display: none !important;
}

button {
  cursor: pointer;
}
