Consumer confidence up in June amid dark shadow of inflation and war