/* === Reset básico === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Fonte principal === */
body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(to bottom, #fffbea, #e0f7fa);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Header (Topo do Jogo) === */
header.topo {
  width: 100%;
  background: linear-gradient(to right, #90be6d, #f9c74f);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

header.topo h1 {
  font-size: 1.5rem;
  color: #333;
  flex: 1;
  text-align: center;
}

header.topo .voltar {
  background-color: #f9844a;
  border: none;
  padding: 8px 16px;
  color: white;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
header.topo .voltar:hover {
  background-color: #f3722c;
}

header.topo .marcadores {
  display: flex;
  gap: 15px;
  font-size: 1rem;
  font-weight: bold;
}

/* === Canvas do Jogo === */
main {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
}

canvas {
  border: 4px solid #222;
  border-radius: 10px;
  background-color: #ffffff;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* === Botão de Pulo (Mobile) === */
#jumpBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #43aa8b;
  color: white;
  padding: 14px 20px;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.2s ease;
  cursor: pointer;
  user-select: none;
}

#jumpBtn:hover {
  transform: scale(1.05);
}

/* Oculta botão em telas largas */
@media (min-width: 800px) {
  #jumpBtn {
    display: none;
  }
}

/* === Toast (mensagem de Axé +1) === */
.toast {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 1.2rem;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease-out;
  pointer-events: none;
}
