By Mariko Katsumura
TOKYO (Reuters)- Malfunctioning bank machines and threats of power outages on Thursday jolted a stressed Tokyo where millions stocked up on rice and other essentials, stayed indoors or crowded into airports during Japan's nuclear crisis.
Flurries of transactions at some Mizuho Bank branches abruptly shut thousands of automatic teller machines and the government warned of major blackouts, adding to the disorder of a city that thrives on precision and efficiency.
As authorities struggle to avert catastrophe at an earthquake-ravaged nuclear-power complex 240 km (150 miles) to the north, Tokyo faced a test of nerves.
Some residents are leaving, some are applying for passports or hoarding what they can -- from food to cash and gold, a safe haven during times of crisis. Bullion prices jumped as much as $1.50 an ounce in Tokyo on Thursday.
At the second-floor office of the Tokyo Passport Center in the city's Yurakucho district, queues snaked to the first floor, according to a Reuters witness.
Areas usually packed with office workers crammed into sushi restaurants and noodle shops have gone quiet. Many schools are closed. Companies have allowed workers to stay home and voluntarily cut power usage which has led to reduced train services.
Trade Minister Banri Kaieda said unexpected, large-scale power outages were possible into the evening as an unusually crisp, pink sunset bathed the city.
Mizuho said its troubles were due to a concentration of transactions at some unidentified branches.
The ATMs went down for about two hours in the morning, and failed again in the evening. Customers also could not make foreign currency withdrawals and other transactions.
Outside a Mizuho branch in Tokyo's Akasaka district, six staff stood in the cold winter air apologizing to customers.
"This taught me a lesson that I have to have at least some amount of cash with me," said Hiromi Sugita, a 42-year-old insurance agent as she left the branch.
Shares of Mizuho were down 2.2 percent at 134 yen, against a 1.8 percent fall in the benchmark Nikkei 225 average.
BUSY AIRPORTS, QUIET STREETS
Many people have stocked up food, milk and rice, emptying some shelves at supermarkets. Thousands have showed up at nearby airports without tickets, hoping to book any flight out of the city. Television showed busloads of people leaving the city.
On Thursday, the U.S. Embassy urged citizens living within 80 km (50 miles) of the stricken nuclear-power plant to evacuate or remain indoors "as a precaution," while Britain's foreign office urged citizens "to consider leaving the area."
Some countries have gone further, urging their nationals to leave the country. The United States is chartering planes to help Americans get out.
The black letters spelling out "sortie" (exit) at the bottom of a white board at Narita airport near Tokyo summed up the French response to the crisis as thousands of French left in an evacuation organized by the French embassy from Japan's biggest airport. ($1 = 78.150 Japanese Yen)
(Writing by Jason Szep; Editing by Nick Macfie)