/* =========================
   MENÚ INFERIOR – SMARTPHONE
   ========================= */
.bottom-menu {
    position: relative; 
    width: 90%;
    max-width: 420px;
    margin: 2px auto 15px auto; /* Solo 2px de separación con el área de retos */
    padding: 10px;
    background: #1e1e1e;
    border-radius: 16px;
    z-index: 70;
  }
.bottom-menu .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.bottom-menu button {
  flex: 1 1 70px;
  min-width: 65px;
  height: 40px;
  font-size: 0.5625rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: #2e2e2e;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  line-height: 1.1;
  white-space: nowrap;
  padding: 0 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
}

.bottom-menu button:active {
  opacity: 0.7;
  transform: scale(0.98); /* Android: respuesta visual clara al tocar */
}

.bottom-menu button.active {
  background: #4f8cff;
}

.bottom-menu button.completed {
  background: #2ecc71;
  color: #0b3d1f;
}

.bottom-menu button:disabled {
  background: #555;
  color: #aaa;
  cursor: not-allowed;
}

/* Sensor: Pantalla muy pequeña (iPhone SE Gen 1, ancho < 330px) */
@media (max-width: 330px) {
  .bottom-menu button {
    font-size: 0.5rem !important;
    height: 32px !important;
    flex: 1 1 55px !important;
  }
}