html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Evita desplazamiento */
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: #222;
  color: #fff;
  font-family: sans-serif;
}

#score, #restart-btn {
  margin-top: 20px;
}

#board {
  display: grid;
  margin: 5vh auto 5vh auto; /* Menos margen arriba */
  border: 2px solid #fff;
  background: #000;
  max-width: 90vw;
  max-height: 60vh; /* No ocupa toda la ventana */
  width: auto;
  height: auto;
  padding: 5px;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  overflow: visible;
}

.bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 2px;
  cursor: pointer;
  transition: transform 0.2s;
}


.bubble:hover {
  transform: scale(1.1);
}

button {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}