
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #87ceeb;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#game canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#hud {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 0;
  width: 100%;
  padding: 12px;
  text-align: center;
  color: white;
  text-shadow: 2px 2px 5px #17251b;
  pointer-events: none;
}

#hud h1 {
  margin: 4px 0 12px;
  color: #ffe45c;
  font-size: clamp(24px, 4vw, 40px);
  text-shadow:
    2px 3px 0 #77501b,
    0 0 12px #00000055;
}

#placar {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #ffffff99;
  border-radius: 16px;
  background: #162b38bb;
  font-size: 22px;
  font-weight: bold;
}

#instructions {
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 2px 4px #000;
}

#message {
  margin: 10px;
  color: #fff7a6;
  font-size: 21px;
  font-weight: bold;
}

button {
  pointer-events: auto;
  padding: 12px 22px;
  border: 2px solid #fff2a8;
  border-radius: 12px;
  background: linear-gradient(#ffe66d, #ffb923);
  color: #51340a;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 0 #a96813;
  transition: transform 0.15s, filter 0.15s;
}

button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #a96813;
}

#help {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 0;
  width: 100%;
  padding: 10px;
  text-align: center;
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 2px 4px #000;
  pointer-events: none;
}

@media (max-width: 600px) {
  #hud {
    top: 5px;
    padding: 6px;
  }

  #hud h1 {
    margin: 5px;
  }

  #placar {
    font-size: 18px;
    padding: 7px 14px;
  }

  #instructions {
    font-size: 12px;
  }

  #message {
    font-size: 17px;
  }

  #help {
    font-size: 12px;
  }
}


