* {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: linear-gradient(to top, #90caf9, #e3f2fd);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #42a5f5;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

h1 {
  flex: 1 1 100%;
  font-size: 1.8rem;
  text-align: center;
}

.info {
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  gap: 15px;
  align-items: center;
}

.vidas {
  font-size: 1.5rem;
  color: red;
}

.btn-voltar {
  background: #1e88e5;
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-voltar:hover {
  background: #1565c0;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 10px;
}

canvas#gameCanvas {
  border-radius: 15px;
  background: linear-gradient(to top, #81d4fa, #e1f5fe);
  max-width: 100%;
  height: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

#gameOver {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  text-align: center;
  z-index: 10;
}

#gameOver.hidden {
  display: none;
}

#gameOver h2 {
  margin-bottom: 15px;
  font-size: 2rem;
  color: #1976d2;
}

#gameOver p {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

#gameOver button {
  background: #42a5f5;
  border: none;
  color: white;
  padding: 10px 25px;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

#gameOver button:hover {
  background: #1565c0;
}

footer#rodape {
  background-color: #fbe9e7;
  text-align: center;
  padding: 10px;
  border-top: 2px solid #ffccbc;
  box-sizing: border-box;
  font-size: 0.9rem;
  color: #555;
  user-select: none;
}
#pularBtn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  padding: 15px 20px;
  font-size: 22px;
  background: #ffeb3b;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 100;
  display: none; /* só mostra no mobile */
}

@media (max-width: 768px) {
  #pularBtn {
    display: block;
  }

  canvas {
    width: 95% !important;
    height: auto !important;
  }
}
